Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid dealloc on background #1394

Closed

Conversation

wsdwsd0829
Copy link
Contributor

@wsdwsd0829 wsdwsd0829 commented Mar 11, 2019

The node can be deallocated on background and causing crash when it try to access view/gesture recognizers in dealloc.
ASMainThreadDeallocation.h should handle the ivar deallocation, thus we do not need to do it ourselves here

@wsdwsd0829
Copy link
Contributor Author

wsdwsd0829 commented Mar 14, 2019

is rebase reword enough to trigger test? => YES

@wsdwsd0829 wsdwsd0829 force-pushed the fix-text-node-dealloc-on-bg branch from 251b8fb to 2b2c78b Compare March 14, 2019 03:55
@nguyenhuy
Copy link
Member

Yes, should finish in about 2 hours. Yes, that’s our new build time after upgrading Xcode :(

@ghost
Copy link

ghost commented Mar 14, 2019

🚫 CI failed with log

@ghost
Copy link

ghost commented Mar 14, 2019

🚫 CI failed with log

@nguyenhuy
Copy link
Member

Agh, seems like a persistent CI issue.

@garrettmoon
Copy link
Member

Can you rebase on master, this doesn't have the updated ./build.sh

@wsdwsd0829 wsdwsd0829 force-pushed the fix-text-node-dealloc-on-bg branch from 2b2c78b to c0c9980 Compare March 14, 2019 17:34
@ghost
Copy link

ghost commented Mar 14, 2019

🚫 CI failed with log

@ghost
Copy link

ghost commented Mar 14, 2019

🚫 CI failed with log

ShihabM and others added 15 commits March 15, 2019 14:04
* Fix isTruncated logic in ASTextNode2

* Add truncation tests
* disable a11y cache

* style update
* Introduce ASCellLayoutMode

* Some smaller improvements

* Improve logic around _superPerformBatchUpdates:completion:

* Add comment about default values for ASCellLayoutModeNone

* Always call _superReloadData:completion: within UICollectionView

* Add initial range test for ASCellLayoutModeNone
* fix SIMULATE_WEB_RESPONSE not imported TextureGroup#449

* Fix to make rangeMode update in right time

* remove uncessary assert

* Fix collection cell editing bug for iOS 9 & 10

* Revert "Fix collection cell editing bug for iOS 9 & 10"

This reverts commit 06e18a1.

* Add description method for yoga.

* Fix comment
If PIN_ANIMATED is enabled, the creation of a PINRemoteImageManager
will create a sharedDownloader also. Thus we cannot assert that it
doesn't exist. We will move this assertion up to the methods that
create the preconfiguredSharedManager and before said manager is
allocated.
…#1265)

* Wrap supplementary node blocks to enable resizing them.

Most ASCellNodeBlocks are wrapped by ASCollectionView.mm to add an `interactionDelegate` as well as calling `enterHierarchyState` on the node and setting its transform to a reflection if `inverted` is set on the collectionView.

This PR adds this behavior to supplementary nodes as well.

* Simplify code / block will never be nil
* fix SIMULATE_WEB_RESPONSE not imported TextureGroup#449

* Fix to make rangeMode update in right time

* remove uncessary assert

* Fix collection cell editing bug for iOS 9 & 10

* Revert "Fix collection cell editing bug for iOS 9 & 10"

This reverts commit 06e18a1.

* Add description method for yoga.

* Fix comment
@wsdwsd0829 wsdwsd0829 force-pushed the fix-text-node-dealloc-on-bg branch from 29e494d to e6e59e7 Compare March 15, 2019 21:09
@wsdwsd0829 wsdwsd0829 closed this Mar 15, 2019
@wsdwsd0829
Copy link
Contributor Author

somehow messed up here, create a new one: #1410

@ghost
Copy link

ghost commented Mar 15, 2019

1 Warning
⚠️ This is a big PR, please consider splitting it up to ease code review.

Generated by 🚫 Danger

@ghost
Copy link

ghost commented Mar 15, 2019

🚫 CI failed with log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants