Skip to content

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

Merged
fortmarek merged 3 commits into
0.72-stablefrom
fortmarek/prevent-log-box
Dec 19, 2023
Merged

Prevent LogBox from crashing on long messages (#38005)#41989
fortmarek merged 3 commits into
0.72-stablefrom
fortmarek/prevent-log-box

Conversation

@fortmarek

@fortmarekfortmarek commented Dec 19, 2023

Copy link
Copy Markdown
Contributor

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: #38005Fixes#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-botfacebook-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

analysis-bot commented Dec 19, 2023

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
androidhermesarm64-v8a8,492,703-8,032,431
androidhermesarmeabi-v7a7810696n/a
androidhermesx868962699n/a
androidhermesx86_648824119n/a
androidjscarm64-v8a9,151,439-10,748,510
androidjscarmeabi-v7a8341136n/a
androidjscx869204613n/a
androidjscx86_649463438n/a

Base commit: 1045b22
Branch: main

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.p: ShopifyPartner: ShopifyPartnerPick Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@fortmarek@analysis-bot@cipolleschi@facebook-github-bot@motiz88