Closed niklaskorz closed 3 months ago
Full logs before the error (I also tried with all Vulkan layers disabled, same issue):
Hmm... this looks like https://github.com/gfx-rs/wgpu/issues/1492
As a test you perhaps try setting the WGPU_BACKEND
environment variable to different values. Looks like Vello is already using the PRIMARY
const recommended in that issue though...
You could also try https://github.com/DioxusLabs/blitz/pull/110. Because it looks to me like we're calling .resume()
twice on non-mobile platforms on the main
branch, which should be resolved in that PR.
Forcing WGPU_BACKEND=DX12
results in the same crash, but the issue indeed does not occur on #110 :)
Right. In that case I might just merge #110. I was holding off in case I'd broken something, but it seems like I've actually fixed something!
On Windows 11, every example crashes with the following wgpu error. Before the crash, the window briefly opens and renders correctly. According to the logs, the wgpu Vulkan backend is used.
Stacktrace
``` Initialising in parallel using 22 threads 2024-08-05T09:29:50.049444Z ERROR wgpu_core::device::global: surface configuration failed: Native window is in use thread 'main' panicked at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.20.1\src\backend\wgpu_core.rs:751:18: Error in Surface::configure: Validation Error Caused by: Invalid surface stack backtrace: 0: std::panicking::begin_panic_handler at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library\std\src\panicking.rs:652 1: core::panicking::panic_fmt at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library\core\src\panicking.rs:72 2: wgpu::backend::wgpu_core::ContextWgpuCore::handle_error_fatal