Unity, Android: a lot of crashes in an app with WebView - android

We are developing an app with Unity with an extensive use of WebView. To be more specific we use the UniWebView asset from #onevcat. We suffer a lot of crashes on Android (~5% of all users). Below are the distribution of Android versions and some stacktraces from Google Play console.
Tried Unity versions: 2020.3.18, 2020.3.34, 2020.3.41.
Tried these UniWebView versions: 4.10.3, 4.12.1, 5.0.2.
Thanks for any help!
1:
backtrace:
#00 pc 0x0000000004bc6430 /data/app/com.google.android.webview-VW-FM4suXLpE5O_oTkAtPw==/base.apk!libmonochrome.so
2:
backtrace:
#00 pc 0x000000000303919a /data/app/com.google.android.trichromelibrary_524912630-SrS90JObl_3fO4boVsOGnA==/base.apk!libmonochrome.so
#01 pc 0x0000000003202e6b /data/app/com.google.android.trichromelibrary_524912630-SrS90JObl_3fO4boVsOGnA==/base.apk!libmonochrome.so
#02 pc 0x0000000003203323 /data/app/com.google.android.trichromelibrary_524912630-SrS90JObl_3fO4boVsOGnA==/base.apk!libmonochrome.so
#03 pc 0x00000000031f1ea5 /data/app/com.google.android.trichromelibrary_524912630-SrS90JObl_3fO4boVsOGnA==/base.apk!libmonochrome.so
#04 pc 0x0000000002d53f7f /data/app/com.google.android.trichromelibrary_524912630-SrS90JObl_3fO4boVsOGnA==/base.apk!libmonochrome.so
#05 pc 0x0000000002d53d31 /data/app/com.google.android.trichromelibrary_524912630-SrS90JObl_3fO4boVsOGnA==/base.apk!libmonochrome.so
#06 pc 0x0000000002d53ab3 /data/app/com.google.android.trichromelibrary_524912630-SrS90JObl_3fO4boVsOGnA==/base.apk!libmonochrome.so
#07 pc 0x0000000002cd25b1 /data/app/com.google.android.trichromelibrary_524912630-SrS90JObl_3fO4boVsOGnA==/base.apk!libmonochrome.so
#08 pc 0x0000000002cd6a6b /data/app/com.google.android.trichromelibrary_524912630-SrS90JObl_3fO4boVsOGnA==/base.apk!libmonochrome.so
#09 pc 0x0000000002cd6707 /data/app/com.google.android.trichromelibrary_524912630-SrS90JObl_3fO4boVsOGnA==/base.apk!libmonochrome.so
#10 pc 0x0000000002cd65a1 /data/app/com.google.android.trichromelibrary_524912630-SrS90JObl_3fO4boVsOGnA==/base.apk!libmonochrome.so
#11 pc 0x0000000002cd6517 /data/app/com.google.android.trichromelibrary_524912630-SrS90JObl_3fO4boVsOGnA==/base.apk!libmonochrome.so
#12 pc 0x0000000002cefec7 /data/app/com.google.android.trichromelibrary_524912630-SrS90JObl_3fO4boVsOGnA==/base.apk!libmonochrome.so
#13 pc 0x0000000002182c1d /data/app/com.google.android.trichromelibrary_524912630-SrS90JObl_3fO4boVsOGnA==/base.apk!libmonochrome.so
#14 pc 0x00000000022080b1 /data/app/com.google.android.trichromelibrary_524912630-SrS90JObl_3fO4boVsOGnA==/base.apk!libmonochrome.so
#15 pc 0x0000000001870109 /data/app/com.google.android.trichromelibrary_524912630-SrS90JObl_3fO4boVsOGnA==/base.apk!libmonochrome.so
#16 pc 0x000000000223cebb /data/app/com.google.android.trichromelibrary_524912630-SrS90JObl_3fO4boVsOGnA==/base.apk!libmonochrome.so
#17 pc 0x00000000021d1f03 /data/app/com.google.android.trichromelibrary_524912630-SrS90JObl_3fO4boVsOGnA==/base.apk!libmonochrome.so
#18 pc 0x00000000021d1da1 /data/app/com.google.android.trichromelibrary_524912630-SrS90JObl_3fO4boVsOGnA==/base.apk!libmonochrome.so
#19 pc 0x00000000021d1c8b /data/app/com.google.android.trichromelibrary_524912630-SrS90JObl_3fO4boVsOGnA==/base.apk!libmonochrome.so
#20 pc 0x000000000218ff8d /data/app/com.google.android.trichromelibrary_524912630-SrS90JObl_3fO4boVsOGnA==/base.apk!libmonochrome.so
#21 pc 0x00000000021eeb59 /data/app/com.google.android.trichromelibrary_524912630-SrS90JObl_3fO4boVsOGnA==/base.apk!libmonochrome.so
#22 pc 0x00000000000a6077 /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20)
#23 pc 0x0000000000060131 /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)
3:
backtrace:
#00 pc 0x0000000002662a4c /data/app/~~hWszRrrJN--LzAoxUzM-9w==/com.google.android.trichromelibrary_524912630-IFxwMuDrQjBaSN4fr6W6Ww==/base.apk!libmonochrome.so
#01 pc 0x0000000000da5e3d /data/app/~~hWszRrrJN--LzAoxUzM-9w==/com.google.android.trichromelibrary_524912630-IFxwMuDrQjBaSN4fr6W6Ww==/base.apk!libmonochrome.so
#02 pc 0x00000000031ef611 /data/app/~~hWszRrrJN--LzAoxUzM-9w==/com.google.android.trichromelibrary_524912630-IFxwMuDrQjBaSN4fr6W6Ww==/base.apk!libmonochrome.so
#03 pc 0x0000000002d8ec75 /data/app/~~hWszRrrJN--LzAoxUzM-9w==/com.google.android.trichromelibrary_524912630-IFxwMuDrQjBaSN4fr6W6Ww==/base.apk!libmonochrome.so
#04 pc 0x0000000002e1b28b /data/app/~~hWszRrrJN--LzAoxUzM-9w==/com.google.android.trichromelibrary_524912630-IFxwMuDrQjBaSN4fr6W6Ww==/base.apk!libmonochrome.so
#05 pc 0x0000000002e1b1d5 /data/app/~~hWszRrrJN--LzAoxUzM-9w==/com.google.android.trichromelibrary_524912630-IFxwMuDrQjBaSN4fr6W6Ww==/base.apk!libmonochrome.so
#06 pc 0x0000000002e1b1a5 /data/app/~~hWszRrrJN--LzAoxUzM-9w==/com.google.android.trichromelibrary_524912630-IFxwMuDrQjBaSN4fr6W6Ww==/base.apk!libmonochrome.so
#07 pc 0x0000000002e1b155 /data/app/~~hWszRrrJN--LzAoxUzM-9w==/com.google.android.trichromelibrary_524912630-IFxwMuDrQjBaSN4fr6W6Ww==/base.apk!libmonochrome.so
#08 pc 0x0000000002cf06df /data/app/~~hWszRrrJN--LzAoxUzM-9w==/com.google.android.trichromelibrary_524912630-IFxwMuDrQjBaSN4fr6W6Ww==/base.apk!libmonochrome.so
#09 pc 0x0000000002e1b11f /data/app/~~hWszRrrJN--LzAoxUzM-9w==/com.google.android.trichromelibrary_524912630-IFxwMuDrQjBaSN4fr6W6Ww==/base.apk!libmonochrome.so
#10 pc 0x0000000001d66d4b /data/app/~~hWszRrrJN--LzAoxUzM-9w==/com.google.android.trichromelibrary_524912630-IFxwMuDrQjBaSN4fr6W6Ww==/base.apk!libmonochrome.so
#11 pc 0x0000000000dad0ff /data/app/~~hWszRrrJN--LzAoxUzM-9w==/com.google.android.trichromelibrary_524912630-IFxwMuDrQjBaSN4fr6W6Ww==/base.apk!libmonochrome.so
#12 pc 0x0000000000dad1dd /data/app/~~hWszRrrJN--LzAoxUzM-9w==/com.google.android.trichromelibrary_524912630-IFxwMuDrQjBaSN4fr6W6Ww==/base.apk!libmonochrome.so
#13 pc 0x0000000001d66d4b /data/app/~~hWszRrrJN--LzAoxUzM-9w==/com.google.android.trichromelibrary_524912630-IFxwMuDrQjBaSN4fr6W6Ww==/base.apk!libmonochrome.so
#14 pc 0x0000000000dad43b /data/app/~~hWszRrrJN--LzAoxUzM-9w==/com.google.android.trichromelibrary_524912630-IFxwMuDrQjBaSN4fr6W6Ww==/base.apk!libmonochrome.so
#15 pc 0x0000000000dad89b /data/app/~~hWszRrrJN--LzAoxUzM-9w==/com.google.android.trichromelibrary_524912630-IFxwMuDrQjBaSN4fr6W6Ww==/base.apk!libmonochrome.so
#16 pc 0x0000000000da5151 /data/app/~~hWszRrrJN--LzAoxUzM-9w==/com.google.android.trichromelibrary_524912630-IFxwMuDrQjBaSN4fr6W6Ww==/base.apk!libmonochrome.so
#17 pc 0x0000000000da433b /data/app/~~hWszRrrJN--LzAoxUzM-9w==/com.google.android.trichromelibrary_524912630-IFxwMuDrQjBaSN4fr6W6Ww==/base.apk!libmonochrome.so
#18 pc 0x0000000000da9f07 /data/app/~~hWszRrrJN--LzAoxUzM-9w==/com.google.android.trichromelibrary_524912630-IFxwMuDrQjBaSN4fr6W6Ww==/base.apk!libmonochrome.so
#19 pc 0x0000000000d9f25f /data/app/~~hWszRrrJN--LzAoxUzM-9w==/com.google.android.trichromelibrary_524912630-IFxwMuDrQjBaSN4fr6W6Ww==/base.apk!libmonochrome.so
#20 pc 0x00000000000024cd /system/lib/libwebviewchromium_plat_support.so (android::(anonymous namespace)::draw_gl(int, void*, android::uirenderer::DrawGlInfo const&)+236)
#21 pc 0x0000000000165745 /system/lib/libhwui.so (android::uirenderer::WebViewFunctor::drawGl(android::uirenderer::DrawGlInfo const&)+36)
#22 pc 0x00000000001462b3 /system/lib/libhwui.so (android::uirenderer::skiapipeline::GLFunctorDrawable::onDraw(SkCanvas*)+1938)
#23 pc 0x00000000001c105d /system/lib/libhwui.so (SkDrawable::draw(SkCanvas*, SkMatrix const*)+52)
#24 pc 0x00000000003fa181 /system/lib/libhwui.so (SkGpuDevice::drawDrawable(SkDrawable*, SkMatrix const*, SkCanvas*)+208)
#25 pc 0x00000000001168f9 /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::drawContent(SkCanvas*) const+1004)
#26 pc 0x0000000000117191 /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::onDraw(SkCanvas*)+204)
#27 pc 0x000000000012d1c9 /system/lib/libhwui.so (android::uirenderer::$_24::__invoke(void const*, SkCanvas*, SkMatrix const&)+52)
#28 pc 0x000000000011692d /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::drawContent(SkCanvas*) const+1056)
#29 pc 0x0000000000117191 /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::onDraw(SkCanvas*)+204)
#30 pc 0x000000000012d1c9 /system/lib/libhwui.so (android::uirenderer::$_24::__invoke(void const*, SkCanvas*, SkMatrix const&)+52)
#31 pc 0x0000000000116915 /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::drawContent(SkCanvas*) const+1032)
#32 pc 0x0000000000117191 /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::onDraw(SkCanvas*)+204)
#33 pc 0x000000000012d1c9 /system/lib/libhwui.so (android::uirenderer::$_24::__invoke(void const*, SkCanvas*, SkMatrix const&)+52)
#34 pc 0x000000000011692d /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::drawContent(SkCanvas*) const+1056)
#35 pc 0x0000000000117191 /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::onDraw(SkCanvas*)+204)
#36 pc 0x000000000012d1c9 /system/lib/libhwui.so (android::uirenderer::$_24::__invoke(void const*, SkCanvas*, SkMatrix const&)+52)
#37 pc 0x0000000000116915 /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::drawContent(SkCanvas*) const+1032)
#38 pc 0x0000000000117191 /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::onDraw(SkCanvas*)+204)
#39 pc 0x000000000012d1c9 /system/lib/libhwui.so (android::uirenderer::$_24::__invoke(void const*, SkCanvas*, SkMatrix const&)+52)
#40 pc 0x000000000011692d /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::drawContent(SkCanvas*) const+1056)
#41 pc 0x0000000000117191 /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::onDraw(SkCanvas*)+204)
#42 pc 0x000000000012d1c9 /system/lib/libhwui.so (android::uirenderer::$_24::__invoke(void const*, SkCanvas*, SkMatrix const&)+52)
#43 pc 0x0000000000116915 /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::drawContent(SkCanvas*) const+1032)
#44 pc 0x0000000000117191 /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::onDraw(SkCanvas*)+204)
#45 pc 0x000000000014b891 /system/lib/libhwui.so (android::uirenderer::skiapipeline::SkiaPipeline::renderFrameImpl(SkRect const&, std::__1::vector<android::sp<android::uirenderer::RenderNode>, std::__1::allocator<android::sp<android::uirenderer::RenderNode> > > const&, bool, android::uirenderer::Rect const&, SkCanvas*, SkMatrix const&)+556)
#46 pc 0x000000000014b54f /system/lib/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&)+94)
#47 pc 0x0000000000149241 /system/lib/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*)+272)
#48 pc 0x000000000014ff4b /system/lib/libhwui.so (android::uirenderer::renderthread::CanvasContext::draw()+906)
#49 pc 0x0000000000151927 /system/lib/libhwui.so (_ZNSt3__110__function6__funcIZN7android10uirenderer12renderthread13DrawFrameTask11postAndWaitEvE3$_0NS_9allocatorIS6_EEFvvEEclEv$c303f2d2360db58ed70a2d0ac7ed911b+478)
#50 pc 0x0000000000144163 /system/lib/libhwui.so (android::uirenderer::WorkQueue::process()+158)
#51 pc 0x000000000015bc33 /system/lib/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+58)
#52 pc 0x000000000000ed43 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+170)
#53 pc 0x000000000000e881 /system/lib/libutils.so (thread_data_t::trampoline(thread_data_t const*)+264)
#54 pc 0x00000000000aadbb /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+40)
#55 pc 0x0000000000063bcd /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)

