Closed joshuarubin closed 2 years ago
Hello,
I don't know much about wayland but it seems like it can't load OpenGL. Make sure you've got a driver or software renderer that supports at least OpenGL 3.2
The assertion fail is unrelated, it's basically complaining that it had to terminate a thread without the block being initialized yet because of the OpenGL error.
Yeah, it looks like a glew thing, but glewinfo works, so I'm looking into that.
Looks like I'm running into https://github.com/nigels-com/glew/issues/306
I was able to get everything working by updating the code in core.cpp
so that glewInit()
now looks like:
GLenum glewErr = glewInit();
if (glewErr != GLEW_OK && glewErr != GLEW_ERROR_NO_GLX_DISPLAY) {
although this can be a quick and dirty "fix" it's very bad. If glew returns any error it shouldn't just be ignore as that will for sure cause unpredictable behavior.
Understood, it's a known issue with glew though, doesn't seem that bad to put in temporarily as it's only allowing one very specific error to go through and the initialization is otherwise successful.
Also listed here https://github.com/nigels-com/glew/issues/172 which references https://github.com/supertuxkart/stk-code/commit/961ac4d79eda230722d270bbf46f1545b324d0c8.
I think an issue should be opened on the glew repo to add a fix for this directly into glew.
Would avoid having to specifically check for wayland in software (because GLEW_ERROR_NO_GLX_DISPLAY
is a very bad error with X11).
I'll keep this issue open until a fix comes out from glew
Try rebuilding GLEW and the application with GLEW_EGL defined.
I have just run into this (on sway same as OP). It looks like some changes have been made in GLEW, but I don't understand them! What's the current status of this issue? Thanks!
All of this is likely fixed in the latest nightly, reopen if not.
Just built and tried to run for the first time and immediately got a core dump (the window outline showed very briefly). I'm running wayland/sway (with a 150% scaled 4k monitor) on an amd gpu with kernel 5.12.15. This is using commit ead7ee1.
Happy to help debug this in any way possible.
Here are the logs I'm getting:
And here's the backtrace, but it's not particularly helpful.