chocoford / ExcalidrawZ

Excalidraw app for mac. Powered by pure SwiftUI.
https://excalidrawz.chocoford.com
MIT License
233 stars 14 forks source link

Lost data after reopening and quitting #39

Open dserodio opened 1 month ago

dserodio commented 1 month ago

Hello,

First of all, thank you for building ExcalidrawZ and making it open source — it addresses the main limitation of Excalidraw!

This is my first time using it (v1.1.0). I created my first diagram, exported it as a PNG, and quit. Then I wondered if I should have saved the file before quitting. I reopened ExcalidrawZ, saw the diagram was still there, and quit again. A moment later I thought, "I should have named this diagram," so I opened ExcalidrawZ once more, but the diagram was lost!

Did I run into some kind of race condition because I opened and quit it quickly a few times?

Thanks!

chocoford commented 4 weeks ago

Hello. If you have just lost your one of your file data. You can try to recover the data by the File History button on the toolbar.

dserodio commented 4 weeks ago

Thanks! I hadn't noticed this icon, this worked to restore my missing diagram.

I'm worried that there might be a hidden bug that caused me to lose my data in the first place.

chocoford commented 3 weeks ago

Your concern is right, there is still a small probability that the file data will be overwritten by empty data, which is the main reason why I do this feature.

I am still working on finding and fixing this occasional bug. : )