Using the cmake variable : SOFA_ENABLE_TRACY
macOS & xcode version: 26.2
sofa: v25.12 (and master)
First launch of runSofa goes well, but the following ones always crash immediately, without any message
(only displaying zsh: abort ./bin/runSofa )
After enabling AdressSanitizer, it appears the problem seems to come with Tracy:
./bin/runSofa ~/Work/sofa/src/plugins/EnclosedCollisionPlugin/examples/3instruments_collis_enclosed_deformable.py -l SofaPython3 -lSofaImGui -g imgui
AddressSanitizer:DEADLYSIGNAL
=================================================================
==52151==ERROR: AddressSanitizer: stack-overflow on address 0x00016d99bfe0 (pc 0x0001893f9eb4 bp 0x00016d99c040 sp 0x00016d99bfd0 T1)
#0 0x0001893f9eb4 in _malloc_zone_malloc_instrumented_or_legacy+0x8 (libsystem_malloc.dylib:arm64e+0x36eb4)
#1 0x0001893f9f40 in _malloc_zone_malloc_instrumented_or_legacy+0x94 (libsystem_malloc.dylib:arm64e+0x36f40)
#2 0x0001893e19cc in _malloc_type_zone_malloc_outlined+0x3c (libsystem_malloc.dylib:arm64e+0x1e9cc)
#3 0x0001893f9f40 in _malloc_zone_malloc_instrumented_or_legacy+0x94 (libsystem_malloc.dylib:arm64e+0x36f40)
#4 0x0001893e19cc in _malloc_type_zone_malloc_outlined+0x3c (libsystem_malloc.dylib:arm64e+0x1e9cc)
#5 0x0001893f9f40 in _malloc_zone_malloc_instrumented_or_legacy+0x94 (libsystem_malloc.dylib:arm64e+0x36f40)
#6 0x0001893e19cc in _malloc_type_zone_malloc_outlined+0x3c (libsystem_malloc.dylib:arm64e+0x1e9cc)
#7 0x0001893f9f40 in _malloc_zone_malloc_instrumented_or_legacy+0x94
... (lots of similar lines)
SUMMARY: AddressSanitizer: stack-overflow (libsystem_malloc.dylib:arm64e+0x36eb4) in _malloc_zone_malloc_instrumented_or_legacy+0x8
Thread T1 created by T0 here:
#0 0x0001112659f8 in pthread_create+0x5c (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x359f8)
#1 0x000108b14504 in tracy::Profiler::SpawnWorkerThreads() TracyProfiler.cpp:1628
#2 0x000108b13c7c in tracy::Profiler::Profiler() TracyProfiler.cpp:1556
#3 0x000108b66598 in tracy::ProfilerData::ProfilerData() TracyProfiler.cpp:1240
#4 0x000108b13208 in tracy::GetProfilerData() TracyProfiler.cpp:1318
#5 0x000108b98624 in _GLOBAL__sub_I_TracyClient.cpp TracyClient.cpp
#6 0x000189222cac in invocation function for block in dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const+0x1b8 (dyld:arm64e+0x1ccac)
#7 0x00018926072c in invocation function for block in dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const+0x140 (dyld:arm64e+0x5a72c)
........
Moreover, if it is run through lldb, it does not crash, so it is quite difficult to debug.
I tried pulling the latest version of Tracy (v0.13.1) but the behavior is the same.
Using the cmake variable : SOFA_ENABLE_TRACY
macOS & xcode version: 26.2
sofa: v25.12 (and master)
First launch of runSofa goes well, but the following ones always crash immediately, without any message
(only displaying
zsh: abort ./bin/runSofa)After enabling AdressSanitizer, it appears the problem seems to come with Tracy:
Moreover, if it is run through lldb, it does not crash, so it is quite difficult to debug.
I tried pulling the latest version of Tracy (v0.13.1) but the behavior is the same.