From a5d8548984d3e77c65eb4f7227e284eabcb39d42 Mon Sep 17 00:00:00 2001 From: Beyley Cardellio Date: Fri, 21 Nov 2025 01:50:33 -0500 Subject: [PATCH] ipc: Initialize debug GUI after system If we initialize the debug GUI first, then it will attempt to access a NULL system and fail. Part-of: --- src/xrt/ipc/server/ipc_server_process.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xrt/ipc/server/ipc_server_process.c b/src/xrt/ipc/server/ipc_server_process.c index 8cf187770..92c232904 100644 --- a/src/xrt/ipc/server/ipc_server_process.c +++ b/src/xrt/ipc/server/ipc_server_process.c @@ -1103,9 +1103,6 @@ ipc_server_main_common(const struct ipc_server_main_info *ismi, return -1; } - // Start the debug UI now (if enabled). - u_debug_gui_start(s->debug_gui, s->xinst, s->xsysd); - // Tell the callbacks we are entering the main-loop. callbacks->mainloop_entering(s, s->xinst, data); @@ -1118,6 +1115,9 @@ ipc_server_main_common(const struct ipc_server_main_info *ismi, U_LOG_CHK_ONLY_PRINT(log_level, xret, "ipc_server_init_system_if_available_locked"); } + // Start the debug UI now (if enabled). + u_debug_gui_start(s->debug_gui, s->xinst, s->xsysd); + // Main loop. ret = main_loop(s); -- 2.51.2