arcana-engine / sierra

Vulkan-lite GPU API
Other
90 stars 6 forks source link

demo crash #23

Open ProkopRandacek opened 2 years ago

ProkopRandacek commented 2 years ago

Hello, the demo is crashing to SIGFPE on my machine.

I'm not sure at all if this is a sierra issue or amdvlk issue so sorry if I'm reporting this to the wrong project. I am using wayland.

(gdb) r
Starting program: /home/prokop/source/sierra/target/debug/sierra-proc-demo
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".

Program received signal SIGFPE, Arithmetic exception.
0x00007ffff305029d in ?? () from /usr/lib/amdvlk64.so
(gdb) bt
#0  0x00007ffff305029d in ?? () from /usr/lib/amdvlk64.so
#1  0x00007ffff3037107 in ?? () from /usr/lib/amdvlk64.so
#2  0x00007ffff31a92fa in ?? () from /usr/lib/amdvlk64.so
#3  0x00007ffff31bdc74 in ?? () from /usr/lib/amdvlk64.so
#4  0x00007ffff2fc6221 in ?? () from /usr/lib/amdvlk64.so
#5  0x00007ffff76d5e01 in ?? () from /usr/lib/libvulkan.so.1
#6  0x00007ffff1e602e6 in DispatchCreateSwapchainKHR (pSwapchain=0x7fffffff2bb0, pAllocator=0x0, pCreateInfo=0x7fffffff35d8, device=0x555556e79c20)
    at /build/vulkan-validation-layers/src/Vulkan-ValidationLayers-sdk-1.3.224.1/layers/generated/layer_chassis_dispatch.cpp:467
#7  vulkan_layer_chassis::CreateSwapchainKHR (device=0x555556e79c20, pCreateInfo=0x7fffffff35d8, pAllocator=0x0, pSwapchain=0x7fffffff2bb0)
    at /build/vulkan-validation-layers/src/Vulkan-ValidationLayers-sdk-1.3.224.1/layers/generated/chassis.cpp:5625
#8  0x0000555555c8894f in erupt::generated::DeviceLoader::create_swapchain_khr (self=0x55555704ae40, create_info=0x7fffffff35d8, allocator=...)
    at /home/prokop/.cargo/registry/src/github.com-1ecc6299db9ec823/erupt-0.22.0+204/src/generated/extensions/khr_swapchain.rs:1207
#9  0x0000555555cab30b in sierra::backend::vulkan::swapchain::Swapchain::configure (self=0x7fffffffcf60, usage=..., format=sierra::format::Format::BGRA8Srgb, mode=sierra::surface::PresentMode::Fifo)
    at src/backend/vulkan/swapchain.rs:302
#10 0x00005555556f53d5 in sierra_proc_demo::main () at demo/src/main.rs:91
$ rustc --version
rustc 1.64.0 (a55dd71d5 2022-09-19)