flutter icon indicating copy to clipboard operation
flutter copied to clipboard

Flutter Crashes OpenGL on MediaTek

Open garthvs opened this issue 8 months ago • 33 comments

Steps to reproduce

We are seeing an influx of crash reports on Google Play specific to Mediatek MT6762 and MT6765 devices since upgrading to the latest flutter version:

Flutter version 3.29.2 Dart version 3.7.2

I am trying to find a device with these chipsets so that I can try reproduce the issue.

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 11979 >>> com.xxx.app <<<

backtrace:
  #00  pc 0x0000000000088a8c  /vendor/lib/egl/libGLESv2_mtk.so
  #01  pc 0x00000000000d4b69  /vendor/lib/egl/libGLESv2_mtk.so
  #02  pc 0x0000000000026cb7  /vendor/lib/egl/libGLESv2_mtk.so
  #03  pc 0x0000000000011883  /vendor/lib/libIMGegl.so (IMGeglMakeCurrent+3026)
  #04  pc 0x000000000001c5af  /vendor/lib/egl/libGLES_meow.so
  #05  pc 0x000000000000f8c7  /system/lib/libEGL.so (android::egl_display_t::makeCurrent(android::egl_context_t*, android::egl_context_t*, void*, void*, void*, void*, void*, void*)+170)
  #06  pc 0x0000000000015ccb  /system/lib/libEGL.so (android::eglMakeCurrentImpl(void*, void*, void*, void*)+318)
  #07  pc 0x00000000002a01dd  /system/lib/libhwui.so (android::uirenderer::renderthread::EglManager::makeCurrent(void*, int*, bool)+64)
  #08  pc 0x0000000000317dcf  /system/lib/libhwui.so (android::uirenderer::renderthread::EglManager::destroySurface(void*)+22)
  #09  pc 0x0000000000317bff  /system/lib/libhwui.so (android::uirenderer::skiapipeline::SkiaOpenGLPipeline::setSurface(ANativeWindow*, android::uirenderer::renderthread::SwapBehavior, android::uirenderer::renderthread::ColorMode, unsigned int)+30)
  #10  pc 0x0000000000341005  /system/lib/libhwui.so (android::uirenderer::renderthread::CanvasContext::setSurface(android::sp<android::Surface>&&)+164)
  #11  pc 0x000000000019920d  /system/lib/libhwui.so (_ZNSt3__110__function6__funcIZN7android10uirenderer12renderthread11RenderProxy10setSurfaceERKNS2_2spINS2_7SurfaceEEEE3$_6NS_9allocatorISB_EEFvvEEclEv$a651803144434c688dcacf747223d8a2+14)
  #12  pc 0x00000000002b1aef  /system/lib/libhwui.so (android::uirenderer::WorkQueue::process()+158)
  #13  pc 0x00000000002b194d  /system/lib/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+72)
  #14  pc 0x000000000000d8b3  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+182)
  #15  pc 0x00000000000a6293  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20)
  #16  pc 0x0000000000060803  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)

Expected results

No crashes.

Actual results

Crash reports on Google Play specific to Mediatek MT6762 and MT6765 devices.

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[√] Flutter (Channel stable, 3.29.2, on Microsoft Windows [Version 10.0.26100.3624], locale en-ZA) [520ms]
    • Flutter version 3.29.2 on channel stable at C:\Flutter\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c236373904 (3 weeks ago), 2025-03-13 16:17:06 -0400
    • Engine revision 18b71d647a
    • Dart version 3.7.2
    • DevTools version 2.42.3

[√] Windows Version (11 Home Single Language 64-bit, 24H2, 2009) [3.6s]

[√] Android toolchain - develop for Android devices (Android SDK version 35.0.1) [2.5s]
    • Android SDK at C:\Users\xxx\AppData\Local\Android\sdk
    • Platform android-35, build-tools 35.0.1
    • Java binary at: C:\\Program Files\\Microsoft\\jdk-17.0.14.7-hotspot\bin\java
      This JDK is specified in your Flutter configuration.
      To change the current JDK, run: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment Microsoft-10800295 (build 17.0.14+7-LTS)
    • All Android licenses accepted.

[√] Chrome - develop for the web [175ms]
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.13.3) [174ms]
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.13.35828.75
    • Windows 10 SDK version 10.0.26100.0

[√] Android Studio (version 2024.2) [19ms]
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.5+-13047016-b750.29)

[√] VS Code (version 1.98.2) [17ms]
    • VS Code at C:\Users\xxx\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.106.0

[√] Connected device (3 available) [303ms]
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.26100.3624]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 134.0.6998.178
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 133.0.3065.69

[√] Network resources [681ms]
    • All expected network resources are available.

• No issues found!

garthvs avatar Mar 31 '25 09:03 garthvs

Hi @garthvs, what device(s) are you seeing this issue on? What version(s) of android are they running?

Crash logs looks similar to https://github.com/flutter/flutter/issues/162147

danagbemava-nc avatar Mar 31 '25 12:03 danagbemava-nc

Here are all the devices and the chipsets so far:

Redmi dandelion Mediatek MT6762 TECNO TECNO-KD7 Mediatek MT6762d Redmi cattail Mediatek MT6765 Redmi angelica Mediatek MT6765 Nokia ROON_sprout Mediatek MT6762 TECNO TECNO-LC8 Mediatek MT6762

They are all running Android 10 (SDK 29).

garthvs avatar Mar 31 '25 14:03 garthvs

Hi @garthvs, do you use any platform views in your app and are you using the impeller or skia rendering engine?

danagbemava-nc avatar Apr 01 '25 05:04 danagbemava-nc

Same here... with latest stable 3.29.2.

  • We don't use platform views directly, but we do use video_player (which, from my understanding, uses them).
  • We haven't manually changed the rendering engine. As far as we know, there have been some issues that required rolling back to Skia on some devices. On Flutter 3.27, we had lots of buggy behavior and crashes with Oppo devices and MediaTek processors.

Mainly Android 10 MediaTek devices. Lots of problems lately with the Flutter stable channel. Every update fixes some issues while others arise... hoping for a solid stable version soon, we are about to pass the abnormal behavior threshold on Android.

Image Image

Inakitajes avatar Apr 01 '25 11:04 Inakitajes

Hi @garthvs, do you use any platform views in your app and are you using the impeller or skia rendering engine?

We are using the default Flutter engine, so I think impeller. I don't know about platform views unfortunately.

garthvs avatar Apr 01 '25 12:04 garthvs

Hi, I'm facing the same issue. Is downgrading to 3.27.4 solve the problem? (I don't have a real device with this issue, only see the error logs in Play Console)

szabot0412 avatar Apr 01 '25 17:04 szabot0412

Thanks for the update. Labeling this for further investigation. Might be a duplicate of https://github.com/flutter/flutter/issues/162147

danagbemava-nc avatar Apr 02 '25 06:04 danagbemava-nc

I still consider 3.24.5 as last production release

scorpionate avatar Apr 02 '25 06:04 scorpionate

Hi did your problem resolve ? I'm facing the same issue anyone of you could help me I'll really appreciate that.

Image Image

ajit-spark avatar Apr 02 '25 10:04 ajit-spark

Same problem only Android 10, MediaTek Helio, flutter 3.29.2

Image

Crashed: Thread: SIGSEGV 0x0000000000000430 #00 pc 0x88a8c libGLESv2_mtk.so (BuildId: 34ed5df2075eeb41cbc04b3113ec2bda) #01 pc 0xd4b69 libGLESv2_mtk.so (BuildId: 34ed5df2075eeb41cbc04b3113ec2bda) #02 pc 0x26cb9 libGLESv2_mtk.so (BuildId: 34ed5df2075eeb41cbc04b3113ec2bda) #03 pc 0x46066 libIMGegl.so (BuildId: 371891638abe6c30816cd11ab5761699) #04 pc 0x4603e libIMGegl.so (BuildId: 371891638abe6c30816cd11ab5761699) #05 pc 0x11883 libIMGegl.so (BuildId: 371891638abe6c30816cd11ab5761699) #06 pc 0x4603e libIMGegl.so (BuildId: 371891638abe6c30816cd11ab5761699) #07 pc 0x4603e libIMGegl.so (BuildId: 371891638abe6c30816cd11ab5761699) #08 pc 0x2f55b libc.so (BuildId: af31ec96b35fedca378e07659b30896c) #09 pc 0xb625e libc.so (BuildId: af31ec96b35fedca378e07659b30896c) #10 pc 0xb625e libc.so (BuildId: af31ec96b35fedca378e07659b30896c) #11 pc 0x10837 libutils.so (BuildId: a4424e73dbe004e8623d6713ad30a604) #12 pc 0x8d49 libutils.so (BuildId: a4424e73dbe004e8623d6713ad30a604) #13 pc 0x91bd libutils.so (BuildId: a4424e73dbe004e8623d6713ad30a604) #14 pc 0xb625e libc.so (BuildId: af31ec96b35fedca378e07659b30896c) #15 pc 0x8b1e libutils.so (BuildId: a4424e73dbe004e8623d6713ad30a604) #16 pc 0x36d1f libc.so (BuildId: af31ec96b35fedca378e07659b30896c) #17 pc 0x2304e libEGL.so (BuildId: ba8fdea35c7f0366c4bc3b056057dc3a) #18 pc 0x1c5af libGLES_meow.so (BuildId: 6d6caf55643460f2db471f5c3405e207) #19 pc 0x49cef libGLES_meow.so (BuildId: 6d6caf55643460f2db471f5c3405e207) #20 pc 0xf8c7 libEGL.so (BuildId: ba8fdea35c7f0366c4bc3b056057dc3a) #21 pc 0xd03e libcutils.so (BuildId: 7167c01343e256608ba7ae7f36e09681) #22 pc 0xb625e libc.so (BuildId: af31ec96b35fedca378e07659b30896c) #23 pc 0x15ccd libEGL.so (BuildId: ba8fdea35c7f0366c4bc3b056057dc3a) #24 pc 0x23026 libEGL.so (BuildId: ba8fdea35c7f0366c4bc3b056057dc3a) #25 pc 0xb016 libcutils.so (BuildId: 7167c01343e256608ba7ae7f36e09681) #26 pc 0xd03e libcutils.so (BuildId: 7167c01343e256608ba7ae7f36e09681) #27 pc 0xb625e libc.so (BuildId: af31ec96b35fedca378e07659b30896c) #28 pc 0x2a01df libhwui.so (BuildId: 68f93a2184251a781de38b9998ae91e3) #29 pc 0xb625e libc.so (BuildId: af31ec96b35fedca378e07659b30896c) #30 pc 0x2d2c87 libhwui.so (BuildId: 68f93a2184251a781de38b9998ae91e3) #31 pc 0x2b1b8f libhwui.so (BuildId: 68f93a2184251a781de38b9998ae91e3) #32 pc 0xb625e libc.so (BuildId: af31ec96b35fedca378e07659b30896c) #33 pc 0x2b19ef libhwui.so (BuildId: 68f93a2184251a781de38b9998ae91e3) #34 pc 0xb625e libc.so (BuildId: af31ec96b35fedca378e07659b30896c) #35 pc 0xd8b3 libutils.so (BuildId: a4424e73dbe004e8623d6713ad30a604) #36 pc 0xc101e ld-android.so (BuildId: 195aefc83624fbfb6d1c890bb1d91e8a) #37 pc 0xa6293 libc.so (BuildId: af31ec96b35fedca378e07659b30896c) #38 pc 0xa627d libc.so (BuildId: af31ec96b35fedca378e07659b30896c) #39 pc 0x60803 libc.so (BuildId: af31ec96b35fedca378e07659b30896c) #40 pc 0xa627d libc.so (BuildId: af31ec96b35fedca378e07659b30896c) #41 pc 0xd4a7 libutils.so (BuildId: a4424e73dbe004e8623d6713ad30a604) #42 pc 0x154463 boot-core-libart.oat (BuildId: 7ffa4c7431572e014d5cb529289d7a0d87f3837b)

zhyvotun avatar Apr 03 '25 09:04 zhyvotun

Sorry to be persistent, but do you have any updates on this?

Inakitajes avatar Apr 07 '25 07:04 Inakitajes

It might be useful to someone:

The only solution for me was to downgrade to Flutter 3.24.5 First I tried to downgrade to Flutter 3.27.4, and it solved this issue, but brings another: Link So secondly i have to downgrade from 3.27 to 3.24, and now the errors gone.

szabot0412 avatar Apr 07 '25 17:04 szabot0412

Currently, this issue is also occurring on MediaTek devices, for example, on a Xiaomi M2006C3LC running Android 10.

  I  Stack is successfully dumped by libUnwind.
 D  Native stack: 
                                      #00    pc 00088a8c    /vendor/lib/egl/libGLESv2_mtk.so [armeabi-v8::34ed5df2075eeb41cbc04b3113ec2bda]
                                      #01    pc 000d4b69    /vendor/lib/egl/libGLESv2_mtk.so [armeabi-v8::34ed5df2075eeb41cbc04b3113ec2bda]
                                      #02    pc 00026cb7    /vendor/lib/egl/libGLESv2_mtk.so [armeabi-v8::34ed5df2075eeb41cbc04b3113ec2bda]
                                      #03    pc 00011883    /vendor/lib/libIMGegl.so (IMGeglMakeCurrent+3026) [armeabi-v8::371891638abe6c30816cd11ab5761699]
                                      #04    pc 0001c5af    /vendor/lib/egl/libGLES_meow.so [armeabi-v8::6d6caf55643460f2db471f5c3405e207]
                                      #05    pc 0000f8e7    /system/lib/libEGL.so (_ZN7android13egl_display_t11makeCurrentEPNS_13egl_context_tES2_PvS3_S3_S3_S3_S3_+202) [armeabi-v8::ba8fdea35c7f0366c4bc3b056057dc3a]
                                      #06    pc 00015ccb    /system/lib/libEGL.so [armeabi-v8::ba8fdea35c7f0366c4bc3b056057dc3a]
                                      #07    pc 022d0a01    /product/app/TrichromeLibrary/TrichromeLibrary.apk

android::egl_display_t::makeCurrent failed to obtain the context, which seems to be caused by Impeller not releasing the GL context in a timely manner.

I called startActivity from a Flutter page to a native WebView page, and found that the Flutter page turns black. If the WebView is set to load with a delay in onCreate, the issue is alleviated to some extent; the longer the delay, the safer it is.

vickyleu avatar Apr 11 '25 07:04 vickyleu

I believe ive come across a similiar issue trying to do a video call using flutter_webRTC on an android device (13) with MediaTek MediaTek mt8788. On the absolute latest version of flutter right now with the latest version of flutter_webRTC.

  • With Impeller + HW Decode (H.264/VP8): Severe visual glitches. Logs show c2.mtk.* decoder usage and associated errors (E/ion ioctl failed, flushed work, frameIndex not found).
  • With Impeller + SW Decode (Likely VP9 via SDP mod) + Standard Resolution: Glitches persisted, accompanied by ImageReader_JNI "Unable to acquire a buffer" warnings, suggesting a performance bottleneck/rendering backpressure.
  • With Impeller + SW Decode (Likely VP9 via SDP mod) + Low Resolution (160x120 @ 10-15fps): Glitches still occurred (though visually different, image incoherent), but the ImageReader_JNI warning was absent, indicating the performance bottleneck was resolved at this low bitrate.
  • With Skia + HW Decode (H.264): Video renders correctly without visual glitches, despite the underlying c2.mtk.avc.decoder errors (E/ion, flushed work) still being present in the logs.

Ive seen so many issues posted about Imepeller and specific different chipsets that it doesnt seem to like.

mikaelwills avatar Apr 14 '25 14:04 mikaelwills

Flutter 3.29.2

Rastreamento de pilha 1 Exemplos de atributos: LGE X6(2019) Android 10 (SDK 29) Versão: 100157 (5.0.7)

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 22220

backtrace:
  #00  pc 0x00000000000866e8  /vendor/lib/egl/libGLESv2_mtk.so
  #01  pc 0x00000000000d2089  /vendor/lib/egl/libGLESv2_mtk.so
  #02  pc 0x00000000000263f3  /vendor/lib/egl/libGLESv2_mtk.so
  #03  pc 0x0000000000011883  /vendor/lib/libIMGegl.so (IMGeglMakeCurrent+3026)
  #04  pc 0x000000000000f8c7  /system/lib/libEGL.so (android::egl_display_t::makeCurrent(android::egl_context_t*, android::egl_context_t*, void*, void*, void*, void*, void*, void*)+170)
  #05  pc 0x0000000000015c9b  /system/lib/libEGL.so (android::eglMakeCurrentImpl(void*, void*, void*, void*)+318)
  #06  pc 0x00000000001bec03  /system/lib/libhwui.so (android::uirenderer::renderthread::EglManager::makeCurrent(void*, int*, bool)+42)
  #07  pc 0x00000000001bebb1  /system/lib/libhwui.so (android::uirenderer::skiapipeline::SkiaOpenGLPipeline::makeCurrent()+28)
  #08  pc 0x00000000001f314b  /system/lib/libhwui.so (android::uirenderer::renderthread::CanvasContext::makeCurrent()+30)
  #09  pc 0x00000000001f2ff9  /system/lib/libhwui.so (android::uirenderer::renderthread::DrawFrameTask::syncFrameState(android::uirenderer::TreeInfo&)+68)
  #10  pc 0x00000000001f2cbb  /system/lib/libhwui.so (_ZNSt3__110__function6__funcIZN7android10uirenderer12renderthread13DrawFrameTask11postAndWaitEvE3$_0NS_9allocatorIS6_EEFvvEEclEv$c303f2d2360db58ed70a2d0ac7ed911b+78)
  #11  pc 0x00000000001ffa0b  /system/lib/libhwui.so (android::uirenderer::WorkQueue::process()+158)
  #12  pc 0x00000000001ff869  /system/lib/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+72)
  #13  pc 0x000000000000d8af  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+182)
  #14  pc 0x00000000000a6403  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20)
  #15  pc 0x0000000000060783  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)

Rastreamento de pilha 2 Exemplos de atributos: Redmi Redmi 9C Android 10 (SDK 29) Versão: 100157 (5.0.7)

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 9008

backtrace:
  #00  pc 0x0000000000088a8c  /vendor/lib/egl/libGLESv2_mtk.so
  #01  pc 0x00000000000d4b69  /vendor/lib/egl/libGLESv2_mtk.so
  #02  pc 0x0000000000026cb7  /vendor/lib/egl/libGLESv2_mtk.so
  #03  pc 0x0000000000011883  /vendor/lib/libIMGegl.so (IMGeglMakeCurrent+3026)
  #04  pc 0x000000000001c5af  /vendor/lib/egl/libGLES_meow.so
  #05  pc 0x000000000000f8c7  /system/lib/libEGL.so (android::egl_display_t::makeCurrent(android::egl_context_t*, android::egl_context_t*, void*, void*, void*, void*, void*, void*)+170)
  #06  pc 0x0000000000015ccb  /system/lib/libEGL.so (android::eglMakeCurrentImpl(void*, void*, void*, void*)+318)
  #07  pc 0x00000000002a01dd  /system/lib/libhwui.so (android::uirenderer::renderthread::EglManager::makeCurrent(void*, int*, bool)+64)
  #08  pc 0x00000000002a0175  /system/lib/libhwui.so (android::uirenderer::skiapipeline::SkiaOpenGLPipeline::makeCurrent()+28)
  #09  pc 0x00000000002a457f  /system/lib/libhwui.so (android::uirenderer::renderthread::CanvasContext::makeCurrent()+30)
  #10  pc 0x00000000002a442d  /system/lib/libhwui.so (android::uirenderer::renderthread::DrawFrameTask::syncFrameState(android::uirenderer::TreeInfo&)+68)
  #11  pc 0x00000000002a40ef  /system/lib/libhwui.so (_ZNSt3__110__function6__funcIZN7android10uirenderer12renderthread13DrawFrameTask11postAndWaitEvE3$_0NS_9allocatorIS6_EEFvvEEclEv$c303f2d2360db58ed70a2d0ac7ed911b+78)
  #12  pc 0x00000000002b1aef  /system/lib/libhwui.so (android::uirenderer::WorkQueue::process()+158)
  #13  pc 0x00000000002b194d  /system/lib/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+72)
  #14  pc 0x000000000000d8b3  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+182)
  #15  pc 0x00000000000a6293  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20)
  #16  pc 0x0000000000060803  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)

Rastreamento de pilha 3 Exemplos de atributos: TCL TCL L10+ Android 10 (SDK 29) Versão: 100157 (5.0.7)

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 15977

backtrace:
  #00  pc 0x00000000000b6fd4  /vendor/lib64/egl/libGLESv2_POWERVR_ROGUE.so
  #01  pc 0x000000000011a8c4  /vendor/lib64/egl/libGLESv2_POWERVR_ROGUE.so
  #02  pc 0x00000000000356a0  /vendor/lib64/egl/libGLESv2_POWERVR_ROGUE.so
  #03  pc 0x00000000000166dc  /vendor/lib64/libIMGegl.so (IMGeglMakeCurrent+3696)
  #04  pc 0x0000000000016438  /system/lib64/libEGL.so (android::egl_display_t::makeCurrent(android::egl_context_t*, android::egl_context_t*, void*, void*, void*, void*, void*, void*)+244)
  #05  pc 0x000000000001ff94  /system/lib64/libEGL.so (android::eglMakeCurrentImpl(void*, void*, void*, void*)+384)
  #06  pc 0x00000000002d1568  /system/lib64/libhwui.so (android::uirenderer::renderthread::EglManager::makeCurrent(void*, int*, bool)+72)
  #07  pc 0x00000000002d14d8  /system/lib64/libhwui.so (android::uirenderer::skiapipeline::SkiaOpenGLPipeline::makeCurrent()+48)
  #08  pc 0x00000000002d8c28  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::makeCurrent()+52)
  #09  pc 0x00000000002d8a40  /system/lib64/libhwui.so (android::uirenderer::renderthread::DrawFrameTask::syncFrameState(android::uirenderer::TreeInfo&)+92)
  #10  pc 0x00000000002d84fc  /system/lib64/libhwui.so (_ZNSt3__110__function6__funcIZN7android10uirenderer12renderthread13DrawFrameTask11postAndWaitEvE3$_0NS_9allocatorIS6_EEFvvEEclEv$c303f2d2360db58ed70a2d0ac7ed911b+104)
  #11  pc 0x00000000002e78a4  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+228)
  #12  pc 0x00000000002e75d8  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+80)
  #13  pc 0x00000000000136d0  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+288)
  #14  pc 0x00000000000e1100  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
  #15  pc 0x0000000000083ab0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

