React Native version:
0.60.4
Enabled Hermes
Crash on release android build after splash screen
07-29 14:06:59.334 21833 21833 F DEBUG : #00 pc 000000000001a170 /data/app/app.theMovieExpert-wKzSD-OkiRBPXzh7GD8Acw==/lib/arm64/libhermes.so (facebook::hermes::detail::hermesFatalErrorHandler(void*, std::__ndk1::basic_string
07-29 14:07:00.136 749 749 I Zygote : Process 21790 exited due to signal (9)
The hermesFatalErrorHandler should log the message it received into Logcat. Are there any more lines in the log before the process was killed with SIGKILL?
07-30 09:43:42.911 13712 13712 I crash_dump64: performing dump of process 13463 (target tid = 13604)
07-30 09:43:42.929 13712 13712 F DEBUG : *
07-30 09:43:42.929 13712 13712 F DEBUG : Build fingerprint: 'Sony/H4113'
07-30 09:43:42.929 13712 13712 F DEBUG : Revision: '0'
07-30 09:43:42.929 13712 13712 F DEBUG : ABI: 'arm64'
07-30 09:43:42.929 13712 13712 F DEBUG : pid: 13463, tid: 13604, name: mqt_js >>> app.theTest <<<
07-30 09:43:42.930 13712 13712 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
07-30 09:43:42.930 13712 13712 F DEBUG : Cause: null pointer dereference
07-30 09:43:42.930 13712 13712 F DEBUG : x0 0000000000000000 x1 000000738ad80160 x2 0000000000000000 x3 000000739d66cb80
07-30 09:43:42.930 13712 13712 F DEBUG : x4 000000739d66cb71 x5 000000739d66cbe1 x6 726f67657461635f x7 617373656d202c79
07-30 09:43:42.930 13712 13712 F DEBUG : x8 0000000000000000 x9 000000000000002a x10 652073617720657a x11 2964656465656378
07-30 09:43:42.930 13712 13712 F DEBUG : x12 614d203d20656761 x13 7320706165682078 x14 000000738a000000 x15 ffffffffffffffff
07-30 09:43:42.930 13712 13712 F DEBUG : x16 000000738b475718 x17 000000743c4bdeb0 x18 0000000000000010 x19 000000738ad801f8
07-30 09:43:42.930 13712 13712 F DEBUG : x20 0000000000000001 x21 0000000000000000 x22 000000738b478c28 x23 000000738b2e0154
07-30 09:43:42.930 13712 13712 F DEBUG : x24 0000000000000028 x25 000000738ad83588 x26 000000738ad803a8 x27 000000738ad803b8
07-30 09:43:42.930 13712 13712 F DEBUG : x28 000000738ad80690 x29 000000738ad801e0
07-30 09:43:42.930 13712 13712 F DEBUG : sp 000000738ad80130 lr 000000738b3e21d0 pc 000000738b2e0170
07-30 09:43:43.038 25414 13715 E a : process name :com.cleanmaster.mguard:service , process importance : 125
07-30 09:43:43.042 13712 13712 F DEBUG :
07-30 09:43:43.042 13712 13712 F DEBUG : backtrace:
07-30 09:43:43.042 13712 13712 F DEBUG : #00 pc 000000000001a170 /data/app/app.theMovieExpert-yZdXfZiuMSKr5e0mIUWYuw==/lib/arm64/libhermes.so (facebook::hermes::detail::hermesFatalErrorHandler(void, std::__ndk1::basic_string
07-30 09:43:43.042 13712 13712 F DEBUG : #01 pc 000000000011c1cc /data/app/app.theMovieExpert-yZdXfZiuMSKr5e0mIUWYuw==/lib/arm64/libhermes.so
07-30 09:43:43.042 13712 13712 F DEBUG : #02 pc 000000000011c0c4 /data/app/app.theMovieExpert-yZdXfZiuMSKr5e0mIUWYuw==/lib/arm64/libhermes.so
07-30 09:43:43.042 13712 13712 F DEBUG : #03 pc 00000000000f4fcc /data/app/app.theMovieExpert-yZdXfZiuMSKr5e0mIUWYuw==/lib/arm64/libhermes.so
Having the same issue, but only on non-debug builds.
@tarasvakulka can you explain why you closed the issue?
Is the problem gone?
If you can, please provide some context here about how it was resolved so that anyone in the future with this issue will know what they should do.
@dulinriley, problem was not in hermes, my method array sort worked incorrect and hermesvm throw error, I refactor my code and now my problem solved
I am facing this same issue, if hermes is disabled in android/build.gradle then my app works fine but if hermes is enabled then I get error after splash screen "maximum call stack reached, js engines hermes". Note: I have also run gradle clean
It should be noted that there is a bug with the array sort function in Hermes. https://github.com/facebook/hermes/issues/95
I had an issue where my comparator callback function in an array sort was incorrect. JavaScript engines usually fallback to the default implementation in that case, but Hermes doesn't and gets stuck in an infinite loop. Pretty understandable bug on Hermes' part, especially considering how new it is. Fixing my comparator function solved the issue for me.
@jasonalmaturner You are right, this is bug of Hermes, I hope Hermes team fix this in future, because I spent a lot of time to find this problem in infinity loop if Hermes is on
@tarasvakulka we realize that this is a problem and we are working on fixing it. Unfortunately it isn't a simple fix, but we will address it. Thank you for your understanding!
I build my app bundle for Play Store with Helmet and only shows the splash, after crash.
Most helpful comment
It should be noted that there is a bug with the array sort function in Hermes. https://github.com/facebook/hermes/issues/95
I had an issue where my comparator callback function in an array sort was incorrect. JavaScript engines usually fallback to the default implementation in that case, but Hermes doesn't and gets stuck in an infinite loop. Pretty understandable bug on Hermes' part, especially considering how new it is. Fixing my comparator function solved the issue for me.