facebook / facebook/fresco

'unknown bitmap configuration'

Open
#2,809 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
17.2k
Forks
3.7k
PR merge metrics
No merged PRs in 30d

Description

When I load local images, this issue occurs. The issue log is as follows :

ABI: 'arm64'
Timestamp: 2024-11-06 08:48:07.937 (LaunchTime:1730853964097,CrashTime:1730854087938,JavaProcess:com.xxx.xxx)
pid: 25750, tid: 25937, name: Fresco_IoBoundE >>> com.xxx.xxx <<<
signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
Abort message: 'unknown bitmap configuration'
x0 0000000000000000 x1 0000000000006551 x2 0000000000000006 x3 000000714a0fceb0
x4 0000000000000000 x5 0000000000000000 x6 0000000000000000 x7 7f7f7f7f7f7f7f7f
x8 00000000000000f0 x9 e55ffd8689b3bcd4 x10 0000000000000001 x11 0000000000000000
x12 fffffff0fffffbdf x13 ffffffffffffffff x14 0000000000000004 x15 ffffffffffffffff
x16 00000072752a8a08 x17 00000072752887c0 x18 0000007139850000 x19 0000000000006496
x20 0000000000006551 x21 00000000ffffffff x22 000000007fffffff x23 000000007fffffff
x24 0000000000000000 x25 0000000000000000 x26 000000714a0ff020 x27 0000000000000002
x28 0000000000000000 x29 000000714a0fcf50
sp 000000714a0fce90 lr 000000727523d640 pc 000000727523d66c

backtrace:
#00 pc 000000000007066c /apex/com.android.runtime/lib64/bionic/libc.so (abort+160)
#01 pc 0000000000009a68 /system/lib64/liblog.so (__android_log_assert+324)
#02 pc 000000000038a2c0 /system/lib64/libhwui.so (android::allocateBitmap(SkBitmap*, sk_sp (*)(unsigned long, SkImageInfo const&, unsigned long))+192)
#03 pc 00000000001a5468 /system/lib64/libandroid_runtime.so (Bitmap_creator(_JNIEnv*, _jobject*, _jintArray*, int, int, int, int, int, unsigned char, long)+288)
#04 pc 00000000002f1ff0 /system/framework/arm64/boot-framework.oat (art_jni_trampoline+240)
#05 pc 0000000000653228 /system/framework/arm64/boot-framework.oat (android.graphics.Bitmap.createBitmap+328)
#06 pc 00000000006529d0 /system/framework/arm64/boot-framework.oat (android.graphics.Bitmap.createBitmap+1376)
#07 pc 00000000001485b8 /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_static_stub+568)
#08 pc 00000000001571d4 /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+284)
#09 pc 00000000002fe588 /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384)
#10 pc 00000000002fa8ec /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+656)
#11 pc 00000000005d6b00 /apex/com.android.runtime/lib64/libart.so (MterpInvokeStaticRange+236)
#12 pc 0000000000142c94 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static_range+20)
#13 pc 00000000001fa02c /system/framework/framework.jar
#14 pc 00000000005d3fa8 /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+1136)
#15 pc 0000000000142994 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20)
#16 pc 00000000001f9e5e /system/framework/framework.jar
#17 pc 00000000005d3fa8 /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+1136)
#18 pc 0000000000142994 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20)
#19 pc 00000000001f9df6 /system/framework/framework.jar
#20 pc 00000000005d3fa8 /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+1136)
#21 pc 0000000000142994 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20)
#22 pc 0000000000a8d744 /data/app/com.xxx.xxx--WIpQ8uruvjzWs84EeD-AA==/oat/arm64/base.vdex
#23 pc 00000000005d7618 /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtualQuick+1368)
#24 pc 0000000000146594 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual_quick+20)
#25 pc 0000000000a8d7fa /data/app/com.xxx.xxx--WIpQ8uruvjzWs84EeD-AA==/oat/arm64/base.vdex
#26 pc 00000000005d7618 /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtualQuick+1368)
#27 pc 0000000000146594 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual_quick+20)
#28 pc 0000000000a8d2d6 /data/app/com.xxx.xxx--WIpQ8uruvjzWs84EeD-AA==/oat/arm64/base.vdex
#29 pc 00000000005d7618 /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtualQuick+1368)
#30 pc 0000000000146594 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual_quick+20)
#31 pc 0000000000a8d388 /data/app/com.xxx.xxx--WIpQ8uruvjzWs84EeD-AA==/oat/arm64/base.vdex
#32 pc 00000000002ceeb4 /apex/com.android.runtime/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.14109938010406342239)+320)
#33 pc 00000000005c0d08 /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1012)
#34 pc 0000000000151468 /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88)
#35 pc 0000000000e41550 /data/app/com.xxx.xxx--WIpQ8uruvjzWs84EeD-AA==/oat/arm64/base.odex (com.facebook.common.executors.StatefulRunnable.run+224)
#36 pc 00000000003d8d08 /system/framework/arm64/boot.oat (java.util.concurrent.ThreadPoolExecutor.runWorker+984)
#37 pc 00000000003d5880 /system/framework/arm64/boot.oat (java.util.concurrent.ThreadPoolExecutor$Worker.run+64)
#38 pc 0000000000217fc8 /system/framework/arm64/boot.oat (java.lang.Thread.run+72)
#39 pc 0000000000148334 /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548)
#40 pc 00000000001571b4 /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+252)
#41 pc 00000000004d9510 /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)
#42 pc 00000000004da5a4 /apex/com.android.runtime/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+416)
#43 pc 000000000051eb10 /apex/com.android.runtime/lib64/libart.so (art::Thread::CreateCallback(void*)+1232)
#44 pc 00000000000cf7c0 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
#45 pc 00000000000721a8 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the crash with a local image and inspect the reported android.graphics.Bitmap.createBitmap entry point and the Fresco_IoBoundE thread. Done means identifying a reproducible cause and confirming that local-image loading no longer aborts; the issue provides no version, image, source file, or test to narrow the investigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.