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

When using Vulkan LWJGL crashes when loading GLFWVulkan class with NPE #502

Closed
Texasjake95 opened this issue Sep 6, 2019 · 2 comments
Closed

Comments

@Texasjake95
Copy link

Texasjake95 commented Sep 6, 2019

  • LWJGL version: 3.2.3
  • LWJGL build #: 13
  • Platform: MacOS
  • Module: Vulkan

When trying to run the HelloVulkan sample it crashes with java.lang.NullPointerException: A required function is missing: _glfw_vulkan_library at the glfwVulkanSupported() call

@Spasi Spasi added the Type: Bug label Sep 6, 2019
@Spasi
Copy link
Member

Spasi commented Sep 7, 2019

Hey @Texasjake95, thank you for reporting this.

GLFW's configuration for MoltenVK has been broken since May. The cause was a bad rebase in the LWJGL-CI/glfw repository. It will be fixed in 3.2.4 build 2. I also relaxed it, so that using a GLFW build without _glfw_vulkan_library results in a simple warning instead of an error.

Until then, you may download the latest libglfw.dylib snapshot and use -Dorg.lwjgl.glfw.libname=<path> (or Configuration.GLFW_LIBRARY_NAME.set(<path>) to replace the 3.2.3 build.

@Spasi Spasi closed this as completed Sep 7, 2019
@Texasjake95
Copy link
Author

Thanks for the quick response! I can confirm that the libglfw snapshot you linked fixed the problem

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

No branches or pull requests

2 participants