react-native: Getting SIGABRT Crash on release build. libc.so

Please provide all the information requested. Issues that do not follow this format are likely to stall.

Description

Did looked for related issues did not find any solution for this, the crash is prominent for almost most of the user on my end on my device im unable to reproduce it if someone has faced the crash please help me get away with this. I have hermes enabled for my app.

React Native version:

System:
    OS: Linux 5.8 Manjaro Linux
    CPU: (8) x64 Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
    Memory: 14.79 GB / 19.40 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 12.18.3 - ~/.nvm/versions/node/v12.18.3/bin/node
    Yarn: Not Found
    npm: 6.14.6 - ~/.nvm/versions/node/v12.18.3/bin/npm
    Watchman: Not Found
  SDKs:
    Android SDK: Not Found
  IDEs:
    Android Studio: Not Found
  Languages:
    Java: 11.0.8 - /usr/lib/jvm/default/bin/javac
    Python: 3.8.5 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: ^3.0.5-alpha.1 => 3.2.1 
    react: 16.13.1 => 16.13.1 
    react-native: 0.63.2 => 0.63.2 
  npmGlobalPackages:
    *react-native*: Not Found

Steps To Reproduce

Unable to produce on my devices but i am able to see this crash on users in production. Probably happening happening while the app starts as i can see in the logs,

Expected Results

This crash is too prominent more than 20% users are facing the crash need a fix

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

Crashed: Thread :  SIGABRT  0x000027b900000bf9
#00 pc 0x72c8ba5b3c libc.so 
#01 pc 0x72c8ba5b0c libc.so 
#02 pc 0x722553f124 libc++_shared.so 
#03 pc 0x722553b3d4 libc++_shared.so 
#04 pc 0x7224ec43b4 libhermes-executor-release.so 
#05 pc 0x7224ec48bc libhermes-executor-release.so 
#06 pc 0x7224ebcffc libhermes-executor-release.so 
#07 pc 0x7224eae4e8 libhermes-executor-release.so 
#08 pc 0x7224eb0c74 libhermes-executor-release.so 
#09 pc 0x7224ea84c8 libhermes-executor-release.so 
#10 pc 0x7224876264 libhermes.so 
#11 pc 0x7224875be4 libhermes.so 
#12 pc 0x722487ffac libhermes.so 
#13 pc 0x722488e9f0 libhermes.so 
#14 pc 0x7224891e34 libhermes.so 
#15 pc 0x722488f93c libhermes.so 
#16 pc 0x722487fb0c libhermes.so 
#17 pc 0x722488ea08 libhermes.so 
#18 pc 0x7224891e34 libhermes.so 
#19 pc 0x722488f93c libhermes.so 
#20 pc 0x722487fb0c libhermes.so 
#21 pc 0x722488ea08 libhermes.so 
#22 pc 0x7224891e34 libhermes.so 
#23 pc 0x722488f93c libhermes.so 
#24 pc 0x722487fb0c libhermes.so 
#25 pc 0x722488ea08 libhermes.so 
#26 pc 0x7224891e34 libhermes.so 
#27 pc 0x722488f93c libhermes.so 
#28 pc 0x7224900dc0 libhermes.so 
#29 pc 0x722487ffac libhermes.so 
#30 pc 0x722488e9f0 libhermes.so 
#31 pc 0x7224891e34 libhermes.so 
#32 pc 0x722488f93c libhermes.so 
#33 pc 0x7224900dc0 libhermes.so 
#34 pc 0x722487ffac libhermes.so 
#35 pc 0x722488e9f0 libhermes.so 
#36 pc 0x7224891e34 libhermes.so 
#37 pc 0x722488f93c libhermes.so 
#38 pc 0x722487ee28 libhermes.so 
#39 pc 0x7224900b70 libhermes.so 
#40 pc 0x722487ffac libhermes.so 
#41 pc 0x722488e9f0 libhermes.so 
#42 pc 0x7224891e34 libhermes.so 
#43 pc 0x722488f93c libhermes.so 
#44 pc 0x722487fb0c libhermes.so 
#45 pc 0x722488ea08 libhermes.so 
#46 pc 0x7224891e34 libhermes.so 
#47 pc 0x722488f93c libhermes.so 
#48 pc 0x722487fb0c libhermes.so 
#49 pc 0x7224870108 libhermes.so 
#50 pc 0x7224eb1334 libhermes-executor-release.so 
#51 pc 0x7224eb1190 libhermes-executor-release.so 
#52 pc 0x7224eab5e4 libhermes-executor-release.so 
#53 pc 0x7224eae034 libhermes-executor-release.so 
#54 pc 0x7224fa0d58 libreactnativejni.so 
#55 pc 0x7224fa2350 libreactnativejni.so 
#56 pc 0x7224f68d48 libreactnativejni.so 
#57 pc 0x7224f59a70 libreactnativejni.so 
#58 pc 0x7224f599ec libreactnativejni.so 
#59 pc 0x724331e9e0 libart.so 
#60 pc 0x3ffffffc  
#61 pc 0x136412ec  
#62 pc 0x19d5213c  
#63 pc 0x136412ec  

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 51
  • Comments: 94 (14 by maintainers)

Most upvoted comments

Same issue on react-native: 0.63.3

Crashed: Thread :  SIGSEGV  0x0000000000000010
#00 pc 0x7de39e0748 libjsc.so 
#01 pc 0x7de3a2cfe8 libjsc.so 
#02 pc 0x7ef3e8b0c8 libc.so 

Any update? I’ve been encountering this problem since I updated RN version 0.59.10 to 0.63.3

Finally I was able to reproduce the crash on one of my test device -

  --------- beginning of crash
2021-01-30 18:05:34.282 4728-5593/com.quizizz_mobile A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x28 in tid 5593 (RenderThread), pid 4728 (.quizizz_mobile)
2021-01-30 18:05:34.438 6086-6086/? I/crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone
2021-01-30 18:05:34.439 1192-1192/? I//system/bin/tombstoned: received crash request for pid 5593
2021-01-30 18:05:34.439 6086-6086/? I/crash_dump64: performing dump of process 4728 (target tid = 5593)
2021-01-30 18:05:34.461 6086-6086/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2021-01-30 18:05:34.461 6086-6086/? A/DEBUG: Build fingerprint: 'OnePlus/OnePlus5T/OnePlus5T:10/QKQ1.191014.012/2010292059:user/release-keys'
2021-01-30 18:05:34.461 6086-6086/? A/DEBUG: Revision: '0'
2021-01-30 18:05:34.461 6086-6086/? A/DEBUG: ABI: 'arm64'
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG: Timestamp: 2021-01-30 18:05:34+0530
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG: pid: 4728, tid: 5593, name: RenderThread  >>> com.quizizz_mobile <<<
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG: uid: 10377
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x28
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG: Cause: null pointer dereference
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG:     x0  0000000000000000  x1  00000078032e025c  x2  0000000000000002  x3  0000007702bdd2f8
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG:     x4  0000000000000000  x5  0000007702bdd2c0  x6  0000000000000000  x7  000000780309ebcc
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG:     x8  0000000000000000  x9  0000000000000000  x10 0000000000000046  x11 0000000000000000
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG:     x12 0000000000000000  x13 0000000000000000  x14 000000780309f241  x15 00000078032f9620
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG:     x16 0000007803669338  x17 00000078032e5370  x18 00000077003da000  x19 0000000000000000
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG:     x20 00000076eef99188  x21 0000000000000000  x22 0000000000000004  x23 0000000000000440
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG:     x24 0000000000000280  x25 0000007702be5020  x26 0000007803664658  x27 0000000080003816
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG:     x28 0000000000000016  x29 0000007702bdd2e0
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG:     sp  0000007702bdd2d0  lr  00000078033833f0  pc  00000078032e5380
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG: backtrace:
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #00 pc 00000000002d5380  /system/lib64/libhwui.so (SkSurface::getCanvas()+16) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #01 pc 00000000003733ec  /system/lib64/libhwui.so (android::uirenderer::skiapipeline::GLFunctorDrawable::onDraw(SkCanvas*)+1136) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #02 pc 000000000036f044  /system/lib64/libhwui.so (SkDrawable::draw(SkCanvas*, SkMatrix const*)+1076) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #03 pc 000000000023caf0  /system/lib64/libhwui.so (android::uirenderer::DisplayListData::draw(SkCanvas*) const+164) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #04 pc 00000000002646f0  /system/lib64/libhwui.so (SkGpuDevice::drawDrawable(SkDrawable*, SkMatrix const*, SkCanvas*)+1100) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #05 pc 000000000023caf0  /system/lib64/libhwui.so (android::uirenderer::DisplayListData::draw(SkCanvas*) const+164) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #06 pc 000000000026457c  /system/lib64/libhwui.so (SkGpuDevice::drawDrawable(SkDrawable*, SkMatrix const*, SkCanvas*)+728) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #07 pc 000000000023caf0  /system/lib64/libhwui.so (android::uirenderer::DisplayListData::draw(SkCanvas*) const+164) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #08 pc 000000000026457c  /system/lib64/libhwui.so (SkGpuDevice::drawDrawable(SkDrawable*, SkMatrix const*, SkCanvas*)+728) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #09 pc 000000000023caf0  /system/lib64/libhwui.so (android::uirenderer::DisplayListData::draw(SkCanvas*) const+164) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #10 pc 000000000026457c  /system/lib64/libhwui.so (SkGpuDevice::drawDrawable(SkDrawable*, SkMatrix const*, SkCanvas*)+728) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #11 pc 000000000023caf0  /system/lib64/libhwui.so (android::uirenderer::DisplayListData::draw(SkCanvas*) const+164) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #12 pc 0000000000286ed0  /system/lib64/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::forceDraw(SkCanvas*)+584) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #13 pc 00000000002f7260  /system/lib64/libhwui.so (android::uirenderer::skiapipeline::SkiaPipeline::renderLayersImpl(android::uirenderer::LayerUpdateQueue const&, bool)+516) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #14 pc 000000000026ff94  /system/lib64/libhwui.so (android::uirenderer::skiapipeline::SkiaPipeline::renderFrame(android::uirenderer::LayerUpdateQueue const&, SkRect const&, std::__1::vector<android::sp<android::uirenderer::RenderNode>, std::__1::allocator<android::sp<android::uirenderer::RenderNode>>> const&, bool, android::uirenderer::Rect const&, sk_sp<SkSurface>, SkMatrix const&)+120) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #15 pc 000000000026fbf0  /system/lib64/libhwui.so (android::uirenderer::skiapipeline::SkiaOpenGLPipeline::draw(android::uirenderer::renderthread::Frame const&, SkRect const&, SkRect const&, android::uirenderer::LightGeometry const&, android::uirenderer::LayerUpdateQueue*, android::uirenderer::Rect const&, bool, android::uirenderer::LightInfo const&, std::__1::vector<android::sp<android::uirenderer::RenderNode>, std::__1::allocator<android::sp<android::uirenderer::RenderNode>>> const&, android::uirenderer::FrameInfoVisualizer*)+388) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #16 pc 00000000002d639c  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::draw()+720) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #17 pc 00000000002d5554  /system/lib64/libhwui.so (_ZNSt3__110__function6__funcIZN7android10uirenderer12renderthread13DrawFrameTask11postAndWaitEvE3$_0NS_9allocatorIS6_EEFvvEEclEv$c303f2d2360db58ed70a2d0ac7ed911b+380) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #18 pc 00000000002e00d4  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+228) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #19 pc 00000000002dfdbc  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+584) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #20 pc 00000000000135f0  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+328) (BuildId: fd6cd7b199f704af2f5fadc967b57199)
2021-01-30 18:05:34.507 6086-6086/? A/DEBUG:       #21 pc 00000000000e6890  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: e55e6e4c631509598633769798683023)
2021-01-30 18:05:34.507 6086-6086/? A/DEBUG:       #22 pc 0000000000084b6c  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: e55e6e4c631509598633769798683023)
2021-01-30 18:05:34.572 2654-2654/? D/KeyguardUpdateMonitor: received broadcast android.intent.action.BATTERY_CHANGED
2021-01-30 18:05:34.574 1526-1630/? W/AlarmManager: Unrecognized alarm listener com.android.server.b@af657e4
2021-01-30 18:05:34.854 1192-1192/? E//system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_03
2021-01-30 18:05:34.855 1526-6090/? I/DropBoxManagerService: add tag=data_app_native_crash isTagEnabled=true flags=0x2
2021-01-30 18:05:34.855 1526-6089/? W/ActivityTaskManager:   Force finishing activity com.quizizz_mobile/.MainActivity
2021-01-30 18:05:34.856 1526-6090/? D/FrameworkEventCollector: recordAppIssue PN: com.quizizz_mobile
2021-01-30 18:05:34.856 1526-6089/? D/OpQuickReply: setQuickReplyResumed focusedApp AppWindowToken{42cad9 token=Token{bd7e120 ActivityRecord{46bd823 u0 net.oneplus.launcher/.Launcher t778}}} pkgName net.oneplus.launcher
2021-01-30 18:05:34.857 1526-6089/? D/ActivityTrigger: ActivityTrigger activityPauseTrigger 
2021-01-30 18:05:34.858 1526-6245/? D/cpe: OS Event: crash

The crash looks something like that at least in my case /system/lib64/libhwui.so (SkSurface::getCanvas()+16) was the reason for crash.

This comment helped me to resolve this crash - https://github.com/software-mansion/react-native-screens/issues/105#issuecomment-664353593

Basically there is an issue with react-native-webview adding androidHardwareAccelerationDisabled={true} to your webview should stop this crash. At least the one I’ve mentioned above. I’ve tested it and it did stop the app from crashing.

Same issue here, very frustrating.

What i have found out that almost all of the crashes in my case is happening in Redmi/Mi Devices.

We experienced the same crash after upgrade targetSdk from 28 to 29.

We are on RN 0.59.10 and currently have difficulties to upgrade RN version.

Most crashes happened on app start. Our crash stack is:

Crashed: Thread : SIGSEGV 0x0000000000000010 #00 pc 0x75c6647748 libjsc.so #01 pc 0x75c6693fe8 libjsc.so #02 pc 0x76cd285314 libc.so

Anyone know how to solve this? @wangchongwei did you find a solution?

About 5% of my users experience this crash sometimes. And I also could not reproduce it. But recently, when a user contacted our technical support, some employees managed to do it. A crash occurs when uploading several images (more than 4-5) from the device to our server. For loading, we use the image-crop-picker, form the data from it into FormData and send it to the server using axios. For 5-6 photos in a row, the application simply crashes, and this crash comes to crashlytic. Nevertheless, the crash is reproduced not on all devices, but it definitely happens on Xiaomi Mi A2, Samsung Galaxy S20. I still can’t reproduce on my device (redmi note8 pro), but hopefully it helps someone here to reproduce.

react-native: 0.63.4 with Hermes engine.

This bug is happening to some of my users, 100% HUAWEI phones, and android 9-10

libc abort
libc pthread_once
libc <unknown>
libc pthread_mutex_lock
libc++ std::__1::mutex::lock
libandroid AAssetManager_open
libreactnativejni facebook::react::JniJSModulesUnbundle::getModule
libjscexecutor facebook::react::RAMBundleRegistry::getModule
libjscexecutor facebook::react::JSIExecutor::nativeRequire

Hi. We’ve started to get the same crash in crashlytics after releasing new version with target sdk set to 29 (before it was 28). Effecting mainly Android 10 (80% of all crashes) and Android 9 (15% of all crashes) devices. From the logs it seems like a lot of them are happening on the startup. But quite few at random time.

We’ve tried to reproduce it on different devices and emulators - no luck.

Hermes is disabled, running react-native@0.61.5.

Any Update on this getting the same error after integrating React Native into our native android project? Not able to reproduce this every time in production users are facing this, which happened on my device once. Scratching my head for the last week but no clue. Please help 🙏 .

Crashed: Thread: SIGABRT 0x0000000000000000 #00 pc 0x831b0 libc.so (BuildId: 6b76c2818decbeeffb452dac42dbc626) #01 pc 0x83180 libc.so (BuildId: 6b76c2818decbeeffb452dac42dbc626) #02 pc 0x4b988c libart.so (BuildId: d959f7764f0c7e197333334aa9fc1681) #03 pc 0xb458 libbase.so (BuildId: 4ff6e3fcb2702e6b445e1f4b073ca3be) #04 pc 0x3784dc libart.so (BuildId: d959f7764f0c7e197333334aa9fc1681) #05 pc 0x38a03c libart.so (BuildId: d959f7764f0c7e197333334aa9fc1681) #06 pc 0x2681ac libreanimated.so (BuildId: b33f7f3a989aeba7d50079f8a75d97ebc6e5cdb6) #07 pc 0x26428c libreanimated.so (BuildId: b33f7f3a989aeba7d50079f8a75d97ebc6e5cdb6) #08 pc 0x2868c8 libreanimated.so (BuildId: b33f7f3a989aeba7d50079f8a75d97ebc6e5cdb6) #09 pc 0x2b161c libreanimated.so (BuildId: b33f7f3a989aeba7d50079f8a75d97ebc6e5cdb6) #10 pc 0x2b1564 libreanimated.so (BuildId: b33f7f3a989aeba7d50079f8a75d97ebc6e5cdb6) #11 pc 0x2b1478 libreanimated.so (BuildId: b33f7f3a989aeba7d50079f8a75d97ebc6e5cdb6) #12 pc 0x2b13e4 libreanimated.so (BuildId: b33f7f3a989aeba7d50079f8a75d97ebc6e5cdb6) #13 pc 0x2af53c libreanimated.so (BuildId: b33f7f3a989aeba7d50079f8a75d97ebc6e5cdb6) #14 pc 0x1ac920 libreanimated.so (BuildId: b33f7f3a989aeba7d50079f8a75d97ebc6e5cdb6) #15 pc 0x1746a4 libreanimated.so (BuildId: b33f7f3a989aeba7d50079f8a75d97ebc6e5cdb6) #16 pc 0x17460c libreanimated.so (BuildId: b33f7f3a989aeba7d50079f8a75d97ebc6e5cdb6) #17 pc 0x1b25a8 libreanimated.so (BuildId: b33f7f3a989aeba7d50079f8a75d97ebc6e5cdb6) #18 pc 0x2d6aac libreanimated.so (BuildId: b33f7f3a989aeba7d50079f8a75d97ebc6e5cdb6) #19 pc 0x2d69e8 libreanimated.so (BuildId: b33f7f3a989aeba7d50079f8a75d97ebc6e5cdb6) #20 pc 0x2d68d4 libreanimated.so (BuildId: b33f7f3a989aeba7d50079f8a75d97ebc6e5cdb6) #21 pc 0x2d6820 libreanimated.so (BuildId: b33f7f3a989aeba7d50079f8a75d97ebc6e5cdb6) #22 pc 0x2d4994 libreanimated.so (BuildId: b33f7f3a989aeba7d50079f8a75d97ebc6e5cdb6) #23 pc 0x25230 libhermes_executor.so (BuildId: e687d2aba5fbc268) #24 pc 0x7dcbc libhermes.so (BuildId: bfc3354f8b4e76ab0d2380931fc7ee910123118f) #25 pc 0x7d634 libhermes.so (BuildId: bfc3354f8b4e76ab0d2380931fc7ee910123118f) #26 pc 0x840d0 libhermes.so (BuildId: bfc3354f8b4e76ab0d2380931fc7ee910123118f) #27 pc 0x94eb4 libhermes.so (BuildId: bfc3354f8b4e76ab0d2380931fc7ee910123118f) #28 pc 0x966c0 libhermes.so (BuildId: bfc3354f8b4e76ab0d2380931fc7ee910123118f) #29 pc 0x95ed0 libhermes.so (BuildId: bfc3354f8b4e76ab0d2380931fc7ee910123118f) #30 pc 0xc9f24 libhermes.so (BuildId: bfc3354f8b4e76ab0d2380931fc7ee910123118f) #31 pc 0x71e6c libhermes.so (BuildId: bfc3354f8b4e76ab0d2380931fc7ee910123118f) #32 pc 0x71cc4 libhermes.so (BuildId: bfc3354f8b4e76ab0d2380931fc7ee910123118f) #33 pc 0x72d90 libhermes.so (BuildId: bfc3354f8b4e76ab0d2380931fc7ee910123118f) #34 pc 0x2666c libhermes_executor.so (BuildId: e687d2aba5fbc268) #35 pc 0xaa6e8 libreactnativejni.so (BuildId: 14ee6efbdde7d22c) #36 pc 0xab9e4 libreactnativejni.so (BuildId: 14ee6efbdde7d22c) #37 pc 0x80f74 libreactnativejni.so (BuildId: 14ee6efbdde7d22c) #38 pc 0x15e84 libfbjni.so (BuildId: 27496b9e5551bff5c79496b936b663bf8868c68b) #39 pc 0x15dfc libfbjni.so (BuildId: 27496b9e5551bff5c79496b936b663bf8868c68b) #40 pc 0x15db0 libfbjni.so (BuildId: 27496b9e5551bff5c79496b936b663bf8868c68b) #41 pc 0x75196c boot-framework.oat (BuildId: 1bd20e67c28e6056fc13f44fcec213c008cd3095) #42 pc 0x7af923ad74 #43 pc 0x7550f8 boot-framework.oat (BuildId: 1bd20e67c28e6056fc13f44fcec213c008cd3095) #44 pc 0x1375b8 libart.so (BuildId: d959f7764f0c7e197333334aa9fc1681) #45 pc 0x14600c libart.so (BuildId: d959f7764f0c7e197333334aa9fc1681) #46 pc 0x2e370c libart.so (BuildId: d959f7764f0c7e197333334aa9fc1681) #47 pc 0x7af9af1884 #48 pc 0x2de96c libart.so (BuildId: d959f7764f0c7e197333334aa9fc1681) #49 pc 0x7afa0e8b9e #50 pc 0x5a3e2c libart.so (BuildId: d959f7764f0c7e197333334aa9fc1681) #51 pc 0x5a882c libart.so (BuildId: d959f7764f0c7e197333334aa9fc1681) #52 pc 0x5ccffc libart.so (BuildId: d959f7764f0c7e197333334aa9fc1681) #53 pc 0x12e0fc libart.so (BuildId: d959f7764f0c7e197333334aa9fc1681) #54 pc 0x7afa0e8b9e #55 pc 0x131994 libart.so (BuildId: d959f7764f0c7e197333334aa9fc1681) #56 pc 0x5ccffc libart.so (BuildId: d959f7764f0c7e197333334aa9fc1681) #57 pc 0x7afa661f55 #58 pc 0x2e84e4 libart.so (BuildId: d959f7764f0c7e197333334aa9fc1681) #59 pc 0x2b4a20 libart.so (BuildId: d959f7764f0c7e197333334aa9fc1681) #60 pc 0x5ccffc libart.so (BuildId: d959f7764f0c7e197333334aa9fc1681) #61 pc 0x7afa661f55 #62 pc 0x5ccffc libart.so (BuildId: d959f7764f0c7e197333334aa9fc1681) #63 pc 0x7afa661f55

same here, that’s my app/build.gradle file (about the paths: we are using monorepo)

react native: 0.63.3

apply plugin: "com.android.application"
apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle"
apply plugin: 'io.fabric'

import com.android.build.OutputFile

/**
 * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
 * and bundleReleaseJsAndAssets).
 * These basically call `react-native bundle` with the correct arguments during the Android build
 * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
 * bundle directly from the development server. Below you can see all the possible configurations
 * and their defaults. If you decide to add a configuration block, make sure to add it before the
 * `apply from: "../../node_modules/react-native/react.gradle"` line.
 *
 * project.ext.react = [
 *   // the name of the generated asset file containing your JS bundle
 *   bundleAssetName: "index.android.bundle",
 *
 *   // the entry file for bundle generation. If none specified and
 *   // "index.android.js" exists, it will be used. Otherwise "index.js" is
 *   // default. Can be overridden with ENTRY_FILE environment variable.
 *   entryFile: "index.android.js",
 *
 *   // https://reactnative.dev/docs/performance#enable-the-ram-format
 *   bundleCommand: "ram-bundle",
 *
 *   // whether to bundle JS and assets in debug mode
 *   bundleInDebug: false,
 *
 *   // whether to bundle JS and assets in release mode
 *   bundleInRelease: true,
 *
 *   // whether to bundle JS and assets in another build variant (if configured).
 *   // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
 *   // The configuration property can be in the following formats
 *   //         'bundleIn${productFlavor}${buildType}'
 *   //         'bundleIn${buildType}'
 *   // bundleInFreeDebug: true,
 *   // bundleInPaidRelease: true,
 *   // bundleInBeta: true,
 *
 *   // whether to disable dev mode in custom build variants (by default only disabled in release)
 *   // for example: to disable dev mode in the staging build type (if configured)
 *   devDisabledInStaging: true,
 *   // The configuration property can be in the following formats
 *   //         'devDisabledIn${productFlavor}${buildType}'
 *   //         'devDisabledIn${buildType}'
 *
 *   // the root of your project, i.e. where "package.json" lives
 *   root: "../../",
 *
 *   // where to put the JS bundle asset in debug mode
 *   jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
 *
 *   // where to put the JS bundle asset in release mode
 *   jsBundleDirRelease: "$buildDir/intermediates/assets/release",
 *
 *   // where to put drawable resources / React Native assets, e.g. the ones you use via
 *   // require('./image.png')), in debug mode
 *   resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
 *
 *   // where to put drawable resources / React Native assets, e.g. the ones you use via
 *   // require('./image.png')), in release mode
 *   resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
 *
 *   // by default the gradle tasks are skipped if none of the JS files or assets change; this means
 *   // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
 *   // date; if you have any other folders that you want to ignore for performance reasons (gradle
 *   // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
 *   // for example, you might want to remove it from here.
 *   inputExcludes: ["android/**", "ios/**"],
 *
 *   // override which node gets called and with what additional arguments
 *   nodeExecutableAndArgs: ["node"],
 *
 *   // supply additional arguments to the packager
 *   extraPackagerArgs: []
 * ]
 */

project.ext.react = [
    entryFile: "apps/al-wakrah/index.js",
    root: "../../../../",
    enableHermes: true,  // clean and rebuild if changing
    hermesCommand: "../../../../node_modules/hermes-engine/%OS-BIN%/hermesc",
]

project.ext {
  set('react-native', [
    versions: [
      // Overriding Library SDK Versions
      firebase: [
        bom: "20.1.0",
        messaging: "20.1.0"
      ],
    ],
  ])
}

apply from: "../../../../node_modules/react-native/react.gradle"

/**
 * Set this to true to create two separate APKs instead of one:
 *   - An APK that only works on ARM devices
 *   - An APK that only works on x86 devices
 * The advantage is the size of the APK is reduced by about 4MB.
 * Upload all the APKs to the Play Store and people will download
 * the correct one based on the CPU architecture of their device.
 */
def enableSeparateBuildPerCPUArchitecture = false

/**
 * Run Proguard to shrink the Java bytecode in release builds.
 */
def enableProguardInReleaseBuilds = false



/**
 * The preferred build flavor of JavaScriptCore.
 *
 * For example, to use the international variant, you can use:
 * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
 *
 * The international variant includes ICU i18n library and necessary data
 * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
 * give correct results when using with locales other than en-US.  Note that
 * this variant is about 6MiB larger per architecture than default.
 */
def jscFlavor = 'org.webkit:android-jsc:+'

/**
 * Whether to enable the Hermes VM.
 *
 * This should be set on project.ext.react and mirrored here.  If it is not set
 * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode
 * and the benefits of using Hermes will therefore be sharply reduced.
 */
def enableHermes = project.ext.react.get("enableHermes", false);

android {
    compileSdkVersion rootProject.ext.compileSdkVersion

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    defaultConfig {
        applicationId "br.com.votorantim.votorantim.jsmpro"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode 270
        versionName "4.20.1"
        multiDexEnabled true
        resValue "string", "versionCode", "${defaultConfig.versionCode}"
        resValue "string", "versionName", "${defaultConfig.versionName}"

        ndk {
          abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'
        }
        missingDimensionStrategy 'react-native-camera', 'general'

        setProperty("archivesBaseName", "alwakrah.v" + versionName + "(" + versionCode + ")")
    }

    dexOptions {
       javaMaxHeapSize "3g"
    }
    splits {
        abi {
            reset()
            enable enableSeparateBuildPerCPUArchitecture
            universalApk false  // If true, also generate a universal APK
            include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
        }
    }
    signingConfigs {
        debug {
            storeFile file('debug.keystore')
            storePassword 'android'
            keyAlias 'androiddebugkey'
            keyPassword 'android'
        }

       release {
        storeFile file(JSM_RELEASE_STORE_FILE)
        storePassword JSM_RELEASE_STORE_PASSWORD
        keyAlias JSM_RELEASE_KEY_ALIAS
        keyPassword JSM_RELEASE_KEY_PASSWORD
      }
    }
    buildTypes {
        debug {
            signingConfig signingConfigs.debug
            applicationIdSuffix ".debug"
        }
        release {
            // Caution! In production, you need to generate your own keystore file.
            // see https://facebook.github.io/react-native/docs/signed-apk-android.
            signingConfig signingConfigs.release
            minifyEnabled enableProguardInReleaseBuilds
            proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
        }
    }
    // applicationVariants are e.g. debug, release
    applicationVariants.all { variant ->
        variant.outputs.each { output ->
            // For each separate APK per architecture, set a unique version code as described here:
            // https://developer.android.com/studio/build/configure-apk-splits.html
            def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
            def abi = output.getFilter(OutputFile.ABI)
            if (abi != null) {  // null for the universal-debug, universal-release variants
                output.versionCodeOverride =
                        versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
            }
        }
    }

    packagingOptions {
      pickFirst '**/x86/libc++_shared.so'
      pickFirst '**/x86/libjsc.so'
      pickFirst '**/x86_64/libjsc.so'
      pickFirst '**/arm64-v8a/libjsc.so'
      pickFirst '**/arm64-v8a/libc++_shared.so'
      pickFirst '**/x86_64/libc++_shared.so'
      pickFirst '**/armeabi-v7a/libc++_shared.so'
      pickFirst '**/armeabi-v7a/libjsc.so'
    }
}

dependencies {
    implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
    implementation fileTree(dir: "libs", include: ["*.jar"])
    //noinspection GradleDynamicVersion
    implementation "com.facebook.react:react-native:+"  // From node_modules
    implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
    implementation "com.google.android.gms:play-services-base:16.1.0"
    implementation 'org.conscrypt:conscrypt-android:2.1.0'

    debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
      exclude group:'com.facebook.fbjni'
    }
    debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
        exclude group:'com.facebook.flipper'
    }
    debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") {
        exclude group:'com.facebook.flipper'
    }
    if (enableHermes) {
      def hermesPath = "../../../../node_modules/hermes-engine/android/";
      debugImplementation files(hermesPath + "hermes-debug.aar")
      releaseImplementation files(hermesPath + "hermes-release.aar")
    } else {
      implementation jscFlavor
    }

    implementation 'com.google.firebase:firebase-analytics:17.2.0'
    implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
    def multidex_version = "2.0.1"
    implementation 'androidx.multidex:multidex:$multidex_version'
}

// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
    from configurations.compile
    into 'libs'
}

apply from: file("../../../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project, "../../..")
apply plugin: 'com.google.gms.google-services'

apply from: "../../../../node_modules/react-native-vector-icons/fonts.gradle"

Captura de Tela 2021-01-14 às 08 33 43 Captura de Tela 2021-01-14 às 08 33 20

we are using the react native 63 version and getting the crashes on crashlytics. libc.so missing. image

Hello everyone! In general, for about half a year I encountered similar errors and even wrote to the Hermes team. As it turned out, all errors are different, and each one needs to be dealt with separately. But given that Hermes does not have native logs at least until RN 0.63.4, this is impossible.

The problem was solved by replacing the engine with a V8 from Google. I have been testing for 2 days, for 6000 users, every single error has been eliminated. And no new ones have even appeared) So anyone interested can try. The transition is as simple as possible and did not cause any problems. Is that slightly increased the size of the universal apk. But with aab, the size for the user hasn’t changed. (https://github.com/Kudo/react-native-v8) By the way, by comparison, it is even better in terms of RAM consumption!

P.S. And sorry for my bad english.

switching to hermes will not solve the issue i have hermes enabled but still i see this crash, hope this gets addressed in next update.

I see it’s mostly happening on Android 7.0 or 7.1.1

@haozhutw Hi. We have been using v8 for more than a year, so far there have been no problems. Debugging via chrome works. The only thing is that when a new version of RN is released, you have to wait several days for a new version of v8 for it and, as mentioned above, a slightly increased size of the application. But otherwise, we are completely satisfied with the work.

@JerakRus Thanks for letting me know! I’ve also switched to v8-android-nointl. No crashes so far! Performance is good. The app size increased by only a few megabytes (using app bundle).

react: 16.11.0 react-native: 0.62.2 react-native-firebase/analytics: 7.6.10 react-native-firebase/app: 8.4.7 react-native-firebase/crashlytics: 10.4.1

libc.so unknown

Screen Shot 2021-01-11 at 1 41 04 PM

@amit-harjani Did you find solution?

@RodolfoGS I’m seeing the same error, did upgrading those help?

We are also getting the same issues. I am adding here logs from the bugsnag:

Unhandled error SIGABRT: Abort program

Location /apex/com.android.runtime/lib64/bionic/libc.so:536816 - abort

Here is the bugsnag logs for the same:

0 libc.so +0x830f0 abort 1 libc.so +0xe7edc __fortify_fatal(char const*, …) 2 libc.so +0xe757c HandleUsingDestroyedMutex(pthread_mutex_t*, char const*) 3 libc.so +0xe7430 pthread_mutex_lock 4 libc++_shared.so +0xc5d78 std::__ndk1::mutex::lock() 5 librealm.so +0x3b0614 0x7c753bb618 6 libhermes_executor.so +0x24740 facebook::jsi::DecoratedHostObject::~DecoratedHostObject() 7 libhermes.so +0x74a58 0x7d510c0a5c 8 libhermes.so +0x7f298 0x7d510cb29c 9 libhermes.so +0x1301fc 0x7d5117c200 10 libhermes.so +0x131b88 0x7d5117db8c 11 libhermes.so +0x131420 0x7d5117d424 12 libhermes.so +0x131290 0x7d5117d294 13 libhermes.so +0x7d5f8 0x7d510c95fc 14 libhermes.so +0x7af04 0x7d510c6f08 15 libhermes_executor.so +0x23de4 non-virtual thunk to facebook::jsi::RuntimeDecorator<facebook::jsi::Runtime, facebook::jsi::Runtime>::collectGarbage(std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >) 16 libhermes_executor.so +0x27664 facebook::react::JSIExecutor::handleMemoryPressure(int) 17 libreactnativejni.so +0xb49f0 0x7d50cd09f4 18 libreactnativejni.so +0x89c14 0x7d50ca5c18 19 libfbjni.so +0x17eac facebook::jni::detail::MethodWrapper<void (facebook::jni::JNativeRunnable:😃(), &facebook::jni::JNativeRunnable::run, facebook::jni::JNativeRunnable, void>::dispatch(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<facebook::jni::JNativeRunnable, facebook::jni::JRunnable>::JavaPart, facebook::jni::JRunnable, void>::_javaobject>) 20 libfbjni.so +0x17dfc facebook::jni::detail::FunctionWrapper<void ()(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<facebook::jni::JNativeRunnable, facebook::jni::JRunnable>::JavaPart, facebook::jni::JRunnable, void>::_javaobject>), facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<facebook::jni::JNativeRunnable, facebook::jni::JRunnable>::JavaPart, facebook::jni::JRunnable, void>::_javaobject*, void>::call(_JNIEnv*, _jobject*, void ()(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<facebook::jni::JNativeRunnable, facebook::jni::JRunnable>::JavaPart, facebook::jni::JRunnable, void>::_javaobject>)) 21 base.odex +0x16b428 art_jni_trampoline 22 boot-framework.oat +0x734e58 android.os.Handler.dispatchMessage 23 base.odex +0x2052f0 com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage 24 boot-framework.oat +0x73846c android.os.Looper.loop 25 base.odex +0x205518 com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run 26 boot.oat +0x1a5164 java.lang.Thread.run 27 libart.so +0x137330 art_quick_invoke_stub 28 libart.so +0x145fe8 art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*) 29 libart.so +0x4b13f0 art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*) 30 libart.so +0x4b2504 art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*) 31 libart.so +0x4f2ec0 art::Thread::CreateCallback(void*) 32 libc.so +0xe689c __pthread_start(void*) 33 libc.so +0x84b68 __start_thread

React Native version 0.73.1

Platforms Android

JavaScript runtime Hermes

Workflow React Native

Architecture Paper (Old Architecture)

Build type Release app & production bundle

Device Real device

Device model brand: Castles manufacturer Castles model S1E2L osName android osVersion 10 runtimeVersions { “androidApiLevel”: “29”, “osBuild”: “1.4.1.129511” }

We also get this crash sometimes and there is no WebView in our app.

You can add a patch for react-native-youtube-iframe where it is trying to use webview

@marf Can you try this in your webview component <WebView … androidLayerType=“hardware” />

Also, try to disable animation when you navigate to page with a webview component

Couldn’t found any solution yet, here are the crashlytics logs. Crashed: Thread: SIGABRT 0x0000000000000000 #00 pc 0x531f4 libc.so (BuildId: dc4001c2ef2dfc23467040797a96840c) #01 pc 0x531c4 libc.so (BuildId: dc4001c2ef2dfc23467040797a96840c) #02 pc 0x6f365c libart.so (BuildId: 4c9b59b74ca9272f710a71137164c349) #03 pc 0x16ea8 libbase.so (BuildId: 420d56eac27a210c92900f3ddb760c86) #04 pc 0x16450 libbase.so (BuildId: 420d56eac27a210c92900f3ddb760c86) #05 pc 0x37da5c libart.so (BuildId: 4c9b59b74ca9272f710a71137164c349) #06 pc 0x372dc0 libart.so (BuildId: 4c9b59b74ca9272f710a71137164c349) #07 pc 0x2ac5d8 libart.so (BuildId: 4c9b59b74ca9272f710a71137164c349) #08 pc 0x3731b0 libart.so (BuildId: 4c9b59b74ca9272f710a71137164c349) #09 pc 0x36d324 libart.so (BuildId: 4c9b59b74ca9272f710a71137164c349) #10 pc 0x386148 libart.so (BuildId: 4c9b59b74ca9272f710a71137164c349) #11 pc 0x3778e4 libart.so (BuildId: 4c9b59b74ca9272f710a71137164c349) #12 pc 0x3a0b84 libart.so (BuildId: 4c9b59b74ca9272f710a71137164c349) #13 pc 0x39e330 libart.so (BuildId: 4c9b59b74ca9272f710a71137164c349) #14 pc 0x5817f0 libart.so (BuildId: 4c9b59b74ca9272f710a71137164c349) #15 pc 0x5816f8 libart.so (BuildId: 4c9b59b74ca9272f710a71137164c349) #16 pc 0x48476c libart.so (BuildId: 4c9b59b74ca9272f710a71137164c349) #17 pc 0x70f89504 #18 pc 0x711e918653

I tried disabling androidHardwareAccelerationDisabled by setting it to true and still the crashes happen

@jocoders When I made this comment the webview was on 10.9.2, androidHardwareAccelerationDisabled isn’t deprecated in that version, either downgrade to that version or use androidLayerType as suggested here - https://github.com/react-native-webview/react-native-webview/blob/master/docs/Reference.md#androidhardwareaccelerationdisabled

Dear SurajMDurgad, but which value of the new property androidLayerType should I use? hardware? Will it resolve the issue?

@jocoders When I made this comment the webview was on 10.9.2, androidHardwareAccelerationDisabled isn’t deprecated in that version, either downgrade to that version or use androidLayerType as suggested here - https://github.com/react-native-webview/react-native-webview/blob/master/docs/Reference.md#androidhardwareaccelerationdisabled

Finally I was able to reproduce the crash on one of my test device -

  --------- beginning of crash
2021-01-30 18:05:34.282 4728-5593/com.quizizz_mobile A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x28 in tid 5593 (RenderThread), pid 4728 (.quizizz_mobile)
2021-01-30 18:05:34.438 6086-6086/? I/crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone
2021-01-30 18:05:34.439 1192-1192/? I//system/bin/tombstoned: received crash request for pid 5593
2021-01-30 18:05:34.439 6086-6086/? I/crash_dump64: performing dump of process 4728 (target tid = 5593)
2021-01-30 18:05:34.461 6086-6086/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2021-01-30 18:05:34.461 6086-6086/? A/DEBUG: Build fingerprint: 'OnePlus/OnePlus5T/OnePlus5T:10/QKQ1.191014.012/2010292059:user/release-keys'
2021-01-30 18:05:34.461 6086-6086/? A/DEBUG: Revision: '0'
2021-01-30 18:05:34.461 6086-6086/? A/DEBUG: ABI: 'arm64'
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG: Timestamp: 2021-01-30 18:05:34+0530
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG: pid: 4728, tid: 5593, name: RenderThread  >>> com.quizizz_mobile <<<
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG: uid: 10377
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x28
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG: Cause: null pointer dereference
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG:     x0  0000000000000000  x1  00000078032e025c  x2  0000000000000002  x3  0000007702bdd2f8
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG:     x4  0000000000000000  x5  0000007702bdd2c0  x6  0000000000000000  x7  000000780309ebcc
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG:     x8  0000000000000000  x9  0000000000000000  x10 0000000000000046  x11 0000000000000000
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG:     x12 0000000000000000  x13 0000000000000000  x14 000000780309f241  x15 00000078032f9620
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG:     x16 0000007803669338  x17 00000078032e5370  x18 00000077003da000  x19 0000000000000000
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG:     x20 00000076eef99188  x21 0000000000000000  x22 0000000000000004  x23 0000000000000440
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG:     x24 0000000000000280  x25 0000007702be5020  x26 0000007803664658  x27 0000000080003816
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG:     x28 0000000000000016  x29 0000007702bdd2e0
2021-01-30 18:05:34.462 6086-6086/? A/DEBUG:     sp  0000007702bdd2d0  lr  00000078033833f0  pc  00000078032e5380
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG: backtrace:
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #00 pc 00000000002d5380  /system/lib64/libhwui.so (SkSurface::getCanvas()+16) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #01 pc 00000000003733ec  /system/lib64/libhwui.so (android::uirenderer::skiapipeline::GLFunctorDrawable::onDraw(SkCanvas*)+1136) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #02 pc 000000000036f044  /system/lib64/libhwui.so (SkDrawable::draw(SkCanvas*, SkMatrix const*)+1076) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #03 pc 000000000023caf0  /system/lib64/libhwui.so (android::uirenderer::DisplayListData::draw(SkCanvas*) const+164) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #04 pc 00000000002646f0  /system/lib64/libhwui.so (SkGpuDevice::drawDrawable(SkDrawable*, SkMatrix const*, SkCanvas*)+1100) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #05 pc 000000000023caf0  /system/lib64/libhwui.so (android::uirenderer::DisplayListData::draw(SkCanvas*) const+164) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #06 pc 000000000026457c  /system/lib64/libhwui.so (SkGpuDevice::drawDrawable(SkDrawable*, SkMatrix const*, SkCanvas*)+728) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #07 pc 000000000023caf0  /system/lib64/libhwui.so (android::uirenderer::DisplayListData::draw(SkCanvas*) const+164) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #08 pc 000000000026457c  /system/lib64/libhwui.so (SkGpuDevice::drawDrawable(SkDrawable*, SkMatrix const*, SkCanvas*)+728) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #09 pc 000000000023caf0  /system/lib64/libhwui.so (android::uirenderer::DisplayListData::draw(SkCanvas*) const+164) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #10 pc 000000000026457c  /system/lib64/libhwui.so (SkGpuDevice::drawDrawable(SkDrawable*, SkMatrix const*, SkCanvas*)+728) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #11 pc 000000000023caf0  /system/lib64/libhwui.so (android::uirenderer::DisplayListData::draw(SkCanvas*) const+164) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #12 pc 0000000000286ed0  /system/lib64/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::forceDraw(SkCanvas*)+584) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #13 pc 00000000002f7260  /system/lib64/libhwui.so (android::uirenderer::skiapipeline::SkiaPipeline::renderLayersImpl(android::uirenderer::LayerUpdateQueue const&, bool)+516) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #14 pc 000000000026ff94  /system/lib64/libhwui.so (android::uirenderer::skiapipeline::SkiaPipeline::renderFrame(android::uirenderer::LayerUpdateQueue const&, SkRect const&, std::__1::vector<android::sp<android::uirenderer::RenderNode>, std::__1::allocator<android::sp<android::uirenderer::RenderNode>>> const&, bool, android::uirenderer::Rect const&, sk_sp<SkSurface>, SkMatrix const&)+120) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #15 pc 000000000026fbf0  /system/lib64/libhwui.so (android::uirenderer::skiapipeline::SkiaOpenGLPipeline::draw(android::uirenderer::renderthread::Frame const&, SkRect const&, SkRect const&, android::uirenderer::LightGeometry const&, android::uirenderer::LayerUpdateQueue*, android::uirenderer::Rect const&, bool, android::uirenderer::LightInfo const&, std::__1::vector<android::sp<android::uirenderer::RenderNode>, std::__1::allocator<android::sp<android::uirenderer::RenderNode>>> const&, android::uirenderer::FrameInfoVisualizer*)+388) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #16 pc 00000000002d639c  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::draw()+720) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #17 pc 00000000002d5554  /system/lib64/libhwui.so (_ZNSt3__110__function6__funcIZN7android10uirenderer12renderthread13DrawFrameTask11postAndWaitEvE3$_0NS_9allocatorIS6_EEFvvEEclEv$c303f2d2360db58ed70a2d0ac7ed911b+380) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #18 pc 00000000002e00d4  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+228) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #19 pc 00000000002dfdbc  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+584) (BuildId: 89872b4824183d6b36a5314bd0e7f303)
2021-01-30 18:05:34.506 6086-6086/? A/DEBUG:       #20 pc 00000000000135f0  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+328) (BuildId: fd6cd7b199f704af2f5fadc967b57199)
2021-01-30 18:05:34.507 6086-6086/? A/DEBUG:       #21 pc 00000000000e6890  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: e55e6e4c631509598633769798683023)
2021-01-30 18:05:34.507 6086-6086/? A/DEBUG:       #22 pc 0000000000084b6c  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: e55e6e4c631509598633769798683023)
2021-01-30 18:05:34.572 2654-2654/? D/KeyguardUpdateMonitor: received broadcast android.intent.action.BATTERY_CHANGED
2021-01-30 18:05:34.574 1526-1630/? W/AlarmManager: Unrecognized alarm listener com.android.server.b@af657e4
2021-01-30 18:05:34.854 1192-1192/? E//system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_03
2021-01-30 18:05:34.855 1526-6090/? I/DropBoxManagerService: add tag=data_app_native_crash isTagEnabled=true flags=0x2
2021-01-30 18:05:34.855 1526-6089/? W/ActivityTaskManager:   Force finishing activity com.quizizz_mobile/.MainActivity
2021-01-30 18:05:34.856 1526-6090/? D/FrameworkEventCollector: recordAppIssue PN: com.quizizz_mobile
2021-01-30 18:05:34.856 1526-6089/? D/OpQuickReply: setQuickReplyResumed focusedApp AppWindowToken{42cad9 token=Token{bd7e120 ActivityRecord{46bd823 u0 net.oneplus.launcher/.Launcher t778}}} pkgName net.oneplus.launcher
2021-01-30 18:05:34.857 1526-6089/? D/ActivityTrigger: ActivityTrigger activityPauseTrigger 
2021-01-30 18:05:34.858 1526-6245/? D/cpe: OS Event: crash

The crash looks something like that at least in my case /system/lib64/libhwui.so (SkSurface::getCanvas()+16) was the reason for crash.

This comment helped me to resolve this crash - software-mansion/react-native-screens#105 (comment)

Basically there is an issue with react-native-webview adding androidHardwareAccelerationDisabled={true} to your webview should stop this crash. At least the one I’ve mentioned above. I’ve tested it and it did stop the app from crashing.

Yeah, it also makes my WebView content invisible…

@chrisglein this actually happened twice when i was not using hermes.

No problem. I’m a bit better with the iOS side of things but still tried to help.