React-native: 馃敟[CRASH] Android 9 and libjsc.co crashes on RN0.60.4

Created on 15 Aug 2019  路  11Comments  路  Source: facebook/react-native


Hi,
First of all a big thanks to this great community that develops this amazing platform. You are all doing an amazing work!

Now to the issue: We rolled out our app with RN0.60.4 to our users and are experiences some crashes across a multiple range of Android devices all running Android 9. We do not have Hermes enabled as it is not stable for us at the moment.

Affected devices:

  • OnePlus 6 & 6T
  • Google Pixel 3
  • Xiaomi POCO F1
  • Samsung Galaxy S9

Here is an example stacktrace we collect through Crashlytics, unfortunately not very verbose:

```# Crashlytics - plaintext stacktrace downloaded by Admin at Wed, 14 Aug 2019 21:56:20 GMT

Platform: android

Version: X.XX (XXXX)

Bundle Identifier: com.app

Issue ID: 5beb248ff8b28c2963ca6292

Session ID: 5d5471e90120c00014b9bf4b36c6b2644_DNE_0_v2

Date: 2019-08-14T20:48:00Z

OS Version: 9

Device: Pixel 3

RAM Free: 2.8%

Disk Free: 14.1%

0. Crashed: Thread

0 libjsc.so 0x7240e5335c (Missing)
1 libjsc.so 0x7240e533e4 (Missing)
2 libjsc.so 0x7240e53140 (Missing)
3 libjsc.so 0x7240cc85b4 (Missing)
4 libjsc.so 0x7240e4ce34 (Missing)
5 libjsc.so 0x7240cd9d10 (Missing)
6 libjsc.so 0x724113151c (Missing)
7 libjsc.so 0x7240c7b5c0 (Missing)
8 libjsc.so 0x7240c7b5c0 (Missing)
9 libjsc.so 0x7240e4d4bc (Missing)
10 libjsc.so 0x7240cdd770 (Missing)
11 libjsc.so 0x7240cc8c78 (Missing)
12 libjsc.so 0x7240ca2fa4 (Missing)
13 libjsc.so 0x7240cefa9c (Missing)
14 libjsc.so 0x7240cfaed4 (Missing)
15 libc.so 0x72e22ee994 (Missing)
16 libutils.so 0x72e1ddbe80 (Missing)
17 libutils.so 0x72e1ddbd4c (Missing)
18 libandroid_runtime.so 0x72e28e9a44 (Missing)
19 (Missing) 0x70ab8bfc (Missing)
20 (Missing) 0x7ffffffb (Missing)
21 (Missing) 0x13f3fffc (Missing)
22 (Missing) 0x70614154 (Missing)
23 (Missing) 0x7060d94c (Missing)
24 boot-framework.oat 0x72bc31a0 (Missing)
25 (Missing) 0x70ab8ea4 (Missing)
26 (Missing) 0x14a8f3bc (Missing)
27 (Missing) 0x13f4005c (Missing)
28 (Missing) 0x6fc7d6b4 (Missing)
29 (Missing) 0x705f31f4 (Missing)
30 (Missing) 0x6fccb2ec (Missing)
31 (Missing) 0x6fcd281c (Missing)
32 boot-framework.oat 0x72bc0b2c (Missing)
33 (Missing) 0x70985eec (Missing)
34 (Missing) 0x13f3fffc (Missing)
35 (Missing) 0x12c4588c (Missing)
36 (Missing) 0x12c425e4 (Missing)
37 (Missing) 0x13f3fffc (Missing)
38 (Missing) 0x702d7b24 (Missing)
39 (Missing) 0x13f4008c (Missing)
40 (Missing) 0x13f4009c (Missing)
41 (Missing) 0x13f400b4 (Missing)
42 (Missing) 0x12c425e4 (Missing)
43 (Missing) 0x705b5394 (Missing)
44 boot-framework.oat 0x7298db88 (Missing)
45 (Missing) 0x70a9ab14 (Missing)
46 (Missing) 0x739dff7d (Missing)
47 libart.so 0x725e11ee4c (Missing)
48 (Missing) 0x12c43a6c (Missing)
49 (Missing) 0x12c43a7c (Missing)
50 libart.so 0x725dca86b8 (Missing)
51 (Missing) 0x739dff7d (Missing)
52 (Missing) 0x70a9ab14 (Missing)
53 (Missing) 0x739dff7d (Missing)
54 (Missing) 0x702d7b24 (Missing)
55 (Missing) 0x70a9ab14 (Missing)
56 (Missing) 0x70a9ab14 (Missing)
57 (Missing) 0x739dff7d (Missing)
58 libart.so 0x725e028524 (Missing)
59 (Missing) 0x737a4bc4 (Missing)
60 (Missing) 0x702d7b24 (Missing)
61 (Missing) 0x6fd09b44 (Missing)
62 (Missing) 0x12c43a7c (Missing)
63 (Missing) 0x702d7b24 (Missing)
64 (Missing) 0x7062a7a4 (Missing)


React Native version:
<!--
  Run `react-native info` in your terminal and copy the results here.
-->

info Fetching system and libraries information...
System:
OS: macOS 10.14.6
CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
Memory: 24.51 MB / 32.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 10.16.0 - /usr/local/bin/node
Yarn: 1.17.3 - /usr/local/bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3
Android SDK:
API Levels: 23, 26, 27, 28
Build Tools: 23.0.1, 25.0.0, 26.0.3, 27.0.3, 28.0.1, 28.0.2, 28.0.3
System Images: android-24 | Google APIs Intel x86 Atom, android-24 | Google Play Intel x86 Atom, android-27 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom
IDEs:
Android Studio: 3.4 AI-183.6156.11.34.5692245
Xcode: 10.3/10G8 - /usr/bin/xcodebuild
npmPackages:
react: ^16.8.6 => 16.8.6
react-native: ^0.60.4 => 0.60.4
npmGlobalPackages:
eslint-plugin-react-native: 3.5.0
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7
```

Steps To Reproduce

We are unfortunately not able to reproduce it locally but I am sure we are not the only one with this problem. This has not been before with RN0.57.8

Describe what you expected to happen:
Android should not crash.

Bug Android

Most helpful comment

A couple of weeks ago our project had a crash report on some devices because of Hermes, so I disabled it. Now we have a report on other devices because of JSC and the solution is switch to Hermes. Life is endless pain.

All 11 comments

Current jsc has known crash issues so should try hermes or v8

Hello, have you solved this problem ?
I have also encountered it recently. It puzzled me for a long time
https://github.com/facebook/react-native/issues/26094

Unfortunately, I haven't @laymanZ.

@sunnylqm where would I find a working documentation on how to replace jsc with v8 for 0.60.X? Could you please point me to it? Thanks a lot!

This is an issue for us too, its the most frequent crash on our app, causing us a big issue. We're using Realm so we can't easily switch to Hermes or V8

@alexblack See the last few comments in https://github.com/facebook/react-native/issues/25494, a new version of the JSC will possibly fix these kind of crashes, we're also waiting patiently...

We switched to using v8 and are having no issues anymore. It also seems to run faster. Give it a try!

how to switch to v8

@sunnylqm @taschik how should i update to v8 facing similar crash

A couple of weeks ago our project had a crash report on some devices because of Hermes, so I disabled it. Now we have a report on other devices because of JSC and the solution is switch to Hermes. Life is endless pain.

Was this page helpful?
0 / 5 - 0 ratings