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
{{ message }}
Repository navigation
v3: untyped nil passed to a pointer-to-handle parameter becomes a non-null pointer #29306
Passing unsafe { nil } to &Handle, where Handle aliases voidptr, generates a non-null pointer to a null handle rather than a null output pointer. The callee observes the wrong pointer value.
This affected a count-only vkEnumeratePhysicalDevices query: the non-null output pointer changes it into a zero-capacity output-buffer query, leaving the player with no discovered devices. The public antono2/v_vulkan_video caller workaround restores Lavapipe discovery. This minimal reproducer needs no Vulkan or other dependencies.
V version and Environment
V 0.5.2, upstream commit 0dc6a692ed5333cbe3f05ff63ae0766f0333038a (current master when retested), clean source-built checkout. Ubuntu 24.04 x86-64. Reproduces with strict -new-compiler using both bundled TinyCC and GCC 13.3.0. Released V 0.5.2 (7647ce1) with TinyCC passes.
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
Activity