giuspen / cherrytree

cherrytree
https://www.giuspen.net/cherrytree/
Other
3.36k stars 458 forks source link

Attempted in error copy and paste operation on nodes from one CT instance to another #2555

Open gitvectors opened 3 weeks ago

gitvectors commented 3 weeks ago

Version, Operating system Ubuntu 22.04, multi-boot setup, Windows/Ubuntu but using Ubuntu largely

Describe the bug I have used CherryTree for years and this is the first major crash experience but admittedly due to my error. I was in a frenetic workflow and I don't know what possessed me but I thought that I might COPY (by clipboard) a node and subnodes from one CherryTree instance to another.. All hell let loose on the screen in a writing loop and I emergency powered down. On rebooting I experienced mouse freezing and fan whirring away. I resolved this by booting into another (multiboot) Ubuntu OS and from there deleting /usr/bin/cherrytree (note: typo corrected) and config of other OS. I then rebooted into the original OS and it settled down. I don't know what my action did on the filesystem. Of course what I should have done is EXPORT from one instance to then IMPORT in second instance. A moment of madness.

To Reproduce I do not suggest reproducing this action since it might cause havoc in the desktop.

Screenshots If applicable, add screenshots to help explain your problem.

gitvectors commented 3 weeks ago

UPDATE After getting desktop back into stable state I attempted reinstall of CherryTree from here: https://www.giuspen.net/cherrytree/ However I cannot install from usual repo or trying the binary image the desktop reverts to whirring fan. Cannot get back to working state and have to open ctd files in Geany. Don't know what that COPY operation did. It looked like it was overwriting something iteratively .. hence emergency shutdown. Other applications work fine .. so far. Only CherryTree is crippled. Looking for process cherrytree (in Stacer monitor) I see no such processes. But the fans are running at speed then they settled down. Must have damaged parts of the file system. Worst case might need fresh desktop install .. long overdue .. Ubuntu 22 > 24.

gitvectors commented 3 weeks ago

UPDATE Continuing problems. After removing cherrytree (through Synaptic) ,then reinstalling CherryTree via Synaptic, the desktop symptoms return and I have to switch to alternative OS. This blunder of mine has wreaked havoc. I do not advise trying this but in theory what might have gone wrong with this operation? Could dependencies be affected? Comes at an awkward time. But crashes always occur at worst time.

giuspen commented 3 weeks ago

Hi @gitvectors thanks for reporting I will try to reproduce. I'm surprised that you cannot start cherrytree, maybe something with your document? I suggest you give a try to the appimage (all in one binary file, including all the libraries) from https://www.giuspen.net/cherrytree/#downl try to run it from the command line so you will be able to report what is printed if it doesn't work. It may be something with your document that it tries to load at startup and hangs, the terminal output will help me understand.

gitvectors commented 3 weeks ago

Giuspen No, this experience is unrelated to document. It is simply that CherryTree does not install or run. When I did uninstall and reinstall through Synaptic the CherryTree icon was seen in left docky bar but the GUI would not open. I have (again) tried the binary a few minutes ago but by just running in Krusader, setting run permissions, then right click. I will try again in command line later but this is not a good time today for experiments. Desktop froze and on rebooting the fans are whirring away (now slowing down as I write this). My theory is that this rogue operation I tried must have damaged something outside the CherryTree environment. Possibly some dependencies. The view I saw when I tried this daft operation was an interative saving window, multiple times, continuously, causing me to emergency shut down, ruefully asking myself "what have I done?". If you attempt to reproduce I suggest that it be on a Ubuntu VM and not your desktop which might screw up your own work. I will hunt for any logs and try the command line.

gitvectors commented 3 weeks ago

Trying running AppImage via command line ..

chmod +x CherryTree-1.1.4-x86_64.AppImage ~/CHERRYTREE$ ./CherryTree-1.1.4-x86_64.AppImage [2024-08-22 19:26:33.064] [che] [debug] /home/me/.config/cherrytree/config.cfg parsed [2024-08-22 19:26:33.314] [che] [debug] autosave on 1 min Killed ~/CHERRYTREE$

And looking at cherrytree.log all I see is ..

[2024-08-22 19:26:33.064] [che] [debug] /home/me/.config/cherrytree/config.cfg parsed [2024-08-22 19:26:33.314] [che] [debug] autosave on 1 min

==============================================

POSTSCRIPT I looked at config file and it was large (60 KiB). I had backed up an earlier config file (6 KiB) some months back and switched to that and CherryTree was reinstalled via Synaptic. CherryTree launched. I will have to clear out history (recent files etc).

SORRY NOT SOLVED

Tried launching CherryTree with no config file but config is not auto created. Will not launch recent ctd docs but they open in Geany as a workaround to access content. I feel that some dependency has been overwritten by my folly.

giuspen commented 2 weeks ago

Hi @gitvectors so to recap:

gitvectors commented 2 weeks ago

It is ineed weird and I only have nightmare recollections of copying a node with subnodes to clipboard then pasting into another session of CherryTree and then flashing images of writing (somewhere over and over again), Alarm bells rang and I crashed power down. CherryTree and desktop seems to be settled now but it caused havoc. How do you suggest using command line to run the image? There is another tool strace which might be useful. I dare not try it again at a busy moment in workflow.