Well, it's really peculiar, but we were fiddling with settings, and disabling "Optimized Frame Pacing" seems to have helped:
Actually, we stumbled upon this, because swappy::ChoreographerFilter::threadMain(bool, int) was present in some reports but not in the thread that crashed.

Related

Unity, Android: a lot of crashes on devices with PowerVR GPU

Unity 2020.3.41. The problematic GPU models are GE8320, GE8322 and GE8100. The most crashable devices are Xiaomi Redmi 6A, Redmi 9C, Redmi 9A, realme C21.
Some stacktraces:
1 (Google Play Console):
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.fruitshake.fairyrpg <<<
backtrace:
#00 pc 0x0000000002691b1c /data/app/~~glJ5zj2YuTXCLtOwQQBW9Q==/com.google.android.trichromelibrary_530409130-5JNvmPvdeqWxll114AWxEQ==/base.apk!libmonochrome.so
#01 pc 0x0000000000dbe585 /data/app/~~glJ5zj2YuTXCLtOwQQBW9Q==/com.google.android.trichromelibrary_530409130-5JNvmPvdeqWxll114AWxEQ==/base.apk!libmonochrome.so
#02 pc 0x000000000327bfc5 /data/app/~~glJ5zj2YuTXCLtOwQQBW9Q==/com.google.android.trichromelibrary_530409130-5JNvmPvdeqWxll114AWxEQ==/base.apk!libmonochrome.so
#03 pc 0x0000000002e02caf /data/app/~~glJ5zj2YuTXCLtOwQQBW9Q==/com.google.android.trichromelibrary_530409130-5JNvmPvdeqWxll114AWxEQ==/base.apk!libmonochrome.so
#04 pc 0x0000000002e384ed /data/app/~~glJ5zj2YuTXCLtOwQQBW9Q==/com.google.android.trichromelibrary_530409130-5JNvmPvdeqWxll114AWxEQ==/base.apk!libmonochrome.so
#05 pc 0x0000000002e387c7 /data/app/~~glJ5zj2YuTXCLtOwQQBW9Q==/com.google.android.trichromelibrary_530409130-5JNvmPvdeqWxll114AWxEQ==/base.apk!libmonochrome.so
#06 pc 0x0000000002e4c1db /data/app/~~glJ5zj2YuTXCLtOwQQBW9Q==/com.google.android.trichromelibrary_530409130-5JNvmPvdeqWxll114AWxEQ==/base.apk!libmonochrome.so
#07 pc 0x0000000002e4c18d /data/app/~~glJ5zj2YuTXCLtOwQQBW9Q==/com.google.android.trichromelibrary_530409130-5JNvmPvdeqWxll114AWxEQ==/base.apk!libmonochrome.so
#08 pc 0x0000000002e4c147 /data/app/~~glJ5zj2YuTXCLtOwQQBW9Q==/com.google.android.trichromelibrary_530409130-5JNvmPvdeqWxll114AWxEQ==/base.apk!libmonochrome.so
#09 pc 0x0000000001db285f /data/app/~~glJ5zj2YuTXCLtOwQQBW9Q==/com.google.android.trichromelibrary_530409130-5JNvmPvdeqWxll114AWxEQ==/base.apk!libmonochrome.so
#10 pc 0x0000000000dc5969 /data/app/~~glJ5zj2YuTXCLtOwQQBW9Q==/com.google.android.trichromelibrary_530409130-5JNvmPvdeqWxll114AWxEQ==/base.apk!libmonochrome.so
#11 pc 0x0000000000dc5ab5 /data/app/~~glJ5zj2YuTXCLtOwQQBW9Q==/com.google.android.trichromelibrary_530409130-5JNvmPvdeqWxll114AWxEQ==/base.apk!libmonochrome.so
#12 pc 0x0000000001db285f /data/app/~~glJ5zj2YuTXCLtOwQQBW9Q==/com.google.android.trichromelibrary_530409130-5JNvmPvdeqWxll114AWxEQ==/base.apk!libmonochrome.so
#13 pc 0x0000000000dc5d87 /data/app/~~glJ5zj2YuTXCLtOwQQBW9Q==/com.google.android.trichromelibrary_530409130-5JNvmPvdeqWxll114AWxEQ==/base.apk!libmonochrome.so
#14 pc 0x0000000000dc61e7 /data/app/~~glJ5zj2YuTXCLtOwQQBW9Q==/com.google.android.trichromelibrary_530409130-5JNvmPvdeqWxll114AWxEQ==/base.apk!libmonochrome.so
#15 pc 0x0000000000dbd899 /data/app/~~glJ5zj2YuTXCLtOwQQBW9Q==/com.google.android.trichromelibrary_530409130-5JNvmPvdeqWxll114AWxEQ==/base.apk!libmonochrome.so
#16 pc 0x0000000000dbca73 /data/app/~~glJ5zj2YuTXCLtOwQQBW9Q==/com.google.android.trichromelibrary_530409130-5JNvmPvdeqWxll114AWxEQ==/base.apk!libmonochrome.so
#17 pc 0x0000000000dc267b /data/app/~~glJ5zj2YuTXCLtOwQQBW9Q==/com.google.android.trichromelibrary_530409130-5JNvmPvdeqWxll114AWxEQ==/base.apk!libmonochrome.so
#18 pc 0x0000000000db7983 /data/app/~~glJ5zj2YuTXCLtOwQQBW9Q==/com.google.android.trichromelibrary_530409130-5JNvmPvdeqWxll114AWxEQ==/base.apk!libmonochrome.so
#19 pc 0x00000000000024cd /system/lib/libwebviewchromium_plat_support.so (android::(anonymous namespace)::draw_gl(int, void*, android::uirenderer::DrawGlInfo const&)+228)
#20 pc 0x0000000000160b13 /system/lib/libhwui.so (android::uirenderer::WebViewFunctor::drawGl(android::uirenderer::DrawGlInfo const&)+34)
#21 pc 0x0000000000142539 /system/lib/libhwui.so (android::uirenderer::skiapipeline::GLFunctorDrawable::onDraw(SkCanvas*)+1720)
#22 pc 0x00000000001b8401 /system/lib/libhwui.so (SkDrawable::draw(SkCanvas*, SkMatrix const*)+44)
#23 pc 0x00000000003e0c2f /system/lib/libhwui.so (SkGpuDevice::drawDrawable(SkDrawable*, SkMatrix const*, SkCanvas*)+206)
#24 pc 0x0000000000113cb9 /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::drawContent(SkCanvas*) const+1020)
#25 pc 0x0000000000114523 /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::onDraw(SkCanvas*)+198)
#26 pc 0x000000000012a249 /system/lib/libhwui.so (android::uirenderer::$_24::__invoke(void const*, SkCanvas*, SkMatrix const&)+44)
#27 pc 0x0000000000113ced /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::drawContent(SkCanvas*) const+1072)
#28 pc 0x0000000000114523 /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::onDraw(SkCanvas*)+198)
#29 pc 0x000000000012a249 /system/lib/libhwui.so (android::uirenderer::$_24::__invoke(void const*, SkCanvas*, SkMatrix const&)+44)
#30 pc 0x0000000000113cd5 /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::drawContent(SkCanvas*) const+1048)
#31 pc 0x0000000000114523 /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::onDraw(SkCanvas*)+198)
#32 pc 0x000000000012a249 /system/lib/libhwui.so (android::uirenderer::$_24::__invoke(void const*, SkCanvas*, SkMatrix const&)+44)
#33 pc 0x0000000000113ced /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::drawContent(SkCanvas*) const+1072)
#34 pc 0x0000000000114523 /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::onDraw(SkCanvas*)+198)
#35 pc 0x000000000012a249 /system/lib/libhwui.so (android::uirenderer::$_24::__invoke(void const*, SkCanvas*, SkMatrix const&)+44)
#36 pc 0x0000000000113cd5 /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::drawContent(SkCanvas*) const+1048)
#37 pc 0x0000000000114523 /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::onDraw(SkCanvas*)+198)
#38 pc 0x000000000012a249 /system/lib/libhwui.so (android::uirenderer::$_24::__invoke(void const*, SkCanvas*, SkMatrix const&)+44)
#39 pc 0x0000000000113ced /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::drawContent(SkCanvas*) const+1072)
#40 pc 0x0000000000114523 /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::onDraw(SkCanvas*)+198)
#41 pc 0x000000000012a249 /system/lib/libhwui.so (android::uirenderer::$_24::__invoke(void const*, SkCanvas*, SkMatrix const&)+44)
#42 pc 0x0000000000113cd5 /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::drawContent(SkCanvas*) const+1048)
#43 pc 0x0000000000114523 /system/lib/libhwui.so (android::uirenderer::skiapipeline::RenderNodeDrawable::onDraw(SkCanvas*)+198)
#44 pc 0x00000000001475c7 /system/lib/libhwui.so (android::uirenderer::skiapipeline::SkiaPipeline::renderFrameImpl(SkRect const&, std::__1::vector<android::sp<android::uirenderer::RenderNode>, std::__1::allocator<android::sp<android::uirenderer::RenderNode> > > const&, bool, android::uirenderer::Rect const&, SkCanvas*, SkMatrix const&)+474)
#45 pc 0x00000000001472df /system/lib/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&)+94)
#46 pc 0x00000000001451bd /system/lib/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*)+272)
#47 pc 0x000000000014bb11 /system/lib/libhwui.so (android::uirenderer::renderthread::CanvasContext::draw()+976)
#48 pc 0x000000000014d3db /system/lib/libhwui.so (_ZNSt3__110__function6__funcIZN7android10uirenderer12renderthread13DrawFrameTask11postAndWaitEvE3$_0NS_9allocatorIS6_EEFvvEEclEv$c303f2d2360db58ed70a2d0ac7ed911b+458)
#49 pc 0x000000000014059f /system/lib/libhwui.so (android::uirenderer::WorkQueue::process()+162)
#50 pc 0x00000000001573b9 /system/lib/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+72)
#51 pc 0x000000000000ee95 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+168)
#52 pc 0x000000000000e9dd /system/lib/libutils.so (thread_data_t::trampoline(thread_data_t const*)+256)
#53 pc 0x00000000000aacf3 /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+40)
#54 pc 0x0000000000064063 /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)
2 (Firebase):
Crashed: Thread: SIGSEGV 0x0000000000000000
#00 pc 0x142bb0 libGLESv2_mtk.so
#01 pc 0x854d5 libGLESv2_mtk.so
#02 pc 0x3222a libGLESv2_mtk.so
#03 pc 0x27a44 libGLESv2_mtk.so
#04 pc 0x2e861 libGLESv2_mtk.so
#05 pc 0xbb2b2 libc.so
I know that the stacktraces are very obscure but I have no idea on how to make them more readable. I have uploaded my app's symbols to Firebase and Google Play.
There's a similar thread on Unity's forum.
If you have any idea on how to solve or research the issue, please help!
It's solvable via drawing 1x1px (this helped me, at least) rectangle with different color every frame. As described in Unity's thread:
florianpenzkofer: The root cause is a bug in the PowerVR driver where draw calls that the driver optimizes out leak some memory. That memory bufffer has a fixed size per framebuffer (RenderTexture) and running out of that memory causes the crash. A single draw call that is not optimized out reclaims the leaked memory, so this only leads to a problem if all draws to the same framebuffer (across multiple frames) are redundant.
Driver can't optimize this "random" draw call every frame.
Second option is to create native render plugin, there's example plugin at unity's repo. You'll need to cull glFlush, as stated in previous answer:
In our experiments it helps to call glFinish roughly every 1000 frames (or more often but it‘s expensive because it stalls the GPU).
You could try that using a native rendering plugin.
We got some more information about when affected drivers leak some memory that causes this. We will look into that to maybe come up with a better workaround.

Crashed app randomly when lock device with Android 10

I have an app in first device (client) which has p2p connection with other device (server). Server streaming a video to client. When I lock device-client sometimes it cause crashing app, sometimes it works correctly.
In case when client app crashed thrown this exception:
A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x1c in tid 9072
Tombstone:
Build fingerprint: 'samsung/m01qser/m01q:10/QP1A.190711.020/M015FXXS2ATL1:user/release-keys'
Revision: '0'
ABI: 'arm'
Timestamp: 2021-01-19 10:47:45+0300
pid: 12289, tid: 12289, name: client >>> com.client <<<
uid: 10200
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x1c
Cause: null pointer dereference
r0 00000000 r1 ffbff2cc r2 00000000 r3 00000000
r4 dea2c88d r5 1809d588 r6 1809d5b8 r7 1809d5b8
r8 00000000 r9 f0940800 r10 ffbff2d0 r11 f0940800
ip bd7c45c1 sp ffbff2b0 lr ebefa51b pc bd7c45c2
backtrace:
#00 pc 000b15c2 /data/app/com.kbnt.naparnik.client-_jyhSqNMJOJnAVSyrHHC-A==/base.apk!libgstreamer_android.so (offset 0x173000)
#01 pc 000dc519 /apex/com.android.runtime/lib/libart.so (art_quick_generic_jni_trampoline+40) (BuildId: f186f2720d2bb2094a21740d06192831)
#02 pc 0201f981 /memfd:/jit-cache (deleted) (org.freedesktop.gstreamer.androidmedia.GstAmcOnFrameAvailableListener.onFrameAvailable+64)
#03 pc 000d7bc5 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: f186f2720d2bb2094a21740d06192831)
#04 pc 00436af5 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub+252) (BuildId: f186f2720d2bb2094a21740d06192831)
#05 pc 000dffeb /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+178) (BuildId: f186f2720d2bb2094a21740d06192831)
#06 pc 00213875 /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+280) (BuildId: f186f2720d2bb2094a21740d06192831)
#07 pc 0020f18d /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+716) (BuildId: f186f2720d2bb2094a21740d06192831)
#08 pc 0042d1cf /apex/com.android.runtime/lib/libart.so (MterpInvokeInterface+814) (BuildId: f186f2720d2bb2094a21740d06192831)
#09 pc 000d2a14 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_interface+20) (BuildId: f186f2720d2bb2094a21740d06192831)
#10 pc 00403c90 /system/framework/framework.jar (android.graphics.SurfaceTexture$1.handleMessage+8)
#11 pc 0042bfa1 /apex/com.android.runtime/lib/libart.so (MterpInvokeVirtual+1192) (BuildId: f186f2720d2bb2094a21740d06192831)
#12 pc 000d2814 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_virtual+20) (BuildId: f186f2720d2bb2094a21740d06192831)
#13 pc 00358796 /system/framework/framework.jar (android.os.Handler.dispatchMessage+38)
#14 pc 0042bfa1 /apex/com.android.runtime/lib/libart.so (MterpInvokeVirtual+1192) (BuildId: f186f2720d2bb2094a21740d06192831)
#15 pc 000d2814 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_virtual+20) (BuildId: f186f2720d2bb2094a21740d06192831)
#16 pc 00398916 /system/framework/framework.jar (android.os.Looper.loop+466)
#17 pc 0042e515 /apex/com.android.runtime/lib/libart.so (MterpInvokeStatic+932) (BuildId: f186f2720d2bb2094a21740d06192831)
#18 pc 000d2994 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_static+20) (BuildId: f186f2720d2bb2094a21740d06192831)
#19 pc 001a7704 /system/framework/framework.jar (android.app.ActivityThread.main+208)
#20 pc 001eeb79 /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.4474381389789028307+192) (BuildId: f186f2720d2bb2094a21740d06192831)
#21 pc 001f336b /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+126) (BuildId: f186f2720d2bb2094a21740d06192831)
#22 pc 004205dd /apex/com.android.runtime/lib/libart.so (artQuickToInterpreterBridge+852) (BuildId: f186f2720d2bb2094a21740d06192831)
#23 pc 000dc5a1 /apex/com.android.runtime/lib/libart.so (art_quick_to_interpreter_bridge+32) (BuildId: f186f2720d2bb2094a21740d06192831)
#24 pc 000d7bc5 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: f186f2720d2bb2094a21740d06192831)
#25 pc 00436c09 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_static_stub+248) (BuildId: f186f2720d2bb2094a21740d06192831)
#26 pc 000dffff /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+198) (BuildId: f186f2720d2bb2094a21740d06192831)
#27 pc 00377a3b /apex/com.android.runtime/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+54) (BuildId: f186f2720d2bb2094a21740d06192831)
#28 pc 00378f55 /apex/com.android.runtime/lib/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned int)+932) (BuildId: f186f2720d2bb2094a21740d06192831)
#29 pc 0032450b /apex/com.android.runtime/lib/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+30) (BuildId: f186f2720d2bb2094a21740d06192831)
#30 pc 000bc8b7 /system/framework/arm/boot.oat (art_jni_trampoline+110) (BuildId: df82c1442bb900522d178526344bb1a19782e73e)
#31 pc 000d7bc5 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: f186f2720d2bb2094a21740d06192831)
#32 pc 00436af5 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub+252) (BuildId: f186f2720d2bb2094a21740d06192831)
#33 pc 000dffeb /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+178) (BuildId: f186f2720d2bb2094a21740d06192831)
#34 pc 00213875 /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+280) (BuildId: f186f2720d2bb2094a21740d06192831)
#35 pc 0020f18d /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+716) (BuildId: f186f2720d2bb2094a21740d06192831)
#36 pc 0042bd55 /apex/com.android.runtime/lib/libart.so (MterpInvokeVirtual+604) (BuildId: f186f2720d2bb2094a21740d06192831)
#37 pc 000d2814 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_virtual+20) (BuildId: f186f2720d2bb2094a21740d06192831)
#38 pc 0048ba16 /system/framework/framework.jar (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+22)
#39 pc 001eeb79 /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.4474381389789028307+192) (BuildId: f186f2720d2bb2094a21740d06192831)
#40 pc 001f336b /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+126) (BuildId: f186f2720d2bb2094a21740d06192831)
#41 pc 004205dd /apex/com.android.runtime/lib/libart.so (artQuickToInterpreterBridge+852) (BuildId: f186f2720d2bb2094a21740d06192831)
#42 pc 000dc5a1 /apex/com.android.runtime/lib/libart.so (art_quick_to_interpreter_bridge+32) (BuildId: f186f2720d2bb2094a21740d06192831)
#43 pc 0082a471 /system/framework/arm/boot-framework.oat (com.android.internal.os.ZygoteInit.main+2512) (BuildId: 1c45c1313304c9882a73dc0dd91dfb79573cced2)
#44 pc 000d7bc5 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: f186f2720d2bb2094a21740d06192831)
#45 pc 00436c09 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_static_stub+248) (BuildId: f186f2720d2bb2094a21740d06192831)
#46 pc 000dffff /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+198) (BuildId: f186f2720d2bb2094a21740d06192831)
#47 pc 00377a3b /apex/com.android.runtime/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+54) (BuildId: f186f2720d2bb2094a21740d06192831)
#48 pc 003777f1 /apex/com.android.runtime/lib/libart.so (art::InvokeWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+292) (BuildId: f186f2720d2bb2094a21740d06192831)
#49 pc 002c1539 /apex/com.android.runtime/lib/libart.so (art::JNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+460) (BuildId: f186f2720d2bb2094a21740d06192831)
#50 pc 000a2351 /system/lib/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+28) (BuildId: f6f68fcd9de2f0c891b7538cb595d5ce)
#51 pc 000a48d9 /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+508) (BuildId: f6f68fcd9de2f0c891b7538cb595d5ce)
#52 pc 0000230f /system/bin/app_process32 (main+714) (BuildId: ad621c21d45a1415057675aef975671e)
#53 pc 0005a2e1 /apex/com.android.runtime/lib/bionic/libc.so (__libc_init+68) (BuildId: 6b958cfe24f2450b4242d6f7da7559ba)
#54 pc 0000202f /system/bin/app_process32 (_start_main+38) (BuildId: ad621c21d45a1415057675aef975671e)
#55 pc 00004456 <anonymous:f0f19000>
Does someone have idea how to fix this issue?
In my case, the problem was directly related to database inspector.
Solution:
1- Restart Android Studio.
2- Dont click "Database Inspector" tab.
Note: There is no way to close the database inspactor once you open it. You need to restart Android Studio.

Facebook Audience Network native crash with Android 10

I have crashes happening using latest version of Audience Network with almost all Pixel phones running Android 10. Here is the trace :
backtrace:
#00 pc 000000000008246c /apex/com.android.runtime/lib64/bionic/libc.so (abort+160)
#01 pc 00000000004ba0c4 /apex/com.android.runtime/lib64/libart.so (art::Runtime::Abort(char const*)+2176)
#02 pc 000000000000c634 /system/lib64/libbase.so (android::base::LogMessage::~LogMessage()+604)
#03 pc 00000000003781f0 /apex/com.android.runtime/lib64/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+1608)
#04 pc 00000000003784a0 /apex/com.android.runtime/lib64/libart.so (art::JavaVMExt::JniAbortF(char const*, char const*, ...)+180)
#05 pc 00000000004ffc84 /apex/com.android.runtime/lib64/libart.so (art::Thread::DecodeJObject(_jobject*) const+780)
#06 pc 00000000003c6228 /apex/com.android.runtime/lib64/libart.so (art::JNI::GetArrayLength(_JNIEnv*, _jarray*)+580)
#07 pc 0000000000038d10 /apex/com.android.conscrypt/lib64/libjavacrypto.so (evpUpdate(_JNIEnv*, _jobject*, _jbyteArray*, int, int, char const*, int (*)(env_md_ctx_st*, void const*, unsigned long))+308)
#08 pc 000000000013f350 /apex/com.android.runtime/lib64/libart.so (art_quick_generic_jni_trampoline+144)
#09 pc 00000000020007b4 /memfd:/jit-cache (com.android.org.conscrypt.OpenSSLMessageDigestJDK.engineUpdate+116)
#10 pc 00000000002609c0 /system/framework/arm64/boot.oat (java.security.MessageDigest$Delegate.engineUpdate+64)
#11 pc 00000000001bd6cc /system/framework/arm64/boot.oat (java.security.MessageDigest.update+76)
#12 pc 0000000002000f70 /memfd:/jit-cache (com.facebook.ads.redexgen.X.Nt.A01+416)
#13 pc 000000000013663c /apex/com.android.runtime/lib64/libart.so (art_quick_osr_stub+60)
#14 pc 00000000003380ac /apex/com.android.runtime/lib64/libart.so (art::jit::Jit::MaybeDoOnStackReplacement(art::Thread*, art::ArtMethod*, unsigned int, int, art::JValue*)+1772)
#15 pc 00000000005ad260 /apex/com.android.runtime/lib64/libart.so (MterpMaybeDoOnStackReplacement+212)
#16 pc 0000000000135350 /apex/com.android.runtime/lib64/libart.so (MterpHelpers+240)
#17 pc 00000000001a4fbe [anon:dalvik-DEX (com.facebook.ads.redexgen.X.Nt.A01+66)
#18 pc 00000000005a5154 /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+1160)
#19 pc 0000000000130994 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20)
#20 pc 00000000001a509a [anon:dalvik-DEX (com.facebook.ads.redexgen.X.Nt.A02+10)
#21 pc 00000000002b4b04 /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.11452150525172173309+240)
#22 pc 0000000000593744 /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+944)
#23 pc 000000000013f468 /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88)
#24 pc 00000000001365b8 /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_static_stub+568)
#25 pc 0000000000145084 /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+276)
#26 pc 00000000002e3bc0 /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384)
#27 pc 00000000002deab8 /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+928)
#28 pc 00000000005a4e3c /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+368)
#29 pc 0000000000130994 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20)
#30 pc 0000000000172ac4 [anon:dalvik-DEX (com.facebook.ads.redexgen.X.Jp.A02+104)
#31 pc 00000000005a5154 /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+1160)
#32 pc 0000000000130994 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20)
#33 pc 0000000000172b4c [anon:dalvik-DEX (com.facebook.ads.redexgen.X.Jp.A03)
#34 pc 00000000005a5154 /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+1160)
#35 pc 0000000000130994 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20)
#36 pc 00000000001728b8 [anon:dalvik-DEX (com.facebook.ads.redexgen.X.Jo.A00+16)
#37 pc 00000000005a4934 /apex/com.android.runtime/lib64/libart.so (MterpInvokeDirect+1192)
#38 pc 0000000000130914 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_direct+20)
#39 pc 0000000000172918 [anon:dalvik-DEX (com.facebook.ads.redexgen.X.Jo.call)
#40 pc 00000000002b4b04 /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.11452150525172173309+240)
#41 pc 0000000000593744 /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+944)
#42 pc 000000000013f468 /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88)
#43 pc 0000000000298528 /system/framework/arm64/boot.oat (java.util.concurrent.FutureTask.run+200)
#44 pc 00000000002019d4 /system/framework/arm64/boot.oat (java.util.concurrent.Executors$RunnableAdapter.call+68)
#45 pc 0000000000298528 /system/framework/arm64/boot.oat (java.util.concurrent.FutureTask.run+200)
#46 pc 00000000002f9fd8 /system/framework/arm64/boot.oat (java.util.concurrent.ThreadPoolExecutor.runWorker+984)
#47 pc 00000000002f7640 /system/framework/arm64/boot.oat (java.util.concurrent.ThreadPoolExecutor$Worker.run+64)
#48 pc 00000000001a50b8 /system/framework/arm64/boot.oat (java.lang.Thread.run+72)
#49 pc 0000000000136334 /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548)
#50 pc 0000000000145064 /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244)
#51 pc 00000000004b1c58 /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
#52 pc 00000000004b2d28 /apex/com.android.runtime/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+416)
#53 pc 00000000004f3290 /apex/com.android.runtime/lib64/libart.so (art::Thread::CreateCallback(void*)+1172)
#54 pc 00000000000e372c /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
#55 pc 0000000000084004 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
I'm using implementation 'com.facebook.android:audience-network-sdk:5.6.0' and new AdView(context, adUnit, BANNER_HEIGHT_50) along with AudienceNetworkAds.initialize(activity.getApplicationContext()); to initialize SDK first.
Does someone encounter the same issue and have a fix for it ?
Downgrading to 5.4.1 / crash have disappeared
implementation 'com.facebook.android:audience-network-sdk:5.4.1'
This is very bad of Facebook Developers involved in SDK development.
This issue is spiking even in sdk versions 6.0.0
Yesterday only they released 6.1.0. I'm not sure they resolved this issue. But their change log of 6.0.0 mention this
Fixed net::ERR_ACCESS_DENIED in Interstitials and Rewarded Video on Android 10+
here https://developers.facebook.com/docs/audience-network/changelog-android#6_1_0
But is this is the reason for this Abort crash.
Root cause bug in Android's InMemoryDexClassLoader https://issuetracker.google.com/issues/150633385. Fixed in AN SDKs 6.1.0+

Crash on android 9(presumably on close socket)

I have a couple of crash in google developer console on android 9 devices with backtrace:
#00 pc 0000000000021974 /system/lib64/libc.so (abort+116)
#01 pc 0000000000456cac /system/lib64/libart.so (art::Runtime::Abort(char const*)+1064)
#02 pc 0000000000008cd4 /system/lib64/libbase.so (android::base::LogMessage::~LogMessage()+724)
#03 pc 00000000002df9bc /system/lib64/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+1516)
#04 pc 0000000000348400 /system/lib64/libart.so (art::JNI::GetIntField(_JNIEnv*, _jobject*, _jfieldID*)+160)
#05 pc 000000000001e14c /system/lib64/libopenjdk.so (FileDispatcherImpl_preClose0+24)
#06 pc 000000000011562c /system/framework/arm64/boot.oat (java.lang.System.setErr0 [DEDUPED]+172)
#07 pc 00000000002ea4d4 /system/framework/arm64/boot.oat (sun.nio.ch.DatagramDispatcher.preClose [DEDUPED]+52)
#08 pc 0000000000448714 /system/framework/arm64/boot.oat (sun.nio.ch.SocketChannelImpl.implCloseSelectableChannel+180)
#09 pc 000000000043dd44 /system/framework/arm64/boot.oat (java.nio.channels.spi.AbstractSelectableChannel.implCloseChannel+52)
#10 pc 00000000003fde60 /system/framework/arm64/boot.oat (java.nio.channels.spi.AbstractInterruptibleChannel.close+128)
#11 pc 0000000000447d1c /system/framework/arm64/boot.oat (sun.nio.ch.SocketChannelImpl.finalize+92)
#12 pc 0000000000182654 /system/framework/arm64/boot-core-libart.oat (java.lang.Daemons$FinalizerDaemon.doFinalize+100)
#13 pc 00000000001828dc /system/framework/arm64/boot-core-libart.oat (java.lang.Daemons$FinalizerDaemon.runInternal+492)
#14 pc 000000000011084c /system/framework/arm64/boot-core-libart.oat (java.lang.Daemons$Daemon.run+76)
#15 pc 000000000025cfc8 /system/framework/arm64/boot.oat (java.lang.Thread.run+72)
#16 pc 0000000000545b88 /system/lib64/libart.so (art_quick_invoke_stub+584)
#17 pc 00000000000cf698 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200)
#18 pc 000000000044f524 /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
#19 pc 00000000004505f0 /system/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue*)+424)
#20 pc 000000000047ae10 /system/lib64/libart.so (art::Thread::CreateCallback(void*)+1260)
#21 pc 0000000000082264 /system/lib64/libc.so (__pthread_start(void*)+36)
#22 pc 0000000000023178 /system/lib64/libc.so (__start_thread+68)
I can't reproduce this on my own environments.
Application specific: it works with an external device. After connecting to wifi network app tries to connect to device via raw socket(via Apache MINA).
Do you have any idea about reasons(steps to reproduce) of that crash?

Native crash at getResources().getStringArray

Native crash at getResources().getStringArray on some devices such as Samsung On7 Pro and Samsung Galaxy J8. On other devices same code is working fine. I am not able to figure out what is wrong. Below is the stack trace of crash.
backtrace:
#00 pc 000000000004b95c /system/lib/libc.so (tgkill+12)
#01 pc 000000000001a733 /system/lib/libc.so (abort+54)
#02 pc 0000000000337da3 /system/lib/libart.so (_ZN3art7Runtime5AbortEPKc+230)
#03 pc 0000000000338433 /system/lib/libart.so (_ZN3art7Runtime7AborterEPKc+10)
#04 pc 00000000003efaad /system/lib/libart.so (_ZN7android4base10LogMessageD1Ev+456)
#05 pc 00000000002300df /system/lib/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+1262)
#06 pc 000000000023033b /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortFEPKcS2_z+66)
#07 pc 000000000028b3f7 /system/lib/libart.so (_ZN3art3JNI9NewStringEP7_JNIEnvPKti+590)
#08 pc 00000000000ea39d /system/lib/libandroid_runtime.so (_ZN7androidL51android_content_AssetManager_getArrayStringResourceEP7_JNIEnvP8_jobjecti+244)
#09 pc 0000000000a51567 /system/framework/arm/boot-framework.oat (android.content.res.AssetManager.getArrayStringInfo [DEDUPED]+78)
#10 pc 0000000000a596ff /system/framework/arm/boot-framework.oat (android.content.res.Resources.getStringArray+86)
#11 pc 00000000003dd1e1 /system/lib/libart.so (art_quick_invoke_stub_internal+64)
#12 pc 00000000003e1755 /system/lib/libart.so (art_quick_invoke_stub+228)
#13 pc 00000000000ac0e1 /system/lib/libart.so (_ZN3art9ArtMethod6InvokeEPNS_6ThreadEPjjPNS_6JValueEPKc+140)
#14 pc 00000000001f1cf3 /system/lib/libart.so (_ZN3art11interpreter34ArtInterpreterToCompiledCodeBridgeEPNS_6ThreadEPNS_9ArtMethodEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+238)
#15 pc 00000000001ed2a3 /system/lib/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+574)
#16 pc 00000000003c9691 /system/lib/libart.so (MterpInvokeVirtualQuick+504)
#17 pc 00000000003d3214 /system/lib/libart.so (ExecuteMterpImpl+29972)
#18 pc 00000000001d4825 /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+340)
#19 pc 00000000001d9ba7 /system/lib/libart.so (_ZN3art11interpreter33ArtInterpreterToInterpreterBridgeEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+142)
#20 pc 00000000001ed28d /system/lib/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+552)
#21 pc 00000000003c7f71 /system/lib/libart.so (MterpInvokeDirect+360)
#22 pc 00000000003cf594 /system/lib/libart.so (ExecuteMterpImpl+14484)
#23 pc 00000000001d4825 /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+340)
#24 pc 00000000001d9af5 /system/lib/libart.so (_ZN3art11interpreter30EnterInterpreterFromEntryPointEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameE+92)
#25 pc 00000000003bd7f5 /system/lib/libart.so (artQuickToInterpreterBridge+960)
#26 pc 00000000003e0fa1 /system/lib/libart.so (art_quick_to_interpreter_bridge+32)
#27 pc 00000000007eebc5 /system/framework/arm/boot-framework.oat (android.app.Instrumentation.callActivityOnCreate+108)
#28 pc 0000000000712309 /system/framework/arm/boot-framework.oat (android.app.ActivityThread.performLaunchActivity+1936)
#29 pc 000000000070a21b /system/framework/arm/boot-framework.oat (android.app.ActivityThread.handleLaunchActivity+298)
#30 pc 00000000006fe84f /system/framework/arm/boot-framework.oat (android.app.ActivityThread.-wrap11+62)
#31 pc 00000000006fb5c5 /system/framework/arm/boot-framework.oat (android.app.ActivityThread$H.handleMessage+8676)
#32 pc 0000000000e94cfb /system/framework/arm/boot-framework.oat (android.os.Handler.dispatchMessage+138)
#33 pc 0000000000ee3243 /system/framework/arm/boot-framework.oat (android.os.Looper.loop+1066)
#34 pc 000000000071036d /system/framework/arm/boot-framework.oat (android.app.ActivityThread.main+932)
#35 pc 00000000003dd1e1 /system/lib/libart.so (art_quick_invoke_stub_internal+64)
#36 pc 00000000003e185b /system/lib/libart.so (art_quick_invoke_static_stub+226)
#37 pc 00000000000ac10b /system/lib/libart.so (_ZN3art9ArtMethod6InvokeEPNS_6ThreadEPjjPNS_6JValueEPKc+182)
#38 pc 000000000033215d /system/lib/libart.so (_ZN3artL18InvokeWithArgArrayERKNS_33ScopedObjectAccessAlreadyRunnableEPNS_9ArtMethodEPNS_8ArgArrayEPNS_6JValueEPKc+52)
#39 pc 00000000003336a3 /system/lib/libart.so (_ZN3art12InvokeMethodERKNS_33ScopedObjectAccessAlreadyRunnableEP8_jobjectS4_S4_j+946)
#40 pc 00000000002e1475 /system/lib/libart.so (_ZN3artL13Method_invokeEP7_JNIEnvP8_jobjectS3_S3_+40)
#41 pc 0000000000250bdf /system/framework/arm/boot-core-oj.oat (java.lang.Class.getDeclaredMethodInternal [DEDUPED]+110)
#42 pc 000000000162b055 /system/framework/arm/boot-framework.oat (com.android.internal.os.Zygote$MethodAndArgsCaller.run+124)
#43 pc 000000000162f245 /system/framework/arm/boot-framework.oat (com.android.internal.os.ZygoteInit.main+3076)
#44 pc 00000000003dd1e1 /system/lib/libart.so (art_quick_invoke_stub_internal+64)
#45 pc 00000000003e185b /system/lib/libart.so (art_quick_invoke_static_stub+226)
#46 pc 00000000000ac10b /system/lib/libart.so (_ZN3art9ArtMethod6InvokeEPNS_6ThreadEPjjPNS_6JValueEPKc+182)
#47 pc 000000000033215d /system/lib/libart.so (_ZN3artL18InvokeWithArgArrayERKNS_33ScopedObjectAccessAlreadyRunnableEPNS_9ArtMethodEPNS_8ArgArrayEPNS_6JValueEPKc+52)
#48 pc 0000000000331f69 /system/lib/libart.so (_ZN3art17InvokeWithVarArgsERKNS_33ScopedObjectAccessAlreadyRunnableEP8_jobjectP10_jmethodIDSt9__va_list+296)
#49 pc 0000000000285c83 /system/lib/libart.so (_ZN3art3JNI21CallStaticVoidMethodVEP7_JNIEnvP7_jclassP10_jmethodIDSt9__va_list+430)
#50 pc 00000000000a0f41 /system/lib/libandroid_runtime.so (_ZN7_JNIEnv20CallStaticVoidMethodEP7_jclassP10_jmethodIDz+36)
#51 pc 00000000000a284b /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime5startEPKcRKNS_6VectorINS_7String8EEEb+466)
#52 pc 0000000000003215 /system/bin/app_process32 (main+1180)
#53 pc 0000000000017e89 /system/lib/libc.so (__libc_init+48)
#54 pc 0000000000002ca0 /system/bin/app_process32 (_start+96)

Categories

Resources