{"action":"opened","issue":{"url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/1672","repository_url":"https://api.github.com/repos/NativeScript/nativescript-angular","labels_url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/1672/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/1672/comments","events_url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/1672/events","html_url":"https://github.com/NativeScript/nativescript-angular/issues/1672","id":394213744,"node_id":"MDU6SXNzdWUzOTQyMTM3NDQ=","number":1672,"title":"TypeError: undefined is not an object (evaluating 'parentOutlet.peekState')","user":{"login":"fhackenb","id":8294460,"node_id":"MDQ6VXNlcjgyOTQ0NjA=","avatar_url":"https://avatars0.githubusercontent.com/u/8294460?v=4","gravatar_id":"","url":"https://api.github.com/users/fhackenb","html_url":"https://github.com/fhackenb","followers_url":"https://api.github.com/users/fhackenb/followers","following_url":"https://api.github.com/users/fhackenb/following{/other_user}","gists_url":"https://api.github.com/users/fhackenb/gists{/gist_id}","starred_url":"https://api.github.com/users/fhackenb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fhackenb/subscriptions","organizations_url":"https://api.github.com/users/fhackenb/orgs","repos_url":"https://api.github.com/users/fhackenb/repos","events_url":"https://api.github.com/users/fhackenb/events{/privacy}","received_events_url":"https://api.github.com/users/fhackenb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-26T17:56:52Z","updated_at":"2018-12-26T17:56:52Z","closed_at":null,"author_association":"NONE","body":"**Environment**\r\nProvide version numbers for the following components (information can be retrieved by running `tns info` in your project folder or by inspecting the `package.json` of the project):\r\n - CLI: 5.1.0\r\n - iOS Runtime: 5.1.0\r\n - NativeScript-Angular: 6.1.0\r\n - Angular: 6.1.0\r\n \r\n**Describe the bug**\r\nI have a multi-page angular-nativescript application (with a sidedrawer and a page-router-outlet). When I first launch the application I can navigate between pages on the sidedrawer just fine, but after a few minutes (like 10), trying to navigate from one page to another crashes the app with this message:\r\n\r\n```\r\n ***** Fatal JavaScript exception - application has been terminated. *****\r\nNative stack trace:\r\nnw_endpoint_flow_protocol_connected [C108.1 IPv4#c60c310f:443 in_progress channel-flow (satisfied)] Transport protocol connected\r\n1   0x101595194 NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::Exception*, bool, bool)\r\nTIC TLS Event [108:0x2807a67c0]: 1, Pending(0)\r\n2   0x1015c0518 NativeScript::FFICallback<NativeScript::ObjCMethodCallback>::ffiClosureCallback(ffi_cif*, void*, void**, void*)\r\nTIC TLS Event [108:0x2807a67c0]: 2, Pending(0)\r\n3   0x10201e1c8 ffi_closure_SYSV_inner\r\n4   0x1020201b4 .Ldo_closure\r\n5   0x1b2f2a3f8 __NSFireTimer\r\n6   0x1b2407804 <redacted>\r\n7   0x1b2407534 <redacted>\r\n8   0x1b2406d68 <redacted>\r\n9   0x1b2401c44 <redacted>\r\n10  0x1b24011cc CFRunLoopRunSpecific\r\n11  0x1b4678584 GSEventRunModal\r\n12  0x1dee45054 UIApplicationMain\r\n13  0x102020044 ffi_call_SYSV\r\n14  0x10201d8dc ffi_call_int\r\n15  0x10201d3a0 ffi_call\r\n16  0x10155d4e4 NativeScript::FFICall::call(JSC::ExecState*)\r\n17  0x10201c448 llint_entry\r\n18  0x10201b8a4 llint_entry\r\n19  0x10201b8a4 llint_entry\r\n20  0x10201b8a4 llint_entry\r\n21  0x10201b8a4 llint_entry\r\n22  0x10201b8a4 llint_entry\r\n23  0x10201b8a4 llint_entry\r\n24  0x10201430c vmEntryToJavaScript\r\n25  0x101e149ac JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&)\r\n26  0x101fce3e0 JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&, WTF::NakedPtr<JSC::Exception>&)\r\n27  0x101574558 NativeScript::GlobalObject::moduleLoaderEvaluate(JSC::JSGlobalObject*, JSC::ExecState*, JSC::JSModuleLoader*, JSC::JSValue, JSC::JSValue, JSC::JSValue)\r\n28  0x1016a3d84 JSC::JSModuleLoader::evaluate(JSC::ExecState*, JSC::JSValue, JSC::JSValue, JSC::JSValue)\r\n29  0x10201c31c llint_entry\r\n30  0x10201b8a4 llint_entry\r\n31  0x10201b8a4 llint_entry\r\nJavaScript stack trace:\r\n1   resolvePromise@file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:826:78\r\n2   resolvePromise@file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:782:31\r\n3   @file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:884:31\r\n4   onInvokeTask@file:///app/tns_modules/@angular/core/bundles/core.umd.js:3881:47\r\n5   runTask@file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:188:57\r\n6   drainMicroTaskQueue@file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:595:42\r\n7   promiseReactionJob@[native code]\r\n8   UIApplicationMain@[native code]\r\n9   start@file:///app/tns_modules/tns-core-modules/application/application.js:272:26\r\n10  run@file:///app/tns_modules/tns-core-modules/application/application.js:300:10\r\n11  bootstrapNativeScriptApp@file:///app/tns_modules/nativescript-angular/platform-common.js:185:26\r\n12  bootstrapApp@file:///app/tns_modules/nativescript-angular/platform-common.js:1<\\M-b\\M^@\\M-&>\r\nJavaScript error:\r\nfile:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:826:78: JS ERROR Error: Uncaught (in promise): TypeError: undefined is not an object (evaluating 'parentOutlet.peekState')\r\nupsertModalOutlet@file:///app/tns_modules/nativescript-angular/router/ns-location-strategy.js:506:41\r\nfile:///app/tns_modules/nativescript-angular/router/ns-location-strategy.js:128:44\r\nforEach@[native code]\r\npushStateInternal@file:///app/tns_modules/nativescript-angular/router/ns-location-strategy.js:111:54\r\npushState@file:///app/tns_modules/nativescript-angular/router/ns-location-strategy.js:85:31\r\npushState@file:///app/tns_modules/nativescript-angular/router/ns-platform-location.js:49:40\r\npushState@file:///app/tns_modules/@angular/common/bundles/common.umd.js:511:45\r\ngo@file:///app/tns_modules/@angular/common/bundles/common.umd.js:286:45\r\nsetBrowserUrl@file:///app/tns_modules/@angular/router/bundles/router.umd.js:4007:33\r\nfile:///app/tns_modules/@angular/router/bundles/router.umd.js:3960:40\r\nfile:///app/tns_m<\\M-b\\M^@\\M-&>\r\n*** JavaScript call stack:\r\n(\r\n0   UIApplicationMain@[native code]\r\n1   start@file:///app/tns_modules/tns-core-modules/application/application.js:272:26\r\n2   run@file:///app/tns_modules/tns-core-modules/application/application.js:300:10\r\n3   bootstrapNativeScriptApp@file:///app/tns_modules/nativescript-angular/platform-common.js:185:26\r\n4   bootstrapApp@file:///app/tns_modules/nativescript-angular/platform-common.js:103:38\r\n5   bootstrapModule@file:///app/tns_modules/nativescript-angular/platform-common.js:87:26\r\n6   anonymous@file:///app/main.js:7:57\r\n7   evaluate@[native code]\r\n8   moduleEvaluation@:1:11\r\n9   promiseReactionJob@:1:11\r\n)\r\n*** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Error: Uncaught (in promise): TypeError: undefined is not an object (evaluating 'parentOutlet.peekState')\r\n```\r\n\r\nIt's pretty reliably reproducible but I have to wait like 10 minutes each time\r\n"}}
{"actor":{"display_login":"fhackenb"}}