admin管理员组

文章数量:1389768

I would appreciate if you help me with this issue I have been having for the last month.

When I run a Flutter app in an Android emulator I get the following logs every time flutter needs to update the screen or load an image, whether it’s with the widget ‘Imagework’ or with ‘Image.asset’.

E/libEGL  ( 5968): called unimplemented OpenGL ES API
D/EGL_emulation( 5968): app_time_stats: avg=947.73ms min=19.49ms max=3199.28ms count=4

That log can apper every second if I am loading a gift instead of an image.

I already tried the following and got no results from it:

  • Changed the type of graphics acceleration on the emulator configuration between Hardware and Software.
  • Installed the latest drivers of my proccessor, Intel Graphics, as well as VT-x and VT-d on the BIOS
  • Turned off Hyper-V and turn on Windows Hypervisor Platform and Virtual Machine Platform.
  • Tried with different emulators API levels, from 36 to 30.
  • Tried with Google API’s and Open Source Androids. Even in a new Flutter project, on the counter basic example, it throws that error everytime Flutter refresh the app, updating the counter

I would appreciate if you help me with this issue I have been having for the last month.

When I run a Flutter app in an Android emulator I get the following logs every time flutter needs to update the screen or load an image, whether it’s with the widget ‘Imagework’ or with ‘Image.asset’.

E/libEGL  ( 5968): called unimplemented OpenGL ES API
D/EGL_emulation( 5968): app_time_stats: avg=947.73ms min=19.49ms max=3199.28ms count=4

That log can apper every second if I am loading a gift instead of an image.

I already tried the following and got no results from it:

  • Changed the type of graphics acceleration on the emulator configuration between Hardware and Software.
  • Installed the latest drivers of my proccessor, Intel Graphics, as well as VT-x and VT-d on the BIOS
  • Turned off Hyper-V and turn on Windows Hypervisor Platform and Virtual Machine Platform.
  • Tried with different emulators API levels, from 36 to 30.
  • Tried with Google API’s and Open Source Androids. Even in a new Flutter project, on the counter basic example, it throws that error everytime Flutter refresh the app, updating the counter
Share Improve this question asked Mar 15 at 22:28 Frank AyraFrank Ayra 1161 silver badge7 bronze badges 4
  • 1 Possibly related: Flutter Impeller in android Emulator but identifying which version of Flutter and version of Android SDK (not API level) you are using would be informative. – Morrison Chang Commented Mar 16 at 5:49
  • @MorrisonChang thanks, that is helping me finding what the root problem is – Frank Ayra Commented Mar 16 at 17:06
  • Feel free to self answer with your solution or explanation for future readers. – Morrison Chang Commented Mar 16 at 18:57
  • This may be related to this problem: stackoverflow/a/79454564/29644960 – JTO Informatique Commented Mar 17 at 14:04
Add a comment  | 

1 Answer 1

Reset to default 2

I was able to identify that the problem was due to the graphics engine that Flutter has been using for about 2 or 3 versions (Impeller). This has a Vulkan and OpenGL compatibility bug. I was even able to find an issue from the Flutter development team, reporting the error (see https://github/flutter/flutter/issues/163269 ). Therefore, we can temporarily, until the bug is resolved, get by with the command:

flutter run --no-enable-impeller

which I found in this https://stackoverflow/questions/76970158/flutter-impeller-in-android-emulator.

Thanks to @MorrisonChang for the contribution.

Apparently It was recently solved on Flutter 3.29.0

本文标签: