- Status Closed
- Percent Complete
- Task Type Bug Report
- Category QCAD (main)
-
Assigned To
Andrew - Operating System macOS (All)
- Severity High
- Priority Very Low
- Reported Version 3.7.4
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
Opened by Daniel Duke - 01.12.2014
Last edited by Andrew - 02.12.2014
FS#1135 - Minimally reproducible segfault when moving a leader into a different layer (OS X 10.9.5)
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
02.12.2014 21:39
Reason for closing: Fixed
Additional comments about closing:
Very odd bug with QList<double> in
RShapeExporter. Replaced with
std::vector for now.
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.
I can reproduce this now with leaders having more than one segment and use a line pattern.