react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Android Crash Thread: SIGQUIT 0x0000000000000000

Open terryatgithub opened this issue 1 year ago • 6 comments

Description

Crashed: Thread: SIGQUIT 0x0000000000000000. #00 pc 0x1edb0 libc.so (BuildId: 50fe11b9d556e088ce72bbd1db5f587d). #01 pc 0xb1024 libart.so (BuildId: f1e2925e801d2071a5c2bd7ea55a67a1). #02 pc 0x39afe4 libart.so (BuildId: f1e2925e801d2071a5c2bd7ea55a67a1)

React Native Version: 0.71.11 with Hermes enabled

After investigating the statistics in Firebase Crashlytics, I found

  1. It mostly happens on Oppo brand phones (~96%), other brands like Google, Samsung, Xiaomi, Vivo account for about 1% or less.
  2. It happens mostly on Android 9(87%) and Android 10(10%), and Android 11/12/13/14 account for 1% or less.
  3. Phones mostly have <100 MB of free memory when crashing as shown below: image image image

This crash seems a lot like #33083 which has been closed.

Steps to reproduce

This issue has 509 crash events affecting 315 users in last 30 days according to Firebase Crashlytics. Unfortunately, there is currently no obvious method found to reproduce this crash issue, we are trying to find one.

React Native Version

0.71.11

Affected Platforms

Runtime - Android

Output of npx react-native info

System:
    OS: macOS 14.3.1
    CPU: (10) x64 Apple M1 Pro
    Memory: 27.09 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.19.1 - ~/.nvm/versions/node/v16.19.1/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 8.19.3 - ~/.nvm/versions/node/v16.19.1/bin/npm
    Watchman: 2023.11.27.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.15.2 - ~/.rbenv/shims/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 23.4, iOS 17.4, macOS 14.4, tvOS 17.4, visionOS 1.1, watchOS 10.4
    Android SDK: Not Found
  IDEs:
    Android Studio: 2023.1 AI-231.9392.1.2311.11076708
    Xcode: 15.3/15E204a - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.18 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.2.0 
    react-native: 0.71.11 => 0.71.11 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Stacktrace or Logs

# Crashlytics - Stack trace
# Platform: android
# Date: Sun Mar 17 2024 17:50:56 GMT+0800 (China Standard Time)

Crashed: Thread: SIGQUIT  0x0000000000000000
#00 pc 0x1edb0 libc.so (BuildId: 50fe11b9d556e088ce72bbd1db5f587d)
#01 pc 0xb1024 libart.so (BuildId: f1e2925e801d2071a5c2bd7ea55a67a1)
#02 pc 0x39afe4 libart.so (BuildId: f1e2925e801d2071a5c2bd7ea55a67a1)
#03 pc 0x3a0610 libart.so (BuildId: f1e2925e801d2071a5c2bd7ea55a67a1)
#04 pc 0x4fb46c libart.so (BuildId: f1e2925e801d2071a5c2bd7ea55a67a1)
#05 pc 0x22b6aa4 boot-framework.oat (BuildId: a531d563fd72417f1f2d8f49486bf8a3f5fa99a7)
#06 pc 0x2604d38 boot-framework.oat (BuildId: a531d563fd72417f1f2d8f49486bf8a3f5fa99a7)
#07 pc 0x22b703c boot-framework.oat (BuildId: a531d563fd72417f1f2d8f49486bf8a3f5fa99a7)
#08 pc 0x23cd1a8 boot-framework.oat (BuildId: a531d563fd72417f1f2d8f49486bf8a3f5fa99a7)
#09 pc 0x23c6cac boot-framework.oat (BuildId: a531d563fd72417f1f2d8f49486bf8a3f5fa99a7)
#10 pc 0xb100b8 boot.oat (BuildId: ab006c256aa5075ac99499b0ea41fa2d7eb51343)
#11 pc 0x23bc8b4 boot-framework.oat (BuildId: a531d563fd72417f1f2d8f49486bf8a3f5fa99a7)
#12 pc 0x127d84c boot-framework.oat (BuildId: a531d563fd72417f1f2d8f49486bf8a3f5fa99a7)
#13 pc 0x2604164 boot-framework.oat (BuildId: a531d563fd72417f1f2d8f49486bf8a3f5fa99a7)
#14 pc 0x2607418 boot-framework.oat (BuildId: a531d563fd72417f1f2d8f49486bf8a3f5fa99a7)

