Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants