Skip to content

Commit 2d50158

Browse files
author
Dick Smith
committed
Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x00000000deaddead keyboard_arrow_up arrow_right 0 NativeScript NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::Exception*, bool) + 1544 1 NativeScript NativeScript::FFICallback<NativeScript::ObjCMethodCallback>::ffiClosureCallback(ffi_cif*, void*, void**, void*) + 104 2 NativeScript ffi_closure_SYSV_inner + 948 3 NativeScript .Ldo_closure + 20 4 UIKit -[UIGestureRecognizer _touchesEnded:withEvent:] + 168 5 UIKit __55-[UIGestureEnvironment _updateGesturesForEvent:window:]_block_invoke + 708 6 UIKit -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:] + 240 7 UIKit -[UIGestureEnvironment _updateGesturesForEvent:window:] + 276 8 UIKit -[UIWindow sendEvent:] + 3180 9 UIKit -[UIApplication sendEvent:] + 340 10 UIKit __dispatchPreprocessedEventFromEventQueue + 2364 11 UIKit __handleEventQueueInternal + 4760 12 UIKit __handleHIDEventFetcherDrain + 152 13 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
1 parent f2d1d4f commit 2d50158

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tns-core-modules/ui/gestures/gestures.ios.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,12 @@ export class GesturesObserver extends GesturesObserverBase {
197197
}
198198

199199
public _executeCallback(args: GestureEventData) {
200-
if (this.callback) {
201-
this.callback.call(this.context, args);
200+
try {
201+
if (this.callback && this.context) {
202+
this.callback.call(this.context, args);
203+
}
204+
} catch (e) {
205+
// TODO
202206
}
203207
}
204208

0 commit comments

Comments
 (0)