Help Help! Not saved work, Librecad crashed, is there a recovery file??

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

Help Help! Not saved work, Librecad crashed, is there a recovery file??

ScottBouch
Hiall,

I've been working for a while on a new drawing / unnamed document, not yet saved with a filename.

Librecad crashed - just disappeared while I was in the middle of working, before having saved it... Schoolboy error, I know..

Is there any way to recover my work??

OS:

Linux Mint 17.2 Rafaela

Librecad version:

LibreCAD
Version: master
SCM Revision: 2.0.2
Compiler: GNU GCC 4.8.2
Qt Version: 4.8.6
Compiled on: Jan 29 2014

Where in the Linux file structure would Librecad store temporary / recovery files?

Thanks, Scott
Reply | Threaded
Open this post in threaded view
|

Re: Help Help! Not saved work, Librecad crashed, is there a recovery file??

dxli
autosaving is set by default:

just search for file names with pattern:

#*.dxf
*Unamed*.dxf

several crashing bugs are fixed in 2.0.10, you may want to build from source

ScottBouch wrote
Hiall,

I've been working for a while on a new drawing / unnamed document, not yet saved with a filename.

Librecad crashed - just disappeared while I was in the middle of working, before having saved it... Schoolboy error, I know..

Is there any way to recover my work??

OS:

Linux Mint 17.2 Rafaela

Librecad version:

LibreCAD
Version: master
SCM Revision: 2.0.2
Compiler: GNU GCC 4.8.2
Qt Version: 4.8.6
Compiled on: Jan 29 2014

Where in the Linux file structure would Librecad store temporary / recovery files?

Thanks, Scott
Reply | Threaded
Open this post in threaded view
|

Re: Help Help! Not saved work, Librecad crashed, is there a recovery file??

ScottBouch
Hmm, thanks dxli..

My searches are unfortunately only returning Librecad default patterns etc... no sign of any recovery files... are recovery files definitely .dxf, I did read on another forum (in Windows) that .dxf~ would be used.. but this returned no results anyway..

It has crashed on me like this before (but I've not lost work, luckily).. I think I will look at version 2.0.10 as you suggested.

Should I give up hope and start over, or are there any other magic tricks to try?

Thanks, Scott
Reply | Threaded
Open this post in threaded view
|

Re: Help Help! Not saved work, Librecad crashed, is there a recovery file??

ravas
On some systems the unnamed backups get saved to the program's folder.
Reply | Threaded
Open this post in threaded view
|

Re: Help Help! Not saved work, Librecad crashed, is there a recovery file??

dxli
that would be bad:

I'm quite surprised to hear that we are not using standard locations: http://doc.qt.io/qt-5/qstandardpaths.html

Writing to "program folder" seems to be odd, even for a developer is running from a local build.

ravas wrote
On some systems the unnamed backups get saved to the program's folder.
Reply | Threaded
Open this post in threaded view
|

Re: Help Help! Not saved work, Librecad crashed, is there a recovery file??

ravas
I haven't really looked into it.
I just noticed an unnamed file in the OS X App, built by Creator, in my local repository.
The file's contents appeared to be dxf.
Reply | Threaded
Open this post in threaded view
|

Re: Help Help! Not saved work, Librecad crashed, is there a recovery file??

ravas
In reply to this post by dxli
It looks like RS_Graphic::save and RS_Graphic::BackupDrawingFile
need some cleaning.

BackupDrawingFile seems overly complicated, I don't really get it.
All that needs to happen is to save the open drawing, with a tweak to its name.

It also looks like this feature only considers the active drawing,
and not all open drawings.
Reply | Threaded
Open this post in threaded view
|

Re: Help Help! Not saved work, Librecad crashed, is there a recovery file??

ravas
In reply to this post by dxli
I don't see any directories added to the name in those functions.

The name is defined in RS_Document
autosaveFilename = "Unnamed";

It seems like the file is created by the copy() function in RS_Graphic::BackupDrawingFile()
but I'm not sure...
Reply | Threaded
Open this post in threaded view
|

Re: Help Help! Not saved work, Librecad crashed, is there a recovery file??

ScottBouch
This is where my program folders ended up being installed on Linux Mint (32 bit):

/usr/share/librecad

I've looked all through these folders and cat't find any backup files.

Would it have made a difference if I had started off by giving the file a filename? I'd not saved it as anything, was working from a fresh drawing.

Thanks, Scott
Reply | Threaded
Open this post in threaded view
|

Re: Help Help! Not saved work, Librecad crashed, is there a recovery file??

dxli
I will troubleshoot this one.

If there's potential data loss, it must be fixed at the highest priority.

ScottBouch wrote
This is where my program folders ended up being installed on Linux Mint (32 bit):

/usr/share/librecad

I've looked all through these folders and cat't find any backup files.

Would it have made a difference if I had started off by giving the file a filename? I'd not saved it as anything, was working from a fresh drawing.

Thanks, Scott
Reply | Threaded
Open this post in threaded view
|

Re: Help Help! Not saved work, Librecad crashed, is there a recovery file??

ravas
In reply to this post by ScottBouch
If it exists it would be named:
Unnamed

no ~
no .dxf

At least that is what I get in my LibreCAD/unix folder.
This is the same folder that has the librecad executable file.

I definitely recommend using 'Save As' directly after creating a new document.
Reply | Threaded
Open this post in threaded view
|

Re: Help Help! Not saved work, Librecad crashed, is there a recovery file??

ravas
In reply to this post by ScottBouch
The installed 2.0.9 on openSUSE saves it to my home folder.
/home/username/Unnamed
Reply | Threaded
Open this post in threaded view
|

Re: Help Help! Not saved work, Librecad crashed, is there a recovery file??

dxli
we have to clean up the portion of code, as you already found the code seems to be following a fancy spaghetti model.

Aside from that, we should:

1, use a smart folder, if none is chosen by user yet;
2, generate a message in command widget, showing the auto-save path/file;

ravas wrote
The installed 2.0.9 on openSUSE saves it to my home folder.
/home/username/Unnamed
Reply | Threaded
Open this post in threaded view
|

Re: Help Help! Not saved work, Librecad crashed, is there a recovery file??

ravas
"...the code seems to be following a fancy spaghetti model."
™?! LOL
Reply | Threaded
Open this post in threaded view
|

Re: Help Help! Not saved work, Librecad crashed, is there a recovery file??

ravas
In reply to this post by dxli
QStandardPaths::DocumentsLocation / librecad / backups ?

Would it be preferable to have all backups saved there,
instead of in the same folder as the originals?
That makes the user's folder(s) cleaner
and makes deleting obsolete backups easier.
Reply | Threaded
Open this post in threaded view
|

Re: Help Help! Not saved work, Librecad crashed, is there a recovery file??

ravas
Ideally there would be an option to set the directory;
then we could select a different drive, and it would be a legitimate backup.