Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔥Crash in libv8.so #22

Open
taschik opened this issue Sep 19, 2019 · 13 comments
Open

🔥Crash in libv8.so #22

taschik opened this issue Sep 19, 2019 · 13 comments

Comments

@taschik
Copy link

taschik commented Sep 19, 2019

Hi,

we rolled out our RN app using v8 and seeing some crashes like the following. Unfortunately, Crashlytics doesn't give us more information so I wanted to ask if anyone has experience with this or seen this before:

Crashed: Thread
0  libv8.so                       0x7da9cf234c (Missing)
1  libv8.so                       0x7da9cf1ccc (Missing)
2  libv8.so                       0x7da9cf1358 (Missing)
3  libv8.so                       0x7da9cf2fcc (Missing)
4  libv8.so                       0x7da9cb2e94 (Missing)
5  libv8.so                       0x7da9cb322c (Missing)
6  libv8.so                       0x7da9cee744 (Missing)
7  libv8.so                       0x7da9c97de4 (Missing)
8  libv8.so                       0x7da9c9591c (Missing)
9  libv8.so                       0x7da9c94200 (Missing)
10 libv8.so                       0x7da9c9d1f0 (Missing)
11 libv8.so                       0x7da9c9d270 (Missing)
12 libv8.so                       0x7da9c74bfc (Missing)
13 libv8.so                       0x7da9ebe5f4 (Missing)
14 libv8.so                       0x7daa2f87c8 (Missing)
15 libc.so                        0x7e4c104c48 (Missing)
16 libutils.so                    0x7e49f9ed48 (Missing)
17 libutils.so                    0x7e49f9ec18 (Missing)
18 libandroid_runtime.so          0x7e497f2688 (Missing)
19 (Missing)                      0x7099299c (Missing)
20 (Missing)                      0x7ffffffb (Missing)
21 (Missing)                      0x135410f4 (Missing)
22 (Missing)                      0x7060034c (Missing)
23 (Missing)                      0x705f98ec (Missing)
24 boot-framework.oat             0x751ca2d0 (Missing)
25 (Missing)                      0x70992c44 (Missing)
26 (Missing)                      0x1354111c (Missing)
27 (Missing)                      0x6fbe3834 (Missing)
28 (Missing)                      0x705dfa1c (Missing)
29 (Missing)                      0x6fb43154 (Missing)
30 (Missing)                      0x6fc27714 (Missing)
31 boot-framework.oat             0x759ba9bc (Missing)
32 (Missing)                      0x708b9384 (Missing)
33 (Missing)                      0x135410f4 (Missing)
34 (Missing)                      0x12cd84fc (Missing)
35 (Missing)                      0x12cd4464 (Missing)
36 (Missing)                      0x135410f4 (Missing)
37 (Missing)                      0x702e67ac (Missing)
38 (Missing)                      0x1354160c (Missing)
39 (Missing)                      0x1354161c (Missing)
40 (Missing)                      0x13540e14 (Missing)
41 (Missing)                      0x12cd4464 (Missing)
42 (Missing)                      0x705b58b4 (Missing)
43 boot-framework.oat             0x749674e8 (Missing)
44 (Missing)                      0x70976b8c (Missing)
45 (Missing)                      0x76efdf68 (Missing)
46 libart.so                      0x7dc7a1964c (Missing)
47 (Missing)                      0x12cd5aac (Missing)
48 (Missing)                      0x12cd4734 (Missing)
49 libart.so                      0x7dc7591ce8 (Missing)
50 (Missing)                      0x76efdf68 (Missing)
51 (Missing)                      0x70976b8c (Missing)
52 (Missing)                      0x76efdf68 (Missing)
53 (Missing)                      0x6fc5e984 (Missing)
54 (Missing)                      0x6fc5e984 (Missing)
55 (Missing)                      0x702e67ac (Missing)
56 (Missing)                      0x70976b8c (Missing)
57 (Missing)                      0x70976b8c (Missing)
58 (Missing)                      0x76efdf68 (Missing)
59 libart.so                      0x7dc791fd7c (Missing)
60 (Missing)                      0x76d59e24 (Missing)
61 (Missing)                      0x702e67ac (Missing)
62 (Missing)                      0x6fc5e984 (Missing)
63 (Missing)                      0x12cd5abc (Missing)
64 (Missing)                      0x702e67ac (Missing)

Affected Device: Xiaomi
Affected OS: Android 9

Our environment is:

System:
    OS: macOS 10.14.6
    CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
    Memory: 804.94 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.5 AI-191.8026.42.35.5791312
    Xcode: 10.3/10G8 - /usr/bin/xcodebuild
  npmPackages:
    react: ^16.8.6 => 16.9.0
    react-native: ^0.60.5 => 0.60.5
  npmGlobalPackages:
    eslint-plugin-react-native: 3.5.0
    react-native-cli: 2.0.1
    react-native-git-upgrade: 0.2.7
@Kudo
Copy link
Owner

Kudo commented Sep 20, 2019

@taschik Since that is native crash, the crash information you provided is not enough for troubleshooting.

Please refer Fabric Crashlytics NDK setup guide to capture native crashes.
https://docs.fabric.io/android/crashlytics/ndk.html
You may still need to upload external debug symbols from libv8.

The debug symbols for libv8 you could get it from:

wget https://registry.npmjs.org/v8-android/-/v8-android-7.5.1.tgz
tar xf v8-android-7.5.1.tgz
tar xf package/dist/lib.unstripped/v8-android/7.5.1/libs.tar.xz
file {armeabi-v7a,arm64-v8a,x86,x86_64}/libv8.so

@taschik
Copy link
Author

taschik commented Oct 1, 2019

Thanks @Kudo! I added Crashlytics NDK but need to wait for a new release and users experiencing the crash to share more details. I will keep you posted.

@Kudo
Copy link
Owner

Kudo commented Oct 2, 2019

Thanks and feel free to let me know if you need any assistance.

@AmandeepSingh06
Copy link

@Kudo We have shifted to v8 from jsc because we were experiencing a lot of crashes. But the same is happening using v8. below is the log

#00 pc 0000000000c31dd8 /data/app/my.app.id-a42vFQTz2lrEJMUnXdYsYA==/lib/arm64/libv8.so
#1 pc 0000000000c3437c /data/app/my.app.id-a42vFQTz2lrEJMUnXdYsYA==/lib/arm64/libv8.so
#2 pc 0000000000c30554 /data/app/my.app.id-a42vFQTz2lrEJMUnXdYsYA==/lib/arm64/libv8.so
#3 pc 0000000000c33070 /data/app/my.app.id-a42vFQTz2lrEJMUnXdYsYA==/lib/arm64/libv8.so
#4 pc 0000000000bf2e94 /data/app/my.app.id-a42vFQTz2lrEJMUnXdYsYA==/lib/arm64/libv8.so (v8::internal::ItemParallelJob::Task::RunInternal()+24)
#5 pc 0000000000a4d660 /data/app/my.app.id-a42vFQTz2lrEJMUnXdYsYA==/lib/arm64/libv8.so (v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread::Run()+56)
#6 pc 0000000000a4a074 /data/app/my.app.id-a42vFQTz2lrEJMUnXdYsYA==/lib/arm64/libv8.so
#7 pc 0000000000067ec4 /system/lib64/libc.so (__pthread_start(void*)+36)
#8 pc 000000000001f2f4 /system/lib64/libc.so (__start_thread+68)

@Kudo
Copy link
Owner

Kudo commented Nov 1, 2019

Thank you @AmandeepSingh06.
From the backtrace, it seems the crash happens at GC.
For GC problem, it is really hard to troubleshoot if there are no reliable reproduce steps.
However, I will try to upgrade and publish new V8 to see if that will overcome the crash issue.

@biomancer
Copy link

biomancer commented Nov 3, 2019

According to our Android vitals that crash is seen only on 3 specific models:
Redmi Note 7 (lavender)
Redmi Note 5 Pro (whyred)
ZTE B2017G (tulip)

image
(there are many more similar crashes on the same 3 models, google does not group it correctly)

I've found related issue https://discuss.cocos2d-x.org/t/cocos-creator-crash-on-device-xiaomi-redmi/47653

Here is the quote from one of the answers:

I got this too. and I gave the feedback to Google and XiaoMi about one year ago, but none of them could help to resolve this crash. There are lots of crashes happen every day in our game.

image

You could also refer to https://bugs.chromium.org/p/v8/issues/detail?id=9034&q=&colspec=ID%20Type%20Status%20Priority%20Owner%20Summary%20HW%20OS%20Component%20Stars
A core developer from Google V8 team said that it’s not a bug of v8, it’s the bug of kernel inside Redmi phone.
It sucks for a year more without any one could help me.
A developer from XiaoMi said that they made some kernel optimization for memory and may probably trigger this issue, he told me to close JIT to avoid this crash on Redmi phone. I did that, but still get tons of these crashes every day.

I am not entirely sure that bug in chromium tracker is the same with ours / the one reported at discuss.cocos2d-x.org, as I see crashes exactly on 3 models I've listed above, and the guy whom I quoted shows screenshot with more affected models, but that looks related

@Kudo
Copy link
Owner

Kudo commented Nov 5, 2019

@biomancer These information is great, I will find a time to take a look.
Do you mind to try newer react-native-v8?
I've disabled JIT for v8-android arm64.

https://github.com/Kudo/v8-android-buildscripts/releases/tag/v7.8.0

Upgrade V8 to 7.8.279.17
Use V8 lite mode for all platforms (including arm64-v8a)
Built by NDK r19c
Breaking Changes
Since V8 did change their embedder API interface, original react-native-v8 will access to non existing symbol and crash.
Please upgrade react-native-v8 to one of these version.

v0.59.10-patch.3
v0.60.6-patch.1
v0.61.1-patch.2
v0.61.2-patch.0
v0.61.3-patch.0
v0.61.4-patch.0

@Kudo
Copy link
Owner

Kudo commented Nov 7, 2019

Please use new version to prevent #29 crash issue.

https://github.com/Kudo/v8-android-buildscripts/releases/tag/v7.8.1

Breaking Changes
Since libv8.so is renamed, this is yet another breaking changes.
Please use one of these react-native-v8 versions.

v0.59.10-patch.4
v0.60.6-patch.2
v0.61.1-patch.3
v0.61.2-patch.1
v0.61.3-patch.1
v0.61.4-patch.1

@biomancer
Copy link

@Kudo we've released an app version with the updated react-native-v8 (react-native-v8@0.60.6-patch.2, v8-android-nointl@7.8.1), that fixed #29, but this issue is not resolved, we continue to see the crashes on these particular devices in Android vitals.

Here are some examples:

Redmi Redmi Note 7 (lavender), Android 9
Report 1 of 2

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.azradio <<<

backtrace:
  #00  pc 000000000001e0d4  /system/lib64/libc.so (memcpy+356)
  #01  pc 000000000052b2e4  /data/app/com.azradio-VSC9zB8Yf7_cbRdi_ug_cQ==/lib/arm64/libv8android.so
  #02  pc 000000000052dad4  /data/app/com.azradio-VSC9zB8Yf7_cbRdi_ug_cQ==/lib/arm64/libv8android.so
  #03  pc 000000000052a178  /data/app/com.azradio-VSC9zB8Yf7_cbRdi_ug_cQ==/lib/arm64/libv8android.so
  #04  pc 000000000052c4e0  /data/app/com.azradio-VSC9zB8Yf7_cbRdi_ug_cQ==/lib/arm64/libv8android.so
  #05  pc 000000000052c224  /data/app/com.azradio-VSC9zB8Yf7_cbRdi_ug_cQ==/lib/arm64/libv8android.so
  #06  pc 00000000004ef644  /data/app/com.azradio-VSC9zB8Yf7_cbRdi_ug_cQ==/lib/arm64/libv8android.so (v8::internal::ItemParallelJob::Task::RunInternal()+28)
  #07  pc 0000000000393aec  /data/app/com.azradio-VSC9zB8Yf7_cbRdi_ug_cQ==/lib/arm64/libv8android.so (v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread::Run()+64)
  #08  pc 0000000000390688  /data/app/com.azradio-VSC9zB8Yf7_cbRdi_ug_cQ==/lib/arm64/libv8android.so
  #09  pc 0000000000090328  /system/lib64/libc.so (__pthread_start(void*)+36)
  #10  pc 0000000000023a28  /system/lib64/libc.so (__start_thread+68)
Xiaomi Redmi Note 5 Pro (whyred), Android 8.1
Report 1 of 1
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.azradio <<<

backtrace:
  #00  pc 000000000052b210  /data/app/com.azradio-5ujwryYLYySIOpk8yW6qXA==/lib/arm64/libv8android.so
  #01  pc 000000000052dad4  /data/app/com.azradio-5ujwryYLYySIOpk8yW6qXA==/lib/arm64/libv8android.so
  #02  pc 000000000052a178  /data/app/com.azradio-5ujwryYLYySIOpk8yW6qXA==/lib/arm64/libv8android.so
  #03  pc 000000000052c4e0  /data/app/com.azradio-5ujwryYLYySIOpk8yW6qXA==/lib/arm64/libv8android.so
  #04  pc 000000000052c224  /data/app/com.azradio-5ujwryYLYySIOpk8yW6qXA==/lib/arm64/libv8android.so
  #05  pc 00000000004ef644  /data/app/com.azradio-5ujwryYLYySIOpk8yW6qXA==/lib/arm64/libv8android.so (v8::internal::ItemParallelJob::Task::RunInternal()+28)
  #06  pc 0000000000393aec  /data/app/com.azradio-5ujwryYLYySIOpk8yW6qXA==/lib/arm64/libv8android.so (v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread::Run()+64)
  #07  pc 0000000000390688  /data/app/com.azradio-5ujwryYLYySIOpk8yW6qXA==/lib/arm64/libv8android.so
  #08  pc 0000000000067ec4  /system/lib64/libc.so (__pthread_start(void*)+36)
  #09  pc 000000000001f2f4  /system/lib64/libc.so (__start_thread+68)

Xiaomi Redmi Note 5 Pro (whyred), Android 9
Report 1 of 1
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.azradio <<<

backtrace:
  #00  pc 000000000052b210  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #01  pc 000000000052a8dc  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #02  pc 000000000052c480  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #03  pc 000000000052c35c  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #04  pc 00000000004ef644  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so (v8::internal::ItemParallelJob::Task::RunInternal()+28)
  #05  pc 00000000004ef9e0  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so (v8::internal::ItemParallelJob::Run()+640)
  #06  pc 0000000000528188  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #07  pc 00000000004d3d24  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #08  pc 00000000004d14c4  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #09  pc 00000000004cff08  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so (v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags)+1056)
  #10  pc 00000000004d95a8  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #11  pc 00000000004d963c  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #12  pc 00000000004b8168  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so (v8::internal::Factory::NewDescriptorArray(int, int, v8::internal::AllocationType)+68)
  #13  pc 0000000000642110  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #14  pc 0000000000623588  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #15  pc 0000000000623308  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so (v8::internal::Map::CopyWithField(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Map>, v8::internal::Handle<v8::internal::Name>, v8::internal::Handle<v8::internal::FieldType>, v8::internal::PropertyAttributes, v8::internal::PropertyConstness, v8::internal::Representation, v8::internal::TransitionFlag)+432)
  #16  pc 0000000000629000  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so (v8::internal::Map::TransitionToDataProperty(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Map>, v8::internal::Handle<v8::internal::Name>, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyAttributes, v8::internal::PropertyConstness, v8::internal::StoreOrigin)+684)
  #17  pc 000000000061dd48  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so (v8::internal::LookupIterator::PrepareTransitionToDataProperty(v8::internal::Handle<v8::internal::JSReceiver>, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyAttributes, v8::internal::StoreOrigin)+204)
  #18  pc 000000000063f6d0  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #19  pc 000000000063ea2c  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so (v8::internal::Object::SetProperty(v8::internal::LookupIterator*, v8::internal::Handle<v8::internal::Object>, v8::internal::StoreOrigin, v8::Maybe<v8::internal::ShouldThrow>)+148)
  #20  pc 0000000000729d90  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so (v8::internal::Runtime::SetObjectProperty(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, v8::internal::StoreOrigin, v8::Maybe<v8::internal::ShouldThrow>)+244)
  #21  pc 000000000072cfdc  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #22  pc 0000000000b668c8  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so

@Kudo
Copy link
Owner

Kudo commented Nov 28, 2019

@biomancer From the crash backtrace, it is the same GC problem again.
Besides the link you shared, I also found another one: https://groups.google.com/forum/#!searchin/v8-dev/ScavengeObject%7Csort:date/v8-dev/o3Prlv_TZVk/nTnEBadYCgAJ

It seems the crash happens on Chromium based browser too.
Unfortunately, there is no update from Chromium and RedMi team.
I am afraid that cannot do anything for the crash in the meantime.

@LiuDeng
Copy link

LiuDeng commented Mar 9, 2020

@Kudo we've released an app version with the updated react-native-v8 (react-native-v8@0.60.6-patch.2, v8-android-nointl@7.8.1), that fixed #29, but this issue is not resolved, we continue to see the crashes on these particular devices in Android vitals.

Here are some examples:

Redmi Redmi Note 7 (lavender), Android 9
Report 1 of 2

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.azradio <<<

backtrace:
  #00  pc 000000000001e0d4  /system/lib64/libc.so (memcpy+356)
  #01  pc 000000000052b2e4  /data/app/com.azradio-VSC9zB8Yf7_cbRdi_ug_cQ==/lib/arm64/libv8android.so
  #02  pc 000000000052dad4  /data/app/com.azradio-VSC9zB8Yf7_cbRdi_ug_cQ==/lib/arm64/libv8android.so
  #03  pc 000000000052a178  /data/app/com.azradio-VSC9zB8Yf7_cbRdi_ug_cQ==/lib/arm64/libv8android.so
  #04  pc 000000000052c4e0  /data/app/com.azradio-VSC9zB8Yf7_cbRdi_ug_cQ==/lib/arm64/libv8android.so
  #05  pc 000000000052c224  /data/app/com.azradio-VSC9zB8Yf7_cbRdi_ug_cQ==/lib/arm64/libv8android.so
  #06  pc 00000000004ef644  /data/app/com.azradio-VSC9zB8Yf7_cbRdi_ug_cQ==/lib/arm64/libv8android.so (v8::internal::ItemParallelJob::Task::RunInternal()+28)
  #07  pc 0000000000393aec  /data/app/com.azradio-VSC9zB8Yf7_cbRdi_ug_cQ==/lib/arm64/libv8android.so (v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread::Run()+64)
  #08  pc 0000000000390688  /data/app/com.azradio-VSC9zB8Yf7_cbRdi_ug_cQ==/lib/arm64/libv8android.so
  #09  pc 0000000000090328  /system/lib64/libc.so (__pthread_start(void*)+36)
  #10  pc 0000000000023a28  /system/lib64/libc.so (__start_thread+68)
Xiaomi Redmi Note 5 Pro (whyred), Android 8.1
Report 1 of 1
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.azradio <<<

backtrace:
  #00  pc 000000000052b210  /data/app/com.azradio-5ujwryYLYySIOpk8yW6qXA==/lib/arm64/libv8android.so
  #01  pc 000000000052dad4  /data/app/com.azradio-5ujwryYLYySIOpk8yW6qXA==/lib/arm64/libv8android.so
  #02  pc 000000000052a178  /data/app/com.azradio-5ujwryYLYySIOpk8yW6qXA==/lib/arm64/libv8android.so
  #03  pc 000000000052c4e0  /data/app/com.azradio-5ujwryYLYySIOpk8yW6qXA==/lib/arm64/libv8android.so
  #04  pc 000000000052c224  /data/app/com.azradio-5ujwryYLYySIOpk8yW6qXA==/lib/arm64/libv8android.so
  #05  pc 00000000004ef644  /data/app/com.azradio-5ujwryYLYySIOpk8yW6qXA==/lib/arm64/libv8android.so (v8::internal::ItemParallelJob::Task::RunInternal()+28)
  #06  pc 0000000000393aec  /data/app/com.azradio-5ujwryYLYySIOpk8yW6qXA==/lib/arm64/libv8android.so (v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread::Run()+64)
  #07  pc 0000000000390688  /data/app/com.azradio-5ujwryYLYySIOpk8yW6qXA==/lib/arm64/libv8android.so
  #08  pc 0000000000067ec4  /system/lib64/libc.so (__pthread_start(void*)+36)
  #09  pc 000000000001f2f4  /system/lib64/libc.so (__start_thread+68)

Xiaomi Redmi Note 5 Pro (whyred), Android 9
Report 1 of 1
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.azradio <<<

backtrace:
  #00  pc 000000000052b210  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #01  pc 000000000052a8dc  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #02  pc 000000000052c480  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #03  pc 000000000052c35c  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #04  pc 00000000004ef644  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so (v8::internal::ItemParallelJob::Task::RunInternal()+28)
  #05  pc 00000000004ef9e0  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so (v8::internal::ItemParallelJob::Run()+640)
  #06  pc 0000000000528188  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #07  pc 00000000004d3d24  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #08  pc 00000000004d14c4  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #09  pc 00000000004cff08  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so (v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags)+1056)
  #10  pc 00000000004d95a8  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #11  pc 00000000004d963c  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #12  pc 00000000004b8168  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so (v8::internal::Factory::NewDescriptorArray(int, int, v8::internal::AllocationType)+68)
  #13  pc 0000000000642110  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #14  pc 0000000000623588  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #15  pc 0000000000623308  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so (v8::internal::Map::CopyWithField(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Map>, v8::internal::Handle<v8::internal::Name>, v8::internal::Handle<v8::internal::FieldType>, v8::internal::PropertyAttributes, v8::internal::PropertyConstness, v8::internal::Representation, v8::internal::TransitionFlag)+432)
  #16  pc 0000000000629000  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so (v8::internal::Map::TransitionToDataProperty(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Map>, v8::internal::Handle<v8::internal::Name>, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyAttributes, v8::internal::PropertyConstness, v8::internal::StoreOrigin)+684)
  #17  pc 000000000061dd48  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so (v8::internal::LookupIterator::PrepareTransitionToDataProperty(v8::internal::Handle<v8::internal::JSReceiver>, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyAttributes, v8::internal::StoreOrigin)+204)
  #18  pc 000000000063f6d0  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #19  pc 000000000063ea2c  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so (v8::internal::Object::SetProperty(v8::internal::LookupIterator*, v8::internal::Handle<v8::internal::Object>, v8::internal::StoreOrigin, v8::Maybe<v8::internal::ShouldThrow>)+148)
  #20  pc 0000000000729d90  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so (v8::internal::Runtime::SetObjectProperty(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, v8::internal::StoreOrigin, v8::Maybe<v8::internal::ShouldThrow>)+244)
  #21  pc 000000000072cfdc  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so
  #22  pc 0000000000b668c8  /data/app/com.azradio-bexux3N5FsiUz6236YsIcA==/lib/arm64/libv8android.so

Hello @biomancer did you find any solution for this? We meet the same problem that make us crazy!Any help is appreciate. Thank you

@coder-wbw
Copy link

@taschik Since that is native crash, the crash information you provided is not enough for troubleshooting.

Please refer Fabric Crashlytics NDK setup guide to capture native crashes. https://docs.fabric.io/android/crashlytics/ndk.html You may still need to upload external debug symbols from libv8.

The debug symbols for libv8 you could get it from:

wget https://registry.npmjs.org/v8-android/-/v8-android-7.5.1.tgz
tar xf v8-android-7.5.1.tgz
tar xf package/dist/lib.unstripped/v8-android/7.5.1/libs.tar.xz
file {armeabi-v7a,arm64-v8a,x86,x86_64}/libv8.so

For version 11.1000.4, it does not contain lib.unstripped. Where should I get debug symbols?

@coder-wbw
Copy link

@Kudo For version 11.1000.4, it does not contain lib.unstripped. Where should I get debug symbols?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants