-
Notifications
You must be signed in to change notification settings - Fork 920
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
Resize error on DX12 backend in wgpu 0.17 #3967
Comments
I'm learning wgpu and I have this same error on Windows 10 with GT740.
Can confirm that 0.16 works as expected. |
Traced it back to #3936. Looking at the Remarks section of
and us cloning the Line 796 in 28334ac
it's plausible we still hold onto the resources when calling |
Why this error only occurs when running the official examples in wgpu 0.17, but not in older versions such as 0.16?
Why older versions didn't have such issue? what change from older versions to 0.17 leads to this problem? |
The PR I linked to above #3936. |
Using |
It's a bug on our side, we need to do the appropriate waits internally. |
Ran into this updating bevy to wgpu 0.17. It also crashes when you minimize the window. |
Calling wgpu::Instance::poll_all before reconfiguring surface and recreating framebuffers worked for me. |
~~Currently blocked on an upstream bug that causes crashes when minimizing/resizing on dx12 gfx-rs/wgpu#3967 wgpu 0.17.1 is out which fixes it # Objective Keep wgpu up to date. ## Solution Update wgpu and naga_oil. Currently this depends on an unreleased (and unmerged) branch of naga_oil, and hasn't been properly tested yet. The wgpu side of this seems to have been an extremely trivial upgrade (all the upgrade work seems to be in naga_oil). This also lets us remove the workarounds for pack/unpack4x8unorm in the SSAO shaders. Lets us close the dx12 part of #8888 related: #9304 --- ## Changelog Update to wgpu 0.17 and naga_oil 0.9
~~Currently blocked on an upstream bug that causes crashes when minimizing/resizing on dx12 gfx-rs/wgpu#3967 wgpu 0.17.1 is out which fixes it # Objective Keep wgpu up to date. ## Solution Update wgpu and naga_oil. Currently this depends on an unreleased (and unmerged) branch of naga_oil, and hasn't been properly tested yet. The wgpu side of this seems to have been an extremely trivial upgrade (all the upgrade work seems to be in naga_oil). This also lets us remove the workarounds for pack/unpack4x8unorm in the SSAO shaders. Lets us close the dx12 part of bevyengine#8888 related: bevyengine#9304 --- ## Changelog Update to wgpu 0.17 and naga_oil 0.9
~~Currently blocked on an upstream bug that causes crashes when minimizing/resizing on dx12 gfx-rs/wgpu#3967 wgpu 0.17.1 is out which fixes it Keep wgpu up to date. Update wgpu and naga_oil. Currently this depends on an unreleased (and unmerged) branch of naga_oil, and hasn't been properly tested yet. The wgpu side of this seems to have been an extremely trivial upgrade (all the upgrade work seems to be in naga_oil). This also lets us remove the workarounds for pack/unpack4x8unorm in the SSAO shaders. Lets us close the dx12 part of bevyengine#8888 related: bevyengine#9304 --- Update to wgpu 0.17 and naga_oil 0.9
~~Currently blocked on an upstream bug that causes crashes when minimizing/resizing on dx12 gfx-rs/wgpu#3967 wgpu 0.17.1 is out which fixes it # Objective Keep wgpu up to date. ## Solution Update wgpu and naga_oil. Currently this depends on an unreleased (and unmerged) branch of naga_oil, and hasn't been properly tested yet. The wgpu side of this seems to have been an extremely trivial upgrade (all the upgrade work seems to be in naga_oil). This also lets us remove the workarounds for pack/unpack4x8unorm in the SSAO shaders. Lets us close the dx12 part of bevyengine#8888 related: bevyengine#9304 --- ## Changelog Update to wgpu 0.17 and naga_oil 0.9
Regression fixed by #4781 |
Description
when attempting to run wgpu examples using the DX12 backend in version 0.17 of wgpu, I encountered the following error:
[2023-07-23T20:02:29Z ERROR wgpu_hal::dx12] ResizeBuffers failed: 0x887A0001
[2023-07-23T20:02:29Z ERROR wgpu_core::device::global] surface configuration failed: window is in use
thread 'main' panicked at 'Error in Surface::configure: Validation Error
Caused by:
Invalid surface
', C:\Users****.cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.17.0\src\backend\direct.rs:771:18
Repro steps
For example, in the "hello-triangle" example, simply replacing
let instance = wgpu::Instance::default();
by
this will generate the error when resizing the output window.
Expected vs observed behavior
This error only occurs in wgpu 0.17, while wgpu <= 0.16 never gives this error.
Platform
Windows 11, RTX 3060, wgpu 0.17.
The text was updated successfully, but these errors were encountered: