Skip to content

Back navigation crash #1072

@sis0k0

Description

@sis0k0

When the back button in Action Bar is tapped several times quickly, the app crashes. The same doesn't happen when using the hardware button.

Error log:

System.err: com.tns.NativeScriptException: 
System.err: Calling js method run failed
System.err: TypeError: Cannot read property 'resolvedPage' of undefined
System.err: File: "file:///data/data/org.nativescript.nativescriptsdkexamplesng/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js, line: 142, column: 24
System.err: StackTrace: 
System.err: 	Frame: function:'FrameBase._onNavigatingTo', file:'file:///data/data/org.nativescript.nativescriptsdkexamplesng/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 306, column: 23
System.err: 	Frame: function:'FrameBase.performGoBack', file:'file:///data/data/org.nativescript.nativescriptsdkexamplesng/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 289, column: 14
System.err: 	Frame: function:'FrameBase._processNavigationContext', file:'file:///data/data/org.nativescript.nativescriptsdkexamplesng/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 258, column: 18
System.err: 	Frame: function:'Frame._processNavigationContext', file:'file:///data/data/org.nativescript.nativescriptsdkexamplesng/files/app/tns_modules/tns-core-modules/ui/frame/frame.js', line: 259, column: 52
System.err: 	Frame: function:'FrameBase._processNavigationQueue', file:'file:///data/data/org.nativescript.nativescriptsdkexamplesng/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 225, column: 18
System.err: 	Frame: function:'Frame.setCurrent', file:'file:///data/data/org.nativescript.nativescriptsdkexamplesng/files/app/tns_modules/tns-core-modules/ui/frame/frame.js', line: 83, column: 14
System.err: 	Frame: function:'', file:'file:///data/data/org.nativescript.nativescriptsdkexamplesng/files/app/tns_modules/tns-core-modules/ui/frame/fragment.transitions.js', line: 523, column: 53
System.err: 	Frame: function:'ZoneDelegate.invokeTask', file:'file:///data/data/org.nativescript.nativescriptsdkexamplesng/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 398, column: 31
System.err: 	Frame: function:'Zone.runTask', file:'file:///data/data/org.nativescript.nativescriptsdkexamplesng/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 165, column: 47
System.err: 	Frame: function:'ZoneTask.invoke', file:'file:///data/data/org.nativescript.nativescriptsdkexamplesng/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 460, column: 38
System.err: 	Frame: function:'timer', file:'file:///data/data/org.nativescript.nativescriptsdkexamplesng/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 1634, column: 29
System.err: 	Frame: function:'invoke', file:'file:///data/data/org.nativescript.nativescriptsdkexamplesng/files/app/tns_modules/tns-core-modules/timer/timer.js', line: 19, column: 48
System.err: 	Frame: function:'ZoneDelegate.invoke', file:'file:///data/data/org.nativescript.nativescriptsdkexamplesng/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 365, column: 26
System.err: 	Frame: function:'Zone.runGuarded', file:'file:///data/data/org.nativescript.nativescriptsdkexamplesng/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 138, column: 47
System.err: 	Frame: function:'', file:'file:///data/data/org.nativescript.nativescriptsdkexamplesng/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 116, column: 29
System.err: 	Frame: function:'run', file:'file:///data/data/org.nativescript.nativescriptsdkexamplesng/files/app/tns_modules/tns-core-modules/timer/timer.js', line: 23, column: 13
System.err: 	at com.tns.Runtime.callJSMethodNative(Native Method)
System.err: 	at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1084)
System.err: 	at com.tns.Runtime.callJSMethodImpl(Runtime.java:966)
System.err: 	at com.tns.Runtime.callJSMethod(Runtime.java:953)
System.err: 	at com.tns.Runtime.callJSMethod(Runtime.java:937)
System.err: 	at com.tns.Runtime.callJSMethod(Runtime.java:929)
System.err: 	at com.tns.gen.java.lang.Runnable.run(Runnable.java:10)
System.err: 	at android.os.Handler.handleCallback(Handler.java:739)
System.err: 	at android.os.Handler.dispatchMessage(Handler.java:95)
System.err: 	at android.os.Looper.loop(Looper.java:168)
System.err: 	at android.app.ActivityThread.main(ActivityThread.java:5781)
System.err: 	at java.lang.reflect.Method.invoke(Native Method)
System.err: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
System.err: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)
ActivityManager: Recipient 20460
ActivityManager: Process org.nativescript.nativescriptsdkexamplesng (pid 20460) has died

Reproducible with NativeScript SDK Examples on Android.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions