René's URL Explorer Experiment


Title: TabView (or Tabs) inside BottomNavigation bug · Issue #9051 · NativeScript/NativeScript · GitHub

Open Graph Title: TabView (or Tabs) inside BottomNavigation bug · Issue #9051 · NativeScript/NativeScript

X Title: TabView (or Tabs) inside BottomNavigation bug · Issue #9051 · NativeScript/NativeScript

Description: Environment CLI: 7.0.10 Cross-platform modules: 7.0.13 Android Runtime: 7.0.1 Describe the bug If TabView is nested inside BottomNavigation, and you try to navigate to another page, the app crashes. System.err: An uncaught Exception occu...

Open Graph Description: Environment CLI: 7.0.10 Cross-platform modules: 7.0.13 Android Runtime: 7.0.1 Describe the bug If TabView is nested inside BottomNavigation, and you try to navigate to another page, the app crashes...

X Description: Environment CLI: 7.0.10 Cross-platform modules: 7.0.13 Android Runtime: 7.0.1 Describe the bug If TabView is nested inside BottomNavigation, and you try to navigate to another page, the app crashes...

Opengraph URL: https://github.com/NativeScript/NativeScript/issues/9051

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TabView (or Tabs) inside BottomNavigation bug","articleBody":"**Environment**\r\n - CLI: 7.0.10\r\n - Cross-platform modules: 7.0.13\r\n - Android Runtime: 7.0.1\r\n\r\n**Describe the bug**\r\nIf TabView is nested inside BottomNavigation, and you try to navigate to another page, the app crashes.\r\n\r\n```\r\nSystem.err: An uncaught Exception occurred on \"main\" thread.\r\nSystem.err: Calling js method onViewAttachedToWindow failed\r\nSystem.err: Error: java.lang.IllegalStateException: 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: commitCurrentTransaction(file: node_modules/@nativescript/core/ui/bottom-navigation/index.android.js:369:0)\r\nSystem.err:     at changeTab(file: node_modules/@nativescript/core/ui/bottom-navigation/index.android.js:387:0)\r\nSystem.err:     at _onAttachedToWindow(file: node_modules/@nativescript/core/ui/bottom-navigation/index.android.js:319:0)\r\nSystem.err:     at AttachListener.onViewAttachedToWindow(file: node_modules/@nativescript/core/ui/bottom-navigation/index.android.js:163:0)\r\nSystem.err:     at com.tns.Runtime.callJSMethodNative(Native Method)\r\nSystem.err:     at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1302)\r\nSystem.err:     at com.tns.Runtime.callJSMethodImpl(Runtime.java:1188)\r\nSystem.err:     at com.tns.Runtime.callJSMethod(Runtime.java:1175)\r\nSystem.err:     at com.tns.Runtime.callJSMethod(Runtime.java:1153)\r\nSystem.err:     at com.tns.Runtime.callJSMethod(Runtime.java:1149)\r\nSystem.err:     at com.tns.gen.java.lang.Object_vendor_112166_28_AttachListener.onViewAttachedToWindow(Object_vendor_112166_28_AttachListener.java:18)\r\nSystem.err:     at android.view.View.dispatchAttachedToWindow(View.java:19712)\r\nSystem.err:     at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3455)\r\nSystem.err:     at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3462)\r\nSystem.err:     at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3462)\r\nSystem.err:     at android.view.ViewGroup.addViewInner(ViewGroup.java:5174)\r\nSystem.err:     at android.view.ViewGroup.addView(ViewGroup.java:4960)\r\nSystem.err:     at android.view.ViewGroup.addView(ViewGroup.java:4900)\r\nSystem.err:     at android.view.ViewGroup.addView(ViewGroup.java:4873)\r\nSystem.err:     at android.view.ViewOverlay$OverlayViewGroup.add(ViewOverlay.java:208)\r\nSystem.err:     at android.view.ViewGroupOverlay.add(ViewGroupOverlay.java:72)\r\nSystem.err:     at androidx.transition.ViewGroupOverlayApi18.add(ViewGroupOverlayApi18.java:48)\r\nSystem.err:     at androidx.transition.Visibility.onDisappear(Visibility.java:428)\r\nSystem.err:     at androidx.transition.Visibility.createAnimator(Visibility.java:257)\r\nSystem.err:     at androidx.transition.Transition.createAnimators(Transition.java:747)\r\nSystem.err:     at androidx.transition.TransitionSet.createAnimators(TransitionSet.java:480)\r\nSystem.err:     at androidx.transition.Transition.playTransition(Transition.java:1821)\r\nSystem.err:     at androidx.transition.TransitionManager$MultiListener.onPreDraw(TransitionManager.java:301)\r\nSystem.err:     at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:1088)\r\nSystem.err:     at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2983)\r\nSystem.err:     at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1930)\r\nSystem.err:     at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7988)\r\nSystem.err:     at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1154)\r\nSystem.err:     at android.view.Choreographer.doCallbacks(Choreographer.java:977)\r\nSystem.err:     at android.view.Choreographer.doFrame(Choreographer.java:893)\r\nSystem.err:     at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1139)\r\nSystem.err:     at android.os.Handler.handleCallback(Handler.java:883)\r\nSystem.err:     at android.os.Handler.dispatchMessage(Handler.java:100)\r\nSystem.err:     at android.os.Looper.loop(Looper.java:214)\r\nSystem.err:     at android.app.ActivityThread.main(ActivityThread.java:7682)\r\nSystem.err:     at java.lang.reflect.Method.invoke(Native Method)\r\nSystem.err:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:516)\r\nSystem.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)\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:5131)\r\nSystem.err:     at android.view.ViewGroup.addView(ViewGroup.java:4960)\r\nSystem.err:     at androidx.viewpager.widget.ViewPager.addView(ViewPager.java:1485)\r\nSystem.err:     at android.view.ViewGroup.addView(ViewGroup.java:4900)\r\nSystem.err:     at android.view.ViewGroup.addView(ViewGroup.java:4873)\r\nSystem.err:     at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:326)\r\nSystem.err:     at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1199)\r\nSystem.err:     at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1368)\r\nSystem.err:     at androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(FragmentManager.java:1446)\r\nSystem.err:     at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1509)\r\nSystem.err:     at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:2637)\r\nSystem.err:     at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:2589)\r\nSystem.err:     at androidx.fragment.app.Fragment.performActivityCreated(Fragment.java:2723)\r\nSystem.err:     at androidx.fragment.app.FragmentStateManager.activityCreated(FragmentStateManager.java:346)\r\nSystem.err:     at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1200)\r\nSystem.err:     at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1368)\r\nSystem.err:     at androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(FragmentManager.java:1446)\r\nSystem.err:     at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:442)\r\nSystem.err:     at androidx.fragment.app.FragmentManager.executeOps(FragmentManager.java:2181)\r\nSystem.err:     at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2004)\r\nSystem.err:     at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1959)\r\nSystem.err:     at androidx.fragment.app.FragmentManager.execSingleAction(FragmentManager.java:1830)\r\nSystem.err:     at androidx.fragment.app.BackStackRecord.commitNowAllowingStateLoss(BackStackRecord.java:303)\r\nSystem.err:     ... 39 more\r\n```\r\n\r\n**To Reproduce**\r\n1. Create new NS project (with angular)\r\n2. Create 2 pages (page-1 and page-2)\r\n3. On page-1 create BottomNavigation\r\n4. Inside one of the BottomNavigation tabs add button that navigates to page-2\r\n5. Below the button add TabView\r\n6. `ns run android`\r\n7. Tap the button to navigate to page-2\r\n\r\n**Expected behavior**\r\nShould be able to navigate to page-2\r\n\r\n**Sample project**\r\nI have created sample project with 2 BottomNavigation tabs. Each tab has button that navigates to page-2, but only second tab has TabView. Navigation from first tab works. If you try to navigate from second tab, the error from above occurs.\r\n[https://github.com/lbracun/ns-bug](https://github.com/lbracun/ns-bug)\r\n\r\n**Additional context**\r\n~~I only tried it on Android, don't know if it happens on iOS too.~~\r\nTried it on iOS, and it works as intended. So the problem only happens on Android. \r\nForgot to mention before: i tried to create sample on the playground, but the error didn't show (because of NS 6 i think).\r\n\r\nUpdate:\r\nI also tried using Tabs instead of TabView, but same thing happens.","author":{"url":"https://github.com/lbracun","@type":"Person","name":"lbracun"},"datePublished":"2020-11-18T15:59:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/9051/NativeScript/issues/9051"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:08cb3b99-fa18-111d-c663-d0bb2ba46591
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBF40:396575:14AD360:1CA5F66:6973A2F5
html-safe-noncedff93e5294a3430ac444bcbaf55c5c85a2cf7fbaed307f2f2fddf21437581db1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjQwOjM5NjU3NToxNEFEMzYwOjFDQTVGNjY6Njk3M0EyRjUiLCJ2aXNpdG9yX2lkIjoiNTE0NDUyMzE5MzQwMTQ1MTI1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac02e5ce6c77ee617248dd63aca0020e7b55066aeeaf4552a8e6a0849908385d16
hovercard-subject-tagissue:745785988
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/NativeScript/9051/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8ccfb683e6201c4394562f50af5a933a9e898a17735dd75a23f79a3a2ac12478/NativeScript/NativeScript/issues/9051
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8ccfb683e6201c4394562f50af5a933a9e898a17735dd75a23f79a3a2ac12478/NativeScript/NativeScript/issues/9051
og:image:altEnvironment CLI: 7.0.10 Cross-platform modules: 7.0.13 Android Runtime: 7.0.1 Describe the bug If TabView is nested inside BottomNavigation, and you try to navigate to another page, the app crashes...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelbracun
hostnamegithub.com
expected-hostnamegithub.com
None3e9aa9d0c22a21b13b378b4acd09f5dd4876a884425aacd32a9f473b84c8762d
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id31492490
octolytics-dimension-repository_nwoNativeScript/NativeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id31492490
octolytics-dimension-repository_network_root_nwoNativeScript/NativeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseae4dbd3ac4179af799d71b75a60b0075ccccc5f6
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NativeScript/NativeScript/issues/9051#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fissues%2F9051
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fissues%2F9051
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=NativeScript%2FNativeScript
Reloadhttps://github.com/NativeScript/NativeScript/issues/9051
Reloadhttps://github.com/NativeScript/NativeScript/issues/9051
Reloadhttps://github.com/NativeScript/NativeScript/issues/9051
NativeScript https://github.com/NativeScript
NativeScripthttps://github.com/NativeScript/NativeScript
Please reload this pagehttps://github.com/NativeScript/NativeScript/issues/9051
Notifications https://github.com/login?return_to=%2FNativeScript%2FNativeScript
Fork 1.7k https://github.com/login?return_to=%2FNativeScript%2FNativeScript
Star 25.4k https://github.com/login?return_to=%2FNativeScript%2FNativeScript
Code https://github.com/NativeScript/NativeScript
Issues 869 https://github.com/NativeScript/NativeScript/issues
Pull requests 59 https://github.com/NativeScript/NativeScript/pulls
Discussions https://github.com/NativeScript/NativeScript/discussions
Actions https://github.com/NativeScript/NativeScript/actions
Projects 0 https://github.com/NativeScript/NativeScript/projects
Wiki https://github.com/NativeScript/NativeScript/wiki
Security 0 https://github.com/NativeScript/NativeScript/security
Insights https://github.com/NativeScript/NativeScript/pulse
Code https://github.com/NativeScript/NativeScript
Issues https://github.com/NativeScript/NativeScript/issues
Pull requests https://github.com/NativeScript/NativeScript/pulls
Discussions https://github.com/NativeScript/NativeScript/discussions
Actions https://github.com/NativeScript/NativeScript/actions
Projects https://github.com/NativeScript/NativeScript/projects
Wiki https://github.com/NativeScript/NativeScript/wiki
Security https://github.com/NativeScript/NativeScript/security
Insights https://github.com/NativeScript/NativeScript/pulse
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/NativeScript/issues/9051
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/NativeScript/issues/9051
#9148https://github.com/NativeScript/NativeScript/pull/9148
TabView (or Tabs) inside BottomNavigation bughttps://github.com/NativeScript/NativeScript/issues/9051#top
#9148https://github.com/NativeScript/NativeScript/pull/9148
https://github.com/lbracun
https://github.com/lbracun
lbracunhttps://github.com/lbracun
on Nov 18, 2020https://github.com/NativeScript/NativeScript/issues/9051#issue-745785988
https://github.com/lbracun/ns-bughttps://github.com/lbracun/ns-bug
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.