Skip to content

Fix crash on reload when useImmediateExecutorInAndroidBridgeless is enabled#45162

Closed
javache wants to merge 2 commits into
facebook:mainfrom
javache:export-D59002404
Closed

Fix crash on reload when useImmediateExecutorInAndroidBridgeless is enabled#45162
javache wants to merge 2 commits into
facebook:mainfrom
javache:export-D59002404

Conversation

@javache
Copy link
Copy Markdown
Member

@javache javache commented Jun 25, 2024

Summary:
Previously we would crash in ReactInstance#callFunctionOnModule (P1443291303) when reloading (due to the onHostPause call) because we removed a source of synchronization by using the immediate executor.

Workaround it by making sure we always null out references to mReactInstance before we actually start destroying it.

Differential Revision: D59002404

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Jun 25, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D59002404

…nabled (facebook#45162)

Summary:
Pull Request resolved: facebook#45162

Previously we would crash in ReactInstance#callFunctionOnModule (P1443291303) when reloading (due to the onHostPause call) because we removed a source of synchronization by using the immediate executor.

Workaround it by making sure we always null out references to `mReactInstance` before we actually start destroying it.

Changelog: [Internal]

Differential Revision: D59002404
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D59002404

@javache javache force-pushed the export-D59002404 branch from 340a1c7 to 9734bfe Compare June 25, 2024 14:48
@analysis-bot
Copy link
Copy Markdown

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 20,315,908 +16,408
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 23,513,257 +16,400
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: 88ba9a6
Branch: main

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jun 27, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in c2e0804.

@github-actions
Copy link
Copy Markdown

This pull request was successfully merged by @javache in c2e0804.

When will my fix make it into a release? | How to file a pick request?

@javache javache deleted the export-D59002404 branch June 27, 2024 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants