You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Application fails with Segmentation fault on iOS when using ScrollView #1447
In some cases, the NativeScript application will fail on iOS device with Segmentation Fault: 11 when it is using ScrollView. The problem is tricky to be reproduced, but here are the prerequisites:
Use XCode 7.0 for building the app (currently this is the XCode on our NativeScript build machine).
Use tns-core-modules 1.5.0 or 1.5.1
Use ScrollView in any of your XML's.
For example the issue was reproduced with sample Tasks and in the device log we saw:
JavaScript error:
file:///app/tns_modules/ui/builder/builder.js:147:56: JS ERROR Error: Building UI from XML. @file:///app/components/login/login.xml:5:5
Module 'ui/scroll-view' not found for element 'ScrollView'.
More than one initializer found that matches constructor invocation: initWithCoder: initWithFrame: init
And Segmentation Fault: 11 before that.
The problem occurred due to calling new UIScrollView() in ScrollView's constructor.
Activity
vchimev commentedon Jan 27, 2016
Fixed by #1439.
lock commentedon Aug 30, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.