Repository: flutter
Issue: [Android] Flutter 2.10 app crashing with (abort+160)
Labels: c: crash,platform-android,engine,a: production,P2,team-android,triaged-android

![image](https://user-images.githubusercontent.com/379339/155541599-1d91963b-a4b2-4024-b658-b0684e320da2.png)

Flutter 2.10 is increasing crashes by 367%. Just reverting to Flutter 2.8 fixes the issue. No native code or plugin changes whatsoever.

It seems to affect only Android 11.

Those three gray boxes on the bottom shows the updates to the app (a simple fix in Dart code to loading images, not using any plugins, so no native code involved). The first two were compiled using Flutter 2.10 (the crash raises 367%). Just downloading and replacing with Flutter 2.8 and recompiling, crashes seems to get back to a normal behavior.

Example 1:
```
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> br.art.code.meucronogramacapilar <<<

backtrace:
  #00  pc 0000000000089fc4  /apex/com.android.runtime/lib64/bionic/libc.so (abort+168)
  #00  pc 00000000002dd4d4  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 00000000002ffe40  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 00000000002eedb4  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 00000000002de684  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 0000000000544718  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 000000000054133c  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 00000000005448e4  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 000000000054133c  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 0000000000543bd0  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 000000000054133c  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 00000000005448e4  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 000000000054133c  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 00000000005448e4  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 000000000054133c  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 00000000005448e4  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 000000000054133c  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 00000000005448e4  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 000000000054133c  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 000000000053f530  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 0000000000551154  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 0000000000550e54  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 0000000000551edc  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 0000000000551900  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 000000000055a028  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 0000000000300a6c  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 0000000000304338  /data/app/~~0m--2nuOSTSCEIyaA78ipw==/br.art.code.meucronogramacapilar-rHRmq50RsOi33JT57oX3zw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 0000000000019d00  /system/lib64/libutils.so (android::Looper::pollInner(int)+912)
  #00  pc 0000000000019908  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+112)
  #00  pc 00000000001181fc  /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+44)
  #00  pc 000000000024e13c  /system/framework/arm64/boot-framework.oat (art_jni_trampoline+140)
  #00  pc 00000000006bcfb0  /system/framework/arm64/boot-framework.oat (android.os.MessageQueue.next+192)
  #00  pc 00000000006b9818  /system/framework/arm64/boot-framework.oat (android.os.Looper.loop+744)
  #00  pc 00000000004555b0  /system/framework/arm64/boot-framework.oat (android.app.ActivityThread.main+768)
  #00  pc 00000000001347e8  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568)
  #00  pc 00000000001a9a88  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+228)
  #00  pc 0000000000553dbc  /apex/com.android.art/lib64/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+1364)
  #00  pc 00000000004d5044  /apex/com.android.art/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+52)
  #00  pc 000000000008a6f4  /apex/com.android.art/javalib/arm64/boot.oat (art_jni_trampoline+180)
  #00  pc 0000000000aebe78  /system/framework/arm64/boot-framework.oat (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+136)
  #00  pc 0000000000af5e5c  /system/framework/arm64/boot-framework.oat (com.android.internal.os.ZygoteInit.main+2444)
  #00  pc 00000000001347e8  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568)
  #00  pc 00000000001a9a88  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+228)
  #00  pc 00000000005527f0  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, std::__va_list)+448)
  #00  pc 0000000000552cac  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+92)
  #00  pc 000000000043b80c  /apex/com.android.art/lib64/libart.so (art::JNI<true>::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+636)
  #00  pc 000000000009d428  /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+124)
  #00  pc 00000000000a52bc  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+848)
  #00  pc 00000000000035a0  /system/bin/app_process64 (main+1368)
  #00  pc 0000000000084e58  /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+108)
```

Example 2:
```
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> br.art.code.meucronogramacapilar <<<

backtrace:
  #00  pc 0000000000083134  /apex/com.android.runtime/lib64/bionic/libc.so (abort+160)
  #00  pc 00000000002dc4d4  /data/app/br.art.code.meucronogramacapilar-l6GEjieUlaA16GfZ317DWw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
```

Example 3:
```
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> br.art.code.meucronogramacapilar <<<

backtrace:
  #00  pc 000000000004e30c  /apex/com.android.runtime/lib64/bionic/libc.so (abort+164)
  #00  pc 00000000002dd4d4  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 00000000002ffe40  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 00000000002eedb4  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 00000000002de684  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 0000000000544718  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 000000000054133c  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 00000000005448e4  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 000000000054133c  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 0000000000543bd0  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 000000000054133c  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 00000000005448e4  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 000000000054133c  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 00000000005448e4  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 000000000054133c  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 00000000005448e4  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 000000000054133c  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 00000000005448e4  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 000000000054133c  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 000000000053f530  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 0000000000551154  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 0000000000550e54  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 0000000000551edc  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 0000000000551900  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 000000000055a028  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 0000000000300a6c  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 0000000000304338  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 0000000000019dac  /system/lib64/libutils.so (android::Looper::pollInner(int)+916)
  #00  pc 00000000000199b0  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+112)
  #00  pc 0000000000012ca0  /system/lib64/libandroid.so (ALooper_pollOnce+100)
  #00  pc 0000000000304448  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 000000000030273c  /data/app/~~iUgEcsKFmbqDY4L-yLBK3A==/br.art.code.meucronogramacapilar-x05Z-ABsQL3YqvacUxuERg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0xa66000)
  #00  pc 00000000000afc6c  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64)
  #00  pc 00000000000502c8  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
```

Example 4:
```
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> br.art.code.meucronogramacapilar <<<

backtrace:
  #00  pc 000000000005f2d6  /apex/com.android.runtime/lib/bionic/libc.so (abort+166)
  #00  pc 0000000000155bfb  /data/app/br.art.code.meucronogramacapilar-ly5nHKkrfi1bxI6orK2pIQ==/split_config.armeabi_v7a.apk!lib/armeabi-v7a/libflutter.so (offset 0xb52000)
  #00  pc 00000000007fb3f2  [stack]
```