Rastreamento de pilha 4 Exemplos de atributos: Samsung Galaxy A01 Core Android 10 (SDK 29) Versão: 100157 (5.0.7)

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 28455

backtrace:
  #00  pc 0x0000000000086b38  /vendor/lib/egl/libGLESv2_mtk.so
  #01  pc 0x00000000000d1a15  /vendor/lib/egl/libGLESv2_mtk.so
  #02  pc 0x0000000000026497  /vendor/lib/egl/libGLESv2_mtk.so
  #03  pc 0x0000000000011883  /vendor/lib/libIMGegl.so (IMGeglMakeCurrent+3026)
  #04  pc 0x000000000000f8c7  /system/lib/libEGL.so (android::egl_display_t::makeCurrent(android::egl_context_t*, android::egl_context_t*, void*, void*, void*, void*, void*, void*)+170)
  #05  pc 0x0000000000015ccb  /system/lib/libEGL.so (android::eglMakeCurrentImpl(void*, void*, void*, void*)+318)
  #06  pc 0x00000000002a164d  /system/lib/libhwui.so (android::uirenderer::renderthread::EglManager::makeCurrent(void*, int*, bool)+64)
  #07  pc 0x000000000033bac3  /system/lib/libhwui.so (android::uirenderer::renderthread::EglManager::destroySurface(void*)+22)
  #08  pc 0x0000000000195923  /system/lib/libhwui.so (android::uirenderer::skiapipeline::SkiaOpenGLPipeline::setSurface(ANativeWindow*, android::uirenderer::renderthread::SwapBehavior, android::uirenderer::renderthread::ColorMode, unsigned int)+34)
  #09  pc 0x00000000002a870d  /system/lib/libhwui.so (android::uirenderer::renderthread::CanvasContext::setSurface(android::sp<android::Surface>&&)+164)
  #10  pc 0x00000000002fa401  /system/lib/libhwui.so (android::uirenderer::renderthread::CanvasContext::destroy()+48)
  #11  pc 0x00000000002d3b27  /system/lib/libhwui.so (std::__1::packaged_task<void ()>::operator()()+50)
  #12  pc 0x00000000002b303f  /system/lib/libhwui.so (android::uirenderer::WorkQueue::process()+158)
  #13  pc 0x00000000002b2e9d  /system/lib/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+72)
  #14  pc 0x000000000000d8af  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+182)
  #15  pc 0x00000000000a6093  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20)
  #16  pc 0x0000000000060763  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)

videjunior avatar Apr 15 '25 20:04 videjunior

flutter 3.29.3 google play console logs show this please fix this in the next version.

Flattih avatar May 01 '25 18:05 Flattih

Hey @jonahwilliams @danagbemava-nc , do you have any update for this issue?? It's a very critical bug, users can't open the application.

achamorro-dev avatar May 05 '25 07:05 achamorro-dev

Are we missing something? Our app crashes on startup for hundreds of users.

Since this is taking longer than expected, is there any workaround we can implement until the fix is finally applied?

Thank you very much in advance, I can't imagine how difficult it is maintaining such a big framework.

I hope I have a fix or a workaround soon since this is affecting our paying users and resulting in some pretty bad reviews on Google Play.

Inakitajes avatar May 08 '25 12:05 Inakitajes

Are we missing something? Our app crashes on startup for hundreds of users.

Since this is taking longer than expected, is there any workaround we can implement until the fix is finally applied?

Thank you very much in advance, I can't imagine how difficult it is maintaining such a big framework.

I hope I have a fix or a workaround soon since this is affecting our paying users and resulting in some pretty bad reviews on Google Play.

I have rolled back my app version to 3.27.4

dekunlu avatar May 08 '25 12:05 dekunlu

Are we missing something? Our app crashes on startup for hundreds of users. Since this is taking longer than expected, is there any workaround we can implement until the fix is finally applied? Thank you very much in advance, I can't imagine how difficult it is maintaining such a big framework. I hope I have a fix or a workaround soon since this is affecting our paying users and resulting in some pretty bad reviews on Google Play.

I have rolled back my app version to 3.27.4

Thanks for the advice. Unfortunately, all 3.27.X versions have a bug for playing video on Huawei-like devices. Our app is heavily dependent on video playing. It would be changing one bug for another.

Thank you anyway!

Inakitajes avatar May 08 '25 22:05 Inakitajes

I m also facing the same issue on flutter 3.27.4. app crash on startup state , users are not able to see any GUI of the app even after restarting or reinstalling the app this issue is happening after upgrading my app to flutter 3.27.4. This is effecting our overall rating and user experience. Please address this issue

Amitverma-88 avatar May 10 '25 12:05 Amitverma-88

The same crashes on Android 10. Devices: Redmi, Motorola, POCO, etc. Chipsets: Mediatek MT6762, Mediatek MT6765, Spreadtrum SC9863A, etc.

Flutter: 3.29.2

Maybe relates to AndroidView

AndroidView(
  viewType: viewTypeId,
  layoutDirection: TextDirection.ltr,
  creationParams: creationParams,
  creationParamsCodec: const StandardMessageCodec(),
)

stepushchik avatar May 12 '25 13:05 stepushchik

After upgrading to Flutter version 3.29.2 with Impeller enabled, we also see crashes.

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 18796 >>> si.titan.android <<<

backtrace:
  #00  pc 0x00000000000b41c0  /vendor/lib64/egl/libGLESv2_mtk.so
  #01  pc 0x0000000000115398  /vendor/lib64/egl/libGLESv2_mtk.so
  #02  pc 0x0000000000036948  /vendor/lib64/egl/libGLESv2_mtk.so
  #03  pc 0x00000000000169b8  /vendor/lib64/libIMGegl.so (IMGeglMakeCurrent+3608)
  #04  pc 0x000000000001649c  /system/lib64/libEGL.so (android::egl_display_t::makeCurrent(android::egl_context_t*, android::egl_context_t*, void*, void*, void*, void*, void*, void*)+244)
  #05  pc 0x0000000000020188  /system/lib64/libEGL.so (android::eglMakeCurrentImpl(void*, void*, void*, void*)+384)
  #06  pc 0x00000000003b89e0  /system/lib64/libhwui.so (android::uirenderer::renderthread::EglManager::makeCurrent(void*, int*, bool)+104)
  #07  pc 0x00000000003b8930  /system/lib64/libhwui.so (android::uirenderer::skiapipeline::SkiaOpenGLPipeline::makeCurrent()+48)
  #08  pc 0x00000000003bfdb4  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::makeCurrent()+52)
  #09  pc 0x00000000003bfbcc  /system/lib64/libhwui.so (android::uirenderer::renderthread::DrawFrameTask::syncFrameState(android::uirenderer::TreeInfo&)+92)
  #10  pc 0x00000000003bf710  /system/lib64/libhwui.so (_ZNSt3__110__function6__funcIZN7android10uirenderer12renderthread13DrawFrameTask11postAndWaitEvE3$_0NS_9allocatorIS6_EEFvvEEclEv$c303f2d2360db58ed70a2d0ac7ed911b+104)
  #11  pc 0x00000000003d2374  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+228)
  #12  pc 0x00000000003d20a0  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+80)
  #13  pc 0x000000000001380c  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+284)
  #14  pc 0x00000000000e2364  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
  #15  pc 0x0000000000083d98  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

On the following Android 10 devices:

  • Lenovo X606F Mediatek MT8768A
  • Lenovo X606X Mediatek MT8768T
  • Lenovo 8505F Mediatek MT8766A
  • Lenovo X306F Mediatek MT8768T
  • Alcatel TokyoPro Mediatek MT6762
  • Blackview Tab8 Spreadtrum SC9863A
  • Redmi angelican Mediatek MT6765
  • Redmi dandelion Mediatek MT6762

ts-sebastjanmevlja avatar May 13 '25 07:05 ts-sebastjanmevlja

Hi @Flattih @ts-sebastjanmevlja @stepushchik ,

I hope you're doing well. I wanted to check if you're still experiencing app crashes or black screen issues when launching the app on certain Android devices, or if you've found a solution to resolve it.

If you’ve implemented any fix or workaround, I’d really appreciate it if you could share the details. This issue is significantly impacting user experience and affecting our app's overall rating.

Thanks in advance!

Amitverma8 avatar May 14 '25 16:05 Amitverma8

We are also experiencing same problem on our android apps, app is crashing on some random user's phone on launch. it is really affecting us.

Flutter 3.29.3 • channel stable • https://github.com/flutter/flutter.git Framework • revision ea121f8859 (5 weeks ago) • 2025-04-11 19:10:07 +0000 Engine • revision cf56914b32 Tools • Dart 3.7.2 • DevTools 2.42.3

Crash report on playstore 👍


pid: 0, tid: 28619 >>> com.qsoft.aidapay <<<

backtrace: #00 pc 0x00000000000b41a8 /vendor/lib64/egl/libGLESv2_mtk.so #01 pc 0x000000000011534c /vendor/lib64/egl/libGLESv2_mtk.so #02 pc 0x00000000000369a8 /vendor/lib64/egl/libGLESv2_mtk.so #03 pc 0x00000000000169b8 /vendor/lib64/libIMGegl.so (IMGeglMakeCurrent+3608) #04 pc 0x000000000001649c /system/lib64/libEGL.so (android::egl_display_t::makeCurrent(android::egl_context_t*, android::egl_context_t*, void*, void*, void*, void*, void*, void*)+244) #05 pc 0x0000000000020188 /system/lib64/libEGL.so (android::eglMakeCurrentImpl(void*, void*, void*, void*)+384) #06 pc 0x00000000003c194c /system/lib64/libhwui.so (android::uirenderer::renderthread::EglManager::makeCurrent(void*, int*, bool)+180) #07 pc 0x00000000003f85f8 /system/lib64/libhwui.so (std::__1::packaged_task<void ()>::operator()()+88) #08 pc 0x00000000003d2364 /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+228) #09 pc 0x00000000003d2090 /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+80) #10 pc 0x000000000001380c /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+284) #11 pc 0x00000000000e2364 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) #12 pc 0x0000000000083d98 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

Attached is the log file from one of the devices (user sent it

logcat.log

)

trimmytech avatar May 14 '25 17:05 trimmytech

Hi everyone,

We’re experiencing an issue where our app crashes on startup and displays a black screen on certain devices, which is negatively impacting a significant portion of our user base. While the issue itself may not be urgent, we urgently need a fix as it is causing significant disruption.

Any assistance or hotfix would be greatly appreciated!

Thank you in advance!

Amitverma8 avatar May 14 '25 18:05 Amitverma8

We've disabled Impeller, and we're hoping that it fixes the problem. We're still testing it.

ts-sebastjanmevlja avatar May 15 '25 07:05 ts-sebastjanmevlja

Hello, we have the same issue here with Flutter 3.29.3. We need a solution from the Flutter's team please, regardless of whether the workaround of disabling Impeller works or not. Thank you guys!

fernan88 avatar May 16 '25 16:05 fernan88

Hello Flutter team,

We’re experiencing the same crash in our app on Flutter 3.29.3. We’re seeing numerous SIGSEGV reports in libGLESv2_mtk.so during calls to eglMakeCurrent, with a backtrace identical to the one described in this issue. Affected devices include:

  • Redmi 9C (M2006C3MG)
  • Redmi 9C NFC (M2006C3MNG)
  • Redmi 9A (M2006C3LG)
  • Redmi 9A (M2006C3LVG)
  • Redmi 9A (M2006C3LI)
  • M2006C3LII
  • Redmi 9 (M2006C3MII)

All these devices use MediaTek MT676x chipsets. Could you please advise if there’s a patch or definitive workaround available? Thanks!

amontelpare avatar May 16 '25 17:05 amontelpare

I experienced this crash on MediaTek devices running Android 10 and 11 (API 29 and 30), particularly with the following backtrace:

#00 pc 0x0000000000088a8c /vendor/lib/egl/libGLESv2_mtk.so ...

The issue was caused by Impeller using the Vulkan backend on older MediaTek GPUs, which are known to have unstable Vulkan driver support on those Android versions.

After updating to Flutter 3.32, the crash is no longer happening on those devices. Based on the release notes, starting from Flutter 3.29.3, the engine automatically switches to OpenGLES instead of Vulkan on:

Image

smhoz avatar May 21 '25 08:05 smhoz