Skip to content

Invalidate display link instead of pausing it when invalidating the nodes manager#3090

Merged
piaskowyk merged 1 commit intosoftware-mansion:mainfrom
danilobuerger:patch-1
Apr 1, 2022
Merged

Invalidate display link instead of pausing it when invalidating the nodes manager#3090
piaskowyk merged 1 commit intosoftware-mansion:mainfrom
danilobuerger:patch-1

Conversation

@danilobuerger
Copy link
Copy Markdown
Contributor

Description

Invalidate display link instead of pausing it when invalidating the nodes manager

Pausing the display link on invalidation will still make it call the onAnimationFrame selector one more time as its already schedule. When this happens animation blocks will be called and crash while accessing the jsi runtime thats already dealloced.

Fixes #2035
Fixes #2899

Test code and steps to reproduce

See #2035 for reproduction

…odes manager

Pausing the display link on invalidation will still make it call the onAnimationFrame selector one more time as its already schedule. When this happens animation blocks will be called and crash while accessing the jsi runtime thats already dealloced.
Copy link
Copy Markdown
Member

@piaskowyk piaskowyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the help I really appreciate that! ❤️

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.

Hot reload iOS crash due to EXC_BAD_ACCESS on rt.global() TextInput onBlur animation hot reload iOS crash

3 participants