cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
vcouvert
Observer
Observer
3,312 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
3,114 Views
Registered: ‎06-25-2018
14 Replies
3,115 Views
Registered: ‎06-25-2018
watari
Teacher
Teacher
3,108 Views
Registered: ‎06-16-2013

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
vcouvert
Observer
Observer
3,090 Views
Registered: ‎10-03-2016

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
vcouvert
Observer
Observer
3,089 Views
Registered: ‎10-03-2016

Hi,

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

Thanks for your help.

0 Kudos
3,071 Views
Registered: ‎06-25-2018

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
vcouvert
Observer
Observer
3,060 Views
Registered: ‎10-03-2016

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
2,896 Views
Registered: ‎06-25-2018

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

0 Kudos
2,880 Views
Registered: ‎06-25-2018

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
vcouvert
Observer
Observer
2,863 Views
Registered: ‎10-03-2016

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
vcouvert
Observer
Observer
2,806 Views
Registered: ‎10-03-2016

Hi,

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

Thansk again for your help.

 

0 Kudos
sulcas.mindaugas
Participant
Participant
2,240 Views
Registered: ‎05-17-2018

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
2,232 Views
Registered: ‎06-25-2018

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
sulcas.mindaugas
Participant
Participant
2,220 Views
Registered: ‎05-17-2018

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
sulcas.mindaugas
Participant
Participant
2,208 Views
Registered: ‎05-17-2018

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

 

0 Kudos