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

"vtkGenericOpenGLRenderWindow: GLEW could not be initialized: Unknown Error" on Wayland #11

Open
biergaizi opened this issue May 30, 2024 · 1 comment

Comments

@biergaizi
Copy link
Contributor

biergaizi commented May 30, 2024

If running under Wayland, vtkGenericOpenGLRenderWindow cannot be initialized and fails with an error message "GLEW could not be initialized: Unknown Error". This is caused by an known Wayland incompatibility issue in the upstream GLEW project, and is already known to affect 20+ GLEW-based downstream projects, including VTK, see [1] for details.

The root cause is that GLEW's glewInit() attempts to use GLX, which is nonexistent on Wayland. I've reported the problem to the upstream as [2]. Fortunately, it's easy to work around the problem - just ignore the error code GLEW_ERROR_NO_GLX_DISPLAY, and GLEW will otherwise work without problems. This requires a fix in the upstream VTK code, and I plan to submit a patch soon.

For now, AppCSXCAD under Wayland can use:

env WAYLAND_DISPLAY= /path/to/application/you/want/to/run

to force-run AppCSXCAD under XWayland instead.

For documentation propose, keep this bug open until it's fixed upstream.

[1] nigels-com/glew#172
[2] https://gitlab.kitware.com/vtk/vtk/-/issues/19357

@biergaizi
Copy link
Contributor Author

Patch submitted to VTK upstream:

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

No branches or pull requests

1 participant