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
1,490 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
1,292 Views
Registered: ‎06-25-2018

Re: Chromium - Petalinux 2018.2 - OpenGL - Webgl

Jump to solution
14 Replies
1,293 Views
Registered: ‎06-25-2018

Re: Chromium - Petalinux 2018.2 - OpenGL - Webgl

Jump to solution
Scholar watari
Scholar
1,286 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
1,268 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
1,267 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
1,249 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
1,238 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
1,074 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
1,058 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
1,041 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
984 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
418 Views
Registered: ‎05-17-2018

Re: Chromium - Petalinux 2018.2 - OpenGL - Webgl

Jump to solution

Hello,

I wanted to ask if you used BSP for ultra96 board to build petalinux image with wayland backend? Becouse I tried to build petalinux image with wayland backed using ultra96 BSP and I get error webkitgtk do_compile failed.

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

Re: Chromium - Petalinux 2018.2 - OpenGL - Webgl

Jump to solution

Hello,

yes, i used 2018.3 Bsp for ultra96 board from http://www.zedboard.org/support/design/24166/156.

I followed the instructions given on https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841928/Xilinx+MALI+driver in the "Wayland/GBM backend:"/"2018.3:" section.

It worked without error. Maybe you didn't unselect some x11 dependent package in rootfs config?

0 Kudos
398 Views
Registered: ‎05-17-2018

Re: Chromium - Petalinux 2018.2 - OpenGL - Webgl

Jump to solution

Thank you for quick reply, I have unselected 'packagegroup-petalinux-matchbox' and 'packagegroup-petalinux-x11' as instructed https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841928/Xilinx+MALI+driver but I still get error.

0 Kudos
386 Views
Registered: ‎05-17-2018

Re: Chromium - Petalinux 2018.2 - OpenGL - Webgl

Jump to solution

So I guess I found my problem. My system runs out of ram. Screenshot_20190718-091735_Gallery.jpg

 

0 Kudos