-
Notifications
You must be signed in to change notification settings - Fork 21
The specified child already has a parent. You must call removeView() on the child's parent first. #561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@rakeshgirase which controls are used in your application - is it possible to provide a sample demo that can reproduce the issue in production? |
Thank you for your response @NickIliev. My application can be found at https://github.com/rakeshgirase/QSB. I don't really have much details for reproducing this issue. I just got an email from Google highlighting this Fatal Issue. I have forwarded that email to you just in case if it helps. |
@rakeshgirase I am not able to reproduce the issue - do you have any specific steps that I can follow to throw the error? |
Same issue here. Started running monkey tests on our application. Usually after about 10/15 min we'll see this:
Versions:
|
@NickIliev I too dont know how to produce that error. Thought of raising it just because I got this info from google. |
Hi @rakeshgirase , The #128 issue was related to the RadGauge component which I was not able to find to be used inside your app so I would guess this is not the same issue. Looking at what @gsmedley provided he is actually not using the nativescript ui components at all so this might be an issue with one of the tns-core-modules components. Al tho doing a random monkey test on an app for 15 minutes straight and after that getting an error may be an issue regarding GC in the android run time. This needs to be research further so if you can provide any additional information please do so. @gsmedley can you share your app with is that you ran the monkey test on of possible? |
Thanks for the reply. That wasn't a full list of the components we are using, I'll add that to the end of this message. I can't share the app, it's an in-house application that relies on a private server. But I will share all of the results of my stress testing. Currently I am seeing 4 different crashes that happen within about 15/20 minutes #561 - This one. Full list of components. Note that I've excluded the custom components from the tests: nativescript-anyline, nativescript-idscanner & nativescript-medicalsensors.
|
The same here, deps:
|
I got the exact same issue with RadSideDrawer when resuming app and it is kind of really blocking for us. Here is the layout (NS4+Vue) (Don't mind the syntax)
|
Yeah, I'm having the same issue. I just got the sidedrawer ng app template and added some components in one of the screens. If I press the back button repeatedly after navigating through the app a bit, this error appears |
I am experiencing the same error, interestingly also on android Api 23 version 6.0.1. Am reproducing the crashlytics log below:
|
Same problem when navigating back in Android (randomly). "dependencies": {
|
Closing as resolved via NativeScript/NativeScript#6339 |
I'm having this problem now with NativeScript 6 + Angular in an Android 9 emulator, if i navigate to a view that have a Drawer and then i open a new page and go back this error pops up |
Link shared is saying 404 not found, can you repost this fix? |
I am facing this issue when using bottom navigation component |
@darkyelox how you have resoved this? |
Uh oh!
There was an error while loading. Please reload this page.
Please, provide the details below:
Did you verify this is a real problem by searching Stack Overflow?
Yes
Tell us about the problem
Got Following exception in production. When checked, I came around an issue #128 which was closed but it seems the problem still exist.
Exception java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
android.view.ViewGroup.addViewInner (ViewGroup.java:4312)
android.view.ViewGroup.addView (ViewGroup.java:4148)
android.view.ViewGroup.addView (ViewGroup.java:4089)
android.view.ViewGroup.addView (ViewGroup.java:4062)
android.app.FragmentManagerImpl.moveToState (FragmentManager.java:985)
android.app.FragmentManagerImpl.moveToState (FragmentManager.java:1148)
android.app.BackStackRecord.run (BackStackRecord.java:799)
android.app.FragmentManagerImpl.execPendingActions (FragmentManager.java:1537)
android.app.FragmentManagerImpl$1.run (FragmentManager.java:482)
android.os.Handler.handleCallback (Handler.java:742)
android.os.Handler.dispatchMessage (Handler.java:95)
android.os.Looper.loop (Looper.java:157)
android.app.ActivityThread.main (ActivityThread.java:5555)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:745)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:635)
Which platform(s) does your issue occur on?
_Android
Android API: 23
Android OS: 6.0.1
Please provide the following version numbers that your issue occurs with:
Following is my key dependency from package.json
"nativescript-exit": "^1.0.1",
"nativescript-grid-view": "^3.3.2",
"nativescript-plugin-firebase": "4.2.1",
"nativescript-pro-ui": "^3.2.0",
"nativescript-social-share": "^1.5.0",
"nativescript-theme-core": "1.0.4",
"nativescript-toast": "^1.4.6",
"rxjs": "5.5.2",
"tns-core-modules": "3.4.0"
Please tell us how to recreate the issue in as much detail as possible.
I am not sure how to recreate this issue. Surprisingly, I got this exception in production.
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
No
The text was updated successfully, but these errors were encountered: