-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Describe the bug
Occasionally on startup, the engine just crashes with a segfault. It is weird.
There are crashes on shutdown: validation layers errors, segfaults & assertions going off when closing the engine. Look into this so we can have a graceful shutdown.
Logs
Crash message: malloc(): smallbin double linked list corrupted
Stack trace:
__pthread_kill_implementation () from /nix/store/xx7cm72qy2c0643cm1ipngd87aqwkcdp-glibc-2.40-66/lib/libc.so.6
raise () from /nix/store/xx7cm72qy2c0643cm1ipngd87aqwkcdp-glibc-2.40-66/lib/libc.so.6
abort () from /nix/store/xx7cm72qy2c0643cm1ipngd87aqwkcdp-glibc-2.40-66/lib/libc.so.6
__libc_message_impl.cold () from /nix/store/xx7cm72qy2c0643cm1ipngd87aqwkcdp-glibc-2.40-66/lib/libc.so.6
malloc_printerr () from /nix/store/xx7cm72qy2c0643cm1ipngd87aqwkcdp-glibc-2.40-66/lib/libc.so.6
_int_malloc () from /nix/store/xx7cm72qy2c0643cm1ipngd87aqwkcdp-glibc-2.40-66/lib/libc.so.6
calloc () from /nix/store/xx7cm72qy2c0643cm1ipngd87aqwkcdp-glibc-2.40-66/lib/libc.so.6
wl_display_create_queue_with_name () from /home/piquel/Projects/DirkEngine/Engine/Binaries/libwayland-client.so.0
wsi_wl_display_init () from /nix/store/nh99fba1aahvjgw71p2gfvz7kcs8fjhi-mesa-25.2.6/lib/libvulkan_radeon.so
wsi_wl_surface_create_swapchain () from /nix/store/nh99fba1aahvjgw71p2gfvz7kcs8fjhi-mesa-25.2.6/lib/libvulkan_radeon.so
wsi_CreateSwapchainKHR () from /nix/store/nh99fba1aahvjgw71p2gfvz7kcs8fjhi-mesa-25.2.6/lib/libvulkan_radeon.so
terminator_CreateSwapchainKHR (device=0x555555744ac0, pCreateInfo=0x7fffffffb4f0, pAllocator=0x0, pSwapchain=0x7fffffffb7d8) at /vulkan-sdk/1.4.328.1/source/Vulkan-Loader/loader/wsi.c:612
vvl::dispatch::Device::CreateSwapchainKHR (this=this@entry=0x55555570cb80, device=device@entry=0x555555744ac0, pCreateInfo=pCreateInfo@entry=0x7fffffffb840, pAllocator=pAllocator@entry=0x0, pSwapchain=pSwapchain@entry=0x7fffffffb7d8)
at /vulkan-sdk/1.4.328.1/source/Vulkan-ValidationLayers/layers/vulkan/generated/dispatch_object.cpp:3153
vulkan_layer_chassis::CreateSwapchainKHR (device=0x555555744ac0, pCreateInfo=0x7fffffffb840, pAllocator=0x0, pSwapchain=0x7fffffffb7d8) at /vulkan-sdk/1.4.328.1/source/Vulkan-ValidationLayers/layers/vulkan/generated/chassis.cpp:10385
vk::detail::DispatchLoaderStatic::vkCreateSwapchainKHR (this=0x7ffff7fbcff0 <vk::detail::getDispatchLoaderStatic()::dls>, device=0x555555744ac0, pCreateInfo=0x7fffffffb840, pAllocator=0x0, pSwapchain=0x7fffffffb7d8)
at /home/piquel/Projects/DirkEngine/Engine/Source/Thirdparty/vulkan/include/vulkan/vulkan.hpp:2622
vk::Device::createSwapchainKHR<vk::detail::DispatchLoaderStatic> (this=0x555555573780, createInfo=..., allocator=..., d=...) at /home/piquel/Projects/DirkEngine/Engine/Source/Thirdparty/vulkan/include/vulkan/vulkan_funcs.hpp:9293
dirk::Renderer::createSwapChain (this=0x555555573740, createInfo=...) at src/render/renderer.cpp:364
dirk::Renderer::ImGui_renderWindow (this=0x555555573740, viewport=0x5555558040b0) at src/render/renderer.cpp:999
dirk::Renderer::ImGui_render (this=0x555555573740) at src/render/renderer.cpp:305
dirk::DirkEngine::render (this=0x7fffffffc5c0, deltaTime=4.70999993e-07) at src/engine/dirkengine.cpp:135
dirk::DirkEngine::DirkEngine (this=0x7fffffffc5c0, createInfo=...) at src/engine/dirkengine.cpp:89
main () at src/entrypoint.cpp:49Crashing line of code in Renderer::createSwpachain():
createInfo.swapChain = device.createSwapchainKHR(swapCreateInfo);
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Projects
Status
Planned