Closed C-Kenny closed 4 years ago
I've added a safe exit keyboard shortcut as 'x'/'X' which tries to close safely and stop minim from having the file open but I still sometimes get this error.
Running $ lsof ~/Music/Visualizer/<song_title>
we can see that sometimes Processing
itself still holds onto the file. Even when seemingly not using it..
This is the last knowing commit where this bug didn't occur: https://github.com/C-Kenny/music-visualizer-4-friend/commit/a0cbe98396a52277c75a9b5e03d53509b2573a2e
The visualizer appears to play the song the first time, but sometimes it can't play the same song again in quick succession.
Leading to errors like:
and
and
and
Closing the visualizer and waiting ~60s seems to resolve this. Thinking the file may remain open when though it's supposed to close() upon exit.