Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
badshah400 opened this issue Aug 17, 2021 · 5 comments
Open

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

badshah400 opened this issue Aug 17, 2021 · 5 comments
Assignees
Labels
Milestone

Comments

@badshah400
Copy link

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.

@nigels-com
Copy link
Owner

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

@badshah400
Copy link
Author

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.

@nigels-com
Copy link
Owner

Interesting. Thanks for the additional information.

@frispete
Copy link

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

@nigels-com nigels-com self-assigned this Aug 28, 2021
@nigels-com nigels-com added the bug label Aug 28, 2021
@nigels-com nigels-com added this to the GLEW 2.2.1 milestone Aug 28, 2021
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this issue Aug 30, 2021
https://build.opensuse.org/request/show/914957
by user pgajdos + dimstar_suse
* Add hugin-EGL-link-against-X11.patch: Link against X11 even when building with EGL support (https://bugs.launchpad.net/hugin/+bug/1938453).
* Set up conditionals for building with EGL, but disable EGL support until glew bug is fixed (gh#nigels-com/glew#315).
* Switch bcond_with to build with system flann: library is now available on all supported openSUSE versions.
* Minor cleanup with spec-cleaner. (forwarded request 914704 from badshah400)
@jwinarske
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants