QCad crashes in debug mode

Discussion forum for C++ and script developers who are using the QCAD development platform or who are looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files, scripts and screenshots.

Post one question per topic.

Post Reply
mbpcmeo
Newbie Member
Posts: 8
Joined: Mon Jan 05, 2015 12:50 pm

QCad crashes in debug mode

Post by mbpcmeo » Mon Jan 05, 2015 7:11 pm

I'm writing a simple script to play around with objects provided by the framework by setting the breaking point when a line is selected. The script can be found in the attached file. Qcad is launched with this argument:

Code: Select all

-rescan -enable-script-debugger
The program crashes each time I want to investigate the variable's content with this below error. Please see the attached file for complete error

Code: Select all

VM Region Summary:
ReadOnly portion of Libraries: Total=407.4M resident=179.9M(44%) swapped_out_or_unallocated=227.6M(56%)
Writable regions: Total=223.1M written=69.9M(31%) resident=105.3M(47%) swapped_out=40K(0%) unallocated=117.7M(53%)
....
I have about 2.5GB free RAM when launching Qcad so I don't think this is due to the lack of RAM as the error seems to suggest.

Does anyone have the same error ? How do you do to make sure that the error does not happen again ?

Here is the error on the command line, maybe it can be useful ...

Code: Select all

2015-01-05 19:03:24.082 QCAD[2411:176191] NSSoftLinking - The ShareKit framework's library couldn't be loaded from /System/Library/PrivateFrameworks/ShareKit.framework/Versions/A/ShareKit.
2015-01-05 19:03:24.083 QCAD[2411:176191] NSSoftLinking - The ShareKit framework's library couldn't be loaded from /System/Library/PrivateFrameworks/ShareKit.framework/Versions/A/ShareKit.
2015-01-05 19:03:24.083 QCAD[2411:176191] NSSoftLinking - The ShareKit framework's library couldn't be loaded from /System/Library/PrivateFrameworks/ShareKit.framework/Versions/A/ShareKit.
Debug:    SvgImporter.prototype.importFile 
Warning:  RScriptHandlerEcma::RScriptHandlerEcma: script debugger enabled! Not recommended. 
Floating point exception: 8
Thanks a lot in advance !
Attachments
qcad-crash.txt
(3.03 KiB) Downloaded 455 times
Connhon.js
(984 Bytes) Downloaded 426 times

User avatar
andrew
Site Admin
Posts: 9037
Joined: Fri Mar 30, 2007 6:07 am

Re: QCad crashes in debug mode

Post by andrew » Mon Jan 05, 2015 9:48 pm

Which variable are you trying to investigate?

You might want to print the variable to stdout instead:
qDebug(myObject);

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”