Application crashes with the following stack trace:
Fatal Exception: com.facebook.jni.CppException: JS Functions are not convertible to dynamic
no stack
at com.facebook.react.bridge.queue.NativeRunnable.run(NativeRunnable.java)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
at android.os.Looper.loop(Looper.java:214)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:232)
at java.lang.Thread.run(Thread.java:764)
React Native version:
System:
OS: macOS Mojave 10.14.6
CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
Memory: 29.94 MB / 32.00 GB
Shell: 5.0.7 - /usr/local/bin/bash
Binaries:
Node: 10.16.0 - /usr/local/bin/node
Yarn: 1.17.3 - /usr/local/bin/yarn
npm: 6.12.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
Android SDK:
API Levels: 27, 28, 29
Build Tools: 28.0.3, 29.0.0, 29.0.2
System Images: android-22 | Google APIs Intel x86 Atom, android-23 | Google APIs Intel x86 Atom, android-26 | Android TV Intel x86 Atom, android-28 | Google APIs Intel x86 Atom
Android NDK: 20.0.5594570
IDEs:
Android Studio: 3.5 AI-191.8026.42.35.5791312
Xcode: 11.2.1/11B53 - /usr/bin/xcodebuild
npmPackages:
react: 16.9 => 16.9.0
react-native: 0.61.3 => 0.61.3
npmGlobalPackages:
react-native-cli: 2.0.1
Can't reproduce it reliably, I've received tens of crashes on Crashlytics though.
Describe what you expected to happen:
Not a crash.
Snack, code example, screenshot, or link to a repository:
This is the crash:
Fatal Exception: com.facebook.jni.CppException: JS Functions are not convertible to dynamic
no stack
at com.facebook.react.bridge.queue.NativeRunnable.run(NativeRunnable.java)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
at android.os.Looper.loop(Looper.java:214)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:232)
at java.lang.Thread.run(Thread.java:764)
FTR, this issue seems to be similar to https://github.com/facebook/react-native/issues/25784 but there is no 3 callback method involved as far as I can tell.
I'll repost my comment from #25784:
This crash has been happening over the last 2-3 months and I'm on RN 0.61.X as well. Honestly gave up on it and decided to suck it up. Sucks for the users though.
https://user-images.githubusercontent.com/15217227/64571125-317fc600-d3a6-11e9-8962-851e2dd9a151.png
Still hapenning on 0.61.5, even after switching to Hermes.
Created a PR: https://github.com/facebook/react-native/pull/28037
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.
Not stale. There is a PR open, we have tested the fix will millions of installs. I don’t know why ese to do to get the change in :-(
Not stale. There is a PR open, we have tested the fix will millions of installs. I don’t know why ese to do to get the change in :-(
i would love to have this merged!
@rodperottoni @saghul Any workaround for this? Did you manage to get it to work?
I am also facing this exact error recently. It started raising more in the latest release.
Same here
We keep running with this patch... 🤷♀️
Same Here Tooo. LMAO
Any update? 🤔
already using latest release.
and the bug crash is keep occurring.
it is affecting a lot of builds
We keep running with this patch... 🤷♀️
How you process the patch ? Any clue.
I found out is based on JNI
Most helpful comment
I'll repost my comment from #25784:
This crash has been happening over the last 2-3 months and I'm on RN 0.61.X as well. Honestly gave up on it and decided to suck it up. Sucks for the users though.
https://user-images.githubusercontent.com/15217227/64571125-317fc600-d3a6-11e9-8962-851e2dd9a151.png