question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash when using iOS back button in {N} 3.1

See original GitHub issue

Did you verify this is a real problem by searching [Stack Overflow]

Yes

Tell us about the problem

After updating {N} to 3.1 (from 3.0.1) the native back button in iOS crashes, this wasn’t an issue in 3.0.1 and I’m pretty sure it isn’t code related since there is very little code involved. I’m using the standard {N} router with no additional code other than a programmatic router link: this.router.navigate(['/detail', selectedItems[0].id]);

Error in terminal:

1   0x10dba86db NativeScript::FFICallback<NativeScript::ObjCMethodCallback>::ffiClosureCallback(ffi_cif*, void*, void**, void*)
2   0x10e27d11e ffi_closure_unix64_inner
3   0x10e27da52 ffi_closure_unix64
4   0x10efa33c3 -[UIViewController __viewWillAppear:]
5   0x10efcd3c8 -[UINavigationController _startCustomTransition:]
6   0x10efdd967 -[UINavigationController _startDeferredTransitionIfNeeded:]
7   0x10efdeb41 -[UINavigationController __viewWillLayoutSubviews]
8   0x10f1d060c -[UILayoutContainerView layoutSubviews]
9   0x10eebd55b -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
10  0x11253d904 -[CALayer layoutSublayers]
11  0x112531526 CA::Layer::layout_if_needed(CA::Transaction*)
12  0x1125313a0 CA::Layer::layout_and_display_if_needed(CA::Transaction*)
13  0x1124c0e92 CA::Context::commit_transaction(CA::Transaction*)
14  0x1124ed130 CA::Transaction::commit()
15  0x1124edb37 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*)
16  0x111fbf717 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
17  0x111fbf687 __CFRunLoopDoObservers
18  0x111fa4720 __CFRunLoopRun
19  0x111fa4016 CFRunLoopRunSpecific
20  0x114a17a24 GSEventRunModal
21  0x10edfa134 UIApplicationMain
22  0x10e27d8ad ffi_call_unix64
23  0x12e76bc60
file:///app/tns_modules/tns-core-modules/ui/core/view/view.js:263:31: JS ERROR TypeError: undefined is not an object (evaluating 'this.nativeView.hidden')
Jul  5 10:37:54 mike SpringBoard[12910]: [KeyboardArbiter] HW kbd: Failed to set (null) as keyboard focusJul  5 10:37:54 mike com.apple.CoreSimulator.SimDevice.40986AE2-0F59-42ED-9869-91EE16FDBC36.launchd_sim[12889] (UIKitApplication:com.skift.skiftApp[0xc546][12915][13315]): Service exited due to Segmentation fault: 11

Which platform(s) does your issue occur on?

iOS

Please provide the following version numbers that your issue occurs with:

  • CLI: 3.1
  • Cross-platform modules: 3.1.0
  • Runtime(s): Andriod: 3.1.1 iOS 3.1.0
  • Plugin(s): “angular/animations”: “~4.1.0”, “angular/common”: “~4.1.0”, “angular/compiler”: “~4.1.0”, “angular/core”: “~4.1.0”, “angular/forms”: “~4.1.0”, “angular/http”: “~4.1.0”, “angular/platform-browser”: “~4.1.0”, “angular/router”: “~4.1.0”, “nativescript-angular”: “~3.0.0”, “nativescript-iqkeyboardmanager”: “^1.0.1”, “nativescript-localstorage”: “^1.1.5”, “nativescript-social-share”: “^1.3.2”, “nativescript-telerik-ui”: “^2.0.1”, “nativescript-theme-core”: “~1.0.2”, “reflect-metadata”: “~0.1.8”, “rxjs”: “~5.3.0”, “tns-core-modules”: “^3.1.0”, “zone.js”: “~0.8.2”

Please tell us how to recreate the issue in as much detail as possible.

Add <page-router-outlet></page-router-outlet> Add this.router.navigate(['/detail', selectedItems[0].id]); tns run ios

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

Not that I am aware of

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
simonoxcommented, Jul 18, 2017

Ah, found the issue!

I upgraded my project using the tns upgradecommand.

I still had nativescript-angular": "~3.0.0" instead of "nativescript-angular": "~3.1.0" and "nativescript-telerik-ui": "^2.0.1" instead of "nativescript-telerik-ui": "^3.0.3" in my package.json. Upgrading Angular and nativescript-telerik-ui fixed the issue.

@mikelinden1 Did you also try to upgrade “nativescript-telerik-ui”? I think you have the same version I had to reproduce this Issue.

1reaction
simonoxcommented, Jul 18, 2017

I will try to reproduce this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

iPhone OS 3.1.2 Search Causes Hard Crash
First, the iPhone OS is reinstalled via the "Restore" button on the iTunes Summary page. The iPhone is configured as a new device...
Read more >
Back button crashes after pushing a new view on iOS 13
I push one view controller to another with storyboard navigation segue. When I press back button (default back button) on second page, the...
Read more >
Back button (iOS): White page & crash - MSDN - Microsoft
in a completely white page (the page from which should be navigated away), but with title and "Back" button. No error message, no...
Read more >
10 Common iOS 15 Problems and Their Solutions - Beebom
Unlock iPhone with Apple Watch when wearing a mask - iOS 15 Problems and ... haunted many iOS 15 users is the random...
Read more >
How to fix Cydia crashing iPhone 3G 3.1.3 - Forum - ModMy
My Cydia keep crashing when I try to do anything it crash right away. ... you restore to 3.1.2 again and jailbreak it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found