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

Mermaid Graph freezes the app, making data unaccesible and unrecoverable #5455

Closed
lantob opened this issue Sep 13, 2021 · 5 comments
Closed
Labels
bug It's a bug

Comments

@lantob
Copy link

lantob commented Sep 13, 2021

This is loosely related to #5295 (I am terribly sorry if this is not a real issue)

Environment

Joplin version: 2.3.5
Platform: Linux 64b
OS specifics: manjaro linux

Steps to reproduce

  1. I created a git graph using mermaid (see below for code), supposedly with false intendation and no closing brackets.
  2. The App crashed.
  3. The app is rendered completly unresponsive upon restart.

I tried spamming CTRL+E to edit the markdown in an external editor, but this didnt work. The opened .md is indeed empty, Joplin is still unresponsive and frozen after restart. It is only killable through console via sudo kill.

I have also tried to install the cli version instead, but apparently they don't share directories. I have also tried to simply copy the data, but the $HOME/.config/joplin-desktop does not contain any .md files. I did update the app-image through the website, since I saw the other issue being resolved via a new version, this did not help though.

I can't provide logs, since I can't enable debugging.

The mermaid code currently showing is

```mermaid
gitGraph:
commit
branch newbranch
checkout newbranch
commit
commit
commit
checkout Pu
commit
commit
@lantob lantob added the bug It's a bug label Sep 13, 2021
@laurent22
Copy link
Owner

In which way is it loosely related? That looks like exactly the same issue?

@lantob
Copy link
Author

lantob commented Sep 13, 2021

The other guy could at least try out different code in a new instance. I cannot access Joplin at all. Sorry, if this a duplicate, though.

Edit: To be clear, I have not found a single way to stop Joplin from freezing upon start and haven't been able to do so for about a week. I have now lost my data through trying to find a way and messed up. #5295 is fixed, but at least for me I couldn't unbreak the app. Didn't see a workaround for that in the old threat.

@laurent22
Copy link
Owner

Ok I see, it's the same issue although in your case it freezes the app before you can do anything. This is quite annoying, we've tried to disable this broken gitGraph extension but Mermaid doesn't have this option.

Ideally you should start in safe mode but I realise now there's no easy way to do that if the app freezes (as opposed to crashing). Otherwise, if you have the cli app, you could do that:

  • Make sure the desktop app is closed (kill the process to make sure)
  • Start the cli app using joplin --profile /path/to/user/.config/joplin-desktop
  • Delete the problem note
  • Close the cli app

Now re-open the desktop app and it should work. If not let me know.

@lantob
Copy link
Author

lantob commented Sep 14, 2021

This indeed makes it able to re-access the data. Even though I tried it in a different enviroment, this might help someone else finding themselves stuck.

@lantob lantob closed this as completed Sep 14, 2021
@shelllee
Copy link

joplin will be freezesed immediately when opened if the md file selected last time contains mermaid graph. for this situation, one way is to edit the sqlite database's (in /path/to/user/.config/joplin-desktop) setting table for it's activeFolderId and clientId target value, which could be found in folders and notes table.

image

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

No branches or pull requests

3 participants