- Status Closed
- Percent Complete
- Task Type Bug Report
- Category QCAD (main)
-
Assigned To
Andrew - Operating System All
- Severity Low
- Priority Very Low
- Reported Version 3.1.0 Beta 1
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
Attached to Project: QCAD Bugtracker
Opened by Peter - 03.06.2013
Last edited by Andrew - 14.06.2013
Opened by Peter - 03.06.2013
Last edited by Andrew - 14.06.2013
FS#818 - SVG Exporter crashes on polyline
Attached sample drawing, that kills QCAD 3.1 beta when exporting to SVG.
The crash happens in line 38 of SvgExporterPG in function SvgExporterPG.prototype.exportPolyline
var pp = new RPainterPath(polyline.toPainterPath());
Thanks. What platform are you on? Are there any special settings you are using other than "Preserve geometry"?
I'm trying to reproduce the problem here without success so far.
Thank You Andrew, I now did unpack the distribution in a new directory and renamed the configuration file.
Indeed, here it is enough to request PG from extended SVG export to trigger the segfault.
I fire up ./qcad, draw a polyline with two segments, call the SVG export, tick PG, Save, crash.
I now installed a 32bit valgrind, perhaps its output gives a clue? System is Ubuntu 12.04.
Not reproducible here with a virgin Ubuntu 12.04 64bit, packages ia32-lib and ia32-lib-multiarch installed.
Hmm, puzzling that. I only had the required dependencies installed, but installing all of ia32-lib-multiarch does not help. I now tried on another system, that is conservatively managed and eg. does not pull "precise-proposed" sources, which might spoil the fun. Still "./dwg2svg -f -g /tmp/poly.dxf" ends with a segfault in 3.1beta, while works in 3.0.0.
In search of what change in the envirnment might cause the failure, only idea now, is that my systems both are 12.04.2, i.e. fully updated, and use the "precise-updates" repo, which is a recommended practice for ubuntu users, and which brought an update to all the qt4* and many *:i386 packages...
The more puzzling: Yesterday I installed (unpacked the zip) qcad3.1 pro beta on a windows 7 system. There is also qcad3.0.0 on that system, but as far as I can tell, qcad3.1 will not use any of the settings from 3.0.
So I started the application, drew some three or four segments polyline and exported to svg from the button, then again from the menu and ticked "preserve gemoetry" and instantly was greeted with a box saying "the application does not work anymore, windows is looking into it".
I suppose its the same fault as on ubuntu. Today I may try on another, even cleaner windows 7 box.
I was finally able to reproduce this under a Windows XP installation. The problem is likely fixed in QCAD 3.1. Please let me know if not.
Thank You Andrew, I loaded the 3.1 release and found SVG-PG exporting of polylines working.