The cmd_bind_descriptor_sets
call in the raytracing samples crashes only when the VK_LAYER_KHRONOS_validation
layer is enabled (automatically in debug mode currently). Using nvidia driver (v516.59), but confirmed with earlier versions too.
Exception: Exception 0xc000041d encountered at address 0x7ff8ea4c1bde
[nvoglv64.dll] <unknown> 0x00007ff8ea4c1bde
[nvoglv64.dll] <unknown> 0x00007ff8ea4c22a4
[VkLayer_khronos_validation.dll] DispatchCmdBindDescriptorSets(VkCommandBuffer_T *,VkPipelineBindPoint,VkPipelineLayout_T *,unsigned int,unsigned int,VkDescriptorSet_T *const *,unsigned int,const unsigned int *) 0x00007ff8e3c220ff
[VkLayer_khronos_validation.dll] vulkan_layer_chassis::CmdBindDescriptorSets(VkCommandBuffer_T *,VkPipelineBindPoint,VkPipelineLayout_T *,unsigned int,unsigned int,VkDescriptorSet_T *const *,unsigned int,const unsigned int *) 0x00007ff8e3b8c20b
[3-ray-debug.exe] ash::vk::features::DeviceFnV1_0::cmd_bind_descriptor_sets(CommandBuffer,PipelineBindPoint,PipelineLayout,unsigned int,unsigned int,ash::vk::definitions::DescriptorSet *,unsigned int,unsigned int *) features.rs:4661
[3-ray-debug.exe] ash::device::Device::cmd_bind_descriptor_sets(CommandBuffer,PipelineBindPoint,PipelineLayout,unsigned int,slice$<ash::vk::definitions::DescriptorSet>,slice$<u32>) device.rs:1643
[3-ray-debug.exe] 3_ray_debug::render(sol::App *,3_ray_debug::AppData *) 3-ray-debug.rs:237
[3-ray-debug.exe] sol::main_loop::closure$0<3_ray_debug::AppData>(sol::main_loop::closure_env$0<3_ray_debug::AppData> *,enum$<winit::event::Event<tuple$<> > >,winit::event_loop::EventLoopWindowTarget<tuple$<> > *,enum$<winit::event_loop::ControlFlow> *) lib.rs:227
[3-ray-debug.exe] winit::platform_impl::platform::event_loop::impl$2::run_return::closure$0<tuple$<>,sol::main_loop::closure_env$0<3_ray_debug::AppData> >(winit::platform_impl::platform::event_loop::impl$2::run_return::closure_env$0<tuple$<>,sol::main_loop::closure_env$0<3_ray_debug::AppData> > *,enum$<winit::event::Event<tuple$<> > >,enum$<winit::event_loop::ControlFlow> *) event_loop.rs:206
[3-ray-debug.exe] alloc::boxed::impl$45::call_mut<tuple$<enum$<winit::event::Event<tuple$<> > >,ref_mut$<enum$<winit::event_loop::ControlFlow> > >,dyn$<core::ops::function::FnMut<tuple$<enum$<winit::event::Event<tuple$<> > >,ref_mut$<enum$<winit::event_loop::ControlFlow> > >,assoc$<Output,tuple$<> > > >,alloc::alloc::Global>(alloc::boxed::Box<dyn$<core::ops::function::FnMut<tuple$<enum$<winit::event::Event<tuple$<> > >,ref_mut$<enum$<winit::event_loop::ControlFlow> > >,assoc$<Output,tuple$<> > > >,alloc::alloc::Global> *,enum$<winit::event::Event<tuple$<> > >,enum$<winit::event_loop::ControlFlow> *) boxed.rs:1879
[3-ray-debug.exe] winit::platform_impl::platform::event_loop::runner::impl$3::call_event_handler::closure$0<tuple$<> >(closure_env$0<tuple$<> >) runner.rs:245
[3-ray-debug.exe] core::panic::unwind_safe::impl$23::call_once<tuple$<>,winit::platform_impl::platform::event_loop::runner::impl$3::call_event_handler::closure_env$0<tuple$<> > >(AssertUnwindSafe<winit::platform_impl::platform::event_loop::runner::impl$3::call_event_handler::closure_env$0<tuple$<> > >) unwind_safe.rs:271
[3-ray-debug.exe] std::panicking::try::do_call<core::panic::unwind_safe::AssertUnwindSafe<winit::platform_impl::platform::event_loop::runner::impl$3::call_event_handler::closure_env$0<tuple$<> > >,tuple$<> >(unsigned char *) panicking.rs:492
[3-ray-debug.exe] <unknown> 0x00007ff66d4211c3
[3-ray-debug.exe] std::panicking::try<tuple$<>,core::panic::unwind_safe::AssertUnwindSafe<winit::platform_impl::platform::event_loop::runner::impl$3::call_event_handler::closure_env$0<tuple$<> > > >(AssertUnwindSafe<winit::platform_impl::platform::event_loop::runner::impl$3::call_event_handler::closure_env$0<tuple$<> > >) panicking.rs:456
[3-ray-debug.exe] std::panic::catch_unwind<core::panic::unwind_safe::AssertUnwindSafe<winit::platform_impl::platform::event_loop::runner::impl$3::call_event_handler::closure_env$0<tuple$<> > >,tuple$<> >(AssertUnwindSafe<winit::platform_impl::platform::event_loop::runner::impl$3::call_event_handler::closure_env$0<tuple$<> > >) panic.rs:137
[3-ray-debug.exe] winit::platform_impl::platform::event_loop::runner::EventLoopRunner<tuple$<> >::catch_unwind<tuple$<>,tuple$<>,winit::platform_impl::platform::event_loop::runner::impl$3::call_event_handler::closure_env$0<tuple$<> > >(closure_env$0<tuple$<> >) runner.rs:152
[3-ray-debug.exe] winit::platform_impl::platform::event_loop::runner::EventLoopRunner<tuple$<> >::call_event_handler<tuple$<> >(enum$<winit::event::Event<tuple$<> > >) runner.rs:239
[3-ray-debug.exe] winit::platform_impl::platform::event_loop::runner::EventLoopRunner<tuple$<> >::move_state_to<tuple$<> >(RunnerState) runner.rs:341
[3-ray-debug.exe] winit::platform_impl::platform::event_loop::runner::EventLoopRunner<tuple$<> >::main_events_cleared<tuple$<> >() runner.rs:227
[3-ray-debug.exe] winit::platform_impl::platform::event_loop::flush_paint_messages<tuple$<> >(enum$<core::option::Option<ptr_mut$<enum$<winapi::shared::windef::HWND__> > > >,winit::platform_impl::platform::event_loop::runner::EventLoopRunner<tuple$<> > *) event_loop.rs:726
[3-ray-debug.exe] winit::platform_impl::platform::event_loop::public_window_callback_inner::closure$0<tuple$<> >(winit::platform_impl::platform::event_loop::public_window_callback_inner::closure_env$0<tuple$<> > *) event_loop.rs:941
[3-ray-debug.exe] core::ops::function::FnOnce::call_once<winit::platform_impl::platform::event_loop::public_window_callback_inner::closure_env$0<tuple$<> >,tuple$<> >(closure_env$0<tuple$<> >) function.rs:248
[3-ray-debug.exe] core::panic::unwind_safe::impl$23::call_once<isize,winit::platform_impl::platform::event_loop::public_window_callback_inner::closure_env$0<tuple$<> > >(AssertUnwindSafe<winit::platform_impl::platform::event_loop::public_window_callback_inner::closure_env$0<tuple$<> > >) unwind_safe.rs:271
[3-ray-debug.exe] std::panicking::try::do_call<core::panic::unwind_safe::AssertUnwindSafe<winit::platform_impl::platform::event_loop::public_window_callback_inner::closure_env$0<tuple$<> > >,isize>(unsigned char *) panicking.rs:492
[3-ray-debug.exe] <unknown> 0x00007ff66d1002b3
[3-ray-debug.exe] std::panicking::try<isize,core::panic::unwind_safe::AssertUnwindSafe<winit::platform_impl::platform::event_loop::public_window_callback_inner::closure_env$0<tuple$<> > > >(AssertUnwindSafe<winit::platform_impl::platform::event_loop::public_window_callback_inner::closure_env$0<tuple$<> > >) panicking.rs:456
[3-ray-debug.exe] std::panic::catch_unwind<core::panic::unwind_safe::AssertUnwindSafe<winit::platform_impl::platform::event_loop::public_window_callback_inner::closure_env$0<tuple$<> > >,isize>(AssertUnwindSafe<winit::platform_impl::platform::event_loop::public_window_callback_inner::closure_env$0<tuple$<> > >) panic.rs:137
[3-ray-debug.exe] winit::platform_impl::platform::event_loop::runner::EventLoopRunner<tuple$<> >::catch_unwind<tuple$<>,isize,winit::platform_impl::platform::event_loop::public_window_callback_inner::closure_env$0<tuple$<> > >(closure_env$0<tuple$<> >) runner.rs:152
[3-ray-debug.exe] winit::platform_impl::platform::event_loop::public_window_callback_inner<tuple$<> >(enum$<winapi::shared::windef::HWND__> *,unsigned int,unsigned long long,long long,winit::platform_impl::platform::event_loop::WindowData<tuple$<> > *) event_loop.rs:2030
[3-ray-debug.exe] winit::platform_impl::platform::event_loop::public_window_callback<tuple$<> >(enum$<winapi::shared::windef::HWND__> *,unsigned int,unsigned long long,long long) event_loop.rs:846
[user32.dll] <unknown> 0x00007ff9631ae858
[user32.dll] <unknown> 0x00007ff9631ae4ee
[opengl32.dll] <unknown> 0x00007ff94257f990
[user32.dll] <unknown> 0x00007ff9631ae858
[user32.dll] <unknown> 0x00007ff9631ae3dc
[user32.dll] <unknown> 0x00007ff9631c0bc3
[ntdll.dll] <unknown> 0x00007ff964770ba4
[win32u.dll] <unknown> 0x00007ff9622c1704
[user32.dll] <unknown> 0x00007ff9631ae2ea
[3-ray-debug.exe] winit::platform_impl::platform::event_loop::EventLoop<tuple$<> >::run_return<tuple$<>,sol::main_loop::closure_env$0<3_ray_debug::AppData> >(closure_env$0<3_ray_debug::AppData>) event_loop.rs:221
[3-ray-debug.exe] winit::platform_impl::platform::event_loop::EventLoop<tuple$<> >::run<tuple$<>,sol::main_loop::closure_env$0<3_ray_debug::AppData> >(EventLoop<tuple$<> >,closure_env$0<3_ray_debug::AppData>) event_loop.rs:191
[3-ray-debug.exe] winit::event_loop::EventLoop<tuple$<> >::run<tuple$<>,sol::main_loop::closure_env$0<3_ray_debug::AppData> >(EventLoop<tuple$<> >,closure_env$0<3_ray_debug::AppData>) event_loop.rs:154
[3-ray-debug.exe] sol::main_loop<3_ray_debug::AppData>(AppBuilder<3_ray_debug::AppData>) lib.rs:174
[3-ray-debug.exe] sol::AppBuilder<3_ray_debug::AppData>::run<3_ray_debug::AppData>(AppBuilder<3_ray_debug::AppData>) lib.rs:154
[3-ray-debug.exe] 3_ray_debug::main() 3-ray-debug.rs:271
[3-ray-debug.exe] core::ops::function::FnOnce::call_once<void (*)(),tuple$<> >(void (*)()) function.rs:248
[3-ray-debug.exe] std::sys_common::backtrace::__rust_begin_short_backtrace<void (*)(),tuple$<> >(void (*)()) backtrace.rs:122
[3-ray-debug.exe] std::rt::lang_start::closure$0<tuple$<> >(std::rt::lang_start::closure_env$0<tuple$<> > *) rt.rs:145
[Inlined] [3-ray-debug.exe] core::ops::function::impls::impl$2::call_once() function.rs:280
[Inlined] [3-ray-debug.exe] std::panicking::try::do_call() panicking.rs:492
[Inlined] [3-ray-debug.exe] std::panicking::try() panicking.rs:456
[Inlined] [3-ray-debug.exe] std::panic::catch_unwind() panic.rs:137
[Inlined] [3-ray-debug.exe] std::rt::lang_start_internal::closure$2() rt.rs:128
[Inlined] [3-ray-debug.exe] std::panicking::try::do_call() panicking.rs:492
[Inlined] [3-ray-debug.exe] std::panicking::try() panicking.rs:456
[Inlined] [3-ray-debug.exe] std::panic::catch_unwind() panic.rs:137
[3-ray-debug.exe] std::rt::lang_start_internal() rt.rs:128
[3-ray-debug.exe] std::rt::lang_start<tuple$<> >(void (*)(),long long,unsigned char **) rt.rs:144
[3-ray-debug.exe] <unknown> 0x00007ff66d0572a6
[Inlined] [3-ray-debug.exe] invoke_main() 0x00007ff66d83f090
[3-ray-debug.exe] __scrt_common_main_seh() 0x00007ff66d83f06e
[kernel32.dll] <unknown> 0x00007ff962ce7034
[ntdll.dll] <unknown> 0x00007ff964722651