PreviousNextTracker indexSee it online !

(206/211) 4086 - One of open files empty after system crash

I'm using jEdit for a long time and always have a lot of open files. Once in a while when the editor or the OS crashes I needed to restore my Untitled- files by hand. Since the latest jEdit version this isn't necessary any more which is great. But with this latest version I now lost a file for the second time after a system crash. After restarting the system and starting jEdit again one of my files is empty. The first time this happened was about one month ago. I've had crashes before and after that and considered this a one time exceptional failure which might not be jEdit related. But now it happened again. With the exact same file. The first one in the list of all my opened files. And I didn't notice any other program or file being broken on my system since the previous problem (or even before that). It feels like something has changed in the way jEdit is saving files which makes it less resilient for system crashes.

I'm running jEdit 5.5.0 server mode, using Ubuntu java 11.0.4 on Xubuntu within VirtualBox on Windows. Problems happened when VirtualBox crashed. I wasn't actively using jEdit at that moment. I'm not sure whether I had saved the file that was empty after opening jEdit again. It probably wasn't. For another file which also wasn't saved I've received a message that jEdit would open the changed file and I should check whether my latest changes are present.

In my settings I have Two-stage save enabled. Max number of backups is 0. I now changed it to 10. :-)

I think it will be a bit difficult to reproduce. I might give it a try but I don't have much time at the moment. I wanted to at least report the problem. Maybe the person who changed something in the way files are saved (as something changed for Untitled- files) has an idea what might happen in rare situations?

Submitted jacodg - 2019-11-19 22:02:20.023000 Assigned
Priority 5 Labels
Status open Group normal bug
Resolution None

Comments

2019-11-21 14:11:23.267000
ezust

For the "another file which also wasn't saved, I received a message that jEit could open the changed file and you can check..."
This is autosave in action. It periodically saves (according to the option under saving/backup options) the changes you made since the last time you saved, in the event of a crash.
If you open the "changed' file, you can save it right after that and get the changes that were autosaved. And if you do not, then you could lose some of your recent changes since that crash. You cam change the frequency to something less than 30 seconds to make it autosave more often.

2019-11-21 14:12:04.558000
ezust

are you reoprting an issue about untitled buffers or buffers that have a proper filename?

2019-12-07 17:12:31.326000
jacodg

It's for the buffers that have a proper name. For Untitled buffers things have improved since one of the latest versions of jEdit as jEdit will now reopen de Untitled buffers when starting again after a crash. :)

2020-02-13 10:25:30.330000
newagner

I can confirm this. I had an older notebook which randomly crashed.
It did happen only once when I had three files with unsaved changes open.
All of them had their content ereased. I opened them also with a different editor to double check.
Fortunately I already had backups set to 5, so just the unsaved changes got lost.

This was on Linux mint with jEdit 5.5.0

2020-02-13 13:19:32.611000
ezust

Was 2 stage save disabled for both people who have this problem?

2020-02-13 14:12:01.081000
newagner

Hi Alan

I have 2 stage save enabled
a Backup directory set in my home directory
max number of backups to 5




On 2/13/20 2:19 PM, Alan Ezust wrote:
> Was 2 stage save disabled for both people who have this problem?
>
>
> ---
>
> ** [bugs:#4086] One of open files empty after system crash**
>
> **Status:** open
> **Group:** normal bug
> **Created:** Tue Nov 19, 2019 10:02 PM UTC by Jaco de Groot
> **Last Updated:** Thu Feb 13, 2020 10:25 AM UTC
> **Owner:** nobody
>
>
> I'm using jEdit for a long time and always have a lot of open files. Once in a while when the editor or the OS crashes I needed to restore my Untitled- files by hand. Since the latest jEdit version this isn't necessary any more which is great. But with this latest version I now lost a file for the second time after a system crash. After restarting the system and starting jEdit again one of my files is empty. The first time this happened was about one month ago. I've had crashes before and after that and considered this a one time exceptional failure which might not be jEdit related. But now it happened again. With the exact same file. The first one in the list of all my opened files. And I didn't notice any other program or file being broken on my system since the previous problem (or even before that). It feels like something has changed in the way jEdit is saving files which makes it less resilient for system crashes.
>
> I'm running jEdit 5.5.0 server mode, using Ubuntu java 11.0.4 on Xubuntu within VirtualBox on Windows. Problems happened when VirtualBox crashed. I wasn't actively using jEdit at that moment. I'm not sure whether I had saved the file that was empty after opening jEdit again. It probably wasn't. For another file which also wasn't saved I've received a message that jEdit would open the changed file and I should check whether my latest changes are present.
>
> In my settings I have Two-stage save enabled. Max number of backups is 0. I now changed it to 10. :-)
>
> I think it will be a bit difficult to reproduce. I might give it a try but I don't have much time at the moment. I wanted to at least report the problem. Maybe the person who changed something in the way files are saved (as something changed for Untitled- files) has an idea what might happen in rare situations?
>
>
> ---
>
> Sent from sourceforge.net because you indicated interest in <https://sourceforge.net/p/jedit/bugs/4086/>
>
>
>
> To unsubscribe from further messages, please visit <https://sourceforge.net/auth/subscriptions/>
>

2020-05-31 09:19:18.170000
jacodg

I also have "Two-stage save" enabled (as I reported in my initial description). Sorry for the late response.