Something went wrong. Try again.
The open source OpenXR runtime
Something went wrong. Try again.
h/mercury: Fix crash when hand tracker init fails master
HandTracking leaves pool, group and kinematic_hands uninitialized unless t_hand_tracking_sync_mercury_create() fully succeeds. If an exception is thrown while loading the ONNX models, create() deletes the partially built object and ~HandTracking() then calls optimizer_destroy() on the garbage kinematic_hands pointers (and releases group), which segfaults in free(). Initialize these members to nullptr so a partially constructed HandTracking is safe to destroy. Signed-off-by: Timo Witte <timo.witte@gmail.com> Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/3007>
Author Timo Witte Date (Sep 11, 2026, 1:10 AM UTC) Commit b5394f51 b5394f51d2db04290e1cea07a080628a3d36e047 Parent fe85c8e6 fe85c8e610c25bd1eec944e9b45cb3156770dd39