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.

Several android crashes

See original GitHub issue

Hey, thanks for the work on this lib. I’m having these crashes when implementing this library on my app.

One of these crashes (The specified child already has a parent…) is when pressing the back button rapidly after navigating to a new screen.

If you can point me in the right direction, or work with me, I’d be happy to try and fix or help fixing them.

Thanks

java.lang.IllegalArgumentExceptionFragmentManagerImpl.java:875

No view found for id 0x395 (unknown) for fragment ScreenFragment{502b3b9 (b395f12c-1845-424d-99a9-5f9098274544) id=0x395}

java.lang.IllegalArgumentException No view found for id 0x395 (unknown) for fragment ScreenFragment{502b3b9 (b395f12c-1845-424d-99a9-5f9098274544) id=0x395} 
    FragmentManagerImpl.java:875 androidx.fragment.app.FragmentManagerImpl.moveToState
    FragmentManagerImpl.java:2100 androidx.fragment.app.FragmentManagerImpl.addAddedFragments
    FragmentManagerImpl.java:1874 androidx.fragment.app.FragmentManagerImpl.executeOpsTogether
    FragmentManagerImpl.java:1830 androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute
    FragmentManagerImpl.java:1727 androidx.fragment.app.FragmentManagerImpl.execPendingActions
    FragmentManagerImpl.java:150 androidx.fragment.app.FragmentManagerImpl$2.run
    Handler.java:883 android.os.Handler.handleCallback
    Handler.java:100 android.os.Handler.dispatchMessage
    Looper.java:214 android.os.Looper.loop
    ActivityThread.java:7356 android.app.ActivityThread.main
    Method.java:-2 java.lang.reflect.Method.invoke
    RuntimeInit.java:492 com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run
    ZygoteInit.java:930 com.android.internal.os.ZygoteInit.main

ErrorMainActivity

The distance parameter must be greater than zero and less than or equal to the number of Crumbs (0)

Error The distance parameter must be greater than zero and less than or equal to the number of Crumbs (0) 
    index.android.bundle:728:20307 getNavigationBackLink
    index.android.bundle:728:20190 navigateBack
    index.android.bundle:727:1408 
    index.android.bundle:461:1047 b
    index.android.bundle:461:477 C
    index.android.bundle:461:825 E
    index.android.bundle:461:1239 goBack
    index.android.bundle:3143:595 
    index.android.bundle:214:2263 touchableHandlePress
    [native code] touchableHandlePress
    index.android.bundle:205:9675 _performSideEffectsForTransition
    [native code] _performSideEffectsForTransition
    index.android.bundle:205:8357 _receiveSignal
    [native code] _receiveSignal
    index.android.bundle:205:5645 touchableHandleResponderRelease
    [native code] touchableHandleResponderRelease
    index.android.bundle:89:1197 b
    index.android.bundle:89:1340 k
    index.android.bundle:89:1394 C
    index.android.bundle:89:1692 N
    index.android.bundle:89:2482 A
    [native code] forEach
    index.android.bundle:89:2282 z
    index.android.bundle:89:13914 
    index.android.bundle:89:88659 _e
    index.android.bundle:89:13582 Ne
    index.android.bundle:89:13755 Ue
    index.android.bundle:89:14547 receiveTouches
    index.android.bundle:25:3685 value
    index.android.bundle:25:841 
    index.android.bundle:25:2939 value
    index.android.bundle:25:813 value
    [native code] value

java.lang.IllegalStateExceptionViewGroup.java:5106

The specified child already has a parent. You must call removeView() on the child’s parent first.

java.lang.IllegalStateException The specified child already has a parent. You must call removeView() on the child's parent first. 
    ViewGroup.java:5106 android.view.ViewGroup.addViewInner
    ViewGroup.java:4935 android.view.ViewGroup.addView
    ViewGroup.java:4875 android.view.ViewGroup.addView
    ViewGroup.java:4848 android.view.ViewGroup.addView
    FragmentManagerImpl.java:887 androidx.fragment.app.FragmentManagerImpl.moveToState
    FragmentManagerImpl.java:2100 androidx.fragment.app.FragmentManagerImpl.addAddedFragments
    FragmentManagerImpl.java:1874 androidx.fragment.app.FragmentManagerImpl.executeOpsTogether
    FragmentManagerImpl.java:1830 androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute
    FragmentManagerImpl.java:1727 androidx.fragment.app.FragmentManagerImpl.execPendingActions
    FragmentManagerImpl.java:150 androidx.fragment.app.FragmentManagerImpl$2.run
    Handler.java:883 android.os.Handler.handleCallback
    Handler.java:100 android.os.Handler.dispatchMessage
    Looper.java:214 android.os.Looper.loop
    ActivityThread.java:7356 android.app.ActivityThread.main
    Method.java:-2 java.lang.reflect.Method.invoke
    RuntimeInit.java:492 com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run
    ZygoteInit.java:930 com.android.internal.os.ZygoteInit.main

github_iconTop GitHub Comments

grahammendickcommented, Jan 21, 2020

Yes. You can even dynamically control the crumb trail. See the popping when pushing documentation

0reactions
gabrielbullcommented, Jan 29, 2020

Closing in favour of PR and other issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

8 Ways to Fix Android Apps Crashing - MakeUseOf
There are different reasons why Android apps crash. For instance, software, connectivity, and even virus-related issues.
Read more >
Why Do My Apps Keep Crashing on Android? - Avast
Apps on Android can crash because of low storage space, too many apps running simultaneously, a weak internet connection, or not having the ......
Read more >
Why do my apps keep crashing on Android, How to fix it
There can be multiple ways in which you can fix an app that keeps crashing on your Android smartphone. 1. Force stop the...
Read more >
Apps keep crashing on Android? Here's what to do
How to stop apps from crashing · Check your internet connection · Check your phone storage · Restart the phone · Force stop...
Read more >
11 Quick Ways to Fix Apps Keep Crashing on Android - iMobie
Why Do Android Apps Keep Crashing? · The Most Effective Method to Fix Apps Keep Crashing · Tip 2. Force Stop Crashed App...
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