gpt4 book ai didi

android - native Android 崩溃 - 无效位图

转载 作者:可可西里 更新时间:2023-11-01 17:56:38 25 4
gpt4 key购买 nike

我在 Google Developer Console 中收到带有中止消息的崩溃报告:“错误,无法在此处访问无效/免费位图!”。到目前为止,下面的堆栈跟踪是我能够掌握的全部内容。该问题仅发生在 Android 6.0 设备 (marshmallow) 上。我无法在我的任何设备上重现该问题。看到这一点的用户甚至无法打开应用程序;它甚至在向他们展示应用程序的任何视觉表示之前就崩溃了。由于错误涉及位图,我遍历了整个项目以查找损坏的图像文件,但没有找到任何文件。有什么建议么?谢谢!

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint:'google/ryu/dragon:6.0.1/MXC89L/3084571:user/release-keys'
Revision: '0'
ABI: 'arm64'
pid: 15550, tid: 15550, name: appname >>> com.domain.appname <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: 'Error, cannot access an invalid/free'd bitmap here!'
x0 0000000000000000 x1 0000000000003cbe x2 0000000000000006 x3 0000000000000000
x4 0000000000000000 x5 0000000000000001 x6 0000000000000000 x7 0000000000000000
x8 0000000000000083 x9 000000000000003c x10 0000007fcd9a8e2c x11 0000007fcd9a8e68
x12 0000007fcd9a8d40 x13 0000000000000034 x14 0000007fcd9a8f18 x15 0000000000000000
x16 0000007b0b1996a8 x17 0000007b0b15caac x18 0000007b0b51c418 x19 0000007b0b59c0a8
x20 0000007b0b59bfe8 x21 000000000000000b x22 0000000000000006 x23 0000007b0c3f9900
x24 0000000000000000 x25 000000007081e970 x26 0000007fcd9a9928 x27 0000007fcd9a9950
x28 0000007af426d340 x29 0000007fcd9a8dd0 x30 0000007b0b15a248
sp 0000007fcd9a8dd0 pc 0000007b0b15cab4 pstate 0000000020000000

backtrace:
#00 pc 000000000006aab4 /system/lib64/libc.so (tgkill+8)
#01 pc 0000000000068244 /system/lib64/libc.so (pthread_kill+68)
#02 pc 0000000000021238 /system/lib64/libc.so (raise+28)
#03 pc 000000000001b9d8 /system/lib64/libc.so (abort+60)
#04 pc 000000000000ceec /system/lib64/libcutils.so (__android_log_assert+236)
#05 pc 00000000000e8720 /system/lib64/libandroid_runtime.so (_ZNK7android6Bitmap11assertValidEv+40)
#06 pc 00000000000e8804 /system/lib64/libandroid_runtime.so (_ZN7android6Bitmap11getSkBitmapEP8SkBitmap+20)
#07 pc 00000000000fa2b8 /system/lib64/libandroid_runtime.so
#08 pc 00000000730a6f84 /data/dalvik-cache/arm64/system@framework@boot.oat (offset 0x1eda000)

我也看到了这个堆栈跟踪,我猜它是相关的:

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/j3xlteuc/j3xlteatt:6.0.1/MMB29K/J320AUCU1APC9:user/release-keys'
Revision: '0'
ABI: 'arm'
pid: 29403, tid: 29403, name: appname >>> com.domain.appname <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: 'Error, cannot access an invalid/free'd bitmap here!'
r0 00000000 r1 000072db r2 00000006 r3 b6fb2d9c
r4 b6fb2da4 r5 b6fb2d54 r6 0000000b r7 0000010c
r8 00000000 r9 b4924500 sl 12e7a280 fp 70c321e8
ip 00000006 sp bebb7540 lr b6d11501 pc b6d138f0 cpsr 400b0010

backtrace:
#00 pc 000428f0 /system/lib/libc.so (tgkill+12)
#01 pc 000404fd /system/lib/libc.so (pthread_kill+32)
#02 pc 0001cc4b /system/lib/libc.so (raise+10)
#03 pc 00019ec9 /system/lib/libc.so (__libc_android_abort+34)
#04 pc 00017550 /system/lib/libc.so (abort+4)
#05 pc 00008723 /system/lib/libcutils.so (__android_log_assert+86)
#06 pc 00090523 /system/lib/libandroid_runtime.so (android::Bitmap::assertValid() const+18)
#07 pc 0009059f /system/lib/libandroid_runtime.so (android::Bitmap::getSkBitmap(SkBitmap*)+6)
#08 pc 00099c35 /system/lib/libandroid_runtime.so
#09 pc 033768df /system/framework/arm/boot.oat (offset 0x2f4c000)

最佳答案

如果您的位图调用 recycle() 方法,它可能会崩溃。尝试不使用 yourbitmap.recycle() 方法。

关于android - native Android 崩溃 - 无效位图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39253368/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com