-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[ASDisplayNode+Layout] Revise subnode orphan checking to run as debug-only assert. #335
Comments
I'm gonna hijack this issue to mention the root cause of orphaned subnodes, as well as subnoes that are never added to the hierarchy. I believe the root cause of these problems is due to the fact that There are a couple of things we need to do to fix this problem, as well as to get the layout transition system in a good shape:
|
…sition to clean up. It is rare that this code has any effect, but I've discovered a case in which it occurs. This task tracks moving this code to a DEBUG-only assertion: #335
Closing per #336. |
…sition to clean up. (TextureGroup#336) It is rare that this code has any effect, but I've discovered a case in which it occurs. This task tracks moving this code to a DEBUG-only assertion: TextureGroup#335
Right now, in rare cases it is possible for a node to be orphaned in the hierarchy - when main thread layout is flushed while background calculations are preparing a different layout. Once this is fixed, we should revise the implementation of orphan checking to only run in #if DEBUG and trip an assertion if it occurs.
The text was updated successfully, but these errors were encountered: