trilium icon indicating copy to clipboard operation
trilium copied to clipboard

(Bug report) The edited content was not saved correctly

Open Joackk opened this issue 7 months ago • 17 comments

Trilium Version

0.62.4

What operating system are you using?

Windows

What is your setup?

Local + server sync

Operating System Version

Windows10

Description

I've encountered this situation several times. I create a new note. Then write the content I need to record in it. But when I switch to another page or refresh, I find that the content of the note is not saved correctly. For example, I wrote ten paragraphs, but only the first two paragraphs were recorded, and the rest of the content was not saved. I also didn't encounter any error prompts. I want to know what caused this? Because of this problem, I can't reproduce it correctly either. If possible, please tell me what part of the log I should provide to determine the problem the next time I encounter it?

Error logs

No response

Joackk avatar Jan 05 '24 02:01 Joackk

I encountered this problem using the desktop client, but other users have reported encountering the same problem on the web version.

Joackk avatar Jan 05 '24 03:01 Joackk

I have seen this before on the web client. If the web client sits idle for a long time, the user may not be logged in, even though the page is loaded and The user is able to compose text, But when trying to save the text, it will fail because there is no connection to the server. For me, usually logging back in works.

meichthys avatar Jan 05 '24 03:01 meichthys

I have seen this before on the web client. If the web client sits idle for a long time, the user may not be logged in, even though the page is loaded and The user is able to compose text, But when trying to save the text, it will fail because there is no connection to the server. For me, usually logging back in works.

I have been using the local client, so there should be no login issues.

Joackk avatar Jan 05 '24 03:01 Joackk

I've seen this too with the Windows 0.62.3 client, connected to a 0.62.4 server.

hulmgulm avatar Jan 05 '24 15:01 hulmgulm

It appears to me too, when I use the linux 0.60, and an older version too

chncho avatar Jan 06 '24 14:01 chncho

@hulmgulm @chncho It seems that everyone has encountered this problem before. Can you reproduce it? Or there may be a log that records a portion of the time

Joackk avatar Jan 07 '24 02:01 Joackk

Historically these issues were caused by CKEditor crashing (silently) and the not producing "update" events.

However, in recent versions there's a "watchdog" which should detect this crash and re-initialize CKEditor transparently. If you have a reproduction case, please send it to me.

zadam avatar Jan 07 '24 22:01 zadam

Historically these issues were caused by CKEditor crashing (silently) and the not producing "update" events.

However, in recent versions there's a "watchdog" which should detect this crash and re-initialize CKEditor transparently. If you have a reproduction case, please send it to me.

What do photocopies refer to? Watchdog? Or the lost notes?

Joackk avatar Jan 08 '24 01:01 Joackk

I would love to send you a reproduction case, but I cannot reproduce it.

It happened to me a few times when I was playing around with image creation AIs. I pasted the prompt into the document and the generated image (1024x1024px) after the creation. Then adjusted the prompt, pasted it into the document, generate the image, paste the image and so on.

hulmgulm avatar Jan 08 '24 04:01 hulmgulm

I am also unable to reproduce this issue. It usually appears when I am not aware of it, and only when I go back to look at other cases do I realize that the content has not been saved. But then he was able to save it normally again. And no error prompts or other information were encountered. It makes it difficult for me to determine when I will encounter it

Joackk avatar Jan 08 '24 05:01 Joackk

I've also encountered the issue several times with local client (both linux and windows) several times since April 2023 (first time I noticed it). It is hard to reproduce, since it happens randomly. There is no apparent signs that the note is not being recorded, just going back and forth different notes reset it to a previous state with no indications in note revisions. For a while, I had suspicions with the sync to the server, since when disabled, the issue never occured. I am now used to keep sync disabled, and acticate it once in a while in the settings to save db.

Potjoe-97 avatar Jan 10 '24 22:01 Potjoe-97

I've also encountered the issue several times with local client (both linux and windows) several times since April 2023 (first time I noticed it). It is hard to reproduce, since it happens randomly. There is no apparent signs that the note is not being recorded, just going back and forth different notes reset it to a previous state with no indications in note revisions. For a while, I had suspicions with the sync to the server, since when disabled, the issue never occured. I am now used to keep sync disabled, and acticate it once in a while in the settings to save db.

I am the same, only occasionally synchronizing, but I also encounter this problem when I am not synchronized. So it may not be a synchronization issue

Joackk avatar Jan 11 '24 01:01 Joackk

I had a similar problem that I traced back to a broken custom widget I was exerimenting with at some point. It stopped happening after I removed "#widget" attribute from it

Lightirius avatar Jan 30 '24 20:01 Lightirius

@Lightirius Which widget is it? I also installed some plugins, but there are no error messages

Joackk avatar Jan 31 '24 02:01 Joackk

@Joackk It was my own. I was experimenting with writing a widget, left it enabled in a broken state and forgot about it. It was never finished and publicly available.

Found out that it's still enabled because of errors in the Dev Tools console

Lightirius avatar Jan 31 '24 05:01 Lightirius

@Joackk It was my own. I was experimenting with writing a widget, left it enabled in a broken state and forgot about it. It was never finished and publicly available.

Found out that it's still enabled because of errors in the Dev Tools console

I see, maybe it has nothing to do with the plugin, I have not been receiving the plugin error, but sometimes I have encountered this problem

Joackk avatar Jan 31 '24 05:01 Joackk

I have encountered this problem whereas I do not use any plugin.

Potjoe-97 avatar Jan 31 '24 11:01 Potjoe-97

As of now, I'm experiencing this troublesome issue in both the historical version and the current latest version. Since there are no alerts or errors, it's hard for him to be caught wondering if there are any unsaved notes of mine

Joackk avatar Mar 18 '24 02:03 Joackk

I think I know the cause of the problem, which seems to be an auto-read-only problem. When a newly created note is edited for the first time, if it exceeds the auto-read-only size, subsequent edits will not take effect. I haven't had this problem in a while after I made the read-only notes setting very large

Joackk avatar Apr 08 '24 06:04 Joackk