After Crash .val is empty

Issue #402 resolved
Former user created an issue

Yesterday I worked on my Bunka Sloper. While editing a line in my drawing, the program crashed and cleared my .val file. So the .val was complety empty after this crash. I was really surprised, the program crashed often - but this was not a big problem when you save regularly.

Comments (8)

  1. Roman Telezhynskyi repo owner

    Hi,

    the program crashed often

    Sorry about that. I do my best, but it require a lot of testing.

    First of all Valentina supports autosave. You should try to look into your folder and try to find the file name _of_your_pattern.val.autosave. Second, program doesn't touch file when you work with a pattern. All data in the memory. It clears a file when rewrites data.

  2. Former user Account Deleted

    No Problem! That´s the reason for testing.

    Autosave is on with 1 Minute, but I can´t find the autosave file on my disk. Where is it stored? Nothing in my workfolder, and nothing in the valentina program folder. Other suggestions?

  3. Roman Telezhynskyi repo owner

    Autosave disappears when you trigger saving. Seek autosave file near your pattern file.

  4. Roman Telezhynskyi repo owner

    No, not at all. If you can't find the file this mean that file was deleted after you saved the file. Or, file was never created. I will check all these possibilities. If you know how to repeat crash, it would be even better. At least i will try make reask of losing all data less possible.

  5. Roman Telezhynskyi repo owner

    @bettina_g, thank you. You forced me to search better way for safely writing to files. And now i know about QSaveFile Class. And now i can throw away my own wheel and use standard way.

  6. Log in to comment