giuspen / cherrytree

cherrytree
https://www.giuspen.net/cherrytree/
Other
3.31k stars 456 forks source link

corrupted files #1590

Open rogue-ronin opened 3 years ago

rogue-ronin commented 3 years ago

Not entirely sure how to discuss this -- I don't know if I can reproduce it, but it has happened several times recently.

I frequently use the Recent Documents list to swap between two CTD files. The names in the list become corrupted, and at least two files have disappeared. I have backups enabled, so I haven't lost data entirely yet but just some tiny bits of work.

I just now opened backups and re-saved as CTB files. Not sure if this will have any effect, just trying anything. Really startling when my two most important files get corrupted.

If it happens again, I'll grab a screenshot. Is there another bug somewhere that describes this?

v. 0.99.32, Manjaro Linux, XFCE 4.16

giuspen commented 3 years ago

I haven't got such report yet, I also frequently swap between recent files in particular test meaningless data and important data (which I have in SQLite). Do you have many images/tables/codeboxes? Roughly what is the size of the documents?

rogue-ronin commented 3 years ago

cherrytree_Screenshot_2021-04-04_14-56-00

Sizes and types there.

The DandD one has a lot of text, not many images (if any at all), and I recently started adding tables to replace some formatted text. The other one has lots of things, but probably only a table or two. Has a couple of images, but generally stored externally. I did try to make some of the sub-nodes be mono-spaced.

I could share the DandD one, if you like. It's just my Dungeons and Dragons noodling from the last few years. The other one has personal info I'd prefer not to share.

Cherrytree got slower when I switched back to the CTB files, but that probably makes sense.

This feels like a write-to-disk issue, because I got that random symbolic garbage where the document name should be.

Aloha! and thanks for the quick response. :)

giuspen commented 3 years ago

I understand yours is mostly a text document (the way my documents are, actually), I would be interested to understand if it happens also with the documents in CTB

rogue-ronin commented 3 years ago

I will instantly take screenshots, and search around in logs. I will also try to explore the directory and see if there are any clues there.

Does Cherrytree log anywhere?

rogue-ronin commented 3 years ago

whoops, sorry

giuspen commented 3 years ago

Cherrytree will log in its preferences folder starting from next version 0.99.34

gssc5 commented 9 months ago

i have the same problem it says that the file is corrupt and it wont open with any other applicaion

giuspen commented 9 months ago

@gssc5 is it a CTB? Have you tried with the backups (files in same folder with trailing tildes) - less tildes is more recent backup