glew icon indicating copy to clipboard operation
glew copied to clipboard

Built with SYSTEM=linux-egl, glew apps crash on NVIDIA

Open badshah400 opened this issue 3 years ago • 5 comments

On openSUSE, we have recently switched to building glew with EGL support. This however leads to crashes for apps dependent on glew on NVIDIA graphics. Starting visualinfo fails, for example, with the following error message:

Error [main]: glewInit failed: Missing GL version

Attaching the output of glewinfo here: glewinfo.txt.gz.

Here is the output of glxinfo: glxinfo.txt.gz

OTOH we cannot simply disable building glew with EGL support, since it causes wxWidgets 3.1.5 apps to crash (on all systems). See, for example, this Hugin bug.

Thanks.

badshah400 avatar Aug 17 '21 16:08 badshah400

Context here is that OpenSUSE is switching to Wayland by default?

nigels-com avatar Aug 17 '21 22:08 nigels-com

Context here is that OpenSUSE is switching to Wayland by default?

We did that a while ago (at least for GNOME on Tumbleweed) already except on NVIDIA systems.

For me the more narrow goal is to avoid wxWidgets apps that use glew from crashing after wxWidgets 3.1.5 started using EGL by default for better native performance on Wayland. Unless we build glew with EGL support, apps like hugin now crash (see bug report linked to in my description). If we do build glew with EGL, it seems everything else (like visualinfo) crashes. I just discovered that visualinfo crashes also on my laptop with Intel graphics, so this may not have anything to do with NVIDIA specifically after all.

badshah400 avatar Aug 18 '21 01:08 badshah400

Interesting. Thanks for the additional information.

nigels-com avatar Aug 18 '21 02:08 nigels-com

Let me add, that the Blender 2.93.3 build fails with interesting errors (depending on the used compiler/ld), when using SYSTEM_GLEW. I've collected some related data here:

https://devtalk.blender.org/t/building-blender-2-93-3-with-system-glew-fails/20090

frispete avatar Aug 22 '21 11:08 frispete

I get the same runtime error on Ubuntu 20.04.4 LTS with glew-2.2.0.

jwinarske avatar Jul 08 '22 15:07 jwinarske