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 layout animation crashes on the New Architecture #6920

Merged
merged 2 commits into from
Jan 27, 2025

Conversation

bartlomiejbloniarz
Copy link
Contributor

@bartlomiejbloniarz bartlomiejbloniarz commented Jan 22, 2025

Summary

This PR adds a contains check for layout animation config. When we schedule the start of an animation, we check if an animation is configured for the given view. But it might happen that before the LayoutAnimationsManager::startLayoutAnimation function gets executed, the view gets removed. When the view is removed we clear the config, so the startLayoutAnimation function will get a nullptr config, resulting in a crash.

fixes #6908

Test plan

@thebiltheory
Copy link

@tomekzaw Can you by any chance also merge this PR :D

@bartlomiejbloniarz bartlomiejbloniarz added this pull request to the merge queue Jan 27, 2025
Merged via the queue into main with commit 60f7b02 Jan 27, 2025
17 checks passed
@bartlomiejbloniarz bartlomiejbloniarz deleted the @bartlomiejbloniarz/fix-la-crash branch January 27, 2025 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ANDROID] A TON of crashes on Android Fabric when using entering/exiting animations
3 participants