Race condition between the main thread and worker thread. In this case the worker thread was waiting for a device idle, but the main thread was waiting on a specific timeline. As long as the timeline didn't pass the device was locked. Releaved the race condition to check on queue idle as the timeline event isn't part of the queue. On windows drivers could be reset and could lead to other crashes as handles were not used anymore. Pull Request: https://projects.blender.org/blender/blender/pulls/139579