[Android] NullPointerException - java.util.ArrayDeque.addLast from com.swmansion.reanimated.NodesManager.startUpdatingOnAnimationFrame
See original GitHub issueHi there,
We started seeing this error when we upgraded another library which in turn required an upgrade to Reanimated from 1.0.0 to 1.4.0:
java.lang.NullPointerException
ArrayDeque.java:228 java.util.ArrayDeque.addLast
ReactChoreographer:91 com.facebook.react.modules.core.ReactChoreographer.postFrameCallback
NodesManager:130 com.swmansion.reanimated.NodesManager.startUpdatingOnAnimationFrame
NodesManager:382 com.swmansion.reanimated.NodesManager.onEventDispatch
EventDispatcher:113 com.facebook.react.uimanager.events.EventDispatcher.dispatchEvent
UIImplementation:919 com.facebook.react.uimanager.UIImplementation.applyUpdatesRecursive
...
UIImplementation:904 com.facebook.react.uimanager.UIImplementation.applyUpdatesRecursive
UIImplementation:644 com.facebook.react.uimanager.UIImplementation.updateViewHierarchy
UIImplementation:599 com.facebook.react.uimanager.UIImplementation.dispatchViewUpdates
UIManagerModule:782 com.facebook.react.uimanager.UIManagerModule.onBatchComplete
NativeModuleRegistry:118 com.facebook.react.bridge.NativeModuleRegistry.onBatchComplete
CatalystInstanceImpl:164 com.facebook.react.bridge.CatalystInstanceImpl$BridgeCallback.onBatchComplete
SourceFile:-2 com.facebook.react.bridge.queue.NativeRunnable.run
Handler.java:789 android.os.Handler.handleCallback
Handler.java:98 android.os.Handler.dispatchMessage
MessageQueueThreadHandler:26 com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage
Looper.java:164 android.os.Looper.loop
MessageQueueThreadImpl:225 com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run
Thread.java:764 java.lang.Thread.run
This implies that NodesManager
’s mChoreographerCallback
is null, which doesn’t make sense since it gets initialized in the constructor.
Since other issues have mentioned that 1.7.0 has fixes for other NPEs, we tried upgrading to 1.7.0, but that hasn’t helped. I’m still investigating, but am wondering if others have seen this problem or know a workaround?
Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:11 (2 by maintainers)
Top Results From Across the Web
NullPointerException encountered when adding objects to ...
Anyway, when executing the addRoom() method providing an integer as a parameter, the ArrayDeque throws a NullPointerException on line 14 where I ...
Read more >525350 – NullPointerException in ArrayDeque.addFirst ... - Bugs
Error while parsing /llvm/lib/Target/X86/X86MacroFusion.cpp. java.lang.NullPointerException at java.util.ArrayDeque.
Read more >2020年12月_weixin_39963341的博客
[Android] NullPointerException - java.util.ArrayDeque.addLast from com.swmansion.reanimated.NodesManager.startUpdatingOnAnimationFrame. 2021-01-10 ...
Read more >如何解决android中的java.lang.nullpointerexception, 如何处理 ...
[Android] NullPointerException - java.util.ArrayDeque.addLast 来自com. swmansion.reanimated.NodesManager.startUpdatingOnAnimationFrame #604。关闭.
Read more >NullPointerException
java.util.concurrent.atomic ... NullPointerException; NullPointerException ... NullPointerException objects may be constructed by the virtual machine as if ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We’ve temporarily used patch-package to cover it up in node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/NodesManager.java
This ‘fixed it’ and surprisingly the crash didn’t move elsewhere.
Hello. I am using the JitsiMeetSDK which has this as a dependency:
Gradle: com.facebook.react:react-native-reanimated:1.13.3-jitsi-9316999@aar
Running it with React-Native version 0.67.1, the app keeps crashing with this error every time the activity launches on Android:
Will also ask in the Jitsi Meet repo