Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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 |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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
... [show rest of quote]
|
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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 |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
On some systems the unnamed backups get saved to the program's folder.
|
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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.
|
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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... |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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 |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
I will troubleshoot this one.
If there's potential data loss, it must be fixed at the highest priority.
|
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
In reply to this post by ScottBouch
The installed 2.0.9 on openSUSE saves it to my home folder.
/home/username/Unnamed |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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;
|
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
"...the code seems to be following a fancy spaghetti model."
™?! LOL |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Ideally there would be an option to set the directory;
then we could select a different drive, and it would be a legitimate backup. |
Free forum by Nabble | Edit this page |