← All bug reports

FS#73Uncaught exception: "cannot access member of deleted QObject"

Type
Bug
Status
Closed
Resolution
Fixed
Category
QCAD (main)
Severity
Medium
Priority
Low
Reported version
Development
Operating system
Linux (All / Other)
Reported
2011-05-11 by anonymous
Closed
2011-05-17 by andrew

occurs sporadically, often when the application or a MDI child is closed, usually not reproducible.

  • 2011-05-11 15.19:32 unsaved drawing, after choosing "no" at the confirmation dialog
Uncaught exception at /home/martin/workspace/rsframework/scripts/Tools/PainterPathViewer/../../library.js:50:
Error: cannot access member `isNull' of deleted QObject
50	            (typeof(obj.isNull)=="function" && obj.isNull()===true));

Comments (4)

andrew 2011-05-11

potential fix added. needs testing

andrew 2011-05-11

if it occurs again, please add more stack context.

deleted user 2011-05-12
  • all example drawings where opened, all in print preview state, then begun to close one after the other
  • script debugger stack see attachment
Uncaught exception at /home/martin/workspace/rsframework/scripts/library.js:54: Error: cannot access member `isNull' of deleted QObject
54	            (typeof(obj.isNull)=="function" && obj.isNull()===true));
deleted user 2011-05-12
  • while switching tabs (drawings in print preview)
Uncaught exception at scripts/File/PrintPreview/PrintPreview.js:234: Error: cannot access member `setDefaultAction' of deleted QObject
234	    toolWidgets["ShowMoreOptions"].setDefaultAction(action);

Closure comment

Fixed with QMutex locking. Please re-open if problem appears again.