New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to setup Skia Gr context #11094
Comments
@simusco is this an emulator? @chinmaygarde or @brianosman what are the right instructions for how to gather the right GPU information here? |
Is this reproducible? That error suggests that just creating the GrContext is failing, which limits how much information you can scrape from within Flutter - typically you would ask the GrContext. We do test Skia on that device - it's got a relatively recent Mali GPU (T7xx). |
Here is happening the same error. I just has created the getting started myapp. Flutter install the application in my emulator but it freeze in the black screen. I am using Windows 10 Pro and Android Emulator Samsung Galaxy Tab API 17. Launching lib/main.dart on Android SDK built for x86 in debug mode... In my Nexus 5X API 25 emulator it works very well. Launching lib/main.dart on Android SDK built for x86 in debug mode... |
I am getting the same error in emulator: Launching lib/main.dart on Android SDK built for x86 in debug mode... This is when launching the demo flutter app (counter), using API level 17, hardware emulation. The application shows completely black after this error. When I change to API level 24, the application works |
This is the kind of bug where something like #11402 might be useful. :) |
I guess. BTW, I do not mind this issue at all as long as some SDKs work for me in emulation (and some do). Found this googling and wanted to add it does not seem unique for the reporter. Thanks. |
I encountered the same issue in emulator and able to fixed by changing the configuration in AVD. Under Emulated Perfomance, set Graphics to Hardware - GLES 2.0 |
I am using Windows 10 Pro and I have the same problem on Android Emulator API level 17. |
I am using Windows 10 Education and I have the same problem on Android Emulator API level 16. |
|
@eseidelGoogle that work, i just find it in #9108 |
Jajaja I had the same problem , I created my virtual machine and ran the test drive from this url https://flutter.io/get-started/test-drive/#androidsstudio but not worked in android studio , I had write the option --enable-software-rendering and it works!!!. Why not works like in the official documentation? @eseidel |
Filed #15451 to track whether we should flip the defaults on software rendering on emulators. |
For Android Studio or IntelliJ users, this is same as what @eseidelGoogle suggested |
For Visual Studio Code users add the following line to launch.json : |
@aymentoumi: Thanks for the pointer. Though I don't think "-d all" is related to software rendering. |
@chinmaygarde "-d all" means all devices and it's optional if you use only one emulator. |
Thanks @eseidelGoogle, I have same problem and solved |
Closing this for the moment; the remainder should be covered by #15451. We recently updated startup messages for Android emulator runs to help clarify how to switch between software and hardware rendering as well. |
or run command line:
Both of them work for me. Thanks all! |
Thank you very much my friend :) |
not work for me |
I have same problem |
Hi, I have the problem with a real machine (not Android simulator) bought in 2017 (which is not too old). Thus, why my phone do not support hardware rendering? Will this harm performance? Will many phones do not support hardware rendering, so that Flutter apps will crash on them?? Thanks! |
enable software rendering can be a workaround for debugging but how about release mode ?? |
Obrigado me Ajudo |
Hi, I need to support API 16. It seems this issue present in API 16 (Google APIs) and API 19 (Google APIs). Is there recommended way to build the apk with |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Launching lib\main.dart on Samsung Galaxy S6, 5 1 0, API 22, 1440x2560 in debug mode...
Built build\app/outputs/apk/app-debug.apk (21.7MB).
I/flutter ( 1942): [INFO:gpu_surface_gl.cc(51)] Failed to setup Skia Gr context.
Application finished.
The text was updated successfully, but these errors were encountered: