DioxusLabs / blitz

High performance HTML and CSS renderer powered by WGPU
Apache License 2.0
2.12k stars 42 forks source link

Windows: wgpu invalid surface #111

Closed niklaskorz closed 3 months ago

niklaskorz commented 3 months ago

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 > at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.20.1\src\backend\wgpu_core.rs:314 3: wgpu::backend::wgpu_core::impl$7::surface_configure at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.20.1\src\backend\wgpu_core.rs:751 4: wgpu::context::impl$5::surface_configure at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.20.1\src\context.rs:2128 5: wgpu::Surface::configure at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.20.1\src\lib.rs:5096 6: vello::util::impl$0::create_surface::async_fn$0 > at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\vello-0.2.1\src\util.rs:79 7: blitz::renderer::impl$0::resume::async_fn$0 at .\packages\blitz\src\renderer.rs:80 8: tokio::runtime::park::impl$4::block_on::closure$0 > > at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.39.2\src\runtime\park.rs:281 9: tokio::runtime::coop::with_budget at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.39.2\src\runtime\coop.rs:107 10: tokio::runtime::coop::budget at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.39.2\src\runtime\coop.rs:73 11: tokio::runtime::park::CachedParkThread::block_on > > at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.39.2\src\runtime\park.rs:281 12: tokio::runtime::context::blocking::BlockingRegionGuard::block_on at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.39.2\src\runtime\context\blocking.rs:66 13: tokio::runtime::scheduler::multi_thread::impl$0::block_on::closure$0 > > at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.39.2\src\runtime\scheduler\multi_thread\mod.rs:87 14: tokio::runtime::context::runtime::enter_runtime > >,tuple$<> > at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.39.2\src\runtime\context\runtime.rs:65 15: tokio::runtime::scheduler::multi_thread::MultiThread::block_on at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.39.2\src\runtime\scheduler\multi_thread\mod.rs:86 16: tokio::runtime::runtime::Runtime::block_on_inner > > at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.39.2\src\runtime\runtime.rs:363 17: tokio::runtime::runtime::Runtime::block_on > > at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.39.2\src\runtime\runtime.rs:335 18: dioxus_blitz::window::View::resume at .\packages\dioxus-blitz\src\window.rs:116 19: dioxus_blitz::launch_with_window::closure$1::closure$0 at .\packages\dioxus-blitz\src\lib.rs:171 20: dioxus_blitz::launch_with_window::closure$1 at .\packages\dioxus-blitz\src\lib.rs:201 21: winit::platform_impl::windows::event_loop::impl$3::run_on_demand::closure$0,dioxus_blitz::launch_with_window::closure_env$1 > at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\winit-0.30.4\src\platform_impl\windows\event_loop.rs:253 22: alloc::boxed::impl$49::call_mut > >,dyn$ at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\winit-0.30.4\src\platform_impl\windows\event_loop\runner.rs:236 24: core::panic::unwind_safe::impl$25::call_once,winit::platform_impl::windows::event_loop::runner::impl$3::call_event_handler::closure_env$0 > at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\core\src\panic\unwind_safe.rs:272 25: std::panicking::try::do_call >,tuple$<> > at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\std\src\panicking.rs:559 26: std::panicking::try::do_catch >,tuple$<> > 27: std::panicking::try,core::panic::unwind_safe::AssertUnwindSafe > > at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\std\src\panicking.rs:523 28: std::panic::catch_unwind at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\std\src\panic.rs:149 29: winit::platform_impl::windows::event_loop::runner::EventLoopRunner::catch_unwind,winit::platform_impl::windows::event_ at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\winit-0.30.4\src\platform_impl\windows\event_loop\runner.rs:173 30: winit::platform_impl::windows::event_loop::runner::EventLoopRunner::call_new_events at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\winit-0.30.4\src\platform_impl\windows\event_loop\runner.rs:355 31: winit::platform_impl::windows::event_loop::runner::EventLoopRunner::move_state_to at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\winit-0.30.4\src\platform_impl\windows\event_loop\runner.rs:294 32: winit::platform_impl::windows::event_loop::EventLoop >::wait_and_dispatch_message > at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\winit-0.30.4\src\platform_impl\windows\event_loop.rs:398 33: winit::platform_impl::windows::event_loop::EventLoop >::run_on_demand,dioxus_blitz::launch_with_window::closure_env$1 at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\winit-0.30.4\src\platform_impl\windows\event_loop.rs:259 34: winit::platform_impl::windows::event_loop::EventLoop >::run,dioxus_blitz::launch_with_window::closure_env$1 > at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\winit-0.30.4\src\platform_impl\windows\event_loop.rs:222 35: winit::event_loop::EventLoop >::run,dioxus_blitz::launch_with_window::closure_env$1 > at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\winit-0.30.4\src\event_loop.rs:231 36: dioxus_blitz::launch_with_window at .\packages\dioxus-blitz\src\lib.rs:162 37: dioxus_blitz::launch_cfg_with_props,dioxus_core::properties::EmptyMarker,enum2$ > (*)()> at .\packages\dioxus-blitz\src\lib.rs:71 38: dioxus_blitz::launch_cfg at .\packages\dioxus-blitz\src\lib.rs:56 39: dioxus_blitz::launch at .\packages\dioxus-blitz\src\lib.rs:52 40: text::main at .\examples\text.rs:6 41: core::ops::function::FnOnce::call_once > at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\core\src\ops\function.rs:250 42: core::hint::black_box at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\core\src\hint.rs:338 ```
niklaskorz commented 3 months ago

Full logs before the error (I also tried with all Vulkan layers disabled, same issue):

Full logs ``` PS E:\rust\blitz> $env:RUST_BACKTRACE=1 PS E:\rust\blitz> cargo run --example text Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.38s Running `target\debug\examples\text.exe` 2024-08-05T09:29:49.494032Z INFO dioxus_blitz::documents::dioxus_document: Registered template: "examples\\text.rs:10:5:154" with root IDs [1] 2024-08-05T09:29:49.494135Z INFO dioxus_blitz::documents::dioxus_document: load_template name:examples\text.rs:10:5:154 index: 0 id:1 2024-08-05T09:29:49.494234Z INFO dioxus_blitz::documents::dioxus_document: hydrate_text_node id:2 path: [0, 0] text: #a { } 2024-08-05T09:29:49.494296Z INFO dioxus_blitz::documents::dioxus_document: append_children id:0 m:1 #Document
#text: Some text #text: Another b... #text: Should co...
2024-08-05T09:29:49.507690Z WARN dioxus_cli_config: A library is trying to access the crate's configuration, but the dioxus CLI was not used to build the application. 2024-08-05T09:29:49.583399Z WARN wgpu_hal::vulkan::instance: InstanceFlags::VALIDATION requested, but unable to find layer: VK_LAYER_KHRONOS_validation 2024-08-05T09:29:49.583555Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] windows_get_app_package_manifest_path: Failed to find mapping layers packages by family name 2024-08-05T09:29:49.583623Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.583664Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Checking for Layer Manifest files in Registry at HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers 2024-08-05T09:29:49.583700Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.583776Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] windows_add_json_entry: Located json file "C:\Windows\System32\DriverStore\FileRepository\nvmdi.inf_amd64_7b5ca18eebabd2c0\nv-vk64.json" from PnP registry: E 2024-08-05T09:29:49.583815Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.583871Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Located json file "C:\ProgramData\GOG.com\Galaxy\redists\overlay\injected\galaxy_overlay_vklayer_x64.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers" 2024-08-05T09:29:49.583914Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.583949Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Located json file "C:\ProgramData\obs-studio-hook\obs-vulkan64.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers" 2024-08-05T09:29:49.583985Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.584020Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Located json file "C:\Program Files (x86)\RivaTuner Statistics Server\Vulkan\RTSSVkLayer64.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers" 2024-08-05T09:29:49.584054Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.584089Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Located json file "C:\Games\Steam\SteamOverlayVulkanLayer64.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers" 2024-08-05T09:29:49.584124Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.584159Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Located json file "C:\Games\Steam\SteamFossilizeVulkanLayer64.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers" 2024-08-05T09:29:49.584194Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.584235Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Located json file "C:\Games\Epic Games\Launcher\Portal\Extras\Overlay\EOSOverlayVkLayer-Win32.json" from registry "HKEY_CURRENT_USER\SOFTWARE\Khronos\Vulkan\ImplicitLayers" 2024-08-05T09:29:49.584274Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.584441Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Located json file "C:\Games\Epic Games\Launcher\Portal\Extras\Overlay\EOSOverlayVkLayer-Win64.json" from registry "HKEY_CURRENT_USER\SOFTWARE\Khronos\Vulkan\ImplicitLayers" 2024-08-05T09:29:49.584541Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.584767Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Found manifest file C:\Windows\System32\DriverStore\FileRepository\nvmdi.inf_amd64_7b5ca18eebabd2c0\nv-vk64.json (file version 1.0.1) 2024-08-05T09:29:49.584847Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.585002Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Found manifest file C:\ProgramData\GOG.com\Galaxy\redists\overlay\injected\galaxy_overlay_vklayer_x64.json (file version 1.0.1) 2024-08-05T09:29:49.585060Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.585114Z WARN wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Layer name GalaxyOverlayVkLayer does not conform to naming standard (Policy #LLP_LAYER_3) 2024-08-05T09:29:49.585165Z WARN wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.585221Z WARN wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Layer name GalaxyOverlayVkLayer_VERBOSE does not conform to naming standard (Policy #LLP_LAYER_3) 2024-08-05T09:29:49.585280Z WARN wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.585343Z WARN wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Layer name GalaxyOverlayVkLayer_DEBUG does not conform to naming standard (Policy #LLP_LAYER_3) 2024-08-05T09:29:49.585402Z WARN wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.585534Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Found manifest file C:\ProgramData\obs-studio-hook\obs-vulkan64.json (file version 1.1.2) 2024-08-05T09:29:49.585588Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.585714Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Found manifest file C:\Program Files (x86)\RivaTuner Statistics Server\Vulkan\RTSSVkLayer64.json (file version 1.0.0) 2024-08-05T09:29:49.585780Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.585912Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Found manifest file C:\Games\Steam\SteamOverlayVulkanLayer64.json (file version 1.0.0) 2024-08-05T09:29:49.585968Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.586076Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Found manifest file C:\Games\Steam\SteamFossilizeVulkanLayer64.json (file version 1.0.0) 2024-08-05T09:29:49.586132Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.586259Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Found manifest file C:\Games\Epic Games\Launcher\Portal\Extras\Overlay\EOSOverlayVkLayer-Win32.json (file version 1.1.2) 2024-08-05T09:29:49.586312Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.586366Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Layer "VK_LAYER_EOS_Overlay" using deprecated 'vkGetInstanceProcAddr' tag which was deprecated starting with JSON file version 1.1.0. The new vkNegotiateLoaderLayerInterfaceVersion function is preferred, though for compatibility reasons it may be desirable to continue using the deprecated tag. 2024-08-05T09:29:49.586434Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.586493Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Layer "VK_LAYER_EOS_Overlay" using deprecated 'vkGetDeviceProcAddr' tag which was deprecated starting with JSON file version 1.1.0. The new vkNegotiateLoaderLayerInterfaceVersion function is preferred, though for compatibility reasons it may be desirable to continue using the deprecated tag. 2024-08-05T09:29:49.586547Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.586675Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Found manifest file C:\Games\Epic Games\Launcher\Portal\Extras\Overlay\EOSOverlayVkLayer-Win64.json (file version 1.1.2) 2024-08-05T09:29:49.586739Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.586798Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Layer "VK_LAYER_EOS_Overlay" using deprecated 'vkGetInstanceProcAddr' tag which was deprecated starting with JSON file version 1.1.0. The new vkNegotiateLoaderLayerInterfaceVersion function is preferred, though for compatibility reasons it may be desirable to continue using the deprecated tag. 2024-08-05T09:29:49.586866Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.586928Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Layer "VK_LAYER_EOS_Overlay" using deprecated 'vkGetDeviceProcAddr' tag which was deprecated starting with JSON file version 1.1.0. The new vkNegotiateLoaderLayerInterfaceVersion function is preferred, though for compatibility reasons it may be desirable to continue using the deprecated tag. 2024-08-05T09:29:49.586991Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.587048Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Checking for Layer Manifest files in Registry at HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ExplicitLayers 2024-08-05T09:29:49.587090Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.587192Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] windows_get_device_registry_files: opening device PCI\VEN_10DE&DEV_2684&SUBSYS_51001462&REV_A1\4&19e58a00&0&0009 2024-08-05T09:29:49.587234Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.587318Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] windows_get_device_registry_entry: Device ID(2) Does not contain a value for "VulkanExplicitLayers" 2024-08-05T09:29:49.587364Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.587421Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] windows_get_device_registry_files: Opening child device 3 - DISPLAY\ACR0216\5&1ABB7FC4&0&UID4353 2024-08-05T09:29:49.587456Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.587500Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] windows_get_device_registry_files: Opening child device 4 - DISPLAY\GSM5B09\5&1ABB7FC4&0&UID4355 2024-08-05T09:29:49.587538Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.587586Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] windows_get_device_registry_files: Opening child device 5 - DISPLAY\GSMC0C8\5&1ABB7FC4&0&UID4352 2024-08-05T09:29:49.587619Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.587674Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] windows_get_device_registry_files: opening device PCI\VEN_1002&DEV_164E&SUBSYS_7E121462&REV_C9\4&38e43222&0&0041 2024-08-05T09:29:49.587720Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.587824Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] windows_get_device_registry_entry: Device ID(6) Does not contain a value for "VulkanExplicitLayers" 2024-08-05T09:29:49.587879Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.587943Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] windows_get_device_registry_files: unable to open child-device error:13 2024-08-05T09:29:49.588001Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.588037Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] windows_get_device_registry_files: found no registry files 2024-08-05T09:29:49.588069Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.588119Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Located json file "C:\Program Files\Rockstar Games\Social Club\SocialClubVulkanLayer.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ExplicitLayers" 2024-08-05T09:29:49.588155Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.588265Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Found manifest file C:\Program Files\Rockstar Games\Social Club\SocialClubVulkanLayer.json (file version 1.0.0) 2024-08-05T09:29:49.588317Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.588393Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] windows_get_app_package_manifest_path: Failed to find mapping layers packages by family name 2024-08-05T09:29:49.588427Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.588459Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Checking for Driver Manifest files in Registry at HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\Drivers 2024-08-05T09:29:49.588491Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.588556Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] windows_add_json_entry: Located json file "C:\Windows\System32\DriverStore\FileRepository\nvmdi.inf_amd64_7b5ca18eebabd2c0\nv-vk64.json" from PnP registry: E 2024-08-05T09:29:49.588592Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.588711Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Found no registry files in HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\Drivers 2024-08-05T09:29:49.588749Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.588884Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Found ICD manifest file C:\Windows\System32\DriverStore\FileRepository\nvmdi.inf_amd64_7b5ca18eebabd2c0\nv-vk64.json, version 1.0.1 2024-08-05T09:29:49.588941Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.589869Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Insert instance layer "VK_LAYER_RTSS" (C:\Program Files (x86)\RivaTuner Statistics Server\Vulkan\.\RTSSVkLayer64.dll) 2024-08-05T09:29:49.589930Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.590442Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Insert instance layer "VK_LAYER_OBS_HOOK" (C:\ProgramData\obs-studio-hook\.\graphics-hook64.dll) 2024-08-05T09:29:49.590511Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.590565Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Insert instance layer "VK_LAYER_NV_optimus" (C:\Windows\System32\DriverStore\FileRepository\nvmdi.inf_amd64_7b5ca18eebabd2c0\.\nvoglv64.dll) 2024-08-05T09:29:49.590608Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.590722Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] vkCreateInstance layer callstack setup to: 2024-08-05T09:29:49.590760Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.590794Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] 2024-08-05T09:29:49.590832Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.590864Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] || 2024-08-05T09:29:49.590897Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.590930Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] 2024-08-05T09:29:49.590964Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.590997Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] || 2024-08-05T09:29:49.591030Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.591064Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] VK_LAYER_NV_optimus 2024-08-05T09:29:49.591096Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.591130Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Type: Implicit 2024-08-05T09:29:49.591163Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.591196Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Disable Env Var: DISABLE_LAYER_NV_OPTIMUS_1 2024-08-05T09:29:49.591229Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.591263Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Manifest: C:\Windows\System32\DriverStore\FileRepository\nvmdi.inf_amd64_7b5ca18eebabd2c0\nv-vk64.json 2024-08-05T09:29:49.591300Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.591333Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Library: C:\Windows\System32\DriverStore\FileRepository\nvmdi.inf_amd64_7b5ca18eebabd2c0\.\nvoglv64.dll 2024-08-05T09:29:49.591370Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.591404Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] || 2024-08-05T09:29:49.591437Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.591471Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] VK_LAYER_OBS_HOOK 2024-08-05T09:29:49.591503Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.591537Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Type: Implicit 2024-08-05T09:29:49.591570Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.591603Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Disable Env Var: DISABLE_VULKAN_OBS_CAPTURE 2024-08-05T09:29:49.591636Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.591670Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Manifest: C:\ProgramData\obs-studio-hook\obs-vulkan64.json 2024-08-05T09:29:49.591703Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.591737Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Library: C:\ProgramData\obs-studio-hook\.\graphics-hook64.dll 2024-08-05T09:29:49.591772Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.591818Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] || 2024-08-05T09:29:49.591860Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.591903Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] VK_LAYER_RTSS 2024-08-05T09:29:49.591937Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.591980Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Type: Implicit 2024-08-05T09:29:49.592015Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.592050Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Disable Env Var: DISABLE_RTSS_LAYER 2024-08-05T09:29:49.592083Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.592117Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Manifest: C:\Program Files (x86)\RivaTuner Statistics Server\Vulkan\RTSSVkLayer64.json 2024-08-05T09:29:49.592150Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.592184Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Library: C:\Program Files (x86)\RivaTuner Statistics Server\Vulkan\.\RTSSVkLayer64.dll 2024-08-05T09:29:49.592217Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.592250Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] || 2024-08-05T09:29:49.592284Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.592322Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] 2024-08-05T09:29:49.592355Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.607173Z INFO wgpu_hal::vulkan::instance: Enabling debug utils 2024-08-05T09:29:49.609104Z WARN wgpu_hal::dx12::instance: Unable to enable D3D12 debug interface: 0x887A002D 2024-08-05T09:29:49.609225Z WARN wgpu_hal::auxil::dxgi::factory: Unable to enable DXGI debug interface: 0x887A002D 2024-08-05T09:29:49.780973Z INFO wgpu_core::instance: Adapter Vulkan AdapterInfo { name: "NVIDIA GeForce RTX 4090", vendor: 4318, device: 9860, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "560.70", backend: Vulkan } 2024-08-05T09:29:49.798933Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Inserted device layer "VK_LAYER_RTSS" (C:\Program Files (x86)\RivaTuner Statistics Server\Vulkan\.\RTSSVkLayer64.dll) 2024-08-05T09:29:49.799018Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.799062Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Inserted device layer "VK_LAYER_OBS_HOOK" (C:\ProgramData\obs-studio-hook\.\graphics-hook64.dll) 2024-08-05T09:29:49.799097Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.799134Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Inserted device layer "VK_LAYER_NV_optimus" (C:\Windows\System32\DriverStore\FileRepository\nvmdi.inf_amd64_7b5ca18eebabd2c0\.\nvoglv64.dll) 2024-08-05T09:29:49.799171Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.799205Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] vkCreateDevice layer callstack setup to: 2024-08-05T09:29:49.799238Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.799271Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] 2024-08-05T09:29:49.799303Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.799336Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] || 2024-08-05T09:29:49.799368Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.799400Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] 2024-08-05T09:29:49.799432Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.799464Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] || 2024-08-05T09:29:49.799495Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.799529Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] VK_LAYER_NV_optimus 2024-08-05T09:29:49.799562Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.799594Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Type: Implicit 2024-08-05T09:29:49.799626Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.799659Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Disable Env Var: DISABLE_LAYER_NV_OPTIMUS_1 2024-08-05T09:29:49.799691Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.799724Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Manifest: C:\Windows\System32\DriverStore\FileRepository\nvmdi.inf_amd64_7b5ca18eebabd2c0\nv-vk64.json 2024-08-05T09:29:49.799760Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.799793Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Library: C:\Windows\System32\DriverStore\FileRepository\nvmdi.inf_amd64_7b5ca18eebabd2c0\.\nvoglv64.dll 2024-08-05T09:29:49.799829Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.799863Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] || 2024-08-05T09:29:49.799895Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.799928Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] VK_LAYER_OBS_HOOK 2024-08-05T09:29:49.799960Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.799992Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Type: Implicit 2024-08-05T09:29:49.800024Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.800056Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Disable Env Var: DISABLE_VULKAN_OBS_CAPTURE 2024-08-05T09:29:49.800088Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.800120Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Manifest: C:\ProgramData\obs-studio-hook\obs-vulkan64.json 2024-08-05T09:29:49.800152Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.800184Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Library: C:\ProgramData\obs-studio-hook\.\graphics-hook64.dll 2024-08-05T09:29:49.800216Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.800253Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] || 2024-08-05T09:29:49.800284Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.800316Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] VK_LAYER_RTSS 2024-08-05T09:29:49.800348Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.800380Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Type: Implicit 2024-08-05T09:29:49.800412Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.800444Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Disable Env Var: DISABLE_RTSS_LAYER 2024-08-05T09:29:49.800476Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.800508Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Manifest: C:\Program Files (x86)\RivaTuner Statistics Server\Vulkan\RTSSVkLayer64.json 2024-08-05T09:29:49.800540Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.800573Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Library: C:\Program Files (x86)\RivaTuner Statistics Server\Vulkan\.\RTSSVkLayer64.dll 2024-08-05T09:29:49.800604Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.800636Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] || 2024-08-05T09:29:49.800668Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.800700Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] 2024-08-05T09:29:49.800732Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 2024-08-05T09:29:49.800865Z INFO wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)] Using "NVIDIA GeForce RTX 4090" with driver: "C:\Windows\System32\DriverStore\FileRepository\nvmdi.inf_amd64_7b5ca18eebabd2c0\.\nvoglv64.dll" 2024-08-05T09:29:49.800906Z INFO wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x269a2152020, name: ?) 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 > at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.20.1\src\backend\wgpu_core.rs:314 3: wgpu::backend::wgpu_core::impl$7::surface_configure at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.20.1\src\backend\wgpu_core.rs:751 4: wgpu::context::impl$5::surface_configure at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.20.1\src\context.rs:2128 5: wgpu::Surface::configure at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.20.1\src\lib.rs:5096 6: vello::util::impl$0::create_surface::async_fn$0 > at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\vello-0.2.1\src\util.rs:79 7: blitz::renderer::impl$0::resume::async_fn$0 at .\packages\blitz\src\renderer.rs:80 8: tokio::runtime::park::impl$4::block_on::closure$0 > > at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.39.2\src\runtime\park.rs:281 9: tokio::runtime::coop::with_budget at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.39.2\src\runtime\coop.rs:107 10: tokio::runtime::coop::budget at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.39.2\src\runtime\coop.rs:73 11: tokio::runtime::park::CachedParkThread::block_on > > at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.39.2\src\runtime\park.rs:281 12: tokio::runtime::context::blocking::BlockingRegionGuard::block_on at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.39.2\src\runtime\context\blocking.rs:66 13: tokio::runtime::scheduler::multi_thread::impl$0::block_on::closure$0 > > at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.39.2\src\runtime\scheduler\multi_thread\mod.rs:87 14: tokio::runtime::context::runtime::enter_runtime > >,tuple$<> > at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.39.2\src\runtime\context\runtime.rs:65 15: tokio::runtime::scheduler::multi_thread::MultiThread::block_on at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.39.2\src\runtime\scheduler\multi_thread\mod.rs:86 16: tokio::runtime::runtime::Runtime::block_on_inner > > at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.39.2\src\runtime\runtime.rs:363 17: tokio::runtime::runtime::Runtime::block_on > > at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.39.2\src\runtime\runtime.rs:335 18: dioxus_blitz::window::View::resume at .\packages\dioxus-blitz\src\window.rs:116 19: dioxus_blitz::launch_with_window::closure$1::closure$0 at .\packages\dioxus-blitz\src\lib.rs:171 20: dioxus_blitz::launch_with_window::closure$1 at .\packages\dioxus-blitz\src\lib.rs:201 21: winit::platform_impl::windows::event_loop::impl$3::run_on_demand::closure$0,dioxus_blitz::launch_with_window::closure_env$1 > at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\winit-0.30.4\src\platform_impl\windows\event_loop.rs:253 22: alloc::boxed::impl$49::call_mut > >,dyn$ at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\winit-0.30.4\src\platform_impl\windows\event_loop\runner.rs:236 24: core::panic::unwind_safe::impl$25::call_once,winit::platform_impl::windows::event_loop::runner::impl$3::call_event_handler::closure_env$0 > at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\core\src\panic\unwind_safe.rs:272 25: std::panicking::try::do_call >,tuple$<> > at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\std\src\panicking.rs:559 26: std::panicking::try::do_catch >,tuple$<> > 27: std::panicking::try,core::panic::unwind_safe::AssertUnwindSafe > > at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\std\src\panicking.rs:523 28: std::panic::catch_unwind at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\std\src\panic.rs:149 29: winit::platform_impl::windows::event_loop::runner::EventLoopRunner::catch_unwind,winit::platform_impl::windows::event_ at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\winit-0.30.4\src\platform_impl\windows\event_loop\runner.rs:173 30: winit::platform_impl::windows::event_loop::runner::EventLoopRunner::call_new_events at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\winit-0.30.4\src\platform_impl\windows\event_loop\runner.rs:355 31: winit::platform_impl::windows::event_loop::runner::EventLoopRunner::move_state_to at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\winit-0.30.4\src\platform_impl\windows\event_loop\runner.rs:294 32: winit::platform_impl::windows::event_loop::EventLoop >::wait_and_dispatch_message > at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\winit-0.30.4\src\platform_impl\windows\event_loop.rs:398 33: winit::platform_impl::windows::event_loop::EventLoop >::run_on_demand,dioxus_blitz::launch_with_window::closure_env$1 at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\winit-0.30.4\src\platform_impl\windows\event_loop.rs:259 34: winit::platform_impl::windows::event_loop::EventLoop >::run,dioxus_blitz::launch_with_window::closure_env$1 > at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\winit-0.30.4\src\platform_impl\windows\event_loop.rs:222 35: winit::event_loop::EventLoop >::run,dioxus_blitz::launch_with_window::closure_env$1 > at E:\cache\cargo\registry\src\index.crates.io-6f17d22bba15001f\winit-0.30.4\src\event_loop.rs:231 36: dioxus_blitz::launch_with_window at .\packages\dioxus-blitz\src\lib.rs:162 37: dioxus_blitz::launch_cfg_with_props,dioxus_core::properties::EmptyMarker,enum2$ > (*)()> at .\packages\dioxus-blitz\src\lib.rs:71 38: dioxus_blitz::launch_cfg at .\packages\dioxus-blitz\src\lib.rs:56 39: dioxus_blitz::launch at .\packages\dioxus-blitz\src\lib.rs:52 40: text::main at .\examples\text.rs:6 41: core::ops::function::FnOnce::call_once > at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\core\src\ops\function.rs:250 42: core::hint::black_box at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9\library\core\src\hint.rs:338 note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. error: process didn't exit successfully: `target\debug\examples\text.exe` (exit code: 101) ```
nicoburns commented 3 months ago

Hmm... this looks like https://github.com/gfx-rs/wgpu/issues/1492

nicoburns commented 3 months ago

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...

nicoburns commented 3 months ago

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.

niklaskorz commented 3 months ago

Forcing WGPU_BACKEND=DX12 results in the same crash, but the issue indeed does not occur on #110 :)

nicoburns commented 3 months ago

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!