-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
A note sometimes get erased after saving from external text editor (Typora) #1854
Comments
This is unfortunately an issue that comes up now and then and it's hard to fix since I can't replicate it. If you could provide a log file while this bug is happening that could help. To do so could you add a file "flags.txt" in the config directory with the following content? Then use the app as normal and when this bug happen, please copy the log.txt file and send it over. From that it might be possible to see what action leads to this bug. |
Oops, somehow I missed the notion, that the log should already be saved in a file:) When I posted the bug report I had already performed the steps from the instructions in your last message. Then I thought that I should copy log from console, which was empty. So, today I found the log from my first attempt (when I posted the bug with screenshot). I'm not sure about the actual time I started the debug log, but I think it should be later than 18.00 or so. Let me know if I could provide any additional info. |
Unfortunately there are too many events to find something in it with an approximate time. If the blanked note happens again, please note the exact time (to the second if possible) and send the log. |
i've been having this issue as well. Similar to what @lucker999 posted, I also don't know the guaranteed way to reproduce this. However, i think i was able to narrow this down to Scheduling sync operation In log attached, the issue happened at 2019-09-29 20:45, then 2019-09-29 20:58:37. I was watching the log when the 20:58 event happened.
EnvironmentJoplin version: Joplin 1.0.161 (prod, linux) Process Done to Reproduce Bug
|
I think i found a semi-reliable way to reproduce this. This seems to happen when i manually trigger a sync when the system scheduled sync happens. In the log attached, I was able to reproduce this at 2019-09-29 21:33:18 and 2019-09-29 21:45:33 Steps To Reproduce
I tried this 4 times. was successful 2/4 times in reproducing this bug. |
Additionally I also noticed, that the larger a note I edited then more probably this bug occurs. On a huge note with many code snippets and TOC and so on this happens far more often than on a tiny note with only several lines plain text. Although I never tried to manually sync when editing a note in an external editor. Eventually I have to admit that recent updates of Joplin client for windows did make a difference in the behavior and, probably, exterminated the bug. Since the logic behind the acquiring changes from an external editor was changed (now I do not need to save a note manually, Joplin somehow pulls changes itself and fast instantly) I can not say that I encountered the bug any more. I do less notes recently, but from what I experience, I have a feeling that it might be gone. Anyway, i'll keep you posted on my encounters. |
@rhklite, thanks for providing the steps to replicate. As mentioned earlier, could you try to run the app with the |
I didn't explicitly try to replicate this bug, I just caught by chance. bug happened around 2019-10-02 14:04:27 |
bug happened between 2019-10-02 14:07:28 to 2019-10-02 14:08:00 |
I updated joplin version. The two bug instance i mentioned are on Joplin 1.0.169 (prod, linux) |
caught another instance of this bug; happened at 2019-10-03 17:44:27 |
I have been seeing this issue also this week. Haven't been able to reproduce by steps above, but it just happened at 2019-10-09 12:52:12 in the attached log file. EnvironmentJoplin version: Joplin 1.0.169 (prod, linux) |
I've finally managed to replicate this bug consistently and fixed it. It's some strange thing that Typora is doing that results in an empty file for a very short period of time (it's probably clearing the file and adding the new content to it) and if Joplin reads it at that very moment, it will be get empty content, and save an empty note. The fix will be in the next version so please give it a try then and let me know if it works. |
…the note in some hard to replicate cases
…d when using certain external editors (in particular Typora)
First of all I would like to say a ton of thanks for the amazingly awesome cross-platform not taking app. There are a large room for further improvement and growth but (1) it really ready to use, (2) the development is going in the right direction (although slow, but I understand) and (3) but definitely not least, I really can't leave without this app anymore! I set it up with my nextcloud and completely forget any doubts either type down sensitive info into a note or not. Sincerely and wholeheartedly Thank you!
Environment
Joplin version: 1.0.165 (prod, win32)
Platform: Windows 8.1
Steps To Reproduce
Frankly and seriously, this happens SOMETIMES. I would say about each 10th or 15th time I save a note, and sometimes no a single time in a day, but it is tremendously annoying, because after I first time lost the collected in months info I ALWAYS must check whether the info in the note is in place or not after saving. 'cause if I close the external editor and info gone, ... well... you know... The only thing to make it back again is to save the note from external editor once again.
The note after that bug looks like on the screenshot.
Describe what you expected to happen:
I сouldn't be more happy if after this post two thing will be in my life with joplin:
Logfile
I tried to log all this, but console was totally empty, nothing appered in it, sorry.
The text was updated successfully, but these errors were encountered: