-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[Bug]: Earn (Money) onboarding crashes the app on Android when tapping the X close button #31166
Copy link
Copy link
Closed
Bug
Copy link
Labels
RCA-neededIssue root cause analysis neededIssue root cause analysis neededSev1-highAn issue that may have caused fund loss or access to wallet in the past & may still be ongoingAn issue that may have caused fund loss or access to wallet in the past & may still be ongoingregression-RC-7.81.0Regression bug that was found in release candidate (RC) for release 7.81.0Regression bug that was found in release candidate (RC) for release 7.81.0release-7.82.0Issue or pull request that will be included in release 7.82.0Issue or pull request that will be included in release 7.82.0release-blockerThis bug is blocking the next releaseThis bug is blocking the next releaseta-needs-engineer-escalationTriage-Agent - Applied when confidence is below thresholdTriage-Agent - Applied when confidence is below thresholdta-triagedteam-earnteam-mobile-platformMobile Platform teamMobile Platform teamtype-bugSomething isn't workingSomething isn't working
Metadata
Metadata
Assignees
Labels
RCA-neededIssue root cause analysis neededIssue root cause analysis neededSev1-highAn issue that may have caused fund loss or access to wallet in the past & may still be ongoingAn issue that may have caused fund loss or access to wallet in the past & may still be ongoingregression-RC-7.81.0Regression bug that was found in release candidate (RC) for release 7.81.0Regression bug that was found in release candidate (RC) for release 7.81.0release-7.82.0Issue or pull request that will be included in release 7.82.0Issue or pull request that will be included in release 7.82.0release-blockerThis bug is blocking the next releaseThis bug is blocking the next releaseta-needs-engineer-escalationTriage-Agent - Applied when confidence is below thresholdTriage-Agent - Applied when confidence is below thresholdta-triagedteam-earnteam-mobile-platformMobile Platform teamMobile Platform teamtype-bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for Bug.
Projects
StatusShow more project fields
To be triaged
Describe the bug
Tapping the X (close) button on the Earn onboarding screen consistently crashes the app on Android. The screen begins navigating back to wallet home, and within ~0.5-1 seconds (during the navigation transition) the app aborts via a native SIGABRT. Same crash class as Sentry issue
METAMASK-MOBILE-5VF9/ TMCU-853.The underlying bug is in
rive-react-native: when the Earn onboarding screen unmounts mid-animation, Android releases theSurfaceView's backing Surface, but the Rive native worker thread is still alive and queues its nextprepareForDraw()against the released Surface. Java throwsIllegalStateException, and rive's JNI layer doesn't callExceptionClear()before making the next JNI call (NewGlobalRef), violating ART's JNI rules and aborting the process.Expected behavior
Tapping X should dismiss the Earn onboarding screen and return the user to wallet home without crashing.
Screenshots/Recordings
x_crash.mov
Steps to reproduce
Error messages or log output
Where was this bug found?
Internal release testing
Version
7.81.0
Build number
4823
Build type
None
Device
Operating system
Android
Additional context
x_crash.txt
Severity
No response