How to prevent, or gracefully recover from crashes?

I have a guitar pedal made with daisy seed, I used the terrarium platform. If I leave it plugged in for an extended period it eventually crashes and needs to be restarted.

I used the code from this repo: Sonic_Daisy/rhythm_delay at main · tnatoli/Sonic_Daisy · GitHub

It works great but, after a while it eventually it crashes, and needs to be restarted.

I understand, it would be hard to say exactly what is going on, I’m looking for general advice. For example, is it possible to catch a memory overflow or something like that. Or, is possible to catch a general fault, and restart etc.

I’m ust looking for ideas to help me try and track the issue.

It would probably be best to investigate this particular code and see where it’s crashing. If it takes awhile to crash, and it’s a delay effect, maybe look at where it’s writing the delay lines and see if it overflows somehow. To my knowledge, once it’s crashed, there’s really nothing to do but cycle power. Putting a general crash detection fix on there would be harder than solving the root cause of this particular issue in this code.

1 Like