question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crashing on Android since upgrading to 3.16.0

See original GitHub issue

Description

Hi, everyone!

Since upgrading to 3.16.0, my app is crashing on Android when launched. Upgrading react-native-screens was the only thing I’ve done since having a working build, so it seems like the issue is related to the upgrade. Apologies if I’ve missed something, but I didn’t see any specific actions I needed to take when upgrading in the release notes.

This is what I see when launching the app in a Pixel 5 emulator in Android Studio.

Screenshot_20220819_113957

Here's the raw text from the exception captured in Sentry
java.lang.IllegalStateException: Failed to find fragment for React Root View
    at com.swmansion.rnscreens.ScreenContainer.findFragmentManagerForReactRootView(ScreenContainer.kt:168)
    at com.swmansion.rnscreens.ScreenContainer.setupFragmentManager(ScreenContainer.kt:198)
    at com.swmansion.rnscreens.ScreenContainer.onAttachedToWindow(ScreenContainer.kt:228)
    at android.view.View.dispatchAttachedToWindow(View.java:20753)
    at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3490)
    at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3497)
    at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3497)
    at android.view.ViewGroup.addViewInner(ViewGroup.java:5290)
    at android.view.ViewGroup.addView(ViewGroup.java:5076)
    at com.facebook.react.views.view.ReactViewGroup.addView(ReactViewGroup.java:466)
    at android.view.ViewGroup.addView(ViewGroup.java:5016)
    at com.facebook.react.uimanager.ViewGroupManager.addView(ViewGroupManager.java:37)
    at com.facebook.react.uimanager.NativeViewHierarchyManager.manageChildren(NativeViewHierarchyManager.java:533)
    at com.swmansion.reanimated.layoutReanimation.ReanimatedNativeHierarchyManager.manageChildren(ReanimatedNativeHierarchyManager.java:306)
    at com.facebook.react.uimanager.UIViewOperationQueue$ManageChildrenOperation.execute(UIViewOperationQueue.java:217)
    at com.facebook.react.uimanager.UIViewOperationQueue$1.run(UIViewOperationQueue.java:915)
    at com.facebook.react.uimanager.UIViewOperationQueue.flushPendingBatches(UIViewOperationQueue.java:1026)
    at com.facebook.react.uimanager.UIViewOperationQueue.access$2600(UIViewOperationQueue.java:47)
    at com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.doFrameGuarded(UIViewOperationQueue.java:1086)
    at com.facebook.react.uimanager.GuardedFrameCallback.doFrame(GuardedFrameCallback.java:29)
    at com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame(ReactChoreographer.java:175)
    at com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame(ChoreographerCompat.java:85)
    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1035)
    at android.view.Choreographer.doCallbacks(Choreographer.java:845)
    at android.view.Choreographer.doFrame(Choreographer.java:775)
    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1022)
    at android.os.Handler.handleCallback(Handler.java:938)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loopOnce(Looper.java:201)
    at android.os.Looper.loop(Looper.java:288)
    at android.app.ActivityThread.main(ActivityThread.java:7842)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)

If I can provide any more information that would help, please let me know. Thanks!

Steps to reproduce

  • Upgrade to 3.16.0
  • Build the app
  • Set up a fresh emulator
  • Run the app and see the crash upon load

Snack or a link to a repository

Screens version

3.16.0

React Native version

0.69.4

Platforms

Android

JavaScript runtime

Hermes

Workflow

Expo bare workflow

Architecture

Paper (Old Architecture)

Build type

Debug mode

Device

Real device

Device model

Google Pixel 3

Acknowledgements

Yes

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:6
  • Comments:20 (5 by maintainers)

github_iconTop GitHub Comments

9reactions
kkafarcommented, Aug 22, 2022

Ok, thank you for your replies. You can expect 3.17.0 coming with the fix within days.

4reactions
kkafarcommented, Aug 25, 2022

Ok, so I’ve just released 3.17.0, hope it works fine this time for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Game keeps crashing to desktop after 3.16.0 hotfix : r/pathofexile
My game keeps crashing to the desktop after I installed the 3.16.0 hotfix. No error messages, no nothing. Didn't have a single crash...
Read more >
Crashing Android apps will now tell you to install an update to ...
The app stopped working, but the latest update for the app may fix the issue. Install the update and then open the app...
Read more >
How to Stop Apps From Crashing on Android - AVG
Update apps and software · Check your connectivity · Force stop apps · Restart your device · Create more storage · Clear app...
Read more >
Troubleshooting Android - OneSignal Documentation
How to get a crash or error log from an Android device · 1. Select Android Monitor from the bottom of the window....
Read more >
Machine crashes after upgrading Ubuntu 14.04.3 LTS
After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up linux-image-3.16.0-59-generic (3.16...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found