Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Upgrade npm module react-native-gesture-handler to get rid of native Android crash #2767

Closed
norbertschuler opened this issue Oct 3, 2020 · 1 comment
Labels
Android Issue happening in the Android app bug Something isn't working native tooling

Comments

@norbertschuler
Copy link
Collaborator

This is one of the crashes happening in our app most often according to the Google Developer Console:

java.lang.IllegalArgumentException: 
  at com.swmansion.reanimated.nodes.EventNode.receiveEvent (EventNode.java:63)
  at com.swmansion.gesturehandler.react.RNGestureHandlerStateChangeEvent.dispatch (RNGestureHandlerStateChangeEvent.java:80)
  at com.swmansion.reanimated.NodesManager.handleEvent (NodesManager.java:394)
  at com.swmansion.reanimated.NodesManager.onAnimationFrame (NodesManager.java:148)
  at com.swmansion.reanimated.NodesManager.access$000 (NodesManager.java:55)
  at com.swmansion.reanimated.NodesManager$1.doFrameGuarded (NodesManager.java:108)
  at com.facebook.react.uimanager.GuardedFrameCallback.doFrame (GuardedFrameCallback.java:28)
  at com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame (ReactChoreographer.java:174)
  at com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame (ChoreographerCompat.java:84)
  at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1055)
  at android.view.Choreographer.doCallbacks (Choreographer.java:875)
  at android.view.Choreographer.doFrame (Choreographer.java:772)
  at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1042)
  at android.os.Handler.handleCallback (Handler.java:900)
  at android.os.Handler.dispatchMessage (Handler.java:103)
  at android.os.Looper.loop (Looper.java:219)
  at android.app.ActivityThread.main (ActivityThread.java:8347)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:513)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1055)

Bildschirmfoto 2020-10-03 um 12 05 48

According to satya164/react-native-tab-view#976 (comment) this might be solved by upgrading react-native-gesture-handler.
(I am not sure if we can only upgrade this npm module or if we have to upgrade related npm modules as well.)

@norbertschuler norbertschuler added bug Something isn't working Android Issue happening in the Android app native labels Oct 3, 2020
@norbertschuler
Copy link
Collaborator Author

The related Bugsnag error is #1807

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Issue happening in the Android app bug Something isn't working native tooling
Projects
None yet
Development

No branches or pull requests

1 participant