You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sample works fine except the JVM core dumps after the app exits.
This error is found in the JVM exception trace:
java/lang/NoSuchMethodError
Inspected all the free* destroy* terminate* calls, they return fine. The crash happens after control is returned from the app to the JVM.
The HelloWorld was created with the customize function to only include a minimal set of libs:
The problem is that, by default, LWJGL tries to use GLX for OpenGL, which is not available on Wayland. This can be fixed by adding this code:
if (glfwGetPlatform() == GLFW_PLATFORM_WAYLAND) {
Configuration.OPENGL_EXPLICIT_INIT.set(true);
GL.create(EGL.getFunctionProvider());
}
before the GL.createCapabilities() call. This is a bit too obscure/advanced to add to a Getting Started sample...
@Bixilon I believe downgrading to 3.3.3 works because then you're running on the X11 backend, whereas GLFW chooses Wayland by default on 3.3.4 (if the user's session is also on Wayland).
Btw, on Nvidia hardware, I also have to export __GL_THREADED_OPTIMIZATIONS=0 to get stable results on Wayland.
The latest build (3.3.5-snapshot+4) includes Configuration.OPENGL_CONTEXT_API and automatic Wayland detection, which should resolve this issue without extra code.
(__GL_THREADED_OPTIMIZATIONS=0 will still be required on NV hardware until their driver is fixed)
Version
3.3.4
Platform
Linux x64
JDK
OpenJDK Temurin-17.0.5+8 (17.0.5+8)
Module
LWJGL core
Bug description
HelloWorld sample from https://www.lwjgl.org/guide
Sample works fine except the JVM core dumps after the app exits.
This error is found in the JVM exception trace:
java/lang/NoSuchMethodError
Inspected all the free* destroy* terminate* calls, they return fine. The crash happens after control is returned from the app to the JVM.
The HelloWorld was created with the customize function to only include a minimal set of libs:
Stacktrace or crash log output
LWJGL DEBUG log followed by JVM SIGSEGV log
The text was updated successfully, but these errors were encountered: