ps2dxf filter segfaults saving copy as autocad file

Bug #407215 reported by David Rankin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Undecided
Unassigned

Bug Description

Inkscape 0.46, openSuSE 11.0, kde 4.3 rc3

After saving a simple test drawing in native inkscape format, I needed to save a copy in autocad dxf format to confirm I could provide finished drawings to others. The simple drawing contained only 2 horizontal lines and a bit of text. The error is:

/usr/share/inkscape/extensions/ps2dxf.sh: line 5: 9252 Segmentation fault pstoedit -f dxf "$1" "${TEMPFILENAME}" > /dev/null 2>&1

segfaults are never good...

Tags: dxf exporting
Revision history for this message
David Rankin (drankinatty) wrote :
Revision history for this message
David Rankin (drankinatty) wrote :
Revision history for this message
David Rankin (drankinatty) wrote :

Hmm...

    I built 0.47 from svn to see if it was fixed, but to my surprise, there is *no* ability to export to Autocad .dxf format in 0.47. The only way to save to Autocad was through a .plt plotter file. The only other .dxf listed was likewise a plotter file. I don't think that is the same as Autocad .dxf, is it? If not, will 0.47 final have the Autocad export to .dxf listed? If not, can it be added. It's important to those that need it. Thanks.

Revision history for this message
Alvin Penner (apenner) wrote :

attached is a .DXF version of the file. This was done using the output option "Desktop Cutting Plotter (*.DXF)". The dxf file is viewable in AutoDesk Voloview Express.

before sending the output, the menu option Path->Object to Path was used to convert the text to a path.

Revision history for this message
su_v (suv-lp) wrote :

@David - your initial problem seems to be with pstoedit. Could you try to run pstoedit on the command line with a previously exported Postscript file from Inkscape?

The second issue with the missing export option for 'AutoCAD DXF (*.dxf)' in 0.47 SVN builds is due to changes in the internal extension system. Applying the attached patch restores the export extension, but I still could not get pstoedit to produce a readable DXF file on my system (OS X 10.5.7, MacPorts 1.710, pstoedit 3.45, ghostscript 8.64) - neither directly run nor via Inkscape extension.

Caveat: I'm not an Inkscape developer and so far did not report the missing 'org.inkscape.output.ps' internal extension in the current trunk - any comments / reviews of the attached patch would be highly appreciated.

Revision history for this message
su_v (suv-lp) wrote :

@David - did you figure out if pstoedit segfaults on your system with other files as well or if it gets bad input from Inkscape? It would be helpful to know if something else besides the inx file (committed in SVN rev. 21967) needs to be fixed in Inkscape.

Alvins explanation of the difference between the two *.dxf output formats available in 0.46+devel and 0.47pre might be of interest to you: <http://article.gmane.org/gmane.comp.graphics.inkscape.devel/30861>

Changed in inkscape:
status: New → Incomplete
su_v (suv-lp)
tags: added: dxf exporting
Revision history for this message
su_v (suv-lp) wrote :

Closing due to lack of feedback.

The error is with pstoedit, not inkscape: e.g.
<https://bugzilla.novell.com/show_bug.cgi?id=622977>
<https://bugs.launchpad.net/ubuntu/+source/pstoedit/+bug/616027>

Changed in inkscape:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.