Crashes when closing unsaved documents?

Post your questions, bug reports and suggestions here for TextMaker 2018 for Linux.

Moderator: SoftMaker Team

vtpoet
Posts: 63
Joined: Mon Dec 30, 2013 4:55 am

Crashes when closing unsaved documents?

Post by vtpoet » Thu Oct 19, 2017 7:56 pm

I've had Textmaker crash in the following two instances:

1.) Closing an altered document without saving changes.
2.) Closing a newly opened document without any alterations.

Reproducing these steps doesn't necessarily reproduce the bug. I haven't yet found a clear trigger.

EDIT: With other documents open, I can fairly reliably cause Textmaker to crash or lock up when opening a new document and then immediately closing it.
Last edited by vtpoet on Thu Oct 19, 2017 8:28 pm, edited 1 time in total.

vtpoet
Posts: 63
Joined: Mon Dec 30, 2013 4:55 am

Re: Crashes when closing unsaved documents?

Post by vtpoet » Thu Oct 19, 2017 8:25 pm

And this brings up a more serious issue:

1.) Textmaker fails to restore all of the documents which were open when the crash occurs. (I've just set the backup to occur every 2 minutes.)
2.) More alarmingly, even though I saved Document 'X' before the crash, Textmaker's restore point is the last "auto recover save state" and *NOT* the last *saved* version. I just lost some work (which I restored from memory) because Textmaker allowed me to save an Auto-Saved/Restored document over a more recently saved version. Textmaker should not allow this to happen. Textmaker should check to see if the auto-saved document's time-stamp is older than the saved document. If it's older, the user should be warned before saving the document.

sven-l
SoftMaker Team
SoftMaker Team
Posts: 7471
Joined: Wed Apr 09, 2008 8:26 am
Location: Nuremberg
Contact:

Re: Crashes when closing unsaved documents?

Post by sven-l » Fri Oct 20, 2017 8:14 am

I tried but could not reproduce that issue here with the current Linux beta in Linux Mint Mate 64bit:

1. Open TextMaker
2. Set autosave (Tools=>Options=>Files) to 1 minute
3. Write something and so not save manually
4. Pull the Plug=>make the hole machine crash instantly
5. Restart the machine, login and start TextMaker
=>It asks if I want to restore the file. If I say "Yes", it properly restores all I have written before the autosave.

If you find a way to reliable reproduce that issue, please let us know how. Thank you!
Sven Leßmann
SoftMaker Software GmbH

vtpoet
Posts: 63
Joined: Mon Dec 30, 2013 4:55 am

Re: Crashes when closing unsaved documents?

Post by vtpoet » Fri Oct 20, 2017 3:06 pm

Thank you Sven. As of this morning, 2018 is behaving. My system:

System: Host: ThinkPad Kernel: 4.10.0-37-generic x86_64 (64 bit) Desktop: KDE Plasma 5.10.5
Distro: Ubuntu 17.04
Machine: Device: laptop System: LENOVO product: 20HF0012US v: ThinkPad T470s
Mobo: LENOVO model: 20HF0012US v: SDK0J40697 WIN UEFI: LENOVO v: N1WET31W (1.10 ) date: 04/17/2017

Yesterday, if I opened a new document and immediately closed it, 2018 would crash every time. Works okay this morning. If I can reliably reproduce the problem, I'll write more. Is there a way to start Textmaker in Terminal?

Also, try opening a document. Change your autosave back to 6 minutes or 10. Open a new document and type a sentence. Save it. Type some more and then "killall Testmaker" -- as if 2018 had crashed.

When 2018 restarts, it should bring up the document according to the last autosave (as you wrote).

The question is this: Will 2018 allow you to save your auto-restored document overtop of the more recently saved version? My feeling is that Softmaker should warn you that the saved version is a more recent version than the recovered version.

vtpoet
Posts: 63
Joined: Mon Dec 30, 2013 4:55 am

Re: Crashes when closing unsaved documents?

Post by vtpoet » Fri Oct 20, 2017 3:16 pm

Update: 2018 is back to misbehaving. I can reproduce it at will.

1.) Open a document with a TMD extension.
2.) Open another document with a TMDX extension.
3.) Open new document and immediately close document.
4.) 2018 Crashes.

When I restart, only the new document is restored. If I close that document, 2018 crashes. If I restart 2018, open a new doc and close, 2018 crashes. Every time.

Out of curiosity, I'm going to download the Windows version and try the same steps, with the same docs, in Windows.

If you can tell me how to start 2018 in Terminal, then that might provide a clue as to what's happening.

vtpoet
Posts: 63
Joined: Mon Dec 30, 2013 4:55 am

Re: Crashes when closing unsaved documents?

Post by vtpoet » Mon Oct 23, 2017 2:10 am

Update:

Testing in Windows. Can't reproduce the bug in Windows (using the same documents). So far. Seems to be Linux related. I like the refinements in Windows. Wishing that the Linux version, when choosing Styles, would also steal the Mouse Wheel's focus.

sven-l
SoftMaker Team
SoftMaker Team
Posts: 7471
Joined: Wed Apr 09, 2008 8:26 am
Location: Nuremberg
Contact:

Re: Crashes when closing unsaved documents?

Post by sven-l » Mon Oct 23, 2017 9:29 am

vtpoet wrote:Update: 2018 is back to misbehaving. I can reproduce it at will.

1.) Open a document with a TMD extension.
2.) Open another document with a TMDX extension.
3.) Open new document and immediately close document.
4.) 2018 Crashes.

When I restart, only the new document is restored. If I close that document, 2018 crashes. If I restart 2018, open a new doc and close, 2018 crashes. Every time.

Out of curiosity, I'm going to download the Windows version and try the same steps, with the same docs, in Windows.

If you can tell me how to start 2018 in Terminal, then that might provide a clue as to what's happening.
Thank you! I will try to reproduce the crash here.
Sven Leßmann
SoftMaker Software GmbH

vtpoet
Posts: 63
Joined: Mon Dec 30, 2013 4:55 am

Re: Crashes when closing unsaved documents?

Post by vtpoet » Thu Oct 26, 2017 7:50 pm

Just installed and am using 2018_912. The issue appears to be resolved. If anything changes, will write.

vtpoet
Posts: 63
Joined: Mon Dec 30, 2013 4:55 am

Re: Crashes when closing unsaved documents?

Post by vtpoet » Thu Oct 26, 2017 9:58 pm

Update: 2018_912 just crashed again when closing one of three documents. One was TMD, one TMDX, and one was an unsaved document. When closing the TMD document, TM crashed.

However, opening a new document and immediately closing (unlike before) does not cause TM to crash.

vtpoet
Posts: 63
Joined: Mon Dec 30, 2013 4:55 am

Re: Crashes when closing unsaved documents?

Post by vtpoet » Mon Oct 30, 2017 8:35 pm

Update: Crashed again. This time it happened with one document open *.TMD. Opened a New Document, typed some information, and closed it without saving. TM crashed.

If these updates aren't helpful or unneeded, let me know.

Beyond that, am really loving the new interface and new refinements.

vtpoet
Posts: 63
Joined: Mon Dec 30, 2013 4:55 am

Re: Crashes when closing unsaved documents?

Post by vtpoet » Mon Nov 13, 2017 3:30 am

Still regularly crashes, about half the time, when closing all open documents.

vtpoet
Posts: 63
Joined: Mon Dec 30, 2013 4:55 am

Re: Crashes when closing unsaved documents?

Post by vtpoet » Tue Nov 14, 2017 10:45 pm

Just downloaded and tested 917-01.

1.) Opened tmd document.
2.) Opened secondary new document.
3.) Closed new document without making changes or saving.
4.) Textmaker crashes (taking the first document with it).

sven-l
SoftMaker Team
SoftMaker Team
Posts: 7471
Joined: Wed Apr 09, 2008 8:26 am
Location: Nuremberg
Contact:

Re: Crashes when closing unsaved documents?

Post by sven-l » Wed Nov 15, 2017 11:46 am

Could you please send both files to us (forum(at)softmaker.com)? I would like to try it with your files. Thank you!
Sven Leßmann
SoftMaker Software GmbH

vtpoet
Posts: 63
Joined: Mon Dec 30, 2013 4:55 am

Re: Crashes when closing unsaved documents?

Post by vtpoet » Wed Nov 15, 2017 3:18 pm

I'm a little confused by your request. The "second" file doesn't exist. It was simply a "new" file (ctrl+n) that I opened and immediately closed without saving?

vtpoet
Posts: 63
Joined: Mon Dec 30, 2013 4:55 am

Re: Crashes when closing unsaved documents?

Post by vtpoet » Wed Nov 15, 2017 8:33 pm

I haven't gotten an answer so I assume you made a mistake in your request.

At any rate, I've attached a file created in 917-01.

1.) CTRL+N Creates blank document using my ebook template.
2.) Paste contents in to document.
3.) Change Style to "Standard.
4.) Save File.
5.) Close file.

917-01 Crashes (Segfaults?) on close.

Second attempt at reproducing bug.

1.) Open Lorem Ipsem.
2.) Create New Document and close without saving.
3.) Repeated two or three times.
4.) Close Lorem Ipsem.

917-01 Crashes.

So... this bug is reproducible. Not the same way each time, but similar enough.

I can reproduce this crash on Linux Mint 16.04, with all updates, and on Kubuntu 17.10, with all updates.
Attachments
Lorem ipsum dolor sit amet.tmd
(68.78 KiB) Downloaded 6 times

Post Reply

Return to “Beta: TextMaker 2018 for Linux”