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
Flutter engine crashes on some Android devices due to "Failed to setup Skia Gr context" #47804
Comments
Workaround for this issue: enable software rendering Initialize flutter with args before starting FlutterActivity: FlutterMain.ensureInitializationComplete(context, new String[]{FlutterShellArgs.ARG_ENABLE_SOFTWARE_RENDERING}); Or Intent flutterActivity = ...; // build intent
flutterActivity.put(FlutterShellArgs.ARG_KEY_ENABLE_SOFTWARE_RENDERING, true);
startActivity(flutterActivity); |
|
The page will become stuck, but I found that only EMUI 8.2.0 phones will crash, so only turn on this option for these phones |
Suddenly encountered this problem on the line today. I can only roll back the version first. If the model judges, I am afraid that I will not deal with it. |
@nuptdzs 你回退到哪个版本不会崩? |
1.10.7, theoretically below 1.12 will work. |
I also encountered a problem, how can I roll back the version? |
me too! |
no,荣耀 8c 不通过 |
在app的onCreate里面加了这个还是不起作用 |
@andisolo what's the EMUI version on your phone? |
设备型号:BKK-AL10 |
@andisolo sorry,I make a mistake! updated the snippet:
|
我按照你所说的修改了,现在启动的错误日志如下: |
The |
好了,非常感谢. |
由遇到了和#47765 一样的错误,你知道怎么解决吗? |
遇到同样的问题 |
@andisolo 你解决了吗 |
这个加在哪个文件呀 |
The performance issues on those phones may also be improved by https://skia.googlesource.com/skia/+/1321a3d, which will be included in the next release. |
Its significantly slow on my Huawei Honor 8C. |
@godofredoc @GaryQian : we might need to add the 2 Huawei device to our device lab to continuously monitor this performance regression. |
Could everyone who still has this problem please file a new issue with the exact descriptions what happens, logs and the output of 'flutter doctor -v' please. |
Any idea when the next release would be? this info would be helpful to decide on what to do. |
@amrosama2020 : Flutter has a new release version roughly every quarter (3 months). Our last one is around December so the next one should be around March. |
I still have this problem with version 1.12.13+hotfix8,Can not be reproduced locally. |
cc @jason-simmons Any chance you can take a look at this one? Thanks! |
@zoeyfan Is there a known way to reproduce this? Skia GrContext setup failures are typically due to errors reported by the device's graphics driver, so this may be specific to a particular device model and OS version. |
@zsunkun, @WATER1350, @linxuebin1990,@Qxyat. Would you please provide a particular device model and its OS version so our team can look into this issue? |
@jason-simmons @zoeyfan |
Although the crash error is the same, it looks to me like this may have a different cause than the original bug filed here since this seems to be more OS specific as well as device specific. I'm going to merge the continuation of this issue with #51447 and close this one. @zsunkun I will reproduce your useful graphs in the other issue. Thanks! |
@yrom How to specify the local skia when compiling the engine? |
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 |
Steps to Reproduce
This crash was happened on users' Android phone. I don't know clear steps to reproduce.
User starts the
FlutterActivity
then the APP crashes immediately.Devices:
Android version: Android 8.1.0,level 27
I noticed that they are all Huawei phones, and the EMUI version is 8.x, some of which using the Qualcomm Snapdragon processor.
updated at 2020-1-3
After investigating, I found the root cause was the
skia
attemping to useGL_QCOM_TILED_RENDERING
on these phones. Ssee https://skia-review.googlesource.com/c/skia/+/246282/2. But something went wrong as the logcat said.If you are troubling on this issue, you can try to roll back the skia revision and use your local compiled flutter engine, before the flutter team fixed this issue.
Logs
main
thread stack trace:1.gpu
thread: signal SIGSEGV(SEGV_MAPERR)The text was updated successfully, but these errors were encountered: