Repository navigation
Flutter showing blank screen in some low-end devices #18601
Copy link
Copy link
Closed
Labels
dependency: skiaSkia team may need to help usSkia team may need to help use: device-specificOnly manifests on certain devicesOnly manifests on certain devicese: gpu driver bugA particular GPU driver has a problemA particular GPU driver has a problemengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.
Description
One of our users reported he got a blank screen (full white) when running the app. I did reproduce this using an old device (Huawei Ascend Y330 - Android 4.2.2). There is a line Failed to setup Skia Gr context. in logs showing that skia failed.
I tried with --enable-software-rendering flag and it worked but this option is not available when generating an APK.
Complete logs
Launching lib\main.dart on HUAWEI Y330 U11 in debug mode...
Initializing gradle...
Resolving dependencies...
Running 'gradlew assembleDebug'...
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
Built build\app\outputs\apk\debug\app-debug.apk.
I/FlutterActivityDelegate(11218): onResume setting current activity to this
E/flutter (11218): [ERROR:flutter/shell/gpu/gpu_surface_gl.cc(44)] Failed to setup Skia Gr context.
I/FlutterActivityDelegate(11218): onPause setting current activity to null
I/InputMethodManager(11218): handleMessage: MSG_SET_ACTIVE false, was true
V/InputMethodManager(11218): START INPUT: io.flutter.view.FlutterView{4192a5f8 VFE..... .F...... 0,0-480,800} ic=null tba=android.view.inputmethod.EditorInfo@419a4a10 controlFlags=#100
V/InputMethodManager(11218): Starting input: Bind result=InputBindResult{com.android.internal.view.IInputMethodSession$Stub$Proxy@419a5240 com.nuance.swype.emui/com.nuance.swype.input.HuaweiIME #303}
Syncing files to device HUAWEI Y330 U11...
D/IPCThreadState(11218): [DN #5] BR_CLEAR_DEATH_NOTIFICATION_DONE cookie 0x4f7ceaf0
E/FirebaseInstanceId(11218): Token retrieval failed: SERVICE_NOT_AVAILABLE
D/IPCThreadState(11218): [DN #5] BR_CLEAR_DEATH_NOTIFICATION_DONE cookie 0x53dc3df0
E/FA (11218): Failed to get app instance id: android.os.DeadObjectException: com.google.android.gms.internal.measurement.zzn.transactAndReadException(Unknown Source)
E/FA (11218): Failed to send current screen to the service: android.os.DeadObjectException: com.google.android.gms.internal.measurement.zzn.transactAndReadExceptionReturnVoid(Unknown Source)
E/FA (11218): Failed to send current screen to the service: android.os.DeadObjectException: com.google.android.gms.internal.measurement.zzn.transactAndReadExceptionReturnVoid(Unknown Source)
D/dalvikvm(11218): GC_CONCURRENT freed 1031K, 20% free 6650K/8276K, paused 6ms+9ms, total 81ms
I/flutter (11218): Requesting firebase token
I/SurfaceTextureClient(11218): [STC::queueBuffer] (this:0x554f6018) fps:0.13, dur:14918.86, max:14848.79, min:70.07
I/SurfaceTextureClient(11218): [STC::queueBuffer] this:0x554f6018, api:1, last queue time elapsed:14848.79
I/FlutterActivityDelegate(11218): onResume setting current activity to this
V/PhoneWindow(11218): DecorView setVisiblity: visibility = 0
I/InputMethodManager(11218): handleMessage: MSG_SET_ACTIVE true, was false
Flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel dev, v0.5.4, on Microsoft Windows [Version 6.1.7601], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[√] Android Studio (version 3.1)
[√] Connected devices (1 available)
• No issues found!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
dependency: skiaSkia team may need to help usSkia team may need to help use: device-specificOnly manifests on certain devicesOnly manifests on certain devicese: gpu driver bugA particular GPU driver has a problemA particular GPU driver has a problemengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.
Activity
zoechi commentedon Jun 19, 2018
cc @cbracken
chinmaygarde commentedon Jun 19, 2018
Can you post the output of
adb shell dumpsys SurfaceFlinger?Rmaan commentedon Jun 20, 2018
Sure. I ran it when the app is not running. Does it matter?
Rmaan commentedon Jun 24, 2018
@chinmaygarde Another user reported blank screen, on a Huawei Honor 3C. Thats not that low-end like mentioned Huawei handset.
Rmaan commentedon Jul 21, 2018
Another user reported this issue with Huawei Ascend G730.
josvos commentedon Sep 6, 2018
I have the same issue on an old Samsung Tab 10 (P5110) running Cyanogenmod 10.1.3 (Android 4.2.2). Running the app with --enable-software-rendering works ok, without that flag the screen is left completely blank, but the app is still working (I can tap on buttons...). I'm using the latest Flutter dev (0.7.5).
zoechi commentedon Nov 28, 2018
Looks like a dup of #8610
xclud commentedon Nov 25, 2019
Huawei Honor 8C here and i get this error every other flutter build/commit. Once i update the Android SDK build tools and the problem fixed. But with the next flutter build it broke again. I have the latest version now:
And my configuration:
akulubala commentedon Dec 6, 2019
Huawei DUB-AL00 got this error too
github-actions commentedon Aug 25, 2021
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
flutter doctor -vand a minimal reproduction of the issue.