Title: Crash on app resume: The specified child already has a parent. · Issue #6201 · NativeScript/NativeScript · GitHub
Open Graph Title: Crash on app resume: The specified child already has a parent. · Issue #6201 · NativeScript/NativeScript
X Title: Crash on app resume: The specified child already has a parent. · Issue #6201 · NativeScript/NativeScript
Description: Not sure if related to #6199 (not using tabs), but I am having a serious issue where the app crashes after it comes back from being in the background: The specified child already has a parent. You must call removeView() on the child's pa...
Open Graph Description: Not sure if related to #6199 (not using tabs), but I am having a serious issue where the app crashes after it comes back from being in the background: The specified child already has a parent. You ...
X Description: Not sure if related to #6199 (not using tabs), but I am having a serious issue where the app crashes after it comes back from being in the background: The specified child already has a parent. You ...
Opengraph URL: https://github.com/NativeScript/NativeScript/issues/6201
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Crash on app resume: The specified child already has a parent.","articleBody":"Not sure if related to #6199 (not using tabs), but I am having a serious issue where the app crashes after it comes back from being in the background: `The specified child already has a parent. You must call removeView() on the child's parent first.`\r\n\r\nThe full exception is below.\r\n```\r\nSystem.err: java.lang.RuntimeException: Unable to resume activity {com.abhayastudios.myapp/com.tns.NativeScriptActivity}: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.\r\nSystem.err: at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3788)\r\nSystem.err: at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3828)\r\nSystem.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1746)\r\nSystem.err: at android.os.Handler.dispatchMessage(Handler.java:105)\r\nSystem.err: at android.os.Looper.loop(Looper.java:164)\r\nSystem.err: at android.app.ActivityThread.main(ActivityThread.java:6938)\r\nSystem.err: at java.lang.reflect.Method.invoke(Native Method)\r\nSystem.err: at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)\r\nSystem.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)\r\nSystem.err: Caused by: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.\r\nSystem.err: at android.view.ViewGroup.addViewInner(ViewGroup.java:5122)\r\nSystem.err: at android.view.ViewGroup.addView(ViewGroup.java:4953)\r\nSystem.err: at android.view.ViewGroup.addView(ViewGroup.java:4893)\r\nSystem.err: at android.view.ViewGroup.addView(ViewGroup.java:4866)\r\nSystem.err: at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1425)\r\nSystem.err: at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1750)\r\nSystem.err: at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1819)\r\nSystem.err: at android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:797)\r\nSystem.err: at android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2590)\r\nSystem.err: at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2377)\r\nSystem.err: at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2332)\r\nSystem.err: at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2239)\r\nSystem.err: at android.support.v4.app.FragmentController.execPendingActions(FragmentController.java:379)\r\nSystem.err: at android.support.v4.app.FragmentActivity.onResume(FragmentActivity.java:461)\r\nSystem.err: at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1361)\r\nSystem.err: at android.app.Activity.performResume(Activity.java:7353)\r\nSystem.err: at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3763)\r\nSystem.err: ... 8 more\r\n```\r\n\r\n### Which platform(s) does your issue occur on?\r\nAndroid\r\n\r\n### Please provide the following version numbers that your issue occurs with:\r\n- CLI: `4.2`\r\n- Cross-platform modules: `4.3.0-2018-08-17-04`\r\n- Runtime(s): `4.2`\r\n- Plugin(s): (look for the version number in the `package.json` file of your\r\nproject)\r\n\r\n### Please tell us how to recreate the issue in as much detail as possible.\r\n\r\n\r\n### Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/abhayastudios","@type":"Person","name":"abhayastudios"},"datePublished":"2018-08-20T23:07:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/6201/NativeScript/issues/6201"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:375dd889-8dd2-7581-bc8d-ed641dc3992c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A40C:1B847C:2A2D:32E1:6974183A |
| html-safe-nonce | 661cff8cc2da25b7cc832a99f55f99f9f3651dfb2d7c4167bf79c26713daa38b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDBDOjFCODQ3QzoyQTJEOjMyRTE6Njk3NDE4M0EiLCJ2aXNpdG9yX2lkIjoiODkwMDMwNjM2ODE0NTM5NzgxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fdb4bc4f8fcaa37e680debbccc98ba4ee5c7e9c287f3c74384c0a8220a1f8732 |
| hovercard-subject-tag | issue:352327404 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/NativeScript/6201/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6535bd28095cc7f4a30e022bcef2716c2a9ba36ac481d517a65fe6148d60ef22/NativeScript/NativeScript/issues/6201 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6535bd28095cc7f4a30e022bcef2716c2a9ba36ac481d517a65fe6148d60ef22/NativeScript/NativeScript/issues/6201 |
| og:image:alt | Not sure if related to #6199 (not using tabs), but I am having a serious issue where the app crashes after it comes back from being in the background: The specified child already has a parent. You ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | abhayastudios |
| hostname | github.com |
| expected-hostname | github.com |
| None | 447dc9917c3d68d647a01abfdefe55ec7ee1785922136c1d8395dbb3ab6d57b9 |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 31492490 |
| octolytics-dimension-repository_nwo | NativeScript/NativeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31492490 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/NativeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8dad7bdfecbe3eaa97ac4e632d6b47e2b23e81d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width