Title: tns-core-modules + nativescript-advanced-webview + navigation is crashing the app · Issue #7901 · NativeScript/NativeScript · GitHub
Open Graph Title: tns-core-modules + nativescript-advanced-webview + navigation is crashing the app · Issue #7901 · NativeScript/NativeScript
X Title: tns-core-modules + nativescript-advanced-webview + navigation is crashing the app · Issue #7901 · NativeScript/NativeScript
Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 6.1.2 Cross-platform modules: 6.1.1 Android...
Open Graph Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 6.1...
X Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 6.1...
Opengraph URL: https://github.com/NativeScript/NativeScript/issues/7901
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tns-core-modules + nativescript-advanced-webview + navigation is crashing the app","articleBody":"**Environment**\r\nProvide version numbers for the following components (information can be retrieved by running `tns info` in your project folder or by inspecting the `package.json` of the project):\r\n - CLI: 6.1.2\r\n - Cross-platform modules: 6.1.1\r\n - Android Runtime: 6.1.x\r\n - Plugin(s): nativescript-advaced-webview@4.0.1\r\n\r\n**Describe the bug**\r\nNavigating to a page that contains `BottomNavigation` (or `Tabs`) + having [nativescript-advanced-webview](https://github.com/bradmartin/nativescript-advanced-webview) as a **dependency** (not even explicitly used/initialized) is crashing the app with:\r\n\r\n```\r\nSystem.err: An uncaught Exception occurred on \"main\" thread.\r\nSystem.err: The specified child already has a parent. You must call removeView() on the child's parent first.\r\nSystem.err:\r\nSystem.err: StackTrace:\r\nSystem.err: 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:5034)\r\nSystem.err: at android.view.ViewGroup.addView(ViewGroup.java:4865)\r\nSystem.err: at android.view.ViewGroup.addView(ViewGroup.java:4805)\r\nSystem.err: at android.view.ViewGroup.addView(ViewGroup.java:4778)\r\nSystem.err: at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:887)\r\nSystem.err: at androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManagerImpl.java:1238)\r\nSystem.err: at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:1303)\r\nSystem.err: at androidx.fragment.app.FragmentManagerImpl.dispatchStateChange(FragmentManagerImpl.java:2656)\r\nSystem.err: at androidx.fragment.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManagerImpl.java:2610)\r\nSystem.err: at androidx.fragment.app.Fragment.performActivityCreated(Fragment.java:2619)\r\nSystem.err: at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:904)\r\nSystem.err: at androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManagerImpl.java:1238)\r\nSystem.err: at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:1303)\r\nSystem.err: at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:439)\r\nSystem.err: at androidx.fragment.app.FragmentManagerImpl.executeOps(FragmentManagerImpl.java:2076)\r\nSystem.err: at androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(FragmentManagerImpl.java:1866)\r\nSystem.err: at androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManagerImpl.java:1821)\r\nSystem.err: at androidx.fragment.app.FragmentManagerImpl.execPendingActions(FragmentManagerImpl.java:1727)\r\nSystem.err: at androidx.fragment.app.FragmentManagerImpl$2.run(FragmentManagerImpl.java:150)\r\nSystem.err: at android.os.Handler.handleCallback(Handler.java:873)\r\nSystem.err: at android.os.Handler.dispatchMessage(Handler.java:99)\r\nSystem.err: at android.os.Looper.loop(Looper.java:193)\r\nSystem.err: at android.app.ActivityThread.main(ActivityThread.java:6669)\r\nSystem.err: at java.lang.reflect.Method.invoke(Native Method)\r\nSystem.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)\r\nSystem.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)\r\n```\r\n\r\n**To Reproduce**\r\n\u003c!-- Add commands used or steps taken to reproduce the behavior. --\u003e\r\n\r\n Use [this branch](https://github.com/NativeScript/login-tab-navigation-ng/tree/niliev/bottom-nav-scenario) of the test app.\r\n- Navigate to the tabs page\r\n- press the second navigation button\r\n- return back to the tabs page\r\n\r\n**Result:** the app will crash.\r\nIf you uninstall the nativescript-advanced-webview and make clean rebuild the issue will be gone.\r\n\r\n\r\n**Sample project**\r\nhttps://github.com/NativeScript/login-tab-navigation-ng/tree/niliev/bottom-nav-scenario\r\n\r\n","author":{"url":"https://github.com/NickIliev","@type":"Person","name":"NickIliev"},"datePublished":"2019-10-03T11:36:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/7901/NativeScript/issues/7901"}
| 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:205e7bf1-e754-6155-035e-713e50e9aa57 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A3F6:2F44D6:32851D8:4514FDE:6972BEA7 |
| html-safe-nonce | 0139f0dbd29f04750060e64e473ced2bce742a0f435d2880aac6f9beabc24b04 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0Y2OjJGNDRENjozMjg1MUQ4OjQ1MTRGREU6Njk3MkJFQTciLCJ2aXNpdG9yX2lkIjoiNjc2ODQ1MzQxNjEwMDQ3ODYzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 78fff329fc7db19d86c8b21550eb972c4e0fd83a69cc203f4f7f595a832895b9 |
| hovercard-subject-tag | issue:502011805 |
| 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/7901/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8ccfb683e6201c4394562f50af5a933a9e898a17735dd75a23f79a3a2ac12478/NativeScript/NativeScript/issues/7901 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8ccfb683e6201c4394562f50af5a933a9e898a17735dd75a23f79a3a2ac12478/NativeScript/NativeScript/issues/7901 |
| og:image:alt | Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 6.1... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | NickIliev |
| hostname | github.com |
| expected-hostname | github.com |
| None | aa656e37a6f46b81c2416d9c983f7c54e264ee31be17c0e6c9414b9f9f9c6eb4 |
| 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 | cd2db6550c3226c3d384891fd6e7c212a34667be |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width