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.

Animated events must have event data

See original GitHub issue
java.lang.IllegalArgumentException: Animated events must have event data.
	at com.swmansion.reanimated.nodes.EventNode.receiveEvent(Unknown Source:50)
	at com.swmansion.gesturehandler.react.i.a(Unknown Source:8)
	at com.swmansion.reanimated.b.b(Unknown Source:47)
	at com.swmansion.reanimated.b.a(Unknown Source:25)
	at com.swmansion.reanimated.b.a(Unknown Source:0)
	at com.swmansion.reanimated.b$a.b(Unknown Source:2)
	at com.facebook.react.uimanager.e.a(Unknown Source:0)
	at com.facebook.react.modules.core.g$d.a(Unknown Source:46)
	at com.facebook.react.modules.core.a$a$a.doFrame(Unknown Source:2)
	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:888)
	at android.os.Handler.dispatchMessage(Handler.java:100)
	at android.os.Looper.loop(Looper.java:213)
	at android.app.ActivityThread.main(ActivityThread.java:8169)
	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:1101)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:11
  • Comments:22 (10 by maintainers)

github_iconTop GitHub Comments

9reactions
mym0404commented, Jul 14, 2020

same in Android This bug is not occurred 100%. Intermittent

image

Fatal Exception: java.lang.IllegalArgumentException: Animated events must have event data.
       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:29)
       at com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame(ReactChoreographer.java:175)
       at com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame(ChoreographerCompat.java:85)
       at android.view.Choreographer$CallbackRecord.run(Choreographer.java:997)
       at android.view.Choreographer.doCallbacks(Choreographer.java:797)
       at android.view.Choreographer.doFrame(Choreographer.java:728)
       at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:984)
       at android.os.Handler.handleCallback(Handler.java:883)
       at android.os.Handler.dispatchMessage(Handler.java:100)
       at android.os.Looper.loop(Looper.java:237)
       at android.app.ActivityThread.main(ActivityThread.java:8125)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
5reactions
jakub-gonetcommented, Aug 24, 2020

In the near future, yes. We need to make sure that changing state of gestures are done from one thread and this needs a little bit more testing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

react native : there is way to fix the error "Animated event must ...
I get "Animated event must have event data" error every time I move the tabs and I really do not understand what caused...
Read more >
Events | React Native Reanimated - Software Mansion
For defining event handlers, Reanimated provides a hook that is specifically designed to work with the gesture-handler package, it is called ...
Read more >
Using Animation Events - Unity - Manual
Use Animation Events to call functions at specific points in the timeline. These functions can be in any script attached to the GameObject....
Read more >
React Native Animations: a Guide on Creating ... - UpsilonIT
Learn how to make animations in React Native using Reanimated 2 in this guide. ... Due to the new API, you will need...
Read more >
How to Trigger Animation Events using React - Bits and Pieces
Every time the animation finished its cycle, the event will trigger. Then this triggers in every iteration of animation if it's looping ...
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