Content-Length: 249020 | pFad | http://github.com/facebook/react-native/pull/49422

52 [iOS] Fabric: disable React-Fabric stable_sort strict weak sort check in debug mode by zhongwuzw · Pull Request #49422 · facebook/react-native · GitHub
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

[iOS] Fabric: disable React-Fabric stable_sort strict weak sort check in debug mode #49422

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zhongwuzw
Copy link
Contributor

Summary:

Fixes assert crash in #46568 (comment).

We can temporarily downgrade _LIBCPP_HARDENING_MODE to _LIBCPP_HARDENING_MODE_EXTENSIVE, it disables strict weak ordering check in debug mode. Actually, when we sort animation mutations, we don't need it to satisfy strict weak ordering.

https://libcxx.llvm.org/Hardening.html#id3

Another solution is we make sort satisfy it, but we don't have any key to compare when two mutation is the same mutation type but not the same parentTag. Maybe we can use pointer of muation to compare?

Changelog:

[IOS] [FIXED] - Fabric: disable React-Fabric stable_sort strict weak sort check in debug mode

Test Plan:

Fixes #46568 (comment).

@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. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Feb 14, 2025
@cipolleschi
Copy link
Contributor

Thanks for working on this, but I'd rather fix the comparator used while sorting, rather than disable the check. We would have to fix it anyway when Apple will remove the disabling flag.

I'll try to pull some more people on this issue to get their perspective.

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. 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.

LayoutAnimations cause crashes when using iOS 18 SDK on new architecture
3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/facebook/react-native/pull/49422

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy