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

Fix incomplete UI runtime initialization #5505

Merged
merged 4 commits into from Dec 21, 2023

Conversation

tomekzaw
Copy link
Member

@tomekzaw tomekzaw commented Dec 18, 2023

Summary

Fixes #5421, fixes #5331.

This PR removes installValueUnpacker method which was called on the JS thread during the creation of NativeReanimatedModule but operated directly on the UI runtime. Because of this, UI runtime was already used from JS thread so any use from the UI runtime (e.g. Reanimated event handlers) would cause a crash due to a failed check in ReanimatedReentrancyCheck::before. Note that the check also occurred in release mode due to improperly set NDEBUG flag.

Test plan

@tjzel tjzel self-requested a review December 18, 2023 10:27
Copy link
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.

🫡

@Nodonisko
Copy link
Contributor

Sorry for bothering, but is there any chance this will be released soon?

@tomekzaw
Copy link
Member Author

@Nodonisko I'm afraid we don't have enough capacity to publish a stable release this week but we hope to merge this PR this week and it will be available in 3.7.0-nightly which is also published on npm.

@Nodonisko
Copy link
Contributor

Thanks, nightly is fine :)

Copy link
Contributor

@tjzel tjzel left a comment

Choose a reason for hiding this comment

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

Couldn't find anything to request changes 😭

@tomekzaw tomekzaw added this pull request to the merge queue Dec 21, 2023
Merged via the queue into main with commit 5d1c254 Dec 21, 2023
16 checks passed
@tomekzaw tomekzaw deleted the @tomekzaw/fix-ui-runtime-usage-before-init branch December 21, 2023 09:19
@iy-913
Copy link

iy-913 commented Dec 24, 2023

Hello guys, how to install 3.7.0-nightly via npm?

@tomekzaw
Copy link
Member Author

tomekzaw commented Dec 24, 2023

npm i react-native-reanimated@nightly --save

@huextrat
Copy link

Hi @tomekzaw, any plan to release it on stable ?

@tomekzaw
Copy link
Member Author

@huextrat We don't have exact plans when to release 3.7.0 but maybe in 1-2 weeks?

RikSchefferAmsterdam pushed a commit to Amsterdam/amsterdam-app-frontend that referenced this pull request Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants