question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ios Crash on release build

See original GitHub issue

Crash still occurs while on release build with version 1.5.0

Verified on device, as well as on sim.

Issue occurs release build only.

See repo https://github.com/jimji1005/testGestureIOSReleaseCrash

clone
yarn
pod install
react-native run-ios --configuration Release

gesture-crash

2019-11-01 11:14:15.633 [info][tid:main][RNGestureHandlerManager.m:136] [GESTURE HANDLER] Initialize gesture handler for root view <RCTRootContentView: 0x145d0a030; reactTag: 1; frame = (0 0; 375 667); gestureRecognizers = <NSArray: 0x2819e11d0>; layer = <CALayer: 0x281787f60>>
2019-11-01 11:14:25.585 [error][tid:com.facebook.react.JavaScript] Invariant Violation: Unsupported top level event type "onGestureHandlerStateChange" dispatched
2019-11-01 11:14:25.589 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: Invariant Violation: Unsupported top level event type "onGestureHandlerStateChange" dispatched
2019-11-01 11:14:25.591909-0700 testGestureIOSReleaseCrash[868:64856] *** Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: Invariant Violation: Unsupported top level event type "onGestureHandlerStateChange" dispatched', reason: 'Unhandled JS Exception: Invariant Violation: Unsupported top level event type "onGestureHandlerStateChange" dispatched, stack:
extractEvents@94:13054
<unknown>@94:13845
_e@94:88659
Ne@94:13582
Ue@94:13755
receiveEvent@94:14164
value@24:3685
<unknown>@24:841
value@24:2939
value@24:813
value@<null>:<null>
'
*** First throw call stack:
(0x1a4bdf278 0x1a49080a4 0x104439f00 0x1044abf18 0x1a4be52b0 0x1a4ab54e8 0x1a4ab60a4 0x10446c9a8 0x10446eac8 0x10446e82c 0x1048e18ac 0x1048e2c88 0x1048e9bf8 0x1048ea794 0x1048f5b88 0x1a48fcfa8 0x1a48ffae4)
libc++abi.dylib: terminating with uncaught exception of type NSException```

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:21
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
kyarorucommented, Nov 5, 2019

Problem fixed after following this method: https://github.com/kmagiera/react-native-gesture-handler/issues/783#issuecomment-544974606 (But must ensure update to v1.5.0 & apply this method)

0reactions
jakub-gonetcommented, Aug 24, 2020

Seems resolved, so closing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

app crashes at launch as release b… | Apple Developer Forums
I have imported ios-charts in my Objective-C project, and running it in debug mode is fine. However, today I tried to archive and...
Read more >
iOS app crash only when not debugging - Stack Overflow
In Build Settings, go to the LLVM compiler 4.2 - Code Generation section, look for the Optimization Level option and change the Release...
Read more >
Is your app crashing on TestFlight? Issues and potential ...
If the app crashes on TestFlight or the App Store, the first thing to try is building the project under RELEASE mode with...
Read more >
Crashlytics not reporting crash in Ad-Hoc/Release mode
With all those changes crashes are still being reported just fine in Debug build. Just not in Release installed from iTune store and...
Read more >
Troubleshooting build errors and crashes - Expo Documentation
A reference for troubleshooting build errors and crashes when using EAS Build. ... Locally compile and run the iOS app in release mode....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found