gpu-dawn: undefined behavior caught by UBSAN affecting Windows (dawn binary: release-777728f) #456
Labels
No labels
CI
all
basisu
blog
bug
build
contributor-friendly
core
correctness
deferred
dev
direct3d-headers
docs
driver-os-issue
duplicate
dxcompiler
editor
examples
experiment
feature-idea
feedback
flac
freetype
gamemode
gkurve
glfw
gpu
gpu-dawn
harfbuzz
help welcome
in-progress
infrastructure
invalid
libmach
linux-audio-headers
long-term
mach
mach.gfx
mach.math
mach.physics
mach.testing
model3d
needs-triage
object
opengl-headers
opus
os/linux
os/macos
os/wasm
os/windows
package-manager
priority
proposal
proposal-accepted
question
roadmap
slipped
stability
sysaudio
sysgpu
sysjs
validating-fix
vulkan-zig-generated
wayland-headers
website
wontfix
wrench
www
x11-headers
xcode-frameworks
zig-update
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
hexops/mach#456
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This happens only in debug builds when creating (some) graphics pipelines.
Windows 11, D3D12 backend.
👍
I'll need to find an example that reproduces this, haven't tested the latest version on Windows yet so maybe one already does - not sure.
FYI this could also not be a bug in Dawn but rather just be signaling passing an object with the wrong memory layout to the API (maybe something wrong in your zgpu bindings?), that's happened to a few folks in the past.
Will double check but keep in mind that release build works fine.
I think that my bindings are fine. Also, note that debug builds on Linux and macOS work fine.
It looks like the crash happens when
blendfield in below struct isnull. According to the latest header this field is 'nullable' so it should work.Anyway, this issue does not affect zig-gamedev project because we always use release binary of Dawn. I just wanted to let you know.