UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer vcouvert
Observer
721 Views
Registered: ‎10-03-2016

Chromium - Petalinux 2018.2 - OpenGL - Webgl

Jump to solution

Hi all,

 

Using latest Petalinux version (2018.2) I managed to add Chromium to my generated rootfs for ZU3EG platform.

However, when I launch Chromium, I get an error about GL context:

[2382:2382:0712/175115:ERROR:gl_factory.cc(48)] Requested GL implementation is not available.
[2382:2382:0712/175116:ERROR:gpu_child_thread.cc(348)] Exiting GPU process due to errors during initialization
[2351:2373:0712/175116:ERROR:browser_gpu_channel_host_factory.cc(123)] Failed to launch GPU process.
[2351:2373:0712/175116:ERROR:browser_gpu_channel_host_factory.cc(123)] Failed to launch GPU process.

 

And when I try to browser a Web page using Webgl components, they are not displayed.

 

Any idea about how to fix this issue?

 

Thanks.

0 Kudos
1 Solution

Accepted Solutions
523 Views
Registered: ‎06-25-2018

Re: Chromium - Petalinux 2018.2 - OpenGL - Webgl

Jump to solution
0 Kudos
11 Replies
524 Views
Registered: ‎06-25-2018

Re: Chromium - Petalinux 2018.2 - OpenGL - Webgl

Jump to solution
0 Kudos
Scholar watari
Scholar
517 Views
Registered: ‎06-16-2013

Re: Chromium - Petalinux 2018.2 - OpenGL - Webgl

Jump to solution

konrad.ley@valeo.com

 

I strongly suggest using PetaLinux 2018.3 to use Mali400 as gpu.

Also I suggest sharing x window’s log file to investigate the route cause.

 

Best regards,

 

0 Kudos
Observer vcouvert
Observer
499 Views
Registered: ‎10-03-2016

Re: Chromium - Petalinux 2018.2 - OpenGL - Webgl

Jump to solution

Hi,

Thanks for your feedback, i'll try your solution.

Did you managed to make WebGL work ? (http://webglsamples.org/aquarium/aquarium.html for example).

Thanks for your help.

0 Kudos
Observer vcouvert
Observer
498 Views
Registered: ‎10-03-2016

Re: Chromium - Petalinux 2018.2 - OpenGL - Webgl

Jump to solution

Hi,

Thanks for your message, i'll migrate to 2018.3 and see if it works better.

Thanks for your help.

0 Kudos
480 Views
Registered: ‎06-25-2018

Re: Chromium - Petalinux 2018.2 - OpenGL - Webgl

Jump to solution

Sorry, i was maybe a bit too enthusiatic.

With the petalinux 2017.3 image which shipped with the ultra96 board i start chromium with --use-gl=egl option and your webgl sample looks like petalinux2017.3chromiumwebgl.png.

On petalinux 2018.3 with x11 it doesn't work at all.

On petalinux 2018.3 with wayland and chromium-ozone-wayland it looks like petalinux2018.3chromiumozonewaylandwebgl.png

petalinux2017.3chromiumwebgl.png
petalinux2018.3chromiumozonewaylandwebgl.png
0 Kudos
Observer vcouvert
Observer
469 Views
Registered: ‎10-03-2016

Re: Chromium - Petalinux 2018.2 - OpenGL - Webgl

Jump to solution

Thanks for your reply and screenshots.

Would you say that it worked better with 2017.3 shipped image than with your 2018.3 own image?

I never managed to make this demo work on my board, so I will try with a 2018.3 own image (wayland and x11) and see...

Regards.

0 Kudos
Visitor johnceni
Visitor
403 Views
Registered: ‎09-05-2018

Re: Chromium - Petalinux 2018.2 - OpenGL - Webgl

Jump to solution

Disabling Hardware Accelerated Graphics in Chrome may fix Rats WebGL Hit A Snag. I have tried these steps you can check them out and let me know if this works or not.

  1. Navigate to chrome :// settings>>show advanced settings. 
  2. There you can see an option “use hardware acceleration when available.” 
  3. Uncheck it and Restart your browser to make the changes live.

 

0 Kudos
305 Views
Registered: ‎06-25-2018

Re: Chromium - Petalinux 2018.2 - OpenGL - Webgl

Jump to solution

Sorry, when i run chromium with unchecked "use hardware acceleration when available" i get "It does not appear your computer supports WebGL.

0 Kudos
289 Views
Registered: ‎06-25-2018

Re: Chromium - Petalinux 2018.2 - OpenGL - Webgl

Jump to solution

Now i tried chromium from https://github.com/OSSystems/meta-browser on x11. It seems to work without artifacts at 6 fps. Rather slow compared to wayland with 12 fps but on wayland it's showing the artifacts from my previous post.

The steps I took are;

1. Add yocto layer meta-rust and meta-browser according to http://www.zachpfeffer.com/single-post/Add-a-Yocto-Layer-to-a-PetaLinux-Project-and-Build-a-Recipe-in-the-Layer-with-PetaLinux-Tools

2. Add

IMAGE_INSTALL_append = " chromium-x11"

to project-spec/meta-user/conf/petalinuxbsp.conf

3.

petalinux-build 

 

0 Kudos
Observer vcouvert
Observer
274 Views
Registered: ‎10-03-2016

Re: Chromium - Petalinux 2018.2 - OpenGL - Webgl

Jump to solution

Hi all,

Thanks for your help and tips!

I installed 2018.3 version and, using your information, I managed to get WebGL samples and my board using Wayland/Weston. I just had to wait hours until Chromium get compiled :-)

Since I would like to keep my Xfce (which seems to not support Wayland for the moment), I will try in the next days to compile chromium-x11 (from  https://github.com/OSSystems/meta-browser) and see if it works too.

Thanks again for your help.

Vincent

0 Kudos
Observer vcouvert
Observer
218 Views
Registered: ‎10-03-2016

Re: Chromium - Petalinux 2018.2 - OpenGL - Webgl

Jump to solution

Hi,

I also tried the chromium-x11 based solution and it worked too (with a lower FPS)!

Thansk again for your help.

 

0 Kudos