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
{{ message }}
Repository navigation
frontend: A failed video init leaks memory and logs nothing that helps diagnose it #633
Number of memory leaks: 1 after OBSBasic::OBSInit throws on a failed ResetVideo() (OBSBasic.cpp:891-901). Find the allocation with LSan, forcing EGL to fail, and add a regression test.
Claiming: #633 failed video initialization cleanup and diagnostic logging.
RED: reproduce the failed ResetVideo path and add a regression check for the leak and EGL failure diagnostics.
GREEN: fix cleanup on video-init failure, add EGL error/environment context, and correct the Arch distribution fallback; validate relevant tests and local gate.
Open a PR against master, with the RED failure and GREEN result documented.
I expect to open the first PR today.
Progress: the forced-EGL startup regression now passes against a full ASan/LSan frontend build. After releasing the partially initialized window, LSan identified the remaining 64-byte allocation at os_cpu_usage_info_start (platform-nix.c:133) from OBSBasic::OBSBasic (OBSBasic.cpp:353), plus the shortcut event filter. Both are now released; the failing startup logs zero OBS allocations and no frontend startup leak. Six new cmocka checks cover EGL error/environment logging and os-release fallback behavior. Local review is clean; the required OFF/ON gate is running before the PR is pushed.
Fixed by #655: failed video initialization releases the partially initialized window, CPU sampler, and shortcut filter; EGL failures include the error and environment; rolling distributions use BUILD_ID/rolling. Full startup ASan/LSan regression and local gates passed, and current-head CI passed across Linux, macOS, and Windows. All requested items are addressed.
Activity
zackees commentedon Oct 13, 2026
Claiming: #633 failed video initialization cleanup and diagnostic logging.
I expect to open the first PR today.
zackees commentedon Oct 13, 2026
Progress: the forced-EGL startup regression now passes against a full ASan/LSan frontend build. After releasing the partially initialized window, LSan identified the remaining 64-byte allocation at os_cpu_usage_info_start (platform-nix.c:133) from OBSBasic::OBSBasic (OBSBasic.cpp:353), plus the shortcut event filter. Both are now released; the failing startup logs zero OBS allocations and no frontend startup leak. Six new cmocka checks cover EGL error/environment logging and os-release fallback behavior. Local review is clean; the required OFF/ON gate is running before the PR is pushed.
test: Reproduce failed video initialization diagnostics and cleanup (#…
fix: Report EGL initialization errors and rolling distribution versio…
test: Expose the leaked startup CPU sampler under LSan (#633 RED)
fix: Release startup CPU sampling and shortcut resources on video fai…
zackees commentedon Oct 13, 2026
Fixed by #655: failed video initialization releases the partially initialized window, CPU sampler, and shortcut filter; EGL failures include the error and environment; rolling distributions use BUILD_ID/rolling. Full startup ASan/LSan regression and local gates passed, and current-head CI passed across Linux, macOS, and Windows. All requested items are addressed.
test(test): Drive the #633 video-init regression from Python (#962)
test: Run the #633 video-init regression in Python (#962)
test: Run the obs-rust#633 video-init regression in Python (obs-rust#962