Skip to content

Demonstrate bug in differentiator where reparented nodes reference non-existent nodes#48002

Closed
javache wants to merge 1 commit into
facebook:mainfrom
javache:export-D66557919
Closed

Demonstrate bug in differentiator where reparented nodes reference non-existent nodes#48002
javache wants to merge 1 commit into
facebook:mainfrom
javache:export-D66557919

Conversation

@javache
Copy link
Copy Markdown
Member

@javache javache commented Nov 28, 2024

Summary:
Demonstrates the issue identified in #47960 and a crash we've been seeing internally around getViewState referencing a view that does not exist.

When reparenting unflattened nodes, Differentiator may emit an update with a parentShadowView that does not exist on the native side yet, thereby crashing Android.

Landing the test-case first (with some test cleanup), so the diff for the actual fix is clearer.

Changelog: [Internal]

Differential Revision: D66557919

…n-existent nodes

Summary:
Demonstrates the issue identified in facebook#47960 and a crash we've been seeing internally around `getViewState` referencing a view that does not exist.

When reparenting unflattened nodes, Differentiator may emit an `update` with a `parentShadowView` that does not exist on the native side yet, thereby crashing Android.

Landing the test-case first (with some test cleanup), so the diff for the actual fix is clearer.

Changelog: [Internal]

Differential Revision: D66557919
@facebook-github-bot facebook-github-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 Nov 28, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in bc9e4db.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @javache in bc9e4db

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

@javache javache deleted the export-D66557919 branch November 28, 2024 14:48
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