Losing power whilst recording with Audacity

Published: Sunday, Aug 18, 2013 Last modified: Tuesday, Nov 26, 2024

After launching Audacity, selecting the autosave you might be greeted with a “not well formed - invalid token” error. That means the XML autosave is corrupted.

Under ~/.audacity-data/AutoSave you will probably find an invalid file like so:

~/.audacity-data/AutoSave$ xmlstarlet val cryptoparty2.autosave 
cryptoparty2.autosave - invalid

Open the file in vim, go to the bottom with the G shortcut and hopefully you will notice some obvious gibberish like:

^@^@^@^@^@^@^@^@^@</project>

Remove it, validate the XML is good. Now you should be able to open it in Audacity.