Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gitvectors opened this issue Aug 20, 2024 · 7 comments

Comments

@gitvectors
Copy link

gitvectors commented Aug 20, 2024

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
Copy link
Author

gitvectors commented Aug 20, 2024

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
Copy link
Author

gitvectors commented Aug 21, 2024

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
Copy link
Owner

giuspen commented Aug 21, 2024

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
Copy link
Author

gitvectors commented Aug 22, 2024

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
Copy link
Author

gitvectors commented Aug 22, 2024

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
Copy link
Owner

giuspen commented Aug 25, 2024

Hi @gitvectors so to recap:

  • starting cherrytree without config works and it opens an empty window
  • you end up again in the freezing issue when you try to re-open your (.ctd) cherrytree document, correct?
    Would it be possible to share with me privately the document that when you open it freezes your PC?
    But then you write that if the config is missing it is not auto created, which is very weird, is cherrytree writing something in the terminal output when that happens? (stick with running from the terminal for debugging purposes)

@gitvectors
Copy link
Author

gitvectors commented Aug 26, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants