Since the rollout of Android 8 Oreo, our app has been consistently crashing in different places. All the play store crash reports show native crashes. The most frequently occuring one seems to be at libhwui.so
The most frequent device that crashes is the Nexus 6P. Pixel and Pixel XL have also shown a few.
I ll post the crash log below. I m struggling to find what causes the crash.
Any help is appreciated.
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/angler/angler:8.0.0/OPR6.170623.013/4283548:user/release-keys'
Revision: '0'
ABI: 'arm64'
pid: 12908, tid: 12908, name: ***.*** >>> com.***.***.*** <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x100103
x0 0000000000100103 x1 0000000000000000 x2 0000007f23be8000 x3 0000000000000000
x4 0000000013305004 x5 00000000000000a8 x6 0000007f43d58000 x7 0000000000000000
x8 0000000000000000 x9 0000000000000001 x10 0000000000000019 x11 0000000000000004
x12 0000000000000000 x13 0000000000000008 x14 00000000000003e8 x15 0000000000000010
x16 0000007f420e7a18 x17 0000007f3fd64fb4 x18 0000000000000020 x19 0000000000000000
x20 0000007f23be8000 x21 00000000132ed218 x22 00000000132ece00 x23 0000000000000001
x24 00000000132ed218 x25 0000000000000000 x26 00000000132eba68 x27 00000000132eddd8
x28 0000000012f264d8 x29 0000007fe5077050 x30 00000000719d7ff4
sp 0000007fe5077040 pc 0000007f3fd64fe4 pstate 0000000060000000
backtrace:
#00 pc 000000000008bfe4 /system/lib64/libhwui.so (_ZN7android10uirenderer10RenderNode21setStagingDisplayListEPNS0_11DisplayListE+48)
#01 pc 0000000000ba1ff0 /system/framework/arm64/boot-framework.oat (offset 0x5ea000) (android.graphics.drawable.VectorDrawable.nAddChild [DEDUPED]+160)
#02 pc 0000000001334cb4 /system/framework/arm64/boot-framework.oat (offset 0x5ea000) (android.view.RenderNode.discardDisplayList+52)
#03 pc 00000000012bfe40 /system/framework/arm64/boot-framework.oat (offset 0x5ea000) (android.view.View.onDetachedFromWindowInternal+464)
#04 pc 00000000012ad284 /system/framework/arm64/boot-framework.oat (offset 0x5ea000) (android.view.View.dispatchDetachedFromWindow+196)
#05 pc 000000000130de08 /system/framework/arm64/boot-framework.oat (offset 0x5ea000) (android.view.ViewGroup.dispatchDetachedFromWindow+248)
#06 pc 0000000001378de8 /system/framework/arm64/boot-framework.oat (offset 0x5ea000) (android.view.ViewRootImpl.dispatchDetachedFromWindow+168)
#07 pc 000000000137a240 /system/framework/arm64/boot-framework.oat (offset 0x5ea000) (android.view.ViewRootImpl.doDie+208)
#08 pc 0000000001378828 /system/framework/arm64/boot-framework.oat (offset 0x5ea000) (android.view.ViewRootImpl.die+72)
#09 pc 00000000013928a0 /system/framework/arm64/boot-framework.oat (offset 0x5ea000) (android.view.WindowManagerGlobal.removeViewLocked+320)
#10 pc 0000000001394e54 /system/framework/arm64/boot-framework.oat (offset 0x5ea000) (android.view.WindowManagerGlobal.removeView+308)
#11 pc 0000000001396438 /system/framework/arm64/boot-framework.oat (offset 0x5ea000) (android.view.WindowManagerImpl.removeViewImmediate+72)
#12 pc 00000000006a9860 /system/framework/arm64/boot-framework.oat (offset 0x5ea000) (android.app.ActivityThread.handleDestroyActivity+320)
#13 pc 000000000069fbe4 /system/framework/arm64/boot-framework.oat (offset 0x5ea000) (android.app.ActivityThread.-wrap5+52)
#14 pc 000000000069b3b0 /system/framework/arm64/boot-framework.oat (offset 0x5ea000) (android.app.ActivityThread$H.handleMessage+7088)
#15 pc 000000000069745c /system/framework/arm64/boot-framework.oat (offset 0x5ea000) (android.os.Handler.dispatchMessage+188)
#16 pc 0000000000f69fb0 /system/framework/arm64/boot-framework.oat (offset 0x5ea000) (android.os.Looper.loop+1184)
#17 pc 00000000006b1868 /system/framework/arm64/boot-framework.oat (offset 0x5ea000) (android.app.ActivityThread.main+904)
#18 pc 000000000050ea38 /system/lib64/libart.so (art_quick_invoke_static_stub+600)
#19 pc 00000000000d8110 /system/lib64/libart.so (_ZN3art9ArtMethod6InvokeEPNS_6ThreadEPjjPNS_6JValueEPKc+268)
#20 pc 0000000000436994 /system/lib64/libart.so (_ZN3artL18InvokeWithArgArrayERKNS_33ScopedObjectAccessAlreadyRunnableEPNS_9ArtMethodEPNS_8ArgArrayEPNS_6JValueEPKc+104)
#21 pc 0000000000438504 /system/lib64/libart.so (_ZN3art12InvokeMethodERKNS_33ScopedObjectAccessAlreadyRunnableEP8_jobjectS4_S4_m+1464)
#22 pc 00000000003c18d8 /system/lib64/libart.so (_ZN3artL13Method_invokeEP7_JNIEnvP8_jobjectS3_S3_+48)
#23 pc 0000000000266f74 /system/framework/arm64/boot.oat (offset 0x1db000) (java.lang.Class.getDeclaredMethodInternal [DEDUPED]+180)
#24 pc 0000000001693ac8 /system/framework/arm64/boot-framework.oat (offset 0x5ea000) (com.android.internal.os.Zygote$MethodAndArgsCaller.run+136)
#25 pc 00000000016978d4 /system/framework/arm64/boot-framework.oat (offset 0x5ea000) (com.android.internal.os.ZygoteInit.main+2884)
#26 pc 000000000050ea38 /system/lib64/libart.so (art_quick_invoke_static_stub+600)
#27 pc 00000000000d8110 /system/lib64/libart.so (_ZN3art9ArtMethod6InvokeEPNS_6ThreadEPjjPNS_6JValueEPKc+268)
#28 pc 0000000000436994 /system/lib64/libart.so (_ZN3artL18InvokeWithArgArrayERKNS_33ScopedObjectAccessAlreadyRunnableEPNS_9ArtMethodEPNS_8ArgArrayEPNS_6JValueEPKc+104)
#29 pc 00000000004365e8 /system/lib64/libart.so (_ZN3art17InvokeWithVarArgsERKNS_33ScopedObjectAccessAlreadyRunnableEP8_jobjectP10_jmethodIDSt9__va_list+416)
#30 pc 000000000034b848 /system/lib64/libart.so (_ZN3art3JNI21CallStaticVoidMethodVEP7_JNIEnvP7_jclassP10_jmethodIDSt9__va_list+616)
#31 pc 00000000000b4188 /system/lib64/libandroid_runtime.so (_ZN7_JNIEnv20CallStaticVoidMethodEP7_jclassP10_jmethodIDz+120)
#32 pc 00000000000b6248 /system/lib64/libandroid_runtime.so (_ZN7android14AndroidRuntime5startEPKcRKNS_6VectorINS_7String8EEEb+824)
#33 pc 0000000000002454 /system/bin/app_process64 (main+1348)
#34 pc 000000000001b668 /system/lib64/libc.so (__libc_init+88)
#35 pc 0000000000001e70 /system/bin/app_process64 (do_arm64_start+80)
Related
After clicking the camera option, the flutter Android application crashes, please let me know if anyone have encountered similar problems, and what is the solution?
E/flutter (27819): [ERROR:flutter/fml/platform/android/jni_util.cc(211)] java.lang.RuntimeException: Methods marked with #UiThread must be executed on the main thread. Current thread: 1.raster
E/flutter (27819): at io.flutter.embedding.engine.FlutterJNI.ensureRunningOnMainThread(FlutterJNI.java:1405)
E/flutter (27819): at io.flutter.embedding.engine.FlutterJNI.destroyOverlaySurfaces(FlutterJNI.java:1174)
E/flutter (27819):
F/flutter (27819): [FATAL:flutter/shell/platform/android/platform_view_android_jni_impl.cc(1559)] Check failed: fml::jni::CheckException(env).
F/crashpad(29173): dlopen: dlopen failed: library "libicu.so" not found: needed by /system/lib64/libharfbuzz_ng.so in namespace (default)
F/libc (27819): Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 27967 (1.raster), pid 27819 (.newenergycloud)
Build fingerprint: 'HUAWEI/LIO-AL00/HWLIO:12/HUAWEILIO-AL00/103.0.0.202C00:user/release-keys'
Revision: '0'
ABI: 'arm64'
Timestamp: 2023-02-15 17:25:49.743754003+0800
Process uptime: 0s
Cmdline: com.solway.newenergycloud
pid: 27819, tid: 27967, name: 1.raster >>> com.solway.newenergycloud <<<
uid: 10956
tagged_addr_ctrl: 0000000000000001
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: '[FATAL:flutter/shell/platform/android/platform_view_android_jni_impl.cc(1559)] Check failed: fml::jni::CheckException(env).
'
x0 0000000000000000 x1 0000000000006d3f x2 0000000000000006 x3 0000007ce030f5e0
x4 2e00000000000000 x5 2e00000000000000 x6 2e00000000000000 x7 00000000000000ff
x8 00000000000000f0 x9 c2b79e109d97af94 x10 0000000000000000 x11 ffffff80fffffbdf
x12 0000000000000001 x13 00000000175868d8 x14 ff00000000000000 x15 ffffffffffffffff
x16 0000007e00f61088 x17 0000007e00f3b130 x18 0000007cddcbe000 x19 0000000000006cab
x20 0000000000006d3f x21 00000000ffffffff x22 b400007c7d223c70 x23 b400007c7d223c58
x24 0000000000000071 x25 0000007ce0310000 x26 0000000000000000 x27 0000000000000001
x28 0000000000000071 x29 0000007ce030f660
lr 0000007e00eede58 sp 0000007ce030f5c0 pc 0000007e00eede84 pst 0000000000001000
backtrace:
#00 pc 0000000000089e84 /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: e18cca17d252ede5b01226139ce195f2)
#01 pc 000000000150a740 /data/app/~~X16mpvQKFjCkT6tb2AGl9g==/com.solway.newenergycloud-G9GB52tHtY7f8Q6SLnL7FA==/lib/arm64/libflutter.so (BuildId: c42c6209986a10065da91c022954abcc47cb6c46)
#02 pc 000000000152c79c /data/app/~~X16mpvQKFjCkT6tb2AGl9g==/com.solway.newenergycloud-G9GB52tHtY7f8Q6SLnL7FA==/lib/arm64/libflutter.so (BuildId: c42c6209986a10065da91c022954abcc47cb6c46)
#03 pc 0000000001513f74 /data/app/~~X16mpvQKFjCkT6tb2AGl9g==/com.solway.newenergycloud-G9GB52tHtY7f8Q6SLnL7FA==/lib/arm64/libflutter.so (BuildId: c42c6209986a10065da91c022954abcc47cb6c46)
#04 pc 0000000001bddd98 /data/app/~~X16mpvQKFjCkT6tb2AGl9g==/com.solway.newenergycloud-G9GB52tHtY7f8Q6SLnL7FA==/lib/arm64/libflutter.so (BuildId: c42c6209986a10065da91c022954abcc47cb6c46)
#05 pc 0000000001bdcaf4 /data/app/~~X16mpvQKFjCkT6tb2AGl9g==/com.solway.newenergycloud-G9GB52tHtY7f8Q6SLnL7FA==/lib/arm64/libflutter.so (BuildId: c42c6209986a10065da91c022954abcc47cb6c46)
#06 pc 000000000183e464 /data/app/~~X16mpvQKFjCkT6tb2AGl9g==/com.solway.newenergycloud-G9GB52tHtY7f8Q6SLnL7FA==/lib/arm64/libflutter.so (BuildId: c42c6209986a10065da91c022954abcc47cb6c46)
#07 pc 00000000018496b0 /data/app/~~X16mpvQKFjCkT6tb2AGl9g==/com.solway.newenergycloud-G9GB52tHtY7f8Q6SLnL7FA==/lib/arm64/libflutter.so (BuildId: c42c6209986a10065da91c022954abcc47cb6c46)
#08 pc 000000000152d45c /data/app/~~X16mpvQKFjCkT6tb2AGl9g==/com.solway.newenergycloud-G9GB52tHtY7f8Q6SLnL7FA==/lib/arm64/libflutter.so (BuildId: c42c6209986a10065da91c022954abcc47cb6c46)
#09 pc 00000000015339c8 /data/app/~~X16mpvQKFjCkT6tb2AGl9g==/com.solway.newenergycloud-G9GB52tHtY7f8Q6SLnL7FA==/lib/arm64/libflutter.so (BuildId: c42c6209986a10065da91c022954abcc47cb6c46)
#10 pc 0000000000016984 /system/lib64/libutils.so (android::Looper::pollInner(int)+912) (BuildId: 6769bcce7774e1701581578ee8903b7f)
#11 pc 000000000001658c /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+112) (BuildId: 6769bcce7774e1701581578ee8903b7f)
#12 pc 0000000000017188 /system/lib64/libandroid.so (ALooper_pollOnce+100) (BuildId: a6764f62e371be89b7fb40c0ab75522c)
#13 pc 0000000001533950 /data/app/~~X16mpvQKFjCkT6tb2AGl9g==/com.solway.newenergycloud-G9GB52tHtY7f8Q6SLnL7FA==/lib/arm64/libflutter.so (BuildId: c42c6209986a10065da91c022954abcc47cb6c46)
#14 pc 000000000152d3a4 /data/app/~~X16mpvQKFjCkT6tb2AGl9g==/com.solway.newenergycloud-G9GB52tHtY7f8Q6SLnL7FA==/lib/arm64/libflutter.so (BuildId: c42c6209986a10065da91c022954abcc47cb6c46)
#15 pc 0000000001531250 /data/app/~~X16mpvQKFjCkT6tb2AGl9g==/com.solway.newenergycloud-G9GB52tHtY7f8Q6SLnL7FA==/lib/arm64/libflutter.so (BuildId: c42c6209986a10065da91c022954abcc47cb6c46)
#16 pc 00000000000ebbb0 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+264) (BuildId: e18cca17d252ede5b01226139ce195f2)
#17 pc 000000000008b6a8 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: e18cca17d252ede5b01226139ce195f2)
Lost connection to device.
I have checked the required camera permissions to make sure that the permissions are enabled; then open the camera still crashed.
I'm using my flutter to app to take some pictures, and when using my app on Android 12 (and only Android 12 in my experience), I get random Null Pointer Dereference that cause the app to crash. Right after I took my picture, it crashed and gave me the error below. Here's my code to take a picture from the user's camera:
Future<File?> _getPhotoFromCamera(bool isSelfie) async {
return ImagePicker()
.pickImage(
source: ImageSource.camera,
preferredCameraDevice:
isSelfie ? CameraDevice.front : CameraDevice.rear,
)
.then((value) => value != null ? File(value.path) : null);
}
This is using the image_picker library. Any idea what could cause cause this and how I can fix it ? Thanks in advance !
F/libc ( 6618): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 6678 (1.raster), pid 6618 (a.myApp.int)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/sdk_gphone64_arm64/emulator64_arm64:12/SE1A.220630.001/8789670:userdebug/dev-keys'
Revision: '0'
ABI: 'arm64'
Timestamp: 2022-11-02 18:32:39.122988178+0100
Process uptime: 0s
Cmdline: com.myApp.int
pid: 6618, tid: 6678, name: 1.raster >>> com.myApp.int <<<
uid: 10146
tagged_addr_ctrl: 0000000000000001
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
Cause: null pointer dereference
x0 b4000072af192e90 x1 b4000072af1c8410 x2 0000000000000000 x3 0000000000000010
x4 0000000000000000 x5 00000071f8739800 x6 0000204620000000 x7 0000204620000000
x8 b4000072af1c8a50 x9 0000000000000000 x10 0000000000000000 x11 0000000000000000
x12 0000ffff00000eff x13 00000000609ac3da x14 0000000000007c5a x15 0000000000007b25
x16 0000007252b71560 x17 0000007252bad9d0 x18 00000071f2a7e000 x19 b4000072af1cb150
x20 0000000000000123 x21 b4000072af171890 x22 b40000734f023950 x23 b4000072af1c8418
x24 b4000072af1c8410 x25 0000000000000001 x26 0000000000000001 x27 000000000000000a
x28 b40000733f025209 x29 00000071f8739790
lr 0000007252b58a58 sp 00000071f8739790 pc 0000007252badaec pst 0000000000001000
backtrace:
#00 pc 0000000000014aec /apex/com.android.vndk.v31/lib64/android.hardware.graphics.mapper#3.0.so (void std::__1::__tree_balance_after_insert<std::__1::__tree_node_base<void*>*>(std::__1::__tree_node_base<void*>*, std::__1::__tree_node_base<void*>*)+284) (BuildId: 56e24cf5b4934a9f77d4d3b1f512b98d)
#01 pc 0000000000016a54 /vendor/lib64/libOpenglCodecCommon.so (GLClientState::addTextureRec(unsigned int, unsigned int)+484) (BuildId: c78822f9f2f19c30a0e11ed676fcdaf0)
#02 pc 000000000001678c /vendor/lib64/libOpenglCodecCommon.so (GLClientState::bindTexture(unsigned int, unsigned int, unsigned char*)+120) (BuildId: c78822f9f2f19c30a0e11ed676fcdaf0)
#03 pc 0000000000036a08 /vendor/lib64/libGLESv2_enc.so (GL2Encoder::s_glBindTexture(void*, unsigned int, unsigned int)+84) (BuildId: db657e57584abaa58b282e00731638fa)
#04 pc 000000000188a28c /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#05 pc 0000000001889fc4 /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#06 pc 00000000017f4398 /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#07 pc 00000000017f44b4 /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#08 pc 00000000018029bc /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#09 pc 0000000001804d40 /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#10 pc 00000000018066ec /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#11 pc 00000000017fe148 /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#12 pc 00000000017fe780 /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#13 pc 00000000017ec418 /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#14 pc 00000000017ec9fc /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#15 pc 00000000016c4bec /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#16 pc 0000000001a12f60 /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#17 pc 00000000018ed4f4 /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#18 pc 00000000018ed490 /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#19 pc 00000000019046cc /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#20 pc 0000000001903d88 /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#21 pc 0000000001904b7c /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#22 pc 00000000019035c4 /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#23 pc 0000000001903334 /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#24 pc 0000000001910300 /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#25 pc 00000000015e598c /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#26 pc 00000000015eb244 /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#27 pc 000000000001691c /system/lib64/libutils.so (android::Looper::pollInner(int)+912) (BuildId: a3acb0eba7fd91ea48db6f0befa41c65)
#28 pc 0000000000016524 /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+112) (BuildId: a3acb0eba7fd91ea48db6f0befa41c65)
#29 pc 0000000000017160 /system/lib64/libandroid.so (ALooper_pollOnce+100) (BuildId: 5d401df8830c422f11aa2e322d720831)
#30 pc 00000000015eb1cc /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#31 pc 00000000015e58e8 /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#32 pc 00000000015e9844 /data/app/~~PUhNi259K87XBRkhI_36RQ==/com.myApp.int-NaIJtFK4CP8bf0nb0AVVWQ==/base.apk!libflutter.so (BuildId: ac81dbe6a14145f04ad79b76cf9e5e3c681a3cf3)
#33 pc 00000000000b1910 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+264) (BuildId: ba489d4985c0cf173209da67405662f9)
#34 pc 00000000000513f0 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: ba489d4985c0cf173209da67405662f9)
When I installed APK game local (build by cocos2d-x) (copy over USB) with resources over size 2GB, check log adb has error, google play store has popup keep stopping and i cannot run my apk :
A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 16853 (BlockingExecuto), pid 12159 (android.vending)
E/crash_dump32: unknown process state: t
A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
A/DEBUG: Build fingerprint: 'samsung/beyond2ltexx/beyond2:10/QP1A.190711.020/G975FXXU9DTJA:user/release-keys'
A/DEBUG: Revision: '26'
A/DEBUG: ABI: 'arm'
A/DEBUG: Timestamp:
2020-12-08 11:56:49+0700
A/DEBUG: pid: 12159, tid: 16853, name: BlockingExecuto >>> com.android.vending <<<
A/DEBUG: uid: 10109
A/DEBUG: signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
A/DEBUG: Abort message: 'ubsan: implicit-conversion'
A/DEBUG: r0 00000000 r1 000041d5 r2 00000006 r3 c479f180
A/DEBUG: r4 c479f194 r5 c479f178 r6 00002f7f r7 0000016b
A/DEBUG: r8 c479f190 r9 c479f180 r10 c479f1b0 r11 c479f1a0
A/DEBUG: ip 000041d5 sp c479f150 lr f58893b7 pc f58893ca
A/DEBUG: backtrace:
A/DEBUG: #00 pc 000603ca /apex/com.android.runtime/lib/bionic/libc.so (abort+166) (BuildId: 51d80220c9e0c42255369657a8641799)
A/DEBUG: #01 pc 000118d4 /system/lib/libutils.so (abort_with_message(char const*)+24) (BuildId: da88f99cb4c80fe4fe393ef8e8fd5c71)
A/DEBUG: #02 pc 000119cc /system/lib/libutils.so (__ubsan_handle_implicit_conversion_minimal_abort+24) (BuildId: da88f99cb4c80fe4fe393ef8e8fd5c71)
A/DEBUG: #03 pc 0000a1f9 /system/lib/libutils.so (android::FileMap::create(char const*, int, long long, unsigned int, bool)+336) (BuildId: da88f99cb4c80fe4fe393ef8e8fd5c71)
A/DEBUG: #04 pc 00021cd5 /system/lib/libandroidfw.so (android::ApkAssets::Open(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator> const&, android::Asset::AccessMode) const+236) (BuildId: c2985fc4fb507640b2e6e08af143b74f)
A/DEBUG: #05 pc 0002124f /system/lib/libandroidfw.so (android::ApkAssets::LoadImpl(android::base::unique_fd_implandroid::base::DefaultCloser, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator> const&, std::__1::unique_ptr<android::Asset, std::__1::default_deleteandroid::Asset>, std::__1::unique_ptr<android::LoadedIdmap const, std::__1::default_delete<android::LoadedIdmap const>>, bool, bool)+390) (BuildId: c2985fc4fb507640b2e6e08af143b74f)
A/DEBUG: #06 pc 00021069 /system/lib/libandroidfw.so (android::ApkAssets::Load(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator> const&, bool)+40) (BuildId: c2985fc4fb507640b2e6e08af143b74f)
A/DEBUG: #07 pc 0014914b /system/lib/libandroid_runtime.so (android::NativeLoad(_JNIEnv*, _jclass*, _jstring*, unsigned char, unsigned char, unsigned char)+442) (BuildId: 80997d838eed4d8a33e6074aaefa721e)
A/DEBUG: #08 pc 002e8ae9 /system/framework/arm/boot-framework.oat (art_jni_trampoline+136) (BuildId: 08d023656c5c190cd87e02dca8cd73789c24a32e)
A/DEBUG: #09 pc 00442c2b /system/framework/arm/boot-framework.oat (android.content.pm.PackageParser.parseApkLiteInner+250) (BuildId: 08d023656c5c190cd87e02dca8cd73789c24a32e)
A/DEBUG: #10 pc 0044ad41 /system/framework/arm/boot-framework.oat (android.content.pm.PackageParser.parseMonolithicPackageLite+96) (BuildId: 08d023656c5c190cd87e02dca8cd73789c24a32e)
A/DEBUG: #11 pc 00450d17 /system/framework/arm/boot-framework.oat (android.content.pm.PackageParser.parseMonolithicPackage+70) (BuildId: 08d023656c5c190cd87e02dca8cd73789c24a32e)
A/DEBUG: #12 pc 00439495 /system/framework/arm/boot-framework.oat (android.content.pm.PackageManager.getPackageArchiveInfo+196) (BuildId: 08d023656c5c190cd87e02dca8cd73789c24a32e)
A/DEBUG: #13 pc 00eeaa41 /data/app/com.android.vending-9uL9ZPy1nPnI_iSyOwpVqw==/oat/arm/base.odex (com.google.android.finsky.verifier.impl.VerifyInstallTask.j+328)
A/DEBUG: #14 pc 000d7bc5 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #15 pc 0042e22b /apex/com.android.runtime/lib/libart.so (art_quick_invoke_static_stub+246) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #16 pc 000dffcb /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+194) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #17 pc 00210141 /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+280) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #18 pc 0020ba83 /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*)+774) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #19 pc 00425947 /apex/com.android.runtime/lib/libart.so (MterpInvokeStatic+310) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #20 pc 000d2994 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_static+20) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #21 pc 0112a122 /data/app/com.android.vending-9uL9ZPy1nPnI_iSyOwpVqw==/oat/arm/base.vdex (com.google.android.finsky.verifier.impl.VerifyAppsInstallTask.Z+62)
A/DEBUG: #22 pc 004254a9 /apex/com.android.runtime/lib/libart.so (MterpInvokeDirect+980) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #23 pc 000d2914 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_direct+20) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #24 pc 0112ae72 /data/app/com.android.vending-9uL9ZPy1nPnI_iSyOwpVqw==/oat/arm/base.vdex (com.google.android.finsky.verifier.impl.VerifyAppsInstallTask.mH+1588)
A/DEBUG: #25 pc 00428b03 /apex/com.android.runtime/lib/libart.so (MterpInvokeVirtualQuick+1118) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #26 pc 000d6594 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_virtual_quick+20) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #27 pc 0112ba8a /data/app/com.android.vending-9uL9ZPy1nPnI_iSyOwpVqw==/oat/arm/base.vdex (com.google.android.finsky.verifier.impl.VerifyInstallTask.mH+82)
A/DEBUG: #28 pc 001eb9bd /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.14245495856725529891+192) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #29 pc 001f01a1 /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+124) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #30 pc 00417c89 /apex/com.android.runtime/lib/libart.so (artQuickToInterpreterBridge+808) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #31 pc 000dc5a1 /apex/com.android.runtime/lib/libart.so (art_quick_to_interpreter_bridge+32) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #32 pc 0061b5a3 /data/app/com.android.vending-9uL9ZPy1nPnI_iSyOwpVqw==/oat/arm/base.odex (amgs.run+58)
A/DEBUG: #33 pc 002a8fcf /system/framework/arm/boot.oat (java.util.concurrent.ThreadPoolExecutor.runWorker+1014) (BuildId: 583c1081e85d9d8b674ee07cd01998bc18f28442)
A/DEBUG: #34 pc 002a6c4f /system/framework/arm/boot.oat (java.util.concurrent.ThreadPoolExecutor$Worker.run+54) (BuildId: 583c1081e85d9d8b674ee07cd01998bc18f28442)
A/DEBUG: #35 pc 005dad1f /data/app/com.android.vending-9uL9ZPy1nPnI_iSyOwpVqw==/oat/arm/base.odex (akoy.run+78)
A/DEBUG: #36 pc 00183749 /system/framework/arm/boot.oat (java.lang.Thread.run+64) (BuildId: 583c1081e85d9d8b674ee07cd01998bc18f28442)
A/DEBUG: #37 pc 000d7bc5 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #38 pc 0042e117 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub+250) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #39 pc 000dffb7 /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+174) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #40 pc 0036fc27 /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: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #41 pc 00370919 /apex/com.android.runtime/lib/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+304) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #42 pc 003a18a7 /apex/com.android.runtime/lib/libart.so (art::Thread::CreateCallback(void*)+978) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #43 pc 000a75b3 /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20) (BuildId: 51d80220c9e0c42255369657a8641799)
A/DEBUG: #44 pc 00061b33 /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30) (BuildId: 51d80220c9e0c42255369657a8641799)
E//system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_01
If I decrease resources less than 2GB, i can run app normally. Anyone can help me, plz ?
As your log suggests, the issue lies in the function android::FileMap::create()
where off64_t type is used to call mmap(), when mmap64() should have been called instead.
It has been fixed by Google since then (commit) but unfortunately it will not be deployed until Android R, as stated in this thread in the google issue tracker.
Meanwhile the best is to stay below the 2Go limit so off64_t values doesn't trigger UBSan: implicit conversion that make your app crash.
I am working on application which uses these packages
flutter_local_notifications: ^1.4.4+2
android_alarm_manager: ^0.4.5+11
provider: ^4.3.1
http: ^0.12.2
shared_preferences: ^0.5.8
cached_network_image: ^2.2.0+1
reviews_slider: ^1.0.5
flutter_screenutil: ^2.3.0
scroll_to_index: ^1.0.6
and it works fine in the debug version but when I create a release version it crashes The message that I receive
and the error is
Build fingerprint: 'xiaomi/onc/onc:9/PKQ1.181021.001/V11.0.6.0.PFLMIXM:user/release-keys'
Revision: '0'
ABI: 'arm64'
pid: 7383, tid: 7383, name: ry.zonedelivery >>> com.zonedelivery.zonedelivery <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: '[FATAL:flutter/shell/platform/android/platform_view_android_jni.cc(76)] Check failed: CheckException(env).
'
x0 0000000000000000 x1 0000000000001cd7 x2 0000000000000006 x3 0000000000000008
x4 0000000000800000 x5 0000000000800000 x6 0000000000800000 x7 0000800000000000
x8 0000000000000083 x9 f6d71a4470a7e267 x10 0000000000000000 x11 fffffffc7ffffbdf
x12 0000000000000001 x13 0000000000000070 x14 0000000000000000 x15 00006c977aa9f8c0
x16 0000007f993c42c0 x17 0000007f992f3bc4 x18 0000000000000010 x19 0000000000001cd7
x20 0000000000001cd7 x21 0000007fcab9d588 x22 0000000000000002 x23 0000000000000095
x24 0000007efbfc9f80 x25 0000007ef90fe440 x26 0000007efdeb2000 x27 0000007f18a1de00
x28 0000007efbf87000 x29 0000007fcab9d570
sp 0000007fcab9d530 lr 0000007f992e7084 pc 0000007f992e70ac
backtrace:
#00 pc 00000000000220ac /system/lib64/libc.so (abort+116)
#01 pc 00000000002af058 /data/app/com.zonedelivery.zonedelivery-4d2RJrQKN4uoup8dF8morw==/lib/arm64/libflutter.so (offset 0x290000)
#02 pc 00000000002a3828 /data/app/com.zonedelivery.zonedelivery-4d2RJrQKN4uoup8dF8morw==/lib/arm64/libflutter.so (offset 0x290000)
#03 pc 00000000002a223c /data/app/com.zonedelivery.zonedelivery-4d2RJrQKN4uoup8dF8morw==/lib/arm64/libflutter.so (offset 0x290000)
#04 pc 00000000002dda94 /data/app/com.zonedelivery.zonedelivery-4d2RJrQKN4uoup8dF8morw==/lib/arm64/libflutter.so (offset 0x290000)
#05 pc 00000000002b068c /data/app/com.zonedelivery.zonedelivery-4d2RJrQKN4uoup8dF8morw==/lib/arm64/libflutter.so (offset 0x290000)
#06 pc 00000000002b27dc /data/app/com.zonedelivery.zonedelivery-4d2RJrQKN4uoup8dF8morw==/lib/arm64/libflutter.so (offset 0x290000)
#07 pc 0000000000014ff8 /system/lib64/libutils.so (android::Looper::pollInner(int)+836)
#08 pc 0000000000014c18 /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+60)
#09 pc 0000000000127798 /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+44)
#10 pc 0000000000df0f7c /system/framework/arm64/boot-framework.oat (offset 0xa3d000) (android.media.MediaExtractor.seekTo [DEDUPED]+140)
#11 pc 00000000017a7920 /system/framework/arm64/boot-framework.oat (offset 0xa3d000) (android.os.MessageQueue.next+240)
#12 pc 0000000001f7efdc /system/framework/arm64/boot-framework.oat (offset 0xa3d000) (android.os.Looper.loop+636)
#13 pc 0000000000f29688 /system/framework/arm64/boot-framework.oat (offset 0xa3d000) (android.app.ActivityThread.main+664)
#14 pc 000000000055704c /system/lib64/libart.so (art_quick_invoke_static_stub+604)
#15 pc 00000000000cfce8 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
#16 pc 000000000045dcfc /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
#17 pc 000000000045f750 /system/lib64/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+1440)
#18 pc 00000000003ef450 /system/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+52)
#19 pc 000000000078eed4 /system/framework/arm64/boot-core-oj.oat (offset 0x2dc000) (java.lang.Class.getDeclaredMethodInternal [DEDUPED]+180)
#20 pc 000000000247de18 /system/framework/arm64/boot-framework.oat (offset 0xa3d000) (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+136)
#21 pc 000000000248a1b8 /system/framework/arm64/boot-framework.oat (offset 0xa3d000) (com.android.internal.os.ZygoteInit.main+2104)
#22 pc 000000000055704c /system/lib64/libart.so (art_quick_invoke_static_stub+604)
#23 pc 00000000000cfce8 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
#24 pc 000000000045dcfc /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
#25 pc 000000000045d95c /system/lib64/libart.so (art::InvokeWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+424)
#26 pc 0000000000362d70 /system/lib64/libart.so (art::JNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+652)
#27 pc 00000000000b287c /system/lib
I realized that the problem is R8 shrinking technique because it removes some needed code from the local Notification package and to solve it you need to keep the needed code by adding it to the proguard-rules file
it's mentioned here in their documentation.
I'm receiving a native crash using a shared element transition between activities, but only for Android 8.1 and on Google devices (Pixel, Pixel 2, Nexus 6P, etc...):
pid: 20499, tid: 22683, name: RenderThread >>> [APPNAME] <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: 'sp<> assignment detected data race'
x0 0000000000000000 x1 000000000000589b x2 0000000000000006 x3 0000000000000008
x4 0700007411003135 x5 0700007411003135 x6 0700007411003135 x7 3531ffffffffffff
x8 0000000000000083 x9 0000000010000000 x10 0000007214bf4ca0 x11 0000000000000001
x12 0000007214bf4dc0 x13 ffffffffffffffff x14 ffffffffffff0000 x15 ffffffffffffffff
x16 0000005c0f077fa8 x17 00000072b09c752c x18 0000000000000008 x19 0000000000005013
x20 000000000000589b x21 0000000000000083 x22 00000072249f1f40 x23 00000072249f1f58
x24 0000007214717590 x25 00000072248393a0 x26 00000072118d9220 x27 0000007214bf5350
x28 0000007214bf5300 x29 0000007214bf4ce0 x30 00000072b097c760
sp 0000007214bf4ca0 pc 00000072b097c788 pstate 0000000060000000
backtrace:
#00 pc 000000000001d788 /system/lib64/libc.so (abort+120)
#01 pc 0000000000007f08 /system/lib64/liblog.so (__android_log_assert+296)
#02 pc 0000000000010af4 /system/lib64/libutils.so (android::sp_report_race()+28)
#03 pc 00000000000fdd08 /system/lib64/libandroid_runtime.so (android::RootRenderNode::detachAnimators()+320)
#04 pc 00000000000fbcac /system/lib64/libandroid_runtime.so (android::AnimationContextBridge::destroy()+24)
#05 pc 000000000006fbd0 /system/lib64/libhwui.so (android::uirenderer::renderthread::Bridge_destroy(android::uirenderer::renderthread::destroyArgs*)+12)
#06 pc 00000000000718fc /system/lib64/libhwui.so (android::uirenderer::renderthread::MethodInvokeRenderTask::run()+24)
#07 pc 0000000000071c70 /system/lib64/libhwui.so (android::uirenderer::renderthread::SignalingRenderTask::run()+28)
#08 pc 0000000000072a58 /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+336)
#09 pc 0000000000011478 /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+280)
#10 pc 00000000000a9814 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+140)
#11 pc 0000000000067d80 /system/lib64/libc.so (__pthread_start(void*)+36)
#12 pc 000000000001ec18 /system/lib64/libc.so (__start_thread+68)
It crashes also if the app is on background. How can I solve this? It seems to happen only if the Hardware Acceleration is enable, but I really need it enabled on my app.
I was having same issue with an AnimatedVectorDrawable set as a background of an ImageView. So basically i was showing the same animation in different rows of a recyclerview but using same object of AnimatedVectorDrawable, which lead to this crash. I solved it by creating separate objects for separate ViewHolders.
Saw the same native stack sometimes when (inadvertently) trying to restart an animation loop for an AnimatedVectorDrawable after (or perhaps while) trying to pause an Activity.
For reference, the animation loop was this:
((Animatable2)animatable).registerAnimationCallback(new Animatable2.AnimationCallback() {
#Override
public void onAnimationEnd(Drawable drawable) {
animatable.start();
}
});
When toggling away from the app, this was logged:
W/WindowManager: Unable to start animation, surface is null or no children.
Followed by a similar native stack for a race condition:
A/DEBUG: backtrace:
A/DEBUG: #00 pc 0000000000021abc /system/lib64/libc.so (abort+124)
A/DEBUG: #01 pc 00000000000080f8 /system/lib64/liblog.so (__android_log_assert+296)
A/DEBUG: #02 pc 000000000000f26c /system/lib64/libutils.so (android::sp_report_race()+28)
A/DEBUG: #03 pc 000000000010d698 /system/lib64/libandroid_runtime.so (android::RootRenderNode::detachAnimators()+320)
A/DEBUG: #04 pc 000000000010b768 /system/lib64/libandroid_runtime.so (android::AnimationContextBridge::destroy()+24)
A/DEBUG: #05 pc 00000000005d211c /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::destroy()+124)
A/DEBUG: #06 pc 00000000005d5550 /system/lib64/libhwui.so (std::__1::packaged_task<void ()>::operator()()+88)
A/DEBUG: #07 pc 00000000005870b0 /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+168)
A/DEBUG: #08 pc 00000000001fd60c /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+244)
A/DEBUG: #09 pc 000000000000fb80 /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+280)
A/DEBUG: #10 pc 0000000000083114 /system/lib64/libc.so (__pthread_start(void*)+36)
A/DEBUG: #11 pc 00000000000233bc /system/lib64/libc.so (__start_thread+68)
This has stopped the problem - it should have been there all along in the Activity class:
#Override
protected void onPause() {
super.onPause();
animatable.stop();
}