Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Master detail template crashes on iOS simulator < 11 when scrolling the application #7239

Copy link
Copy link
Open
@Fatme

Description

@Fatme
Issue body actions

Environment
Provide 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):

  • CLI: 5.3.4
  • Cross-platform modules: 5.3.0
  • Android Runtime:
  • iOS Runtime: 5.3.1
  • Plugin(s):

Describe the bug
Master detail template crashes on iOS simulator < 11 when scrolling the application.

To Reproduce

  1. tns create myTestApp --template tns-template-master-detail-ng
  2. Start iOS simulator with version < 11
  3. tns run ios --bundle
  4. The app is successfully started
  5. Try to scroll the application
  6. An exception is thrown
***** Fatal JavaScript exception - application has been terminated. *****
Native stack trace:
1   0x10816e67f NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::Exception*, bool)
2   0x1081a4320 NativeScript::FFICallback<NativeScript::ObjCMethodCallback>::ffiClosureCallback(ffi_cif*, void*, void**, void*)
3   0x108ac8ba6 ffi_closure_unix64_inner
4   0x108ac95ca ffi_closure_unix64
5   0x109811272 -[UIScrollView(UIScrollViewInternal) _scrollViewWillBeginDragging]
6   0x1097f9758 -[UIScrollView _updatePanGesture]
7   0x109c56f59 -[UIGestureRecognizerTarget _sendActionWithGestureRecognizer:]
8   0x109c5ed57 _UIGestureRecognizerSendTargetActions
9   0x109c5c70b _UIGestureRecognizerSendActions
10  0x109c5b9ce -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:]
11  0x109c48152 _UIGestureEnvironmentUpdate
12  0x109c47c43 -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:]
13  0x109c46e0a -[UIGestureEnvironment _updateGesturesForEvent:window:]
14  0x109792eea -[UIWindow sendEvent:]
15  0x10973fa84 -[UIApplication sendEvent:]
16  0x109f235d4 __dispatchPreprocessedEventFromEventQueue
17  0x109f1b532 __handleEventQueue
18  0x10cf06c01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
19  0x10ceec0cf __CFRunLoopDoSources0
20  0x10ceeb5ff __CFRunLoopRun
21  0x10ceeb016 CFRunLoopRunSpecific
22  0x10e2c0a24 GSEventRunModal
23  0x109722134 UIApplicationMain
24  0x108ac940d ffi_call_unix64
25  0x1245182c0
JavaScript stack trace:
1   getScrollOffset@file:///app/vendor.js:90217:102
2   listViewScrollViewWillBeginDragging@file:///app/vendor.js:89126:48
3   UIApplicationMain@[native code]
4   _start@file:///app/vendor.js:103992:26
5   run@file:///app/vendor.js:104024:11
6   bootstrapNativeScriptApp@file:///app/vendor.js:76465:26
7   bootstrapApp@file:///app/vendor.js:76383:38
8   bootstrapModule@file:///app/vendor.js:76367:26
9   ./main.ts@file:///app/bundle.js:229:116
10  __webpack_require__@file:///app/runtime.js:75:34
11  checkDeferredModules@file:///app/runtime.js:44:42
12  webpackJsonpCallback@file:///app/runtime.js:31:39
13  anonymous@file:///app/bundle.js:2:61
14  evaluate@[native code]
15  moduleEvaluation@[native code]
16  promiseReactionJob@[native code]
17  require@[native code]
18  anonymous@file:///app/starter.js:3:8
19  evaluate@[native code]
20  moduleEvaluation@[native code]
21  promiseReactionJob@[native code]
JavaScript error:
file:///app/vendor.js:90217:102: JS ERROR TypeError: undefined is not an object (evaluating 'this.nativeViewProtected.safeAreaInsets.top')

Expected behavior

Should work without crashes.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.