mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-05 13:25:42 +00:00
* During capture shutdown on Python < 3.13 the replay thread will try to remove itself as a debuggable thread which requires being able to run python (holding the GIL). If the UI thread is the one triggering the capture shutdown and is running a call from a python script it may hold the GIL while waiting for the replay thread to close, deadlocking. * To alleviate this, while the UI thread is about to block on the replay thread we try to release the python state if we are holding it so that the replay thread can run python code if needed. * We already do this in a manual wrapper around BlockInvoke.