QCAD

QCAD - 2D CAD System.

Click here for a documentation of the DokuWiki formatting syntax that can be used in reports

Please search for existing tasks (also closed ones) before opening a new task.

Please make sure that you are using the latest Version of QCAD before posting a bug (menu Help > Check for Updates)

Tasklist

FS#1135 - Minimally reproducible segfault when moving a leader into a different layer (OS X 10.9.5)

Attached to Project: QCAD
Opened by Daniel Duke (djorlando24) - Tuesday, 02 December 2014, 00:53 GMT+2
Last edited by Andrew (andrew) - Tuesday, 02 December 2014, 22:39 GMT+2
Task Type Bug Report
Category QCAD (main)
Status Closed
Assigned To Andrew (andrew)
Operating System Mac OS X (All)
Severity High
Priority Normal
Reported Version 3.7.4
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hi,

I have a nice minimally reproducible bug on QCAD v3.7.4 on Mac OS X 10.9.5 (Mavericks).
QCAD will segfault whenever I take the following steps:

1. Open a new document
2. Create a leader object (D,E) in the default ‘0’ layer. Leave its style and color defined by the layer, as per default.
3. Create a new layer, with a non-default line style or color. The line weight & layer name do not matter.
4. Select the leader object previously create
5. Open the property editor and assign the object to the new layer just created.
Every time, this will cause QCAD to segfault on my machine. The crash report is attached.

Another minimally reproducible path to the same error is to do the following:
1. Open a new document
2. Create a leader object (D,E) in the default ‘0’ layer. Give it a custom color and line style that over-ride the layer defaults.
3. Create a new layer, with a non-default line style or color. The line weight & layer name do not matter.
4. Select the leader object previously created.
5. Open the property editor and assign the object to the new layer just created.
6. Still in the property editor, switch the leader object’s color back to ‘By Layer’.
The same segfault will occur.

It seems that the crash is triggered by the action of changing a leader object’s color (and/or line style) in a manner that requires the object to check the containing layer’s default color and style. You can achieve this by either changing the object’s layer, or switching the color and style from being custom defined to ‘by layer’, as long as the selection requires the line’s appearance to change.

Any thoughts? My machine’s crash report is attached.

Dan

This task depends upon

Closed by  Andrew (andrew)
Tuesday, 02 December 2014, 22:39 GMT+2
Reason for closing:  Fixed
Additional comments about closing:  Very odd bug with QList<double> in RShapeExporter. Replaced with std::vector for now.
Comment by Andrew (andrew) - Tuesday, 02 December 2014, 10:35 GMT+2

Thanks for your report. I wasn't able to reproduce this here so far (Mac OS X 10.9.5, QCAD 3.7.4).
For completeness, can you please indicate if you are using the free QCAD Community Edition or QCAD Professional? Thanks.

Comment by Andrew (andrew) - Tuesday, 02 December 2014, 11:32 GMT+2

I can reproduce this now with leaders having more than one segment and use a line pattern.

Loading...