flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
162.21k stars 26.65k forks source link

[libGLES_mali.so] /system/lib64/libEGL.so (android::eglSwapBuffersWithDamageKHRImpl(void*, void*, int*, int)+748) #147517

Open k1r3zz opened 2 weeks ago

k1r3zz commented 2 weeks ago

Steps to reproduce

backtrace:
  #00  pc 0x00000000009ef388  /vendor/lib64/egl/libGLES_mali.so
  #01  pc 0x00000000009f1bc0  /vendor/lib64/egl/libGLES_mali.so
  #02  pc 0x0000000000a044fc  /vendor/lib64/egl/libGLES_mali.so
  #03  pc 0x0000000000a037c0  /vendor/lib64/egl/libGLES_mali.so
  #04  pc 0x000000000002de94  /system/lib64/libEGL.so (android::eglSwapBuffersWithDamageKHRImpl(void*, void*, int*, int)+748)
  #05  pc 0x000000000002a498  /system/lib64/libEGL.so (eglSwapBuffers+80)
  #06  pc 0x0000000000017ffc 

Above is the error received in the background of Google play

Expected results

Normal operation

Actual results

This crash mainly happened in android 10 devices, and it was Huawei Kirin chips, Samsung chips and Mediatek chips, Qualcomm chips did not,

Code sample

Code sample ```dart [Paste your code here] ```

Screenshots or Video

Screenshots / Video demonstration ![image](https://github.com/flutter/flutter/assets/19678748/a5439619-ba81-4ddd-89aa-1f4b78c866e9) ![image](https://github.com/flutter/flutter/assets/19678748/1a066766-3823-4015-9048-a17f9d1f641b) ![image](https://github.com/flutter/flutter/assets/19678748/e77cd324-48c1-4c21-bcb2-18abbc7fa87a)

Logs

Logs ``` backtrace: #00 pc 0x00000000009ef388 /vendor/lib64/egl/libGLES_mali.so #01 pc 0x00000000009f1bc0 /vendor/lib64/egl/libGLES_mali.so #02 pc 0x0000000000a044fc /vendor/lib64/egl/libGLES_mali.so #03 pc 0x0000000000a037c0 /vendor/lib64/egl/libGLES_mali.so #04 pc 0x000000000002de94 /system/lib64/libEGL.so (android::eglSwapBuffersWithDamageKHRImpl(void*, void*, int*, int)+748) #05 pc 0x000000000002a498 /system/lib64/libEGL.so (eglSwapBuffers+80) #06 pc 0x0000000000017ffc ``` [Paste your logs here] ```

Flutter Doctor output

Doctor output [!] Flutter (Channel stable, 3.19.0, on macOS 13.0 22A380 darwin-x64, locale zh-Hans-CN) • Flutter version 3.19.0 on channel stable at /Users/kira/Documents/flutter/flutter_fvm/3.19.0 ! Warning: `dart` on your path resolves to /usr/local/Cellar/dart/2.17.6/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/kira/Documents/flutter/flutter_fvm/3.19.0. Consider adding /Users/kira/Documents/flutter/flutter_fvm/3.19.0/bin to the front of your path. • Upstream repository https://github.com/flutter/flutter.git • Framework revision bae5e49bc2 (3 months ago), 2024-02-13 17:46:18 -0800 • Engine revision 04817c99c9 • Dart version 3.3.0 • DevTools version 2.31.1 • Pub download mirror https://pub.flutter-io.cn • Flutter download mirror https://storage.flutter-io.cn • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades. [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0) • Android SDK at /Users/kira/Documents/android/Android/sdk • Platform android-34, build-tools 33.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301) • All Android licenses accepted. [!] Xcode - develop for iOS and macOS (Xcode 14.0.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 14A400 ! CocoaPods 1.11.2 out of date (1.13.0 is recommended). CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side. Without CocoaPods, plugins will not work on iOS or macOS. For more info, see https://flutter.dev/platform-plugins To upgrade see https://guides.cocoapods.org/using/getting-started.html#updating-cocoapods for instructions. [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2022.1) • Android Studio at /Applications/Android Studio.app/Contents • 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 11.0.15+0-b2043.56-8887301) [✓] IntelliJ IDEA Community Edition (version 2019.3.5) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin version 51.0.1 • Dart plugin version 193.7547 [✓] VS Code (version 1.88.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.86.0 [✓] Connected device (3 available) • Pixel 4a 5G (mobile) • 0B191JECB06782 • android-arm64 • Android 13 (API 33) • macOS (desktop) • macos • darwin-x64 • macOS 13.0 22A380 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 124.0.6367.91 [✓] Network resources • All expected network resources are available. ```console [Paste your output here] ```
darshankawar commented 2 weeks ago

This crash mainly happened in android 10 devices, and it was Huawei Kirin chips, Samsung chips and Mediatek chips, Qualcomm chips did not,

@k1r3zz Looks like this crash is related to device hardware. Maybe looks similar to https://github.com/flutter/flutter/issues/138701

We would need a reproducible code sample without which the issue can't be made actionable.

k1r3zz commented 2 weeks ago

This crash mainly happened in android 10 devices, and it was Huawei Kirin chips, Samsung chips and Mediatek chips, Qualcomm chips did not,

@k1r3zz Looks like this crash is related to device hardware. Maybe looks similar to #138701

We would need a reproducible code sample without which the issue can't be made actionable.

Sorry, I can't provide more logs, this is an error of google play background, his logs are very few, and only a few models report logs, but I can describe my change history:

  1. I'm still using flutter 3.19.0 without importing a new sdk
  2. New version The only thing I did was add a new tab to my app that uses webview (webview_flutter: 4.7.0), the ads will appear when the webview is clicked with flutter, but the ads sdk (applovin sdk3.9.2) were added in the previous version, and this error didn't happen before. Before, the ads appeared directly from the flutter page, that's all I did with the new version
k1r3zz commented 2 weeks ago

This crash mainly happened in android 10 devices, and it was Huawei Kirin chips, Samsung chips and Mediatek chips, Qualcomm chips did not,

@k1r3zz Looks like this crash is related to device hardware. Maybe looks similar to #138701

We would need a reproducible code sample without which the issue can't be made actionable.

Is there any way to make my app not crash at least, which will be included in my performance appraisal, this problem accounts for 50% of my crash, I will lose the performance of next month if I don't complete it, is there any way to make it not crash at least, such as t r y catch

darshankawar commented 2 weeks ago

Huawei Kirin chips, Samsung chips and Mediatek chips, Qualcomm chips did not,

Can you provide difference between the chips on which it crashes and on other where it doesn't ? That'll probably help us further.

k1r3zz commented 1 week ago

Huawei Kirin chips, Samsung chips and Mediatek chips, Qualcomm chips did not,

Can you provide difference between the chips on which it crashes and on other where it doesn't ? That'll probably help us further.

HiSilicon KIRIN710

HiSilicon KIRIN980

Samsung Exynos 9810

HiSilicon KIRIN710F

Mediatek MT6769T

Mediatek MT6769

Mediatek MT6785T

Mediatek MT6771

Mediatek MT6763

Mediatek MT8168B

These are my list of problematic device chips, with the top three having the most problems, all on Android 10 phones

darshankawar commented 1 week ago

backtrace:

00 pc 0x00000000009ef388 /vendor/lib64/egl/libGLES_mali.so

01 pc 0x00000000009f1bc0 /vendor/lib64/egl/libGLES_mali.so

02 pc 0x0000000000a044fc /vendor/lib64/egl/libGLES_mali.so

03 pc 0x0000000000a037c0 /vendor/lib64/egl/libGLES_mali.so

04 pc 0x000000000002de94 /system/lib64/libEGL.so (android::eglSwapBuffersWithDamageKHRImpl(void, void, int*, int)+748)

05 pc 0x000000000002a498 /system/lib64/libEGL.so (eglSwapBuffers+80)

06 pc 0x0000000000017ffc

darshankawar commented 1 week ago

I tried to get symbolicated log based on above stacktrace but it isn't working, so I'll keep this issue open for tracking and team's input.