Fixed
Status Update
Comments
bo...@google.com <bo...@google.com> #2
does the webview support webgl on the real phone ?
ad...@gmail.com <ad...@gmail.com> #3
WebView does support WebGL in a real phone (as tested in a Samsung J5).
lf...@google.com <lf...@google.com> #4
Yeah, we haven't had webgl working in the emulator for a while. Looking into it.
bo...@google.com <bo...@google.com> #5
probably we are not using the right webview.
afaik, the default aosp webview is lacking in many ways.
maybe the googlewebview can work.
afaik, the default aosp webview is lacking in many ways.
maybe the googlewebview can work.
lf...@google.com <lf...@google.com> #6
Indeed, it looks like when I create a WebView app and go to webglreport.com , the website shows I don't have WebGL support.
1. But, if I clear Chrome browser data and go towebglreport.com , it says I don't have support as well.
2. And then, if I go tohttps://www.chromeexperiments.com/webgl in this fresh Chrome, the webGL demos work, and going to webglreport.com afterward, the website says I have WebGL.
3. If I go tohttps://www.chromeexperiments.com/webgl in my sample WebView app, the WebGL demos also work.
Can you try making your app's WebView go tohttps://www.chromeexperiments.com/webgl , try the first demo (the matrix twitter), and report your results?
1. But, if I clear Chrome browser data and go to
2. And then, if I go to
3. If I go to
Can you try making your app's WebView go to
bo...@google.com <bo...@google.com> #7
That's expected. Webview requires additional extensions from the GL driver that emulator does not support.
ad...@gmail.com <ad...@gmail.com> #8
[Comment deleted]
ad...@gmail.com <ad...@gmail.com> #9
The Matrix sample in https://www.chromeexperiments.com/webgl does work in Chrome. Other samples load, but don't show anything.
If after that I try the same in a WebView, I get a similar behaviour (WebGL supported, the Matrix sample works, others don't show anything).
http://www.cesiumjs.org (click on "Tap to Interact") works in Chrome, but not in WebView ("The browser supports WebGL, but initialization failed.").
If after that I try the same in a WebView, I get a similar behaviour (WebGL supported, the Matrix sample works, others don't show anything).
lf...@google.com <lf...@google.com> #10
That's strange, then. What revision / version of system images are you using?
These all work:
https://www.chromeexperiments.com/experiment/2000000-stars
https://www.chromeexperiments.com/experiment/mon
http://vitorteixeira.me/Solar-System-Motion-Simulator/
http://playcanv.as/p/RqJJ9oU9/?overlay=false
http://globe.chromeexperiments.com
These all work:
bo...@google.com <bo...@google.com> #11
2d canvas does not require hardware acceleration and should work in webview, 3d canvas (ie webgl) should not
at a glance from the webpage, it's probably hard to tell which is which
at a glance from the webpage, it's probably hard to tell which is which
ad...@gmail.com <ad...@gmail.com> #12
I am testing mostly with system 7.1.1, though I have also tried 5.0 and 6.0.
http://globe.chromeexperiments.com works in Chrome, but in WebView I get a message "Sorry, your graphics card doesn't support WebGL".
lf...@google.com <lf...@google.com> #13
Thanks for the info adlerhn. I checked some more, and it seems like there are changes in the pipeline that still need to be applied to get more WebGL apps running in the versions you mentioned. We'll work instead on proper support that doesn't have this inconsistency, and will let you know when they are released.
ne...@gmail.com <ne...@gmail.com> #14
Hi, guys! What is the current state of this?
I faced the same issue trying to load Cesium.js 3D globe into WebView. It runs on real device with Android 5.1 but throws an Exception "The browser supports WebGL, but initialization failed." on any Android emulator.
I faced the same issue trying to load Cesium.js 3D globe into WebView. It runs on real device with Android 5.1 but throws an Exception "The browser supports WebGL, but initialization failed." on any Android emulator.
gu...@gmail.com <gu...@gmail.com> #15
Hi guys! Is there any update?
lf...@google.com <lf...@google.com> #16
Hi,
Yes, we have fixed it, but it is not released yet. We will have to wait for the next Webview Android release. Not sure on the ETA of this yet---reaching out to the team.
Yes, we have fixed it, but it is not released yet. We will have to wait for the next Webview Android release. Not sure on the ETA of this yet---reaching out to the team.
he...@gmail.com <he...@gmail.com> #17
Any updates?
bo...@google.com <bo...@google.com>
[Deleted User] <[Deleted User]> #18
Looking forward to the release (:
bo...@google.com <bo...@google.com> #19
if you have playstore in your avd, it should update to latest stable version of webview 69.0.3497.100 and webgl should work.
let us know otherwise.
let us know otherwise.
ye...@gmail.com <ye...@gmail.com> #20
I am trying to get this to work but no joy.
I am running Ubuntu 18.04 LTS. I have a 3d graphics card (I forget which one) but webGl works on the host just fine.
I have upgraded to the latest Android Studio 3.2.1 and upgraded everything else to the latest and greatest as of yesterday.
As a test, I am running AVD Pixel_2_API_28, which I chose because it was listed in AVDManager as supporting the Play Store.
I disabled Chrome.
Using the Play store, I upgraded the Android System Webview to the latest which is 70.0.3538.64.
I opened the Android System WebView app and navigated to this page as a test:
http://webglsamples.org/aquarium/aquarium.html
Following these steps, is WebGL supposed to work or am I misunderstanding something or making some mistake?
I am running Ubuntu 18.04 LTS. I have a 3d graphics card (I forget which one) but webGl works on the host just fine.
I have upgraded to the latest Android Studio 3.2.1 and upgraded everything else to the latest and greatest as of yesterday.
As a test, I am running AVD Pixel_2_API_28, which I chose because it was listed in AVDManager as supporting the Play Store.
I disabled Chrome.
Using the Play store, I upgraded the Android System Webview to the latest which is 70.0.3538.64.
I opened the Android System WebView app and navigated to this page as a test:
Following these steps, is WebGL supposed to work or am I misunderstanding something or making some mistake?
bo...@google.com <bo...@google.com> #21
for webview version 68 and before, it was hardcoded to use software rendering on emulator
(and that software rendering does not support webGL)
for webview version 69 and afterward, it should work better, since it can uses hardware GPU for webgl on emulator.
we will need to investigate why that url does not work, maybe some extension is still not well supported.
(and that software rendering does not support webGL)
for webview version 69 and afterward, it should work better, since it can uses hardware GPU for webgl on emulator.
we will need to investigate why that url does not work, maybe some extension is still not well supported.
ye...@gmail.com <ye...@gmail.com> #23
Can you provide an example of a webGl app that works for you in the emulator? None of the mapbox-gl-js (my use case) work either: https://www.mapbox.com/mapbox-gl-js/example/3d-buildings/
lf...@google.com <lf...@google.com> #24
#22: Wow, that's weird. It works in the emulator in Chrome on Mac, so I'm not sure what is going on; could be more webview configuration hell.
lf...@google.com <lf...@google.com> #25
#23, 24: "it" is referring to mapbox gl
ye...@gmail.com <ye...@gmail.com> #26
It would be hugely helpful if this could work under Linux. is there anything I can do to be of help?
sa...@google.com <sa...@google.com>
bo...@google.com <bo...@google.com> #27
bo...@google.com <bo...@google.com> #28
the reason webgl works in chrome on emulator is because the rendering is running in a different process;
when running in the same process (as webview case) on android, this webgl is disabled
when running in the same process (as webview case) on android, this webgl is disabled
sa...@google.com <sa...@google.com>
ya...@google.com <ya...@google.com> #29
Pending for merge/release. Let's keep this bug open until it is officially out.
st...@gmail.com <st...@gmail.com> #30
What is the current status here?
WebGL still does not seem to work in WebView on emulator while it works in Chrome on emulator.
Tested with:http://webglsamples.org/aquarium/aquarium.html
--> "Error Message = bindToCurrentThread failed"
--> E/chromium: [ERROR:context_group.cc(136)] ContextResult::kFatalFailure: WebGL1 blacklisted
My versions:
- Android emulator: 28.0.25
- WebView: 69.0.3497.100
- Android 9.0 (Google APIs), API: 28,CPU/ABI: x86
What versions of WebView and Emulator do I need?
WebGL still does not seem to work in WebView on emulator while it works in Chrome on emulator.
Tested with:
--> "Error Message = bindToCurrentThread failed"
--> E/chromium: [ERROR:context_group.cc(136)] ContextResult::kFatalFailure: WebGL1 blacklisted
My versions:
- Android emulator: 28.0.25
- WebView: 69.0.3497.100
- Android 9.0 (Google APIs), API: 28,CPU/ABI: x86
What versions of WebView and Emulator do I need?
ya...@google.com <ya...@google.com> #31
Hi Stephan,
If you download the latest Android Q image, it should work.
(Note: you might need to boot emulator from command line with the flag "-feature GLESDynamicVersion")
If you download the latest Android Q image, it should work.
(Note: you might need to boot emulator from command line with the flag "-feature GLESDynamicVersion")
ya...@google.com <ya...@google.com> #32
bohu@, when are we going to release it for earlier system images? The public P image looks pretty old (from november 2018)
Description
Android SDK Tools: 25.0.1
Host Operating System: Ubuntu 16.10
Host CPU Model: $ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 60
model name : Intel(R) Core(TM) i7-4702HQ CPU @ 2.20GHz
stepping : 3
microcode : 0x20
cpu MHz : 3200.097
cache size : 6144 KB
physical id : 0
siblings : 8
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts
bugs :
bogomips : 4389.93
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:
Steps to Reproduce Bug:
1. Create an app with a WebView opening a web site that uses WebGL, for example,
2. The web site will detect WebGL as not supported / disabled
3. Open the same website from Chrome; WebGL is supported.
Expected Behavior:
WebGL should work in web pages invoked from a WebView when using the emulator, as it does from Chrome.
Observed Behavior:
In the same system and emulator, WebGL works in web pages invoked from Chrome, but not from a WebView.