Lwjgl3: When using Vulkan LWJGL crashes when loading GLFWVulkan class with NPE

Created on 6 Sep 2019  路  2Comments  路  Source: LWJGL/lwjgl3

  • 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

Bug

Most helpful comment

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

All 2 comments

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.

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

Was this page helpful?
0 / 5 - 0 ratings