davecoffin / nativescript-filterable-listpicker

Apache License 2.0
44 stars 22 forks source link

Demo is crashing on iOS #42

Closed stevenspiel closed 5 years ago

stevenspiel commented 5 years ago

Which platform(s) does your issue occur on?

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

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

git clone https://github.com/davecoffin/nativescript-filterable-listpicker.git
cd nativescript-filterable-listpicker/demo
tns run ios

The app installs on the device, but when trying to open the app, it hits an error:

Successfully synced application org.nativescript.demo on device 104B28BF-4BF7-44EF-BB0F-98EE7FC2250A.
***** Fatal JavaScript exception - application has been terminated. *****
Native stack trace:
1   0x1096b5359 NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::Exception*, bool)
2   0x1096dc1fb NativeScript::FFICallback<NativeScript::ObjCMethodCallback>::ffiClosureCallback(ffi_cif*, void*, void**, void*)
3   0x109fd149e ffi_closure_unix64_inner
4   0x109fd1de2 ffi_closure_unix64
5   0x10c81d02f _CFXRegistrationPost
6   0x10c81cd71 ___CFXNotificationPost_block_invoke
7   0x10c903ae2 -[_CFXNotificationRegistrar find:object:observer:enumerator:]
8   0x10c81c694 _CFXNotificationPost
9   0x10a798589 -[NSNotificationCenter postNotificationName:object:userInfo:]
10  0x10dd7d8c2 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:]
11  0x10dd82c2f -[UIApplication _runWithMainScene:transitionContext:completion:]
12  0x10d5a14e9 __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke
13  0x10d5aa29c +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:]
14  0x10d5a1126 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]
15  0x10d5a1ae0 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:]
16  0x10d59fcb5 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke
17  0x10d59f95f -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]
18  0x10d5a4a90 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke
19  0x10d5a580e _performActionsWithDelayForTransitionContext
20  0x10d5a47ef -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]
21  0x10d5a993a -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:]
22  0x10dd8144e -[UIApplication workspace:didCreateScene:withTransitionContext:completion:]
23  0x10d925d09 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:]
24  0x1169de2da -[FBSSceneImpl _didCreateWithTransitionContext:completion:]
25  0x1169e9443 __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2
26  0x1169e8b3a __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke
27  0x10ce3854b _dispatch_client_callout
28  0x10ce3b60b _dispatch_block_invoke_direct
29  0x116a1dba8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__
30  0x116a1d860 -[FBSSerialQueue _performNext]
31  0x116a1de40 -[FBSSerialQueue _performNextFromRunLoopSource]
JavaScript stack trace:
1   @file:///app/tns_modules/tns-core-modules/ui/builder/builder.js:244:56
2   @file:///app/tns_modules/tns-core-modules/xml/xml.js:148:20
3   parse@file:///app/tns_modules/tns-core-modules/js-libs/easysax/easysax.js:751:34
4   parse@file:///app/tns_modules/tns-core-modules/xml/xml.js:195:27
5   parse@file:///app/tns_modules/tns-core-modules/ui/builder/builder.js:250:32
6   parseInternal@file:///app/tns_modules/tns-core-modules/ui/builder/builder.js:212:16
7   loadInternal@file:///app/tns_modules/tns-core-modules/ui/builder/builder.js:117:40
8   loadPage@file:///app/tns_modules/tns-core-modules/ui/builder/builder.js:53:39
9   @file:///app/tns_modules/tns-core-modules/ui/builder/builder.js:72:20
10  @file:///app/tns_modules/tns-core-modules/ui/builder/builder.js:86:35
11  navigate@file:///app/tns_modules/tns-core-modules/ui/frame/frame-common.js:118:49
12  createRootView@file:///app/tns_modules/tns-core-modules/application/application.js:246:31
13  setWindowContent@file:///app/tns_modules/tns-core-modules/application/application.js:210:38
14  notifyAppStarted@file:///app/tns_modules/tns-core-modules/application/application.js:143:34
15  didFinishLaunchingWithOptions@file:///app/tns_modules/tns-core-modules/application/application.js:132:30
16  @[native code]
17  onReceive@file:///app/tns_modules/tns-core-modules/application/application.js:30:32
18  UIApplicationMain@[native code]
19  start@file:///app/tns_modules/tns-core-modules/application/application.js:272:26
20  anonymous@file:///app/app.js:5:18
21  evaluate@[native code]
22  moduleEvaluation@[native code]
23  @[native code]
24  promiseReactionJob@[native code]
JavaScript error:
file:///app/tns_modules/tns-core-modules/ui/builder/builder.js:244:56: JS ERROR Error: Building UI from XML. @file:///app/main-page.xml:13:9
> Module '/Users/steven/Library/Developer/CoreSimulator/Devices/104B28BF-4BF7-44EF-BB0F-98EE7FC2250A/data/Containers/Bundle/Application/8DDF34AE-A259-48E0-90C8-2511F378DF33/demo.app/app/nativescript-filterable-listpicker' not found for element 'nativescript-filterable-listpicker:FilterableListpicker'.
> Could not find module '/Users/steven/Library/Developer/CoreSimulator/Devices/104B28BF-4BF7-44EF-BB0F-98EE7FC2250A/data/Containers/Bundle/Application/8DDF34AE-A259-48E0-90C8-2511F378DF33/demo.app/app/nativescript-filterable-listpicker'. Computed path '/Users/steven/Library/Developer/CoreSimulator/Devices/104B28BF-4BF7-44EF-BB0F-98EE7FC2250A/data/Containers/Bundle/Application/8DDF34AE-A259-48E0-90C8-2511F378DF33/demo.app/app/nativescript-filterable-listpicker'.

The app builds and runs fine on Android.

I tried changing the package.json file to point the plugin to npm:

"dependencies": {
    "nativescript-filterable-listpicker": "^2.2.3",
    ...
}

npm i runs fine. But when I try tns run ios, I get the same message.

I have another app that uses the plugin on iOS on this same emulator, and it builds/installs/runs fine. I just wanted to try out the demo because because I wanted to see if an iOS keyboard issue existed on the demo, too (the keyboard just covers up most of the modal--unlike Android, which shifts the modal up. Anyway, that's another issue for another time, but I thought I'd let you know the demo wasn't working for me.

stevenspiel commented 5 years ago

I opened the demo again today, and somehow it's working.