forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 8c7bf808ae19e1655737ac07a94de22b5002565fFiltered to crates/engine/examples/drop_cost.rsClear filter

2026-08-09

🐛 fix(decode): join workers on drop — Mesa atexit race killed exiting processesAhmet Kaan Gümüş · 9276137
🐛 fix(decode): join workers on drop — Mesa atexit race killed exiting processes

A decode worker was spawned detached and nothing ever waited for it, so a
process could exit while a worker sat inside `vaInitialize`. Mesa frees its
process name from an `atexit` handler and the worker then reads it back
NULL: SIGSEGV at exit, 9 runs in 20 of the saveload suite.

`DecodeSession::open_worker` now hands the caller a `Worker` that owns the
`JoinHandle`; dropping or replacing one cancels and joins. `PlaybackSession`
holds one, so a seek, a clip boundary and the session's own drop all wait
for the worker they abandon. The worker also checks the cancel flag before
and after opening the hardware session, so a cancelled one never enters
VA-API init at all. Public `open`/`open_at`/`open_range` are unchanged.