Skip to content
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

Blank screen after running #2

Closed
abhisheksoni099 opened this issue Jun 18, 2020 · 4 comments
Closed

Blank screen after running #2

abhisheksoni099 opened this issue Jun 18, 2020 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@abhisheksoni099
Copy link

Blank screen after running
After "flutter run" the screen remains blank in android emulator running on a Mac

To reproduce
Navigate to example

  • cd example
  • flutter run

Logs

🛑 flutter run

Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering
with "--enable-software-rendering".
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Running Gradle task 'assembleDebug'...                                  
Running Gradle task 'assembleDebug'... Done                        16.9s
✓ Built build/app/outputs/apk/debug/app-debug.apk.
D/EGL_emulation( 5446): eglMakeCurrent: 0xae4545a0: ver 3 0 (tinfo 0xaa0e0660)
Syncing files to device Android SDK built for x86...             1,103ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h Repeat this help message.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).
An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:54597/EDMDMBW_8Os=/
I/WebViewFactory( 5446): Loading com.android.webview version 44.0.2403.119 (code 246011910)
D/        ( 5446): HostConnection::get() New Host Connection established 0xae44f180, tid 5457
D/        ( 5446): HostConnection::get() New Host Connection established 0xb2afe100, tid 5473
W/System  ( 5446): ClassLoader referenced unknown path: /system/app/webview/lib/x86
I/LibraryLoader( 5446): Time to load native libraries: 22 ms (timestamps 8412-8434)
I/LibraryLoader( 5446): Expected native library version number "",actual native library version number ""
V/WebViewChromiumFactoryProvider( 5446): Binding Chromium to main looper Looper (main, tid 1) {d2cfb07}
I/LibraryLoader( 5446): Expected native library version number "",actual native library version number ""
I/chromium( 5446): [INFO:library_loader_hooks.cc(120)] Chromium logging enabled: level = 0, default verbosity = 0
I/BrowserStartupController( 5446): Initializing chromium process, singleProcess=true
W/art     ( 5446): Attempt to remove non-JNI local reference, dumping thread
E/SysUtils( 5446): ApplicationContext is null in ApplicationStatus
W/chromium( 5446): [WARNING:resource_bundle.cc(285)] locale_file_path.empty()
E/libEGL  ( 5446): validate_display:255 error 3008 (EGL_BAD_DISPLAY)
E/libEGL  ( 5446): validate_display:255 error 3008 (EGL_BAD_DISPLAY)
D/EGL_emulation( 5446): eglCreateContext: 0xb409a860: maj 3 min 0 rcv 3
D/EGL_emulation( 5446): eglMakeCurrent: 0xb409a860: ver 3 0 (tinfo 0xa9fff110)
E/eglCodecCommon( 5446): glUtilsParamSize: unknow param 0x00008cdf
E/eglCodecCommon( 5446): glUtilsParamSize: unknow param 0x00008824
E/DataReductionProxySettingListener( 5446): No DRP key due to exception:java.lang.ClassNotFoundException: com.android.webview.chromium.Drp
W/AudioManagerAndroid( 5446): Requires BLUETOOTH permission
W/art     ( 5446): Attempt to remove non-JNI local reference, dumping thread
I/art     ( 5446): Background sticky concurrent mark sweep GC freed 11396(770KB) AllocSpace objects, 3(60KB) LOS objects, 68% free, 1180KB/3MB, paused 9.054ms total 77.452ms
W/AwContents( 5446): onDetachedFromWindow called when already detached. Ignoring
W/chromium( 5446): [WARNING:data_reduction_proxy_config.cc(423)] SPDY proxy OFF at startup
I/flutter ( 5446): >>>>>>>>>>>>>>>>> ModelViewer initializing...
D/EGL_emulation( 5446): eglMakeCurrent: 0xa9ffc420: ver 3 0 (tinfo 0xaa0e03c0)
D/        ( 5446): HostConnection::get() New Host Connection established 0x9ee5ef00, tid 5500
D/EGL_emulation( 5446): eglCreateContext: 0x992ec020: maj 3 min 0 rcv 3
D/EGL_emulation( 5446): eglMakeCurrent: 0x992ec020: ver 3 0 (tinfo 0x9ccf6090)
E/eglCodecCommon( 5446): glUtilsParamSize: unknow param 0x00008cdf
E/eglCodecCommon( 5446): glUtilsParamSize: unknow param 0x00008824
E/eglCodecCommon( 5446): glUtilsParamSize: unknow param 0x00008073
D/EGL_emulation( 5446): eglCreateContext: 0x992ebc00: maj 3 min 0 rcv 3
D/EGL_emulation( 5446): eglMakeCurrent: 0x992ebc00: ver 3 0 (tinfo 0x9ccf6090)
E/eglCodecCommon( 5446): glUtilsParamSize: unknow param 0x00008cdf
E/eglCodecCommon( 5446): glUtilsParamSize: unknow param 0x00008824
W/BindingManager( 5446): Cannot call determinedVisibility() - never saw a connection for the pid: 5446
D/EGL_emulation( 5446): eglMakeCurrent: 0x992ec020: ver 3 0 (tinfo 0x9ccf6090)
D/EGL_emulation( 5446): eglMakeCurrent: 0x992ebc00: ver 3 0 (tinfo 0x9ccf6090)
I/chromium( 5446): [INFO:CONSOLE(126)] "Uncaught SyntaxError: Unexpected token )", source:  (126)
E/eglCodecCommon( 5446): glUtilsParamSize: unknow param 0x000085b5
E/eglCodecCommon( 5446): glUtilsParamSize: unknow param 0x00008073
D/EGL_emulation( 5446): eglMakeCurrent: 0xa9ffc420: ver 3 0 (tinfo 0xaa0e03c0)

Screenshots
Screenshot 2020-06-18 at 8 53 03 AM

@abhisheksoni099 abhisheksoni099 added the bug Something isn't working label Jun 18, 2020
@bpedazur
Copy link

The screen remains blank also in an Android emulator on Windows and physical Android devices. (Tested with Samsung s8, Samsung S20, Pixel 2XL, and Pixel 3)

@artob artob self-assigned this Jul 12, 2020
@artob
Copy link
Member

artob commented Jul 12, 2020

The blank screen would tend to indicate a too-old Chrome version (see google/model-viewer#1109 (comment)), but on the other hand your long list of devices you tested with would counter-indicate that.

@bpedazur Could you check what the newest Chrome version is on a device (or emulator) that has this issue?

@artob artob changed the title App not running Blank screen after running Aug 20, 2020
@artob artob closed this as completed Aug 20, 2020
@artob
Copy link
Member

artob commented Aug 20, 2020

@sheky9 A closer examination of your log output indicates that your emulator is running a 2015-era release of Chrome or Chromium:

I/WebViewFactory( 5446): Loading com.android.webview version 44.0.2403.119 (code 246011910)

I'm afraid that such an old browser will definitely not work for the <model-viewer> web component this widget is based on. See google/model-viewer#1109.

@bpedazur I'd suggest to re-try with the latest 0.8.0 release, which has many enhancements and bug fixes.

I'm closing this for now, pending more information about the physical devices you had trouble with.

@artob artob pinned this issue Aug 20, 2020
@tejaswivg
Copy link

tejaswivg commented Jun 26, 2022

I faced this problem in an emulator too. In my case I was already running Android 11.

What fixed it was setting the opengl version in the emulator to Opengl ES 3.0
image

However it still doesn't work on a physical device for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

4 participants