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.

RN android sdk throw JSApplicationIllegalArgumentException then crashed randomly

See original GitHub issue

Description

com.facebook.react.bridge.JSApplicationIllegalArgumentException: Animated node with tag 431 does not exists at com.facebook.react.animated.NativeAnimatedNodesManager.connectAnimatedNodes(NativeAnimatedNodesManager.java:322) com.facebook.react.animated.NativeAnimatedModule$15.execute(NativeAnimatedModule.java:681) com.facebook.react.animated.NativeAnimatedModule.executeAllOperations(NativeAnimatedModule.java:258) com.facebook.react.animated.NativeAnimatedModule.access$400(NativeAnimatedModule.java:85) com.facebook.react.animated.NativeAnimatedModule$3.execute(NativeAnimatedModule.java:287) com.facebook.react.uimanager.UIViewOperationQueue$UIBlockOperation.execute(UIViewOperationQueue.java:573) com.facebook.react.uimanager.UIViewOperationQueue$1.run(UIViewOperationQueue.java:908) com.facebook.react.uimanager.UIViewOperationQueue.flushPendingBatches(UIViewOperationQueue.java:1019) com.facebook.react.uimanager.UIViewOperationQueue.access$2600(UIViewOperationQueue.java:47) com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.doFrameGuarded(UIViewOperationQueue.java:1079) com.facebook.react.uimanager.GuardedFrameCallback.doFrame(GuardedFrameCallback.java:29) com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame(ReactChoreographer.java:175)

Version

0.64.2

Output of npx react-native info

info Fetching system and libraries information… System: OS: macOS 11.4 CPU: (4) x64 Intel® Core™ i5-7360U CPU @ 2.30GHz Memory: 35.73 MB / 8.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 12.18.4 - ~/.nvm/versions/node/v12.18.4/bin/node Yarn: 1.22.10 - ~/.nvm/versions/node/v12.18.4/bin/yarn npm: 6.14.6 - ~/.nvm/versions/node/v12.18.4/bin/npm Watchman: Not Found Managers: CocoaPods: 1.10.1 - /Users/caimingchao/.rvm/rubies/ruby-2.7.2/bin/pod SDKs: iOS SDK: Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2 Android SDK: API Levels: 23, 24, 25, 26, 28, 29, 30, 31 Build Tools: 23.0.3, 26.0.0, 28.0.2, 28.0.3, 29.0.2, 29.0.3, 30.0.3 System Images: android-30 | Google Play Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 4.1 AI-201.8743.12.41.7199119 Xcode: 12.4/12D4e - /usr/bin/xcodebuild Languages: Java: 1.8.0_181 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.1 => 17.0.1 react-native: 0.64.2 => 0.64.2 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

App crashes randomly in Android, can not reproduce manually

I found this kind crash seems only happed on android 12, level 31

Snack, code example, screenshot, or link to a repository

no

Issue Analytics

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

github_iconTop GitHub Comments

7reactions
zhuanghongjicommented, Mar 11, 2022

I check all kind of this crash log, and confirm that it only happen on android 12, level 31

5reactions
mayankyadav-zeptocommented, Mar 18, 2022

Looked at Sentry logs of my RN app on production.

Here are the list of device models on which this crash is happening.

[ 'SM-G970F', 'SM-N970F', 'SM-F700F', 'SM-G990E', 'SM-G988B', 'SM-S908E', 'SM-G991B', 'SM-G780F', 'SM-A725F', 'SM-G996B', 'SM-G975F', 'SM-G980F', 'SM-G770F', 'SM-N770F', 'SM-G973F', 'SM-G985F', 'SM-N975F', 'SM-N980F', 'SM-A528B', 'SM-A525F', 'SM-F711B', 'SM-G998B', 'SM-G781B', 'SM-N986B' ]

Hope this helps. For now disabling animation on these devices.

All of them are on Android 12.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native app crashes without any error log - Stack Overflow
All I have to do is: delete build and .gradle folder under android folder, then run again, it works. Hope it may help...
Read more >
Debugging a Non Reproducible Crash - Bam Tech
All the more impossible to reproduce locally in dev mode. All right, this seems pointless. The crashes seem quite random anyway. The crash...
Read more >
Crashes - Android Developers
An app that is written using Java or Kotlin crashes if it throws an unhandled exception, represented by the Throwable class.
Read more >
View crashes and application not responding (ANR) errors
Using Play Console, you can view data for crashes and application not responding (ANR) errors for your apps. Data comes from Android devices...
Read more >
Animated node with tag ### does not exists - Codesti
App crashes randomly on Android 12 with ... JSApplicationIllegalArgumentException: Animated node with tag 201 does not exists ... Android SDK:
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