錯誤日誌:
06-04 11:50:26.396 25973 25973 W Bitmap : Called getWidth() on a recycle()'d bitmap! This is undefined behavior!
06-04 11:50:26.396 25973 25973 W Bitmap : Called getHeight() on a recycle()'d bitmap! This is undefined behavior!
06-04 11:50:26.396 25973 25973 W Bitmap : Called getGenerationId() on a recycle()'d bitmap! This is undefined behavior!
06-04 11:50:26.396 25973 25973 W Bitmap : Called getHeight() on a recycle()'d bitmap! This is undefined behavior!
06-04 11:50:26.396 25973 25973 W Bitmap : Called getWidth() on a recycle()'d bitmap! This is undefined behavior!
06-04 11:50:26.396 25973 25973 F Bitmap : Error, cannot access an invalid/free'd bitmap here!
06-04 11:50:26.396 25973 25973 F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 25973 (lient.awork.std), pid 25973 (lient.awork.std)
06-04 11:50:26.452 26063 26063 I crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone
06-04 11:50:26.452 914 914 I /system/bin/tombstoned: received crash request for pid 25973
06-04 11:50:26.453 26063 26063 I crash_dump32: performing dump of process 25973 (target tid = 25973)
06-04 11:50:26.465 26063 26063 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
06-04 11:50:26.465 26063 26063 F DEBUG : Build fingerprint: 'HUAWEI/LYA-AL00/HWLYA:10/HUAWEILYA-AL00/10.0.0.200C00:user/release-keys'
06-04 11:50:26.465 26063 26063 F DEBUG : Revision: '0'
06-04 11:50:26.465 26063 26063 F DEBUG : ABI: 'arm'
06-04 11:50:26.466 26063 26063 F DEBUG : SYSVMTYPE: Maple
06-04 11:50:26.466 26063 26063 F DEBUG : APPVMTYPE: Art
06-04 11:50:26.466 26063 26063 F DEBUG : Timestamp: 2020-06-04 11:50:26+0800
06-04 11:50:26.466 26063 26063 F DEBUG : pid: 25973, tid: 25973, name: lient.awork.std >>> com.xxx <<<
06-04 11:50:26.466 26063 26063 F DEBUG : uid: 10053
06-04 11:50:26.466 26063 26063 F DEBUG : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
06-04 11:50:26.466 26063 26063 F DEBUG : Abort message: 'Error, cannot access an invalid/free'd bitmap here!'
06-04 11:50:26.466 26063 26063 F DEBUG : r0 00000000 r1 00006575 r2 00000006 r3 ffef2fb0
06-04 11:50:26.466 26063 26063 F DEBUG : r4 ffef2fc4 r5 ffef2fa8 r6 00006575 r7 0000016b
06-04 11:50:26.466 26063 26063 F DEBUG : r8 ffef2fc0 r9 ffef2fb0 r10 ffef2fe0 r11 ffef2fd0
06-04 11:50:26.466 26063 26063 F DEBUG : ip 00006575 sp ffef2f80 lr e9aa0143 pc e9aa0156
06-04 11:50:26.524 888 18615 I Pged-IPgedBinderService: ****action is 2, pid num is 8***
06-04 11:50:26.524 888 18615 I Pged-Freezer: thawPids
06-04 11:50:26.527 2531 2829 D PgedBinderAdapter: unF_Z ok, pid: [18618, 18132, 18081, 13470, 16648, 1993, 25610]
06-04 11:50:26.658 26063 26063 F DEBUG :
06-04 11:50:26.658 26063 26063 F DEBUG : backtrace:
06-04 11:50:26.658 26063 26063 F DEBUG : #00 pc 00054156 /apex/com.android.runtime/lib/bionic/libc.so (abort+166) (BuildId: f2470da1a22265f8104ce6bb9bcaf63e)
06-04 11:50:26.658 26063 26063 F DEBUG : #01 pc 00005abf /system/lib/liblog.so (__android_log_assert+174) (BuildId: 4228cdd13dbd02e27f95a8b8cbf910c5)
06-04 11:50:26.658 26063 26063 F DEBUG : #02 pc 00105c7b /system/lib/libandroid_runtime.so (android::bitmap::toBitmap(long long)+22) (BuildId: b8e3476e8a5ec5c93be29323f3cbc253)
06-04 11:50:26.658 26063 26063 F DEBUG : #03 pc 000c8fcd /system/lib/libandroid_runtime.so (android::CanvasJNI::drawBitmapMatrix(_JNIEnv*, _jobject*, long long, long long, long long, long long)+8) (BuildId: b8e3476e8a5ec5c93be29323f3cbc253)
06-04 11:50:26.658 26063 26063 F DEBUG : #04 pc 002d1d41 /system/framework/arm/boot-framework.oat (art_jni_trampoline+152) (BuildId: 5960df898a0fe00574f6ae4840db665004c76653)
06-04 11:50:26.658 26063 26063 F DEBUG : #05 pc 0059d155 /system/framework/arm/boot-framework.oat (android.graphics.Canvas.drawBitmap+196) (BuildId: 5960df898a0fe00574f6ae4840db665004c76653)
06-04 11:50:26.658 26063 26063 F DEBUG : #06 pc 000e1bc5 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.658 26063 26063 F DEBUG : #07 pc 0044cbab /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub+250) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.658 26063 26063 F DEBUG : #08 pc 000e9ff5 /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+160) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.658 26063 26063 F DEBUG : #09 pc 0021b15f /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+274) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.658 26063 26063 F DEBUG : #10 pc 002172c7 /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*)+802) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.658 26063 26063 F DEBUG : #11 pc 00441d61 /apex/com.android.runtime/lib/libart.so (MterpInvokeVirtual+584) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.658 26063 26063 F DEBUG : #12 pc 000dc814 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_virtual+20) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.658 25973 26052 I PTOTOCAL: ssl_init set cipher:AES128-SHA
06-04 11:50:26.658 26063 26063 F DEBUG : #13 pc 00415f4e /system/framework/framework.jar (com.android.internal.util.HwNotificationColorUtil.compressPicture+122)
06-04 11:50:26.658 26063 26063 F DEBUG : #14 pc 00443edb /apex/com.android.runtime/lib/libart.so (MterpInvokeDirect+994) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.658 26063 26063 F DEBUG : #15 pc 000dc914 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_direct+20) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.658 26063 26063 F DEBUG : #16 pc 004163a0 /system/framework/framework.jar (com.android.internal.util.HwNotificationColorUtil.getSmallIconColorType+92)
06-04 11:50:26.658 26063 26063 F DEBUG : #17 pc 00443edb /apex/com.android.runtime/lib/libart.so (MterpInvokeDirect+994) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.658 26063 26063 F DEBUG : #18 pc 000dc914 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_direct+20) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.658 26063 26063 F DEBUG : #19 pc 00416500 /system/framework/framework.jar (com.android.internal.util.HwNotificationColorUtil.getSmallIconColorType+44)
06-04 11:50:26.658 26063 26063 F DEBUG : #20 pc 00443edb /apex/com.android.runtime/lib/libart.so (MterpInvokeDirect+994) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.658 26063 26063 F DEBUG : #21 pc 000dc914 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_direct+20) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.658 26063 26063 F DEBUG : #22 pc 00416286 /system/framework/framework.jar (com.android.internal.util.HwNotificationColorUtil.getSmallIconColorType+62)
06-04 11:50:26.658 26063 26063 F DEBUG : #23 pc 00443edb /apex/com.android.runtime/lib/libart.so (MterpInvokeDirect+994) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #24 pc 000dc914 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_direct+20) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #25 pc 0041621a /system/framework/framework.jar (com.android.internal.util.HwNotificationColorUtil.getSmallIconColorType+38)
06-04 11:50:26.659 26063 26063 F DEBUG : #26 pc 001f75b3 /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.6213623802244784416+194) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #27 pc 001fbc25 /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+120) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #28 pc 00431a8d /apex/com.android.runtime/lib/libart.so (artQuickToInterpreterBridge+832) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #29 pc 000e65a1 /apex/com.android.runtime/lib/libart.so (art_quick_to_interpreter_bridge+32) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #30 pc 0051dab9 /system/framework/arm/boot-framework.oat (android.app.HwNotificationEx.isPureColorIcon+184) (BuildId: 5960df898a0fe00574f6ae4840db665004c76653)
06-04 11:50:26.659 26063 26063 F DEBUG : #31 pc 003f2c75 /system/framework/arm/boot-framework.oat (android.app.Notification$Builder.processSmallIconColor+292) (BuildId: 5960df898a0fe00574f6ae4840db665004c76653)
06-04 11:50:26.659 26063 26063 F DEBUG : #32 pc 003f0835 /system/framework/arm/boot-framework.oat (android.app.Notification$Builder.bindSmallIcon+460) (BuildId: 5960df898a0fe00574f6ae4840db665004c76653)
06-04 11:50:26.659 26063 26063 F DEBUG : #33 pc 003f0187 /system/framework/arm/boot-framework.oat (android.app.Notification$Builder.bindNotificationHeader+46) (BuildId: 5960df898a0fe00574f6ae4840db665004c76653)
06-04 11:50:26.659 26063 26063 F DEBUG : #34 pc 003ee869 /system/framework/arm/boot-framework.oat (android.app.Notification$Builder.applyStandardTemplate+384) (BuildId: 5960df898a0fe00574f6ae4840db665004c76653)
06-04 11:50:26.659 26063 26063 F DEBUG : #35 pc 003f43e7 /system/framework/arm/boot-framework.oat (android.app.Notification$Builder.createContentView+310) (BuildId: 5960df898a0fe00574f6ae4840db665004c76653)
06-04 11:50:26.659 26063 26063 F DEBUG : #36 pc 003f4297 /system/framework/arm/boot-framework.oat (android.app.Notification$Builder.createContentView [DEDUPED]+38) (BuildId: 5960df898a0fe00574f6ae4840db665004c76653)
06-04 11:50:26.659 26063 26063 F DEBUG : #37 pc 003f3c8f /system/framework/arm/boot-framework.oat (android.app.Notification$Builder.build+662) (BuildId: 5960df898a0fe00574f6ae4840db665004c76653)
06-04 11:50:26.659 26063 26063 F DEBUG : #38 pc 000e1bc5 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #39 pc 0044cbab /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub+250) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #40 pc 000e9ff5 /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+160) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #41 pc 0021b15f /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+274) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #42 pc 002172c7 /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*)+802) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #43 pc 00447409 /apex/com.android.runtime/lib/libart.so (MterpInvokeVirtualQuick+544) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #44 pc 000e0594 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_virtual_quick+20) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #45 pc 0011c96a /data/app/com.xxx-F11tECMobhODrjqh5JeY9A==/oat/arm/base.vdex (android.support.v4.app.NotificationCompatApi21$Builder.build+4)
06-04 11:50:26.659 26063 26063 F DEBUG : #46 pc 004434d5 /apex/com.android.runtime/lib/libart.so (MterpInvokeInterface+1468) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #47 pc 000dca14 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_interface+20) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #48 pc 0010e6aa /data/app/com.xxx-F11tECMobhODrjqh5JeY9A==/oat/arm/base.vdex (android.support.v4.app.NotificationCompat$BuilderExtender.build)
06-04 11:50:26.659 26063 26063 F DEBUG : #49 pc 0044767b /apex/com.android.runtime/lib/libart.so (MterpInvokeVirtualQuick+1170) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #50 pc 000e0594 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_virtual_quick+20) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #51 pc 00123a16 /data/app/xxx-F11tECMobhODrjqh5JeY9A==/oat/arm/base.vdex (android.support.v4.app.NotificationCompat$NotificationCompatImplApi21.build+318)
06-04 11:50:26.659 26063 26063 F DEBUG : #52 pc 001f75b3 /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.6213623802244784416+194) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #53 pc 001fbc25 /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+120) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #54 pc 00431a8d /apex/com.android.runtime/lib/libart.so (artQuickToInterpreterBridge+832) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #55 pc 000e65a1 /apex/com.android.runtime/lib/libart.so (art_quick_to_interpreter_bridge+32) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #58 pc 000e1bc5 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #59 pc 0044cbab /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub+250) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #60 pc 000e9ff5 /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+160) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #61 pc 0021b15f /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+274) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #62 pc 002172c7 /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*)+802) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #63 pc 00443c5f /apex/com.android.runtime/lib/libart.so (MterpInvokeDirect+358) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #64 pc 000dc914 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_direct+20) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #66 pc 001f75b3 /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.6213623802244784416+194) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #67 pc 001fbc25 /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+120) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #68 pc 00431a8d /apex/com.android.runtime/lib/libart.so (artQuickToInterpreterBridge+832) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #69 pc 000e65a1 /apex/com.android.runtime/lib/libart.so (art_quick_to_interpreter_bridge+32) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #70 pc 000e1bc5 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #71 pc 0044cbab /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub+250) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #72 pc 000e9ff5 /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+160) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #73 pc 00388e83 /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: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #74 pc 0038a167 /apex/com.android.runtime/lib/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned int)+798) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #75 pc 0033465f /apex/com.android.runtime/lib/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+30) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #76 pc 000f07ef /system/framework/arm/boot.oat (art_jni_trampoline+110) (BuildId: f164b5d1dfa575baea14f65785892282b6fb39b1)
06-04 11:50:26.659 26063 26063 F DEBUG : #82 pc 000e1bc5 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #83 pc 0044cbab /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub+250) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #84 pc 000e9ff5 /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+160) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #85 pc 0021b15f /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+274) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #86 pc 002172c7 /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*)+802) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #87 pc 00447409 /apex/com.android.runtime/lib/libart.so (MterpInvokeVirtualQuick+544) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #88 pc 000e0594 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_virtual_quick+20) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #90 pc 00443edb /apex/com.android.runtime/lib/libart.so (MterpInvokeDirect+994) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #91 pc 000dc914 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_direct+20) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #93 pc 004445e1 /apex/com.android.runtime/lib/libart.so (MterpInvokeStatic+932) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #94 pc 000dc994 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_static+20) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #96 pc 001f75b3 /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.6213623802244784416+194) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #97 pc 001fbc25 /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+120) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #98 pc 00431a8d /apex/com.android.runtime/lib/libart.so (artQuickToInterpreterBridge+832) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #99 pc 000e65a1 /apex/com.android.runtime/lib/libart.so (art_quick_to_interpreter_bridge+32) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.659 26063 26063 F DEBUG : #100 pc 0051e7a9 /system/framework/arm/boot-framework.oat (android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$LoadedApk$ReceiverDispatcher$Args+1192) (BuildId: 5960df898a0fe00574f6ae4840db665004c76653)
06-04 11:50:26.659 26063 26063 F DEBUG : #101 pc 003d1f0d /system/framework/arm/boot-framework.oat (android.app.-$$Lambda$LoadedApk$ReceiverDispatcher$Args$_BumDX2UKsnxLVrE6UJsJZkotuA.run+52) (BuildId: 5960df898a0fe00574f6ae4840db665004c76653)
06-04 11:50:26.659 26063 26063 F DEBUG : #102 pc 0075ad51 /system/framework/arm/boot-framework.oat (android.os.Handler.dispatchMessage+64) (BuildId: 5960df898a0fe00574f6ae4840db665004c76653)
06-04 11:50:26.659 26063 26063 F DEBUG : #103 pc 0075d7b7 /system/framework/arm/boot-framework.oat (android.os.Looper.loop+1286) (BuildId: 5960df898a0fe00574f6ae4840db665004c76653)
06-04 11:50:26.659 26063 26063 F DEBUG : #104 pc 004f65d1 /system/framework/arm/boot-framework.oat (android.app.ActivityThread.main+1536) (BuildId: 5960df898a0fe00574f6ae4840db665004c76653)
06-04 11:50:26.660 26063 26063 F DEBUG : #105 pc 000e1bc5 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.660 26063 26063 F DEBUG : #106 pc 0044ccbf /apex/com.android.runtime/lib/libart.so (art_quick_invoke_static_stub+246) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.660 26063 26063 F DEBUG : #107 pc 000ea009 /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+180) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.660 26063 26063 F DEBUG : #108 pc 00388e83 /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: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.660 26063 26063 F DEBUG : #109 pc 0038a167 /apex/com.android.runtime/lib/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned int)+798) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.660 26063 26063 F DEBUG : #110 pc 0033465f /apex/com.android.runtime/lib/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+30) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.660 26063 26063 F DEBUG : #111 pc 000f07ef /system/framework/arm/boot.oat (art_jni_trampoline+110) (BuildId: f164b5d1dfa575baea14f65785892282b6fb39b1)
06-04 11:50:26.660 26063 26063 F DEBUG : #112 pc 00948853 /system/framework/arm/boot-framework.oat (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+114) (BuildId: 5960df898a0fe00574f6ae4840db665004c76653)
06-04 11:50:26.660 26063 26063 F DEBUG : #113 pc 0094f083 /system/framework/arm/boot-framework.oat (com.android.internal.os.ZygoteInit.main+2122) (BuildId: 5960df898a0fe00574f6ae4840db665004c76653)
06-04 11:50:26.660 26063 26063 F DEBUG : #114 pc 000e1bc5 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.660 26063 26063 F DEBUG : #115 pc 0044ccbf /apex/com.android.runtime/lib/libart.so (art_quick_invoke_static_stub+246) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.660 26063 26063 F DEBUG : #116 pc 000ea009 /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+180) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.660 26063 26063 F DEBUG : #117 pc 00388e83 /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: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.660 26063 26063 F DEBUG : #118 pc 00388cb5 /apex/com.android.runtime/lib/libart.so (art::InvokeWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+288) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.660 26063 26063 F DEBUG : #119 pc 002c7a0f /apex/com.android.runtime/lib/libart.so (art::JNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+458) (BuildId: 2414152b7788a9b8520d543b931388a5)
06-04 11:50:26.660 26063 26063 F DEBUG : #120 pc 00098391 /system/lib/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+28) (BuildId: b8e3476e8a5ec5c93be29323f3cbc253)
06-04 11:50:26.660 26063 26063 F DEBUG : #121 pc 0009af91 /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+504) (BuildId: b8e3476e8a5ec5c93be29323f3cbc253)
06-04 11:50:26.660 26063 26063 F DEBUG : #122 pc 000022f5 /system/bin/app_process32 (main+688) (BuildId: 9979c215af59ed821fac6ea4f956225d)
06-04 11:50:26.660 26063 26063 F DEBUG : #123 pc 0004dffb /apex/com.android.runtime/lib/bionic/libc.so (__libc_init+66) (BuildId: f2470da1a22265f8104ce6bb9bcaf63e)
06-04 11:50:26.660 26063 26063 F DEBUG : #124 pc 0000202f /system/bin/app_process32 (_start_main+38) (BuildId: 9979c215af59ed821fac6ea4f956225d)
06-04 11:50:26.660 26063 26063 F DEBUG : #125 pc 00004456 <anonymous:ee0fe000>
其中關鍵日誌是
06-04 11:50:26.396 25973 25973 W Bitmap : Called getWidth() on a recycle()'d bitmap! This is undefined behavior!
06-04 11:50:26.396 25973 25973 W Bitmap : Called getHeight() on a recycle()'d bitmap! This is undefined behavior!
06-04 11:50:26.396 25973 25973 W Bitmap : Called getGenerationId() on a recycle()'d bitmap! This is undefined behavior!
06-04 11:50:26.396 25973 25973 W Bitmap : Called getHeight() on a recycle()'d bitmap! This is undefined behavior!
06-04 11:50:26.396 25973 25973 W Bitmap : Called getWidth() on a recycle()'d bitmap! This is undefined behavior!
06-04 11:50:26.396 25973 25973 F Bitmap : Error, cannot access an invalid/free'd bitmap here!
分析:
從報錯裏可以知道該問題是因爲bitmap被recycle後(bitmap.recycle()),又去獲取該bitmap的getHeight和getWidth導致的
解決方法:
1. 規範回收
if (bitmap != null && !bitmap.isRecycled()) {
bitmap.recycle();
}
bitmap = null;
2. 確認bitmp不需要使用時才recycle;
3. 共用bitmap的最好不要進行recycle;