rafx: crash when running demo in Linux
I’m getting a crash when trying to run the demo in Linux with the vulkan backend. This is the backtrace:
thread 'main' panicked at 'index out of bounds: the len is 3 but the index is 3', rafx-plugins/src/pipelines/modern/graph_generator/mod.rs:254:9
stack backtrace:
0: rust_begin_unwind
at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/std/src/panicking.rs:498:5
1: core::panicking::panic_fmt
at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/core/src/panicking.rs:107:14
2: core::panicking::panic_bounds_check
at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/core/src/panicking.rs:75:5
3: rafx_plugins::pipelines::modern::graph_generator::generate_render_graph
4: <rafx_plugins::pipelines::modern::plugin::ModernPipelineRendererPlugin as rafx_renderer::renderer_pipeline_plugin::RendererPipelinePlugin>::generate_render_graph
5: rafx_renderer::renderer::Renderer::start_rendering_next_frame
6: demo::DemoApp::update
7: demo::update_loop::{{closure}}
8: winit::platform_impl::platform::x11::EventLoop<T>::run
9: winit::platform_impl::platform::EventLoop<T>::run
10: winit::event_loop::EventLoop<T>::run
11: demo::update_loop
12: demo::main_native::main_native
13: demo::main
I’m running an up-to-date Manjaro Linux environment with the Budgie DE, and I’m running an AMD RX570 GPU.
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 15 (7 by maintainers)
(Actually looks like this is more of an AMD limit than “new vs. old”, so I’m almost certain there is a simple workaround for this, like executing workgroups as a 2D array rather than a 1D array)
https://vulkan.gpuinfo.org/displaydevicelimit.php?name=maxComputeWorkGroupCount[0]&platform=all