Thread:
#00 pc 0x71194 libc.so (BuildId: 50fe11b9d556e088ce72bbd1db5f587d)
#01 pc 0x14b8 libnetd_client.so (BuildId: c1199ec75651e0c6394f13ccc561af31)
#02 pc 0x271f4 libjavacore.so (BuildId: 6505cbd613d282958ad3060f82ffd4ff)
#03 pc 0x987a18 boot.oat (BuildId: ab006c256aa5075ac99499b0ea41fa2d7eb51343)
#04 pc 0x60e7e8 boot-core-libart.oat (BuildId: 31c8375b4d6a56387b256c2151559d7c7444f6d0)
#05 pc 0x57bc9c boot-core-libart.oat (BuildId: 31c8375b4d6a56387b256c2151559d7c7444f6d0)
#06 pc 0x57ba2c boot-core-libart.oat (BuildId: 31c8375b4d6a56387b256c2151559d7c7444f6d0)
#07 pc 0x4fa96c libart.so (BuildId: f1e2925e801d2071a5c2bd7ea55a67a1)
#08 pc 0xba4b84 boot.oat (BuildId: ab006c256aa5075ac99499b0ea41fa2d7eb51343)
#09 pc 0xb1b160 boot.oat (BuildId: ab006c256aa5075ac99499b0ea41fa2d7eb51343)
#10 pc 0xb1ab68 boot.oat (BuildId: ab006c256aa5075ac99499b0ea41fa2d7eb51343)
#11 pc 0xbf33d4 boot.oat (BuildId: ab006c256aa5075ac99499b0ea41fa2d7eb51343)
#12 pc 0xb16e1c boot.oat (BuildId: ab006c256aa5075ac99499b0ea41fa2d7eb51343)
#13 pc 0x2fd6c0 boot.oat (BuildId: ab006c256aa5075ac99499b0ea41fa2d7eb51343)
#14 pc 0xb22550 boot.oat (BuildId: ab006c256aa5075ac99499b0ea41fa2d7eb51343)
#15 pc 0xb2360 boot-okhttp.oat (BuildId: a946b9ccb8077f58803815f0f6ce5ec1839104b4)
#16 pc 0xcc928 boot-okhttp.oat (BuildId: a946b9ccb8077f58803815f0f6ce5ec1839104b4)
#17 pc 0xce1c4 boot-okhttp.oat (BuildId: a946b9ccb8077f58803815f0f6ce5ec1839104b4)
#18 pc 0xbe3e0 boot-okhttp.oat (BuildId: a946b9ccb8077f58803815f0f6ce5ec1839104b4)
#19 pc 0xbe630 boot-okhttp.oat (BuildId: a946b9ccb8077f58803815f0f6ce5ec1839104b4)
#20 pc 0xbec70 boot-okhttp.oat (BuildId: a946b9ccb8077f58803815f0f6ce5ec1839104b4)
#21 pc 0xb60dc boot-okhttp.oat (BuildId: a946b9ccb8077f58803815f0f6ce5ec1839104b4)
#22 pc 0xb9e70 boot-okhttp.oat (BuildId: a946b9ccb8077f58803815f0f6ce5ec1839104b4)
#23 pc 0xbf408 boot-okhttp.oat (BuildId: a946b9ccb8077f58803815f0f6ce5ec1839104b4)
#24 pc 0xbfb54 boot-okhttp.oat (BuildId: a946b9ccb8077f58803815f0f6ce5ec1839104b4)
#25 pc 0xc208c boot-okhttp.oat (BuildId: a946b9ccb8077f58803815f0f6ce5ec1839104b4)
#26 pc 0x793c8789ec
#27 pc 0xcb57c boot-okhttp.oat (BuildId: a946b9ccb8077f58803815f0f6ce5ec1839104b4)
#28 pc 0x793c87336c
#29 pc 0x53d870 libart.so (BuildId: f1e2925e801d2071a5c2bd7ea55a67a1)
#30 pc 0x793c87174c
#31 pc 0x793c76ecc8
#32 pc 0x793c769710
#33 pc 0x793c769210
#34 pc 0x793c768f14
#35 pc 0x793c78905c
#36 pc 0x793c78a8ac
#37 pc 0x793c770bf4
#38 pc 0xfcbe24 boot.oat (BuildId: ab006c256aa5075ac99499b0ea41fa2d7eb51343)
#39 pc 0x793c799444
#40 pc 0xbd13d4 boot.oat (BuildId: ab006c256aa5075ac99499b0ea41fa2d7eb51343)
#41 pc 0x9d434 libc.so (BuildId: 50fe11b9d556e088ce72bbd1db5f587d)
#42 pc 0xfcbe24 boot.oat (BuildId: ab006c256aa5075ac99499b0ea41fa2d7eb51343)
#43 pc 0x61d084 libart.so (BuildId: f1e2925e801d2071a5c2bd7ea55a67a1)
#44 pc 0xbce100 boot.oat (BuildId: ab006c256aa5075ac99499b0ea41fa2d7eb51343)
#45 pc 0xa574e8 boot.oat (BuildId: ab006c256aa5075ac99499b0ea41fa2d7eb51343)
#46 pc 0xab950 libc.so (BuildId: 50fe11b9d556e088ce72bbd1db5f587d)
#47 pc 0xfb970 libc.so (BuildId: 50fe11b9d556e088ce72bbd1db5f587d)
#48 pc 0x53d188 libart.so (BuildId: f1e2925e801d2071a5c2bd7ea55a67a1)
#49 pc 0xa9340 libart.so (BuildId: f1e2925e801d2071a5c2bd7ea55a67a1)
#50 pc 0xfcbe24 boot.oat (BuildId: ab006c256aa5075ac99499b0ea41fa2d7eb51343)
#51 pc 0xfcbe24 boot.oat (BuildId: ab006c256aa5075ac99499b0ea41fa2d7eb51343)
#52 pc 0x61d084 libart.so (BuildId: f1e2925e801d2071a5c2bd7ea55a67a1)
#53 pc 0xfcbe24 boot.oat (BuildId: ab006c256aa5075ac99499b0ea41fa2d7eb51343)
#54 pc 0x4404b0 libart.so (BuildId: f1e2925e801d2071a5c2bd7ea55a67a1)
#55 pc 0x47aab8 libart.so (BuildId: f1e2925e801d2071a5c2bd7ea55a67a1)
#56 pc 0x470cc0 libart.so (BuildId: f1e2925e801d2071a5c2bd7ea55a67a1)
#57 pc 0x61d084 libart.so (BuildId: f1e2925e801d2071a5c2bd7ea55a67a1)
#58 pc 0xfcbe24 boot.oat (BuildId: ab006c256aa5075ac99499b0ea41fa2d7eb51343)
#59 pc 0x441578 libart.so (BuildId: f1e2925e801d2071a5c2bd7ea55a67a1)
#60 pc 0xfcbe24 boot.oat (BuildId: ab006c256aa5075ac99499b0ea41fa2d7eb51343)
#61 pc 0x54d21f libart.so (BuildId: f1e2925e801d2071a5c2bd7ea55a67a1)
#62 pc 0x54daed libart.so (BuildId: f1e2925e801d2071a5c2bd7ea55a67a1)
#63 pc 0x54dabc libart.so (BuildId: f1e2925e801d2071a5c2bd7ea55a67a1)

Reproducer

null

Screenshots and Videos

No response

terryatgithub avatar Mar 19 '24 02:03 terryatgithub

:warning: Newer Version of React Native is Available!
:information_source: You are on a supported minor version, but it looks like there's a newer patch available - 0.71.17. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

github-actions[bot] avatar Mar 19 '24 02:03 github-actions[bot]

:warning: Missing Reproducible Example
:information_source: We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

github-actions[bot] avatar Mar 19 '24 02:03 github-actions[bot]

It seems to be an out of memory issue https://stackoverflow.com/questions/32244851/androidjava-lang-outofmemoryerror-failed-to-allocate-a-23970828-byte-allocatio

be careful to set android:hardwareAccelerated="false" as it seems to affect the video playback in some devices

terryatgithub avatar Mar 19 '24 03:03 terryatgithub

Unfortunately, there is currently no obvious method found to reproduce this crash issue, we are trying to find one.

I'm unsure how are we supposed to help without a reproducer

cortinico avatar Mar 19 '24 11:03 cortinico

Unfortunately, there is currently no obvious method found to reproduce this crash issue, we are trying to find one.

I'm unsure how are we supposed to help without a reproducer

Cortinico, thank you for replying and I can see your point. It's said that this problem will occur when the phone's free memory is low, especially some phones with lower Android API levels, such as Android 7.

Currently we have just added this field in AndroidManifest.xml and will continue to monitor this issue after next release. I will try to share the results in the next few months depending on the pace of our next release.

<application android:name=".MyApplication" android:largeHeap="true"

terryatgithub avatar Mar 20 '24 06:03 terryatgithub

having same issue on samsung device with android:largeHeap="true"

rahulpunchh avatar Jun 27 '24 14:06 rahulpunchh

same problem on samsung devices after upgrade 75.2, for me its not about ram because at crash time 300mb ram , 700mb ram & so on so there isn't ram problem at this time

SGamrekelashvili avatar Aug 31 '24 17:08 SGamrekelashvili

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

react-native-bot avatar Feb 28 '25 05:02 react-native-bot

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

react-native-bot avatar Feb 28 '25 05:02 react-native-bot

This issue was closed because it has been stalled for 7 days with no activity.

react-native-bot avatar Mar 07 '25 05:03 react-native-bot

This issue was closed because it has been stalled for 7 days with no activity.

react-native-bot avatar Mar 07 '25 05:03 react-native-bot