[BUG] On Android 12 (SDK 31) Only!

New Bug occuring only on devices with Android 12 (SDK 31)
Any solution or recoomendation will be highly appreciated

[libc.so] __vfprintf - * SIGSEGV

Stack Trace

backtrace:
  #00  pc 0x00000000000c764c  /apex/com.android.runtime/lib64/bionic/libc.so (__vfprintf+68)
  #01  pc 0x00000000000e5e9c  /apex/com.android.runtime/lib64/bionic/libc.so (vsnprintf+192)
  #02  pc 0x00000000000b2f98  /apex/com.android.runtime/lib64/bionic/libc.so (__vsnprintf_chk+60)
  #03  pc 0x0000000000016bd0  /apex/com.android.art/lib64/libbase.so (snprintf(char*, unsigned long pass_object_size1, char const*, ...)+128)
  #04  pc 0x00000000000154c4  /apex/com.android.art/lib64/libbase.so (void android::base::SplitByLogdChunks<void (android::base::LogId, android::base::LogSeverity, char const*, char const*)>(android::base::LogId, android::base::LogSeverity, char const*, char const*, unsigned int, char const*, void  const(&)(android::base::LogId, android::base::LogSeverity, char const*, char const*))+480)
  #05  pc 0x0000000000021bdc  /apex/com.android.art/lib64/libartbase.so (std::__1::__function::__func<art::InitLogging(char**, void (&)(char const*))::LogdLoggerLocked, std::__1::allocator<art::InitLogging(char**, void (&)(char const*))::LogdLoggerLocked>, void (android::base::LogId, android::base::LogSeverity, char const*, char const*, unsigned int, char const*)>::operator()(android::base::LogId&&, android::base::LogSeverity&&, char const*&&, char const*&&, unsigned int&&, char const*&&) (.__uniq.85101241731209538599761260233789784808)+112)
  #06  pc 0x0000000000016d4c  /apex/com.android.art/lib64/libbase.so (android::base::SetLogger(std::__1::function<void (android::base::LogId, android::base::LogSeverity, char const*, char const*, unsigned int, char const*)>&&)::$_2::__invoke(__android_log_message const*)+192)
  #07  pc 0x0000000000006890  /system/lib64/liblog.so (__android_log_write_log_message+160)
  #08  pc 0x0000000000006a00  /system/lib64/liblog.so (__android_log_vprint+156)
  #09  pc 0x00000000006c05f4  /system/lib64/libhwui.so (SkDebugf(char const*, ...)+136)
  #10  pc 0x00000000006f9a84  /system/lib64/libhwui.so (JavaInputStreamAdaptor::doRead(void*, unsigned long, _JNIEnv*)+348)
  #11  pc 0x00000000006f9868  /system/lib64/libhwui.so (JavaInputStreamAdaptor::read(void*, unsigned long)+284)
  #12  pc 0x00000000009d6780  /system/lib64/libhwui.so (_ZN12_GLOBAL__N_119FrontBufferedStream4readEPvm$8f1c1c36362eb42cefaa8ed6ceaf4bc1+208)
  #13  pc 0x00000000006bb7b4  /system/lib64/libhwui.so (SkPngCodec::processData()+284)
  #14  pc 0x00000000006bb640  /system/lib64/libhwui.so (SkPngNormalDecoder::decodeAllRows(void*, unsigned long, int*)+96)
  #15  pc 0x00000000006b8bfc  /system/lib64/libhwui.so (SkCodec::getPixels(SkImageInfo const&, void*, unsigned long, SkCodec::Options const*)+328)
  #16  pc 0x00000000007708b8  /system/lib64/libhwui.so (SkSampledCodec::onGetAndroidPixels(SkImageInfo const&, void*, unsigned long, SkAndroidCodec::AndroidOptions const&)+528)
  #17  pc 0x000000000071e90c  /system/lib64/libhwui.so (SkAndroidCodec::getAndroidPixels(SkImageInfo const&, void*, unsigned long, SkAndroidCodec::AndroidOptions const*)+424)
  #18  pc 0x00000000006ffa2c  /system/lib64/libhwui.so (android::ImageDecoder::decode(void*, unsigned long)+1100)
  #19  pc 0x00000000006fea74  /system/lib64/libhwui.so (ImageDecoder_nDecodeBitmap(_JNIEnv*, _jobject*, long, _jobject*, unsigned char, int, int, _jobject*, unsigned char, int, unsigned char, unsigned char, unsigned char, long, unsigned char)+1048)
  #20  pc 0x000000000040c478  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (art_jni_trampoline+216)

Which extensions are you using?
One of them might be not SDK31 compatible…
Also please provide a logcat output
.Capturing Device Logs using adb logcat - Tutorials and Guides - MIT App Inventor Community
Taifun

I’m not able to reproduce the error on my android 12 device. It’s happening only on some, not all
I don’t expect anyone to know the reason, I just look for any opinions or guides that can help us search for it.

1 Like

When I open my app getting this error
Please Help @Anke

Are you sure this is the one I mentioned ? [libc.so] __vfprintf - * SIGSEGV

Note: Move your post to another topic “No sdk specified - runtime error”.