Skip to content

Resize Leak on KDE Wayland #69

@jamylak

Description

@jamylak

Running on KDE Wayland on NixOS VM on Macbook M1 using this branch #70

Indirect leak of 16 byte(s) in 4 object(s) allocated from:
    #0 0xffff8a499248 in malloc (/nix/store/qipd93x9gjyiygqk673rd2ssnf8y7jj0-gcc-14.3.0-lib/lib/libasan.so.8+0xd9248)
    #1 0xffff6d37227c in vk_enqueue_cmd_set_rendering_input_attachment_indices (/nix/store/0h19xcf8wb204il913sivk25fwjxylmf-mesa-25.3.4/lib/libvulkan_lvp.so+0x9227c) (BuildId: d58e40bfe262fa793302f68d861a329538de6a17)
    #2 0xffff6d37f35c in vk_cmd_enqueue_CmdSetRenderingInputAttachmentIndices (/nix/store/0h19xcf8wb204il913sivk25fwjxylmf-mesa-25.3.4/lib/libvulkan_lvp.so+0x9f35c) (BuildId: d58e40bfe262fa793302f68d861a329538de6a17)
    #3 0xffff6d357d64 in begin_subpass.isra.0 (/nix/store/0h19xcf8wb204il913sivk25fwjxylmf-mesa-25.3.4/lib/libvulkan_lvp.so+0x77d64) (BuildId: d58e40bfe262fa793302f68d861a329538de6a17)
    #4 0xffff6d358844 in vk_common_CmdBeginRenderPass (/nix/store/0h19xcf8wb204il913sivk25fwjxylmf-mesa-25.3.4/lib/libvulkan_lvp.so+0x78844) (BuildId: d58e40bfe262fa793302f68d861a329538de6a17)
    #5 0xaaaac1ee0918 in recordCommandBuffer /home/james/vsdf-present-fix/include/vkutils.h:1313
    #6 0xaaaac1ee0918 in OnlineSDFRenderer::gameLoop() /home/james/vsdf-present-fix/src/online_sdf_renderer.cpp:225
    #7 0xaaaac1ebe810 in run(int, char**) /home/james/vsdf-present-fix/src/main.cpp:371
    #8 0xaaaac1eb4a2c in main /home/james/vsdf-present-fix/src/main.cpp:385
    #9 0xffff862d62b0 in __libc_start_call_main (/nix/store/89n0gcl1yjp37ycca45rn50h7lms5p6f-glibc-2.40-66/lib/libc.so.6+0x262b0) (BuildId: 70fbec6c13b6ae06e6b049bcbad20e1b16b0694e)
    #10 0xffff862d6394 in __libc_start_main@GLIBC_2.17 (/nix/store/89n0gcl1yjp37ycca45rn50h7lms5p6f-glibc-2.40-66/lib/libc.so.6+0x26394) (BuildId: 70fbec6c13b6ae06e6b049bcbad20e1b16b0694e)
    #11 0xaaaac1eb522c in _start (/home/james/vsdf-present-fix/build/vsdf+0x3522c)

Indirect leak of 16 byte(s) in 4 object(s) allocated from:
    #0 0xffff8a499248 in malloc (/nix/store/qipd93x9gjyiygqk673rd2ssnf8y7jj0-gcc-14.3.0-lib/lib/libasan.so.8+0xd9248)
    #1 0xffff6d372324 in vk_enqueue_cmd_set_rendering_input_attachment_indices (/nix/store/0h19xcf8wb204il913sivk25fwjxylmf-mesa-25.3.4/lib/libvulkan_lvp.so+0x92324) (BuildId: d58e40bfe262fa793302f68d861a329538de6a17)
    #2 0xffff6d37f35c in vk_cmd_enqueue_CmdSetRenderingInputAttachmentIndices (/nix/store/0h19xcf8wb204il913sivk25fwjxylmf-mesa-25.3.4/lib/libvulkan_lvp.so+0x9f35c) (BuildId: d58e40bfe262fa793302f68d861a329538de6a17)
    #3 0xffff6d357d64 in begin_subpass.isra.0 (/nix/store/0h19xcf8wb204il913sivk25fwjxylmf-mesa-25.3.4/lib/libvulkan_lvp.so+0x77d64) (BuildId: d58e40bfe262fa793302f68d861a329538de6a17)
    #4 0xffff6d358844 in vk_common_CmdBeginRenderPass (/nix/store/0h19xcf8wb204il913sivk25fwjxylmf-mesa-25.3.4/lib/libvulkan_lvp.so+0x78844) (BuildId: d58e40bfe262fa793302f68d861a329538de6a17)
    #5 0xaaaac1ee0918 in recordCommandBuffer /home/james/vsdf-present-fix/include/vkutils.h:1313
    #6 0xaaaac1ee0918 in OnlineSDFRenderer::gameLoop() /home/james/vsdf-present-fix/src/online_sdf_renderer.cpp:225
    #7 0xaaaac1ebe810 in run(int, char**) /home/james/vsdf-present-fix/src/main.cpp:371
    #8 0xaaaac1eb4a2c in main /home/james/vsdf-present-fix/src/main.cpp:385
    #9 0xffff862d62b0 in __libc_start_call_main (/nix/store/89n0gcl1yjp37ycca45rn50h7lms5p6f-glibc-2.40-66/lib/libc.so.6+0x262b0) (BuildId: 70fbec6c13b6ae06e6b049bcbad20e1b16b0694e)
    #10 0xffff862d6394 in __libc_start_main@GLIBC_2.17 (/nix/store/89n0gcl1yjp37ycca45rn50h7lms5p6f-glibc-2.40-66/lib/libc.so.6+0x26394) (BuildId: 70fbec6c13b6ae06e6b049bcbad20e1b16b0694e)
    #11 0xaaaac1eb522c in _start (/home/james/vsdf-present-fix/build/vsdf+0x3522c)

SUMMARY: AddressSanitizer: 46508 byte(s) leaked in 173 allocation(s).

Issue is noticed even when running X11 as the platform

❯ GLFW_PLATFORM=x11 ./build/vsdf --toy plot.frag

(from #68)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions