You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure where this is happening, but cmake seems to launch the tracy-profiler while the debugger does the same thing. So then get two copies of tracy-profiler. Killing the first process (from debugger) ends the debugging session, but the second one (spawned from terminal) is left running. Killing only the second, and then pausing the first, causes another tracy-profiler app to launch when the first is resumed.
This seems to be the fix. Any graphical app (like tracy-profiler) needs to enable the macOS bundle. This allows the app to run from the debugger without launching multiple copies.
CMakeLists.txt on tracy-profiler
elseif(APPLE)
# adding MACOSX_BUNDLE here seemed to fix the multiple launches
add_executable(${PROJECT_NAME} MACOSX_BUNDLE ${PROFILER_FILES} ${COMMON_FILES} ${SERVER_FILES})
else()
add_executable(${PROJECT_NAME} MACOSX_BUNDLE ${PROFILER_FILES} ${COMMON_FILES} ${SERVER_FILES})
endif()
Also add this, but above seemed to fix the issue. I just have BUNDLE set on all my other CMake files for macOS apps.
if(APPLE)
# added BUNDLE here
install(TARGETS ${PROJECT_NAME} BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR})
else()
install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
I'm not sure where this is happening, but cmake seems to launch the tracy-profiler while the debugger does the same thing. So then get two copies of tracy-profiler. Killing the first process (from debugger) ends the debugging session, but the second one (spawned from terminal) is left running. Killing only the second, and then pausing the first, causes another tracy-profiler app to launch when the first is resumed.
This is the output I see in terminal:
% abspathfoo/build/_deps/tracy-build/profiler/Debug/tracy-profiler ; exit;
The text was updated successfully, but these errors were encountered: