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

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

Merged
merged 3 commits into from
Jun 1, 2022

Conversation

geriux
Copy link

@geriux geriux commented Jun 1, 2022

Description

This PR brings the changes from software-mansion#3090 to prevent a crash when closing the editor.

…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.
@geriux geriux added the bug Something isn't working label Jun 1, 2022
@geriux geriux requested a review from fluiddot June 1, 2022 14:46
Copy link

@fluiddot fluiddot left a comment

Choose a reason for hiding this comment

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

LGTM 🎊 !

Unfortunately, I can't manage to reproduce the original crash that this fix aims to address (i.e. EXC_BAD_ACCESS on rt.global()). However, since the fix comes from the original repository, I think it's safe to merge it 👍 .

NOTE: I've bumped the package version and generated a new tarball.

UPDATE: I tested the changes using this PR and manually setting the source of the Reanimated Podspec to point to this branch.

@fluiddot fluiddot merged commit 0f902a0 into wp-fork Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants