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

Prevent LogBox from crashing on long messages (#38005) #41989

Merged
merged 3 commits into from
Dec 19, 2023

Conversation

fortmarek
Copy link
Contributor

@fortmarek fortmarek commented Dec 19, 2023

Summary:

Cherry pick of: #38005

Going through a PR due to merge conflicts.

Changelog:

[GENERAL][FIXED] Prevent LogBox from crashing on very long messages

Test Plan:

Summary:
Pull Request resolved: #38005

Fixes #32093 by guarding the expensive `BABEL_CODE_FRAME_ERROR_FORMAT` regex with a cheaper initial scan. (Longer term, we should reduce our reliance on string parsing and propagate more structured errors.)

Changelog: [General][Fixed] Prevent LogBox from crashing on very long messages

Reviewed By: GijsWeterings

Differential Revision: D46892454

fbshipit-source-id: 3afadcdd75969c2589bbb06f47d1c4c1c2690abd
@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: Shopify Partner: Shopify Partner labels Dec 19, 2023
@analysis-bot
Copy link

analysis-bot commented Dec 19, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,492,703 -8,032,431
android hermes armeabi-v7a 7810696 n/a
android hermes x86 8962699 n/a
android hermes x86_64 8824119 n/a
android jsc arm64-v8a 9,151,439 -10,748,510
android jsc armeabi-v7a 8341136 n/a
android jsc x86 9204613 n/a
android jsc x86_64 9463438 n/a

Base commit: 1045b22
Branch: main

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. p: Shopify Partner: Shopify Partner Pick Request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants