System Information
Windows 7/x64, W8100
Blender Version
Broken: 2.78a, e8299c8
Worked: 2.77a
Usage of time.sleep(0)/Event.wait(0) with a RenderEngine leads to crash
Load the test addon from
. Enable 'Test' RenderEngine. Repeat pressing Shift-Z in a View3D twice(to enable RENDERED mode and to turn if off). Blender crashes(eventually, for me it's very often immediately after second Shift-Z).Cause of this - is use of time.sleep(0) within the thread proc. Changing '0' to even '0.000001' seems to prevent crash.
Crash message varies, could be
Fatal Python error: PyEval_SaveThread: NULL tstate
or
Error: EXCEPTION_ACCESS_VIOLATION"