Restarting Touchdesinger On Crash?

Is there a way to automatically restart TouchDesigner file if it crashes?

You can look at a tool such as PM2 for process watching / management.

Best,
Michel

I’ll look into it further.

I tested the batch file, and it works as expected—it restarts the TouchDesigner application if it crashes or isn’t running.

However, my question is: when TouchDesigner crashes, it shows a pop-up message requiring a manual “OK” click to proceed. Is there a way to suppress or automatically close these crash pop-ups so the program can just exit cleanly?

Hi @shahanhyperspace

Unless PM2 has changed dramatically from when I used it a few years ago (which I doubt), it isn’t really designed for Touch and is rather cumbersome to setup and maintain.

This is the main reason I developed Owlette: GitHub - theexperiential/Owlette: Python-based Windows process manager for interactive and immersive installations

I’m not so certain that it will detect the “OK” button as a crash – iirc, this was working under certain conditions for a recent project we did, in that it would attempt to restart the toe after some time, and under other conditions it would not. It all depends on the type of crash you’re running into.

You can setup environment variables to avoid the confirmation.

TOUCH_QUICK_CRASH, among other things.

Used PM2 in the past on production projects. It was reliable.

Best,
Michel