Title: bug(8.2-alpha): Android frame transition throws exception · Issue #9732 · NativeScript/NativeScript · GitHub
Open Graph Title: bug(8.2-alpha): Android frame transition throws exception · Issue #9732 · NativeScript/NativeScript
X Title: bug(8.2-alpha): Android frame transition throws exception · Issue #9732 · NativeScript/NativeScript
Description: Issue Description In android, when I navigate from a page to another programmatically, I receive an exception (output provided). Exception seems to occur because of this line here: https://github.com/NativeScript/NativeScript/blob/releas...
Open Graph Description: Issue Description In android, when I navigate from a page to another programmatically, I receive an exception (output provided). Exception seems to occur because of this line here: https://github.c...
X Description: Issue Description In android, when I navigate from a page to another programmatically, I receive an exception (output provided). Exception seems to occur because of this line here: https://github.c...
Opengraph URL: https://github.com/NativeScript/NativeScript/issues/9732
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug(8.2-alpha): Android frame transition throws exception","articleBody":"### Issue Description\r\n\r\nIn android, when I navigate from a page to another programmatically, I receive an exception (output provided).\r\n\r\nException seems to occur because of this line here: https://github.com/NativeScript/NativeScript/blob/release/8.2.0/packages/core/ui/frame/index.android.ts#L1028\r\n\r\n### Reproduction\r\n\r\nNavigate among pages programmatically. This occured to me on 3rd navigation.\r\nOne of my navigations run inside `onNavigatingTo` event callback of current page.\r\n\r\n### Relevant log output (if applicable)\r\n\r\n```shell\r\nSystem.err: An uncaught Exception occurred on \"main\" thread.\r\nSystem.err: Calling js method onDestroy failed\r\nSystem.err: Error: fragment0[0]\u003cnull\u003e.onDestroy: entry has no resolvedPage\r\nSystem.err: \r\nSystem.err: StackTrace:\r\nSystem.err: error(file: node_modules/@nativescript/core/trace/index.js:248:0)\r\nSystem.err: at onDestroy(file: node_modules/@nativescript/core/ui/frame/index.android.js:818:12)\r\nSystem.err: at onDestroy(file: node_modules/@nativescript/core/ui/frame/fragment.android.js:38: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.FragmentClass.onDestroy(FragmentClass.java:86)\r\nSystem.err: at androidx.fragment.app.Fragment.performDestroy(Fragment.java:2928)\r\nSystem.err: at androidx.fragment.app.FragmentStateManager.destroy(FragmentStateManager.java:492)\r\nSystem.err: at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1308)\r\nSystem.err: at androidx.fragment.app.FragmentManager.removeCancellationSignal(FragmentManager.java:743)\r\nSystem.err: at androidx.fragment.app.FragmentManager$2.onComplete(FragmentManager.java:370)\r\nSystem.err: at androidx.fragment.app.FragmentTransition$3.run(FragmentTransition.java:408)\r\nSystem.err: at androidx.transition.FragmentTransitionSupport$5.onTransitionEnd(FragmentTransitionSupport.java:280)\r\nSystem.err: at androidx.transition.Transition.end(Transition.java:1965)\r\nSystem.err: at androidx.transition.TransitionSet$TransitionSetListener.onTransitionEnd(TransitionSet.java:451)\r\nSystem.err: at androidx.transition.Transition.end(Transition.java:1965)\r\nSystem.err: at androidx.transition.Transition$3.onAnimationEnd(Transition.java:1914)\r\nSystem.err: at android.animation.Animator$AnimatorListener.onAnimationEnd(Animator.java:554)\r\nSystem.err: at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1250)\r\nSystem.err: at android.animation.ValueAnimator.doAnimationFrame(ValueAnimator.java:1492)\r\nSystem.err: at android.animation.AnimationHandler.doAnimationFrame(AnimationHandler.java:146)\r\nSystem.err: at android.animation.AnimationHandler.access$100(AnimationHandler.java:37)\r\nSystem.err: at android.animation.AnimationHandler$1.doFrame(AnimationHandler.java:54)\r\nSystem.err: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:973)\r\nSystem.err: at android.view.Choreographer.doCallbacks(Choreographer.java:799)\r\nSystem.err: at android.view.Choreographer.doFrame(Choreographer.java:730)\r\nSystem.err: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:960)\r\nSystem.err: at android.os.Handler.handleCallback(Handler.java:938)\r\nSystem.err: at android.os.Handler.dispatchMessage(Handler.java:99)\r\nSystem.err: at android.os.Looper.loop(Looper.java:236)\r\nSystem.err: at android.app.ActivityThread.main(ActivityThread.java:8057)\r\nSystem.err: at java.lang.reflect.Method.invoke(Native Method)\r\nSystem.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:620)\r\nSystem.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1011)\r\nSuccessfully synced application com.fuelics.mobile.alpha on device 7pizbqwkhexkw85h.\r\n```\r\n\r\n\r\n### Environment\r\n\r\n@nativescript/core: 8.2.0-alpha.1\r\n\r\n### Please accept these terms\r\n\r\n- [X] I have searched the [existing issues](https://github.com/NativeScript/NativeScript/issues) as well as [StackOverflow](https://stackoverflow.com/questions/tagged/nativescript) and this has not been posted before\r\n- [X] This is a bug report\r\n- [X] I agree to follow this project's [Code of Conduct](https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#coc)","author":{"url":"https://github.com/CatchABus","@type":"Person","name":"CatchABus"},"datePublished":"2022-01-07T13:00:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/9732/NativeScript/issues/9732"}
| 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:09dfa826-0504-d42a-37ea-baa955018007 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A602:2C4572:3276EF:42C759:6A5BC894 |
| html-safe-nonce | dde3a000f23d8c9708b6930596f72173f635b315c331a155cbf0522fa6efdb76 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjAyOjJDNDU3MjozMjc2RUY6NDJDNzU5OjZBNUJDODk0IiwidmlzaXRvcl9pZCI6IjI5MzMzNzg3MjQxMTE1NjY5OTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 52d5db6fbfe6728bd2905752b0dac0372977c411a4e9ee14a3e09e711627c044 |
| hovercard-subject-tag | issue:1096297222 |
| 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/9732/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3f4f776e1833dc76867d63e68046707549c293e09a173ebbd7ad96cf495326a9/NativeScript/NativeScript/issues/9732 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3f4f776e1833dc76867d63e68046707549c293e09a173ebbd7ad96cf495326a9/NativeScript/NativeScript/issues/9732 |
| og:image:alt | Issue Description In android, when I navigate from a page to another programmatically, I receive an exception (output provided). Exception seems to occur because of this line here: https://github.c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | CatchABus |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width