René's URL Explorer Experiment


Title: [Android] Blank screen when a new activity adopts a shared root view before the old one stops · Issue #11615 · NativeScript/NativeScript · GitHub

Open Graph Title: [Android] Blank screen when a new activity adopts a shared root view before the old one stops · Issue #11615 · NativeScript/NativeScript

X Title: [Android] Blank screen when a new activity adopts a shared root view before the old one stops · Issue #11615 · NativeScript/NativeScript

Description: Issue Description Runtime bug on Android. An app that uses one root view across activities can show a blank screen when it is reopened. Android can start a new activity before the old one stops. The new activity adopts the root view, and...

Open Graph Description: Issue Description Runtime bug on Android. An app that uses one root view across activities can show a blank screen when it is reopened. Android can start a new activity before the old one stops. Th...

X Description: Issue Description Runtime bug on Android. An app that uses one root view across activities can show a blank screen when it is reopened. Android can start a new activity before the old one stops. Th...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Android] Blank screen when a new activity adopts a shared root view before the old one stops","articleBody":"### Issue Description\n\nRuntime bug on Android. An app that uses one root view across activities can show a blank screen when it is reopened.\n\nAndroid can start a new activity before the old one stops. The new activity adopts the root view, and then the old activity's `onStop` unloads that same view. If the old activity is finishing, its `onDestroy` also destroys the view. The view also keeps the old activity's FragmentManager, so the frame does not create a fragment in the new activity.\n\nAn app reaches this state when `Application.run({ create })` returns the same view each time. Timing decides whether it happens, so it looks intermittent. Routing is not required.\n\nExpected behavior: the reopened app shows its page.\n\nRelated case with the same cause:\n\n- Returning to an older activity after a newer one took the root view also shows a blank screen.\n\nApps with no main entry have a separate failure on a quick reopen. `exit` has not fired, so `launch` does not fire, and nothing supplies a root view.\n\nI saw blank screens in Angular and Vue apps, and possibly Solid. I reproduced the blank screen with `@nativescript/core` only, using no framework code. I have not confirmed the cause in a real Angular, Vue, or Solid app.\n\nRelated:\n\n- #11572 and #11573 cover a reopen after `exit`, which is a different case from this one.\n- #11352 (draft) covers a crash in `findPageForFragment`. I reproduced that crash by recreating a stopped older activity after its root view moved. I have not tested #11352 against it.\n- #11591 also affects recreated activities, but it has a different cause.\n\n### Reproduction\n\nUse `apps/toolbox` from this repository and replace `src/main.ts`:\n\n```ts\nimport { Application, Frame } from '@nativescript/core';\n\nlet root: Frame;\n\nApplication.run({\n  create() {\n    if (!root) {\n      root = new Frame();\n      root.navigate({ moduleName: 'main-page' });\n    }\n    return root;\n  },\n});\n```\n\n1. Run the app with `ns run android`.\n2. Wait for the main page to appear.\n3. Start a second activity:\n\n   ```shell\n   adb shell am start -f 0x08000000 -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -n org.nativescript.ToolBox/com.tns.NativeScriptActivity\n   ```\n\n4. The screen stays blank.\n\nThe same blank screen appears with Back and an immediate reopen. On the main page, run:\n\n```shell\nadb shell \"input keyevent KEYCODE_BACK; am start -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -n org.nativescript.ToolBox/com.tns.NativeScriptActivity\"\n```\n\nEach of these two commands gave a blank screen in 5 of 5 trials. The app stayed in focus, the screen was still blank after 15 seconds, and the app did not crash.\n\nWaiting 5 seconds between Back and the reopen does not reproduce it with this `main.ts` (3 of 3 trials showed the page), because the old activity is gone by then.\n\n### Relevant log output (if applicable)\n\nAndroid event log for Back with an immediate reopen. The new activity starts before the old one stops:\n\n```shell\nwm_on_create_called:  [199554052, com.tns.NativeScriptActivity]\nwm_on_start_called:   [199554052, com.tns.NativeScriptActivity]\nwm_on_stop_called:    [260012955, com.tns.NativeScriptActivity]\nwm_on_destroy_called: [260012955, com.tns.NativeScriptActivity]\n```\n\n### Environment\n\n- `@nativescript/core`: built from `main` at `07e84ec58` (9.1.4-next.4)\n- `@nativescript/android`: 9.1.1\n- Device: Android emulator, API 36, x86_64\n- OS: Windows 11\n","author":{"url":"https://github.com/herefishyfish","@type":"Person","name":"herefishyfish"},"datePublished":"2026-11-05T00:53:59Z","url":"https://github.com/NativeScript/NativeScript/issues/11615"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6f6d8959-5e09-873b-4fb6-98c08bab32bf
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDF74:1EB1:3ACFE3:4D20BA:6B012FD3
html-safe-nonceb31d5187473bf062a834e0b02313a591705e131522a4334cec0972384334dc85
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjc0OjFFQjE6M0FDRkUzOjREMjBCQTo2QjAxMkZEMyIsInZpc2l0b3JfaWQiOiIzOTUxMDU4NTkzNDEwNzg5MzMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac92be87d9a07d900f2d30c4f8fe56605efae3e6f40396655045f757c3efebb9d8
hovercard-subject-tagissue:6214401867
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/11615/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fa8afe700212df03d800debf77c5ed38831b0993d57c5ce428407e44dad429c7/NativeScript/NativeScript/issues/11615
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fa8afe700212df03d800debf77c5ed38831b0993d57c5ce428407e44dad429c7/NativeScript/NativeScript/issues/11615
og:image:altIssue Description Runtime bug on Android. An app that uses one root view across activities can show a blank screen when it is reopened. Android can start a new activity before the old one stops. Th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameherefishyfish
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/NativeScript/NativeScript/issues/11615#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fissues%2F11615
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fissues%2F11615
Sign uphttps://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/11615
Reloadhttps://github.com/NativeScript/NativeScript/issues/11615
Reloadhttps://github.com/NativeScript/NativeScript/issues/11615
NativeScripthttps://github.com/NativeScript
NativeScripthttps://github.com/NativeScript/NativeScript
Codehttps://github.com/NativeScript/NativeScript
Issues231 (231)https://github.com/NativeScript/NativeScript/issues
Pull requests107 (107)https://github.com/NativeScript/NativeScript/pulls
Discussionshttps://github.com/NativeScript/NativeScript/discussions
Actionshttps://github.com/NativeScript/NativeScript/actions
Projectshttps://github.com/NativeScript/NativeScript/projects
Wikihttps://github.com/NativeScript/NativeScript/wiki
Security and qualityhttps://github.com/NativeScript/NativeScript/security
Insightshttps://github.com/NativeScript/NativeScript/insights
https://github.com/NativeScript/NativeScript
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/NativeScript/issues/11615
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/NativeScript/issues/11615
#11624https://github.com/NativeScript/NativeScript/pull/11624
[Android] Blank screen when a new activity adopts a shared root view before the old one stopshttps://github.com/NativeScript/NativeScript/issues/11615#top
#11624https://github.com/NativeScript/NativeScript/pull/11624
https://github.com/herefishyfish
herefishyfishhttps://github.com/herefishyfish
on Nov 5, 2026https://github.com/NativeScript/NativeScript/issues/11615#issue-6214401867
[Android] After exiting with Back, reopening the app in the same process never fires launch again (9.1 regression, Angular apps stay dead and unstyled) #11572https://github.com/NativeScript/NativeScript/issues/11572
fix(core): fire launch again for the first window after exit #11573https://github.com/NativeScript/NativeScript/pull/11573
fix(android): stop the FragmentManager driving fragments with a dead entry #11352https://github.com/NativeScript/NativeScript/pull/11352
fix(android): stop the FragmentManager driving fragments with a dead entry #11352https://github.com/NativeScript/NativeScript/pull/11352
Android: Frame navigation stalls after activity.recreate() #11591https://github.com/NativeScript/NativeScript/issues/11591
herefishyfishhttps://github.com/herefishyfish
on Nov 10, 2026https://github.com/NativeScript/NativeScript/issues/11615#event-35642075920
fix(android): keep the root view when an activity replaces anotherhttps://github.com/herefishyfish/NativeScript/commit/129b25ac4fefa2e831417ff36af74aefba2cc239
https://docs.github.com/articles/closing-issues-via-commit-messages
129b25ahttps://github.com/herefishyfish/NativeScript/commit/129b25ac4fefa2e831417ff36af74aefba2cc239
Sign up for freehttps://github.com/signup?return_to=https://github.com/NativeScript/NativeScript/issues/11615
Sign in to commenthttps://github.com/login?return_to=https://github.com/NativeScript/NativeScript/issues/11615
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.