Skip to content

Fix crash on reload#56594

Closed
etodanik wants to merge 1 commit into
react:mainfrom
etodanik:patch-2
Closed

Fix crash on reload#56594
etodanik wants to merge 1 commit into
react:mainfrom
etodanik:patch-2

Conversation

@etodanik

Copy link
Copy Markdown
Contributor

Revert crash on reload caused by 45b4817#diff-99e9fee4dbe9d329e2f7df16035fb871fa583c92028a48fefb1c48e405638944R314-R316

Summary:

@j-piasecki your change that seems redundant for the destructor case (reactInstanceData_ is a unique pointer and will be destroyed anyway) and breaks the reload case (by setting contextContainer to nullptr, which is then immediately accessed by createReactInstance, causing a crash)

Changelog:

[GENERAL] [FIXED] - Fixed a regression that causes crashes on reload for ReactCxxPlatform's ReactHost

Test Plan:

Reload the development server

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 24, 2026
@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Apr 24, 2026
@etodanik

Copy link
Copy Markdown
Contributor Author

Anything else needed to advance on this? It's quite an obvious bug.

Tagging some people who might have context based on latest git blame:
@javache @j-piasecki @bartlomiejbloniarz @rubennorte @christophpurrer

@meta-codesync

meta-codesync Bot commented May 26, 2026

Copy link
Copy Markdown

@javache has imported this pull request. If you are a Meta employee, you can view this in D106362104.

@cortinico cortinico left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review automatically exported from Phabricator review in Meta.

@meta-codesync meta-codesync Bot closed this in ac81869 May 27, 2026
@facebook-github-tools facebook-github-tools Bot added the Merged This PR has been merged. label May 27, 2026
@meta-codesync

meta-codesync Bot commented May 27, 2026

Copy link
Copy Markdown

@javache merged this pull request in ac81869.

@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @etodanik in ac81869

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

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. Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants