Closed hx2A closed 3 years ago
(disregard 713c8e2)
This bug only applies when an OpenGL renderer is used. Latest commit improves this so that at least the user can get rid of the window using the red circle button in the upper left corner. The window can come back by clicking on the dock icon enough times though. Still, this is an improvement because the Python process no longer hangs and does not need to be killed.
Finally fixed for real by re-engineering the shutdown code. While fixing this I discovered that on OSX, Sketches that had called no_loop()
also cannot be shutdown properly. Fixed that also. Also somehow I magically repaired the ability to close the window by hitting the ESC key.
See https://github.com/hx2A/py5generator/commit/3181e6318bd1301e1b29352382ce0903417a3c88 and https://github.com/hx2A/py5generator/commit/d591588347df57dd0c286e40d76c5aaee15ac4e1 for code relevant to the fix.
On OSX, the Sketch window does not close after a call to
exit_sketch()
if the Sketch stopped because of an error. After callingexit_sketch()
, the window is in some half dead state and cannot be closed by hitting the red button in the upper left corner. The python process hangs and needs to be killed.On Linux, the window will close properly when
exit_sketch()
is called.Steps to reproduce:
exit_sketch()
:Workaround: Don't call
exit_sketch()
after an error. Manually close the window with the red button in the upper left corner.