Skip to content

Revert ReactInstanceManager this::invokeDefaultOnBackPressed lambda#41132

Closed
janeli-100005636499545 wants to merge 1 commit into
facebook:mainfrom
janeli-100005636499545:export-D50520227
Closed

Revert ReactInstanceManager this::invokeDefaultOnBackPressed lambda#41132
janeli-100005636499545 wants to merge 1 commit into
facebook:mainfrom
janeli-100005636499545:export-D50520227

Conversation

@janeli-100005636499545
Copy link
Copy Markdown

Summary:
We got reports of the Twilight Android app crashing whenever the user presses the OS back button. Crash logs here: P860542895

Upon investigating, this issue happens only on the twilight_release build, not the twilight_debug or twilight-android build. Thus, we believe the issue is related to Proguard's optimization of the app since twilight_release is the only build of the app that gets the full Proguard optimization.

Changing ReactInstanceManager's function from lambda back to its original (it was converted to a lambda here: D45062457) fixes this issue, likely because Proguard was having trouble optimizing it correctly.

It's not 100% clear to me why this issue appeared on v238 as the mobile bisect shows this issue started beteween Oct 12 7:28AM and 8:22AM but D45062457 was landed in April. One hypothesis I have is that Proguard had a version update on Oct 12 which may have contributed.

changelog: [internal] internal

Differential Revision: D50520227

@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 Oct 20, 2023
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

…acebook#41132)

Summary:

changelog: [internal] internal

Reviewed By: fkgozali, mdvacca

Differential Revision: D50520227
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@analysis-bot
Copy link
Copy Markdown

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 17,649,162 -15
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 21,026,698 -15
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: 28d7ade
Branch: main

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Oct 21, 2023

Warnings
⚠️ One hour and a half have passed and the E2E jobs haven't finished yet.

Generated by 🚫 dangerJS against 48568de

@github-actions
Copy link
Copy Markdown

This pull request was successfully merged by @janeli-100005636499545 in e651a56.

When will my fix make it into a release? | Upcoming Releases

@github-actions github-actions Bot added the Merged This PR has been merged. label Oct 21, 2023
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