problem saving/saveas

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

problem saving/saveas

friendlyfrank41
dxf file appears to be currupt as loads ok but save/saveas fails.
any saved file fails to load program hangs

other files not effected.

not machine specific  so  presume dxf  file is currupt

How can I recover?  repair?
Reply | Threaded
Open this post in threaded view
|

Re: problem saving/saveas

LordOfBikes
Administrator
It's hard to assume what's happening with your dxf files, without corpus delicti.

Please provide more details!
Exact LibreCAD version and OS.
And please attach at least one of the corrupt dxf files (use More->Upload File on top of post editor).

Armin
investing less than half an hour into Search function can save hours or days of waiting for a solution
Reply | Threaded
Open this post in threaded view
|

Re: problem saving/saveas

friendlyfrank41
librecad Simplex_boiler.dxf
Version: master
SCM Revision: 2.0.4
Compiler: GNU GCC 4.9.0
Qt Version: 4.8.6
Compiled on: Jun 24 2014
Debian GNU/Linux 8 (jessie) 64-bit

file works ok on my debian linuxcnc xfc4.8 machine
librecad version 1.0.2 april 16 2012
Simplex_boiler.dxf

hope this helps
Reply | Threaded
Open this post in threaded view
|

Re: problem saving/saveas

Rallaz
please be more specific.

The attached file (yes, both links are de same) are created by a very old LibreCAD version (probably 1.0.2), but opens ok in LibreCAD 2.0.7

In some old versions LibreCAD fails to open files from file explorer, test this:
1 Open LibreCAD
2 Goto menu "file->open" navigate to the directory and select the file
3 Reply in this thread what LC version are used and the result.

In the file directory you can find files like:
#Simplex_boiler.dxf
and
Simplex_boiler.dxf~

both are backups
Reply | Threaded
Open this post in threaded view
|

Re: problem saving/saveas

friendlyfrank41
loads ok but fails to save /saveas on lc2.0.4
the original
Simplex_boiler.dxf
the saveas is small
Simplex_boiler2.dxf
and LC crashes out
Reply | Threaded
Open this post in threaded view
|

Re: problem saving/saveas

Rallaz
Ok, you have found a bug present since 4 Dec 2011

The crash is produced by 2 empty polylines. this "bad feature" permited in old code / dxf lib are not permited in version 2, but bad checked.
Added a patch in master branch solving this issue "commit d21cb572a0"

Solution only for attached dxf:
open the dxf with a text editor and remove lines 56761 to 56800 included.

For all files:
Wait for a new ubuntu daily buid (see http://librecad.org/cms/home/installation/linux.html)

And please, open a bug report in Debian (if you can, of course)
https://www.debian.org/Bugs/Reporting
Attached the patch to solve this important bug.

emptytpline.patch

Cheers & thanks
Rallaz
Reply | Threaded
Open this post in threaded view
|

Re: problem saving/saveas

friendlyfrank41
Many thanks,  
have attempted to log a bug report

Kind regards