Crash on exiting hello_xr cleanly
If you exit hello_xr cleanly by pressing enter in its terminal, when you have the debug GUI enabled at least, you get the following crash very frequently (over 75% of the time):
#0 0x00007ffff5c8eecc in on_elem (name=0x555556660580 "Frame Times (Compositor)", kind=U_VAR_KIND_TIMING, ptr=0x555556679910, priv=0x7fff36ffcd40) at ../src/xrt/state_trackers/gui/gui_scene_debug.c:220
#1 0x00007ffff5c70c7d in u_var_visit(u_var_root_cb, u_var_root_cb, u_var_elm_cb, void*) (enter_cb=0x7ffff5c8ead0 <on_root_enter>, exit_cb=0x7ffff5c8f316 <on_root_exit>, elem_cb=0x7ffff5c8eb36 <on_elem>, priv=0x7fff36ffcd40) at ../src/xrt/auxiliary/util/u_var.cpp:172
#2 0x00007ffff5c8f383 in scene_render (scene=0x7fff100f0610, p=0x555555618af0) at ../src/xrt/state_trackers/gui/gui_scene_debug.c:304
#3 0x00007ffff5c8c7a4 in gui_scene_manager_render(gui_program*) (p=0x555555618af0) at ../src/xrt/state_trackers/gui/gui_scene.cpp:70
#4 0x00007ffff5c69aba in sdl2_loop (p=0x555555618af0) at ../src/xrt/targets/openxr/oxr_sdl2_hack.c:174
#5 0x00007ffff5c69c67 in oxr_sdl2_hack_run_thread (ptr=0x555555618af0) at ../src/xrt/targets/openxr/oxr_sdl2_hack.c:233
#6 0x00007ffff7ee6fa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
#7 0x00007ffff74e44cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Interestingly it always seems to be on this line:
My instinct is that the runtime is shutting down before shutting down the debug UI thread