HELP needing regarding a dxf I can not read anymore

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

HELP needing regarding a dxf I can not read anymore

seragonzal
Ok, I being using LibreCad for some months now. Some weeks ago I was working in a dxf that today, I can not read anymore. Really weird since it is only 30k bytes and perhaps a not so simple polygon.

Can someone help in open it and tell me what I was doing wrong ?

Huge thanks to who can help me and regards to the hard working developers!

Hotbed.7z

My version is:

Version: 2.1.3
Compiler: GNU GCC 4.9.1
Compiled on: Sep 23 2016
Qt Version: 5.4.1
Boost Version: 1.60.0
System: Windows
Reply | Threaded
Open this post in threaded view
|

Re: HELP needing regarding a dxf I can not read anymore

ravas
For me it crashes on line 578 of qvector.h
Before that it's on line 70 of rs_painter.cpp in RS_Painter::createArc
LibreCAD seems to be making arcs with polylines for some reason...
so I made a script and found the problem LWPOLYLINE,
which was in the Corte layer.

(366.0, 270.0, 0, 0, 0)
(330.0, 270.0, 0, 0, 0)
(60.0, 270.0, 0, 0, 0)
(60.0, 270.0, 0, 0, 0)
(34.0, 270.0, 0, 0, 0.414213562373095)
(30.0, 266.0, 0, 0, 0)
(30.0, 260.0, 0, 0, 0)
(30.0, 260.0, 0, 0, 0)
(30.0, 250.0, 0, 0, 0)
(30.0, -66.0, 0, 0, 0.414213562373095)
(34.0, -70.0, 0, 0, 0)
(366.0, -70.0, 0, 0, 0.414213562373095)
(370.0, -66.0, 0, 0, 0)
(350.0, 246.0, 0, 0, 1.633177872838384e+16)
(370.0, 266.0, 0, 0, 0.414213562373095)

My guess would be that 1.633177872838384e+16 is the problem.

I've removed it for you.

Hotbed_4.dxf

Reply | Threaded
Open this post in threaded view
|

Re: HELP needing regarding a dxf I can not read anymore

seragonzal
Tremendous help!...thank you a lot.

Besides notes: To tell you the truth I don't know what I did wrong, I mean, I now had replaced those poly lines with simple lines. In the very beginning I was going to use curves but then I changed my mind.

Nevertheless I can not say I trust LibreCAD too much here since I think I passed all the points correctly. In fact I don't remember the software telling me something or reporting an issue. I'm guessing a but input with the mouse? Really strange!

Thanks again for taking the time to examine were the problem was.

Reply | Threaded
Open this post in threaded view
|

Re: HELP needing regarding a dxf I can not read anymore

ravas
 > Nevertheless I can not say I trust LibreCAD too much here since I think I passed all the points correctly.

It's definitely an issue with the code.
Assuming it was that coordinate I mentioned,
the code would ideally prevent that from being created,
and at the least it would discard it when loading, instead of crashing.
Reply | Threaded
Open this post in threaded view
|

Re: HELP needing regarding a dxf I can not read anymore

seragonzal
Should I post an "issue" on sourceforge ?

regards.
Reply | Threaded
Open this post in threaded view
|

Re: HELP needing regarding a dxf I can not read anymore

ravas