Several android crashes
See original GitHub issueHey, 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
Issue Analytics
- State:
- Created 4 years ago
- Comments:28 (28 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes. You can even dynamically control the crumb trail. See the popping when pushing documentation
Closing in favour of PR and other issues.