Did you verify this is a real problem by searching the [NativeScript Forum]
Yes.
Tell us about the problem
On iOS 10 and below devices the following crash can occur at anytime:
TypeError: undefined is not an object (evaluating 'controller.view.safeAreaLayoutGuide.layoutFrame')
***** Fatal JavaScript exception - application has been terminated. *****
Native stack trace:
1 0x10b26ea8f NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::Exception*, bool)
2 0x10b29882b NativeScript::FFICallback<NativeScript::ObjCMethodCallback>::ffiClosureCallback(ffi_cif*, void*, void**, void*)
3 0x10bc65e7d ffi_closure_unix64_inner
4 0x10bc667d2 ffi_closure_unix64
5 0x109092904 -[CALayer layoutSublayers]
6 0x109086526 CA::Layer::layout_if_needed(CA::Transaction*)
7 0x1090863a0 CA::Layer::layout_and_display_if_needed(CA::Transaction*)
8 0x109015e92 CA::Context::commit_transaction(CA::Transaction*)
9 0x109042130 CA::Transaction::commit()
10 0x10970d367 _UIApplicationFlushRunLoopCATransactionIfTooLate
11 0x109f0e7a3 __handleEventQueue
12 0x10c5fdc01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
13 0x10c5e30cf __CFRunLoopDoSources0
14 0x10c5e25ff __CFRunLoopRun
15 0x10c5e2016 CFRunLoopRunSpecific
16 0x10eb96a24 GSEventRunModal
17 0x109714134 UIApplicationMain
18 0x10bc6662d ffi_call_unix64
19 0x125318db0
JavaScript stack trace:
1 layoutView@file:///app/tns_modules/tns-core-modules/ui/core/view/view.js:566:59
2 viewDidLayoutSubviews@file:///app/tns_modules/tns-core-modules/ui/core/view/view.js:645:27
3 UIApplicationMain@[native code]
4 start@file:///app/tns_modules/tns-core-modules/application/application.js:264:26
5 run@file:///app/tns_modules/tns-core-modules/application/application.js:284:10
6 bootstrapNativeScriptApp@file:///app/tns_modules/nativescript-angular/platform-common.js:160:26
7 bootstrapApp@file:///app/tns_modules/nativescript-angular/platform-common.js:94:38
8 bootstrapModule@file:///app/tns_modules/nativescript-angular/platform-common.js:83:26
9 anonymous@file:///app/main.js:9:57
10 evaluate@[native code]
11 moduleEvaluation@[native code]
12 @[native code]
13 promiseReactionJob@[native code]
JavaScript error:
file:///app/tns_modules/tns-core-modules/ui/core/view/view.js:566:59: JS ERROR TypeError: undefined is not an object (evaluating 'controller.view.safeAreaLayoutGuide.layoutFrame')
Which platform(s) does your issue occur on?
iOS
Please provide the following version numbers that your issue occurs with:
cli 4.0.2
runtime: 4.1.0
Please tell us how to recreate the issue in as much detail as possible.
Unfortunately it's a race condition. No real reliable way to repro other than it happens occasionally and can crash an app on iOS 10 and below.
PR coming.
Reactions are currently unavailable
Did you verify this is a real problem by searching the [NativeScript Forum]
Yes.
Tell us about the problem
On iOS 10 and below devices the following crash can occur at anytime:
Which platform(s) does your issue occur on?
iOS
Please provide the following version numbers that your issue occurs with:
cli 4.0.2
runtime: 4.1.0
Please tell us how to recreate the issue in as much detail as possible.
Unfortunately it's a race condition. No real reliable way to repro other than it happens occasionally and can crash an app on iOS 10 and below.
PR coming.