blu / hello-chromeos-gles2

"Hello GLES2" on ChromeOS, self-hosted style
MIT License
3 stars 0 forks source link

Can't get this working in newer ChromeOS #5

Open satmandu opened 4 years ago

satmandu commented 4 years ago

On M86:

sudo ./test_egl_sphere 
No protocol specified
No protocol specified
No protocol specified
No protocol specified
eglInitialize() failed
EGL error: EGL_NOT_INITIALIZED
Error initializing GLES

(also libwayland got replaced by mesa + wayland in chromebrew so the docs need updating.)

blu commented 4 years ago

Do not install mesa -- you want the factory-supplied libEGL and libGLESv2.

I think at one stage libwayand was in the wayland package -- I'll update the docs shortly -- thanks for the heads-up!

satmandu commented 4 years ago

Ah. I'm running dev mode/beta channel, so that might mess things up, since chromebrew is explicitly not supported on non-stable. Having said that, I am noticing that if I remove xorg_server and mesa, and then compile this using build_wayland_protocols.sh and build_chromeos_skeleton_shadow.sh and then run./test_egl_skeleton_shadow, I get an immediate reboot.

(Ideally, I'd like to get XWayland running with the factory-supplied libEGL and libGLESv2 and without going into crostini, so getting the built-in GL working on here is of interest to me.)

blu commented 4 years ago

What hw are you running on? There is a known problem with the factory EGL stack on rk3399 where the app causes a system reboot either at exit (but still shows all frames before that) or at startup, depending on the cycle-of-the-moon with chromeos. I've filed a ticket with google, but given the exosphere nature of this project, I don't expect a resolution anytime soo, or, frankly, at all.

satmandu commented 4 years ago

I'm on Pixel Slate/nocturne.

satmandu commented 4 years ago

Also what's the crbug you are referring to?

blu commented 4 years ago

This one https://bugs.chromium.org/p/chromium/issues/detail?id=892521

satmandu commented 4 years ago

Thanks. For what it is worth, there are still EGL bugfixes being discussed for ChromeOS.

e.g. https://bugs.chromium.org/p/chromium/issues/detail?id=1071550#c13