"parent device is lost" panic when maximizing & sometimes launching #3043
Labels
api: vulkan
Issues with Vulkan
area: wsi
Issues with swapchain management or windowing
type: bug
Something isn't working
thread 'main' panicked at 'Error in Queue::submit: parent device is lost', C:\...\github.com-1ecc6299db9ec823\wgpu-0.13.1\src\backend\direct.rs:281:9
When dragging the window, it does have a brief stutter. When I maximize during the stutter, the program locks up for a few seconds before crashing with that error. It is easier to do than you would think; it crashes if the stutter happens during the maximize animation.
It also occurs occasionally when launching. Less so with the single buffer write in the example below, but much more common with the writes in my larger project.
If this is not a bug, I am wondering if there is some way to handle this error without causing the parent device panic, because it is not clear.
It is on a very simple wgpu setup and I'm just writing to a small buffer. If I remove the buffer write, the stutter does not happen. I'll paste any code I believe is relevant below.
It happens on the Vulkan backend, but not DX12.
wgpu 0.13.1
Windows 11 running on a Surface Laptop 2
The text was updated successfully, but these errors were encountered: