Programming environment for editing various of my live apps without restarting them.

bugfix: don't retry after the SDL hard crash

This is a follow-up to the following changes:

  • NPXISSWQSW45YFZPNLVVRU4MKWXLEINO4LDGAZFL7BVY25BSNNXAC
  • VUJJNWJDHQFAQO4QGV7YOXG3K7M66P7SIYNA22R36LIBDKFMKPIQC

Scenario:

  • run on a machine with low video RAM
  • spread out an app's code over a large area but smaller than the 16000x16000 check in snapshot_canvas
  • press ctrl+g to trigger the animation
  • the call to newCanvas raises an SDL error due to insufficient video RAM to cover the whole surface
  • app goes into error event loop (error_run_frame in live.lua)
  • press a key
  • —> before this commit, app goes back to main event loop <—
  • close the window
  • app writes settings to config in the save directory before quitting
  • settings include a really large viewport
  • app fails to recover

This particular error is serious enough we don't want to just randomly see if things got better. We don't want to leave the error loop unless there's a code change and any affirmative reason to believe things might have improved.

Note: I'm seeing some reports that the above scenario might be easier to trigger on Windows. The key release of ctrl+g might itself be taking the app out of the error event loop. This fix should improve matters on any OS.

Created by  akkartik  on April 17, 2025
N2JXCLNTZMW4KD2BGALD326JEQCVQ2AAD4JWBWEG5GQLERPKQRPQC
Change contents