← All bug reports

FS#935Isometric projection: crash when projecting complex texts

Type
Bug
Status
Closed
Resolution
Fixed
Category
QCAD (main)
Severity
Low
Priority
Low
Reported version
3.3.2
Operating system
All
Reported
2013-10-04 by anonymous
Closed
2013-10-04 by andrew

Projecting text into an isometric plane crashes QCAD - unless the text is first exploded, which is not always an acceptable appearance.

Comments (5)

andrew 2013-10-04

Thanks Clive.

I cannot reproduce this at the moment.
Could you please check if this happens with any text or a text entity in particular or attach the drawing in question? Thanks.

deleted user 2013-10-04

Sure.
It may be something to do with this computer I'm using at the moment (Vista)?

The message given says something about data protection?

andrew 2013-10-04

Crash is likely caused by a variable being cleaned up by the garbage collector while the internal pointer to the same entity is still being used.

Relevant code:

entity = entity.data();

'entity' at the right is a QSharedPointer which is replaced by the internal pointer, which becomes invalid when the shared pointer is being cleaned up.

deleted user 2013-10-04

Great, thanks Andrew for the fix :)