{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreiec7w4a7235n3kj32yyan4gk43c4sbanwbnufqy27lazhapsu3w2m",
"uri": "at://did:plc:dxjzgxe7cvirxkwfjr2tjspt/app.bsky.feed.post/3mhv2gygujo42"
},
"path": "/t/an-attempt-at-vulkan/49433?page=2#post_40",
"publishedAt": "2026-03-25T06:00:30.000Z",
"site": "https://hub.jmonkeyengine.org",
"tags": [
"github.com/LWJGL/lwjgl3-demos",
"src/org/lwjgl/demo/vulkan/ColoredRotatingQuadDemo.java",
"2cd4a62b0",
"@link",
"@author"
],
"textContent": "I need some help.\n\n\n 3月 25, 2026 1:22:40 下午 com.jme3.renderer.vulkan.runtime.VulkanRuntimeLifecycle initWindow\n 信息: [Vulkan] window framebuffer size = 1920 x 1080\n 3月 25, 2026 1:22:40 下午 com.jme3.renderer.vulkan.runtime.VulkanRuntimeLifecycle initWindow\n 信息: [Vulkan] settings size (logical) = 1920 x 1080\n [Vulkan] Validation layer enabled: VK_LAYER_KHRONOS_validation\n #\n # A fatal error has been detected by the Java Runtime Environment:\n #\n # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffd5e2a3020, pid=26408, tid=21308\n #\n # JRE version: OpenJDK Runtime Environment Zulu17.42+19-CA (17.0.7+7) (build 17.0.7+7-LTS)\n # Java VM: OpenJDK 64-Bit Server VM Zulu17.42+19-CA (17.0.7+7-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)\n # Problematic frame:\n # C [msvcp140.dll+0x13020]\n #\n # No core dump will be written. Minidumps are not enabled by default on client versions of Windows\n #\n # An error report file with more information is saved as:\n # F:\\JME\\jmonkeyengine\\jme3-lwjgl3\\hs_err_pid26408.log\n #\n # If you would like to submit a bug report, please visit:\n # http://www.azul.com/support/\n # The crash happened outside the Java Virtual Machine in native code.\n # See problematic frame for where to report the bug.\n #\n\n\nWhen I open the validation layer of lwjgl-vulkan, this problem occurs.\n\ngithub.com/LWJGL/lwjgl3-demos\n\n#### src/org/lwjgl/demo/vulkan/ColoredRotatingQuadDemo.java\n\n2cd4a62b0\n\n\n\n\n\n\n 26. import org.lwjgl.vulkan.*;\n\n\n 27.\n\n 28. /**\n\n\n 29. * Renders a simple rotating colored quad on a cornflower blue background on a GLFW window with Vulkan.\n\n\n 30. * <p>\n\n\n 31. * This is like the {@link ColoredTriangleDemo}, but adds an additional rotation.\n\n\n 32. * Do a diff between those two classes to see what's new.\n\n\n 33. *\n\n\n 34. * @author Kai Burjack\n\n\n 35. */\n\n\n 36. public class ColoredRotatingQuadDemo {\n\n\n 37. private static boolean debug = System.getProperty(\"NDEBUG\") == null;\n\n\n 38.\n\n 39. private static String[] layers = {\n\n\n 40. \t\t\t\"VK_LAYER_LUNARG_standard_validation\",\n\n\n 41. \t\t\t\"VK_LAYER_KHRONOS_validation\",\n\n\n 42. };\n\n\n 43.\n\n 44. /**\n\n\n 45. * This is just -1L, but it is nicer as a symbolic constant.\n\n\n 46. */\n\n\n\n\n\nIf anyone is willing to help, please try running this demo and enable the validation layer to see if it also triggers a null pointer crash.\n\nI tried to run the compiled shader, but it seems the shader returned an error code -4 and exited. I’m not sure what -4 means. I need to enable the Vulkan validation layer to locate the issue, but when I turn on the validation layer, the program triggers this null pointer error.",
"title": "An attempt at Vulkan"
}