Skip to content

Tracy profiler crash with TracyVkZone #1303

@Daxanius

Description

@Daxanius

Version: 0.13.1
OS: Windows 11 Pro (Version 10.0.26200 Build 26200)
Compiled without the TRACY_ON_DEMAND flag

When running the Tracy server on Windows and attempting to implement GPU Zones with Vulkan, I ran into a client crash whenever TracyVkZone was called and the client was attached. Connecting from either a Linux client or a Windows client to the running server both resulted in the same crash.

Enabling the TRACY_ON_DEMAND flag seems to have worked around the issue. However this should not be a requirement to get GPU Zones working.

gdb backtrace output:

(gdb) bt
#0  tracy::Worker::ProcessGpuZoneBeginImplCommon (this=0x555557cc4278, zone=0x7fffcc01d22a, ev=..., serial=true)
    at /tmp/tracy/server/TracyWorker.cpp:5797
#1  tracy::Worker::ProcessGpuZoneBeginImpl (this=0x555557cc4278, zone=0x7fffcc01d22a, ev=..., serial=true)
    at /tmp/tracy/server/TracyWorker.cpp:5760
#2  tracy::Worker::ProcessGpuZoneBegin (this=0x555557cc4278, ev=..., serial=true)
    at /tmp/tracy/server/TracyWorker.cpp:5841
#3  tracy::Worker::Process (this=0x555557cc4278, ev=...)
    at /tmp/tracy/server/TracyWorker.cpp:4626
#4  tracy::Worker::DispatchProcess (this=0x555557cc4278, ev=..., ptr=<optimized out>)
    at /tmp/tracy/server/TracyWorker.cpp:3348
#5  tracy::Worker::Exec (this=0x555557cc4278) at /tmp/tracy/server/TracyWorker.cpp:2874
#6  0x00007ffff70f2ce4 in execute_native_thread_routine ()
   from /nix/store/xc0ga87wdclrx54qjaryahkkmkmqi9qz-gcc-15.2.0-lib/lib/libstdc++.so.6
#7  0x00007ffff6c9be3c in start_thread ()
   from /nix/store/j193mfi0f921y0kfs8vjc1znnr45ispv-glibc-2.40-66/lib/libc.so.6
#8  0x00007ffff6d246cc in __clone3 () from /nix/store/j193mfi0f921y0kfs8vjc1znnr45ispv-glibc-2.40-66/lib/libc.so.6
(gdb) p m_gpuCtxMap
$8 = {{m_ptr = "\000\000\000\000\000"} <repeats 256 times>}

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