I was working on a document with my math assignement, regurally saving it. At some point I notice some weird behaviour, when trying to edit one math formulas, its contents were changing to exactly the same as another math object.
I decided to save my work and restart libreoffice, there was no indication that the save failed, but the file now doesn’t open. A pop up window with title “LibreOffice 18.104.22.168” that says “Read-Error Error reading file” without any usefull information about the error. Backup option on Load/Save was not enabled.
I can unzip the odt just fine and run xmllint on the contents.xml, without any errors. It seems I have enough data on the file, but no way to recover any of it. I’ve spent a few hours working on this file, is there any way to recover any part of it? I’m interested only on the math formulas, it’s a huge pain to recreate.
In the with the unziped contentes, by running
file ObjectReplacements/* I was able to spot which objects are StarView MetaFiles. Renamed them so they end in .svm and now I’m able to import them as pictures in a new document. I can’t edit them, but at least I won’t have to recreate all the formulas manually.
Still interested on how to recover the original file though.
Finally made it by using the Apache OpenOffice Beta. See answer below.