René's URL Explorer Experiment


Title: Error when using animated transition during navigation on Android 21 and 22 · Issue #5674 · NativeScript/NativeScript · GitHub

Open Graph Title: Error when using animated transition during navigation on Android 21 and 22 · Issue #5674 · NativeScript/NativeScript

X Title: Error when using animated transition during navigation on Android 21 and 22 · Issue #5674 · NativeScript/NativeScript

Description: Tell us about the problem An error is thrown if using slide animation during navigation Which platform(s) does your issue occur on? Android Please provide the following version numbers that your issue occurs with: CLI: 4.0.0 Cross-platfo...

Open Graph Description: Tell us about the problem An error is thrown if using slide animation during navigation Which platform(s) does your issue occur on? Android Please provide the following version numbers that your is...

X Description: Tell us about the problem An error is thrown if using slide animation during navigation Which platform(s) does your issue occur on? Android Please provide the following version numbers that your is...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error when using animated transition during navigation on Android 21 and 22","articleBody":"### Tell us about the problem\r\n\r\nAn error is thrown if using slide animation during navigation\r\n\r\n### Which platform(s) does your issue occur on?\r\n\r\nAndroid\r\n\r\n### Please provide the following version numbers that your issue occurs with:\r\n- CLI: 4.0.0\r\n- Cross-platform modules: 4.0.0\r\n- Runtime(s): 4.0.0\r\n- Plugin(s): N/A\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\nCreate a new {N} application using CLI 4.0.0:\r\n\r\n```\r\ntns create my-app --tsc\r\n```\r\n\r\nOn the main page add a button with a tap event calling into a function that will navigate to a second page:\r\n\r\n```\r\npublic navigateToSecondPage(): void {\r\n    topmost().navigate({\r\n        moduleName: \"component/component-page\",\r\n        animated: true,\r\n        transition: {\r\n            name: \"slide\",\r\n            duration: 200,\r\n            curve: \"ease\"\r\n        }\r\n    });\r\n}\r\n```\r\n\r\nIn the second page view model constructor try to open some url (opening the url doesn't necessarily need to be done inside the constructor - the problem occurs also if this is done inside a click of a button):\r\n\r\n```\r\nimport { Observable } from \"tns-core-modules/data/observable\";\r\nimport { openUrl } from \"utils/utils\";\r\n\r\nexport class ComponentViewModel extends Observable {\r\n    constructor() {\r\n        super();\r\n        openUrl(\"https://www.google.com\");\r\n    }\r\n}\r\n```\r\n\r\nOn Android API levels 21 and 22, the following exception is thrown:\r\n\r\n```\r\nW/System.err(16021): java.lang.NullPointerException: Attempt to read from field 'int android.app.Fragment.mContainerId' on a null object reference\r\nW/System.err(16021):    at android.app.BackStackRecord$1.onPreDraw(BackStackRecord.java:1127)\r\nW/System.err(16021):    at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:847)\r\nW/System.err(16021):    at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1956)\r\nW/System.err(16021):    at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1054)\r\nW/System.err(16021):    at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5779)\r\nW/System.err(16021):    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)\r\nW/System.err(16021):    at android.view.Choreographer.doCallbacks(Choreographer.java:580)\r\nW/System.err(16021):    at android.view.Choreographer.doFrame(Choreographer.java:550)\r\nW/System.err(16021):    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)\r\nW/System.err(16021):    at android.os.Handler.handleCallback(Handler.java:739)\r\nW/System.err(16021):    at android.os.Handler.dispatchMessage(Handler.java:95)\r\nW/System.err(16021):    at android.os.Looper.loop(Looper.java:135)\r\nW/System.err(16021):    at android.app.ActivityThread.main(ActivityThread.java:5221)\r\nW/System.err(16021):    at java.lang.reflect.Method.invoke(Native Method)\r\nW/System.err(16021):    at java.lang.reflect.Method.invoke(Method.java:372)\r\nW/System.err(16021):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)\r\nW/System.err(16021):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)\r\n```\r\n\r\nIf I remove the `animated: true` or the `slide` transition when navigating the issue will not manifest.","author":{"url":"https://github.com/darind","@type":"Person","name":"darind"},"datePublished":"2018-04-13T08:40:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/5674/NativeScript/issues/5674"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:42597d74-c02f-b707-76ab-b729c7dc54e5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC79C:9190C:1034C0E:155DF38:69741447
html-safe-nonce16f05adf9f7d3a05bafc6a291d566dd1bdca17a4eebcff8f85d164e93296c4f9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzlDOjkxOTBDOjEwMzRDMEU6MTU1REYzODo2OTc0MTQ0NyIsInZpc2l0b3JfaWQiOiIzNzQ0NjQ0Nzk3MzA2MjQ2MjE1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaca0e0d649f0ea70bd3fa60e4864934c05992d6a934ba4ce04f5aee0aa28b1139f
hovercard-subject-tagissue:314018198
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/5674/issue_layout
twitter:imagehttps://opengraph.githubassets.com/843fd8b9629ffd104adf6b42e7ec13db3ea5213aa18ed25a7a2b080f3347e0d2/NativeScript/NativeScript/issues/5674
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/843fd8b9629ffd104adf6b42e7ec13db3ea5213aa18ed25a7a2b080f3347e0d2/NativeScript/NativeScript/issues/5674
og:image:altTell us about the problem An error is thrown if using slide animation during navigation Which platform(s) does your issue occur on? Android Please provide the following version numbers that your is...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedarind
hostnamegithub.com
expected-hostnamegithub.com
None447dc9917c3d68d647a01abfdefe55ec7ee1785922136c1d8395dbb3ab6d57b9
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
release8dad7bdfecbe3eaa97ac4e632d6b47e2b23e81d9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NativeScript/NativeScript/issues/5674#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fissues%2F5674
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%2F5674
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/5674
Reloadhttps://github.com/NativeScript/NativeScript/issues/5674
Reloadhttps://github.com/NativeScript/NativeScript/issues/5674
NativeScript https://github.com/NativeScript
NativeScripthttps://github.com/NativeScript/NativeScript
Please reload this pagehttps://github.com/NativeScript/NativeScript/issues/5674
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 61 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/5674
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/NativeScript/issues/5674
#5700https://github.com/NativeScript/NativeScript/pull/5700
Error when using animated transition during navigation on Android 21 and 22https://github.com/NativeScript/NativeScript/issues/5674#top
#5700https://github.com/NativeScript/NativeScript/pull/5700
https://github.com/manoldonev
os: androidhttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22os%3A%20android%22
https://github.com/darind
https://github.com/darind
darindhttps://github.com/darind
on Apr 13, 2018https://github.com/NativeScript/NativeScript/issues/5674#issue-314018198
manoldonevhttps://github.com/manoldonev
os: androidhttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22os%3A%20android%22
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.