ExcalidrawZ icon indicating copy to clipboard operation
ExcalidrawZ copied to clipboard

Lost data after reopening and quitting

Open dserodio opened this issue 1 year ago • 3 comments

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!

dserodio avatar Oct 23 '24 17:10 dserodio

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.

chocoford avatar Oct 24 '24 04:10 chocoford

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.

dserodio avatar Oct 24 '24 15:10 dserodio

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. : )

chocoford avatar Oct 26 '24 07:10 chocoford