← All bug reports

FS#279library.js:638: Error: cannot access member `children' of deleted QObject

Type
Bug
Status
Closed
Resolution
Fixed
Category
QCAD (main)
Severity
Medium
Priority
Low
Reported version
3 Beta 2
Operating system
All
Reported
2011-09-29 by anonymous
Closed
2011-09-29 by andrew
  • QCAD was running during the lunch break
    • one drawing opened in print preview
    • another drawing opened (normal mode)
  • switched to another virtual desktop
        if (!isNull(child.objectName) && child.objectName != "") {
            ca[child.objectName] = child;
        }
=>      if (!isNull(child.children) && child.children().length != 0) {
            getWidgets(child, ca);
        }
Uncaught exception at /home/martin/workspace/rsframework/scripts/library.js:638:
Error: cannot access member `children' of deleted QObject
638	        if (!isNull(child.children) && child.children().length != 0) {
qsdb> child
Error: cannot access member `toString' of deleted QObject
qsdb> isNull(child)
true
qsdb> .bt
#0  getWidgets(widget = QToolBar) at /home/martin/workspace/rsframework/scripts/library.js:638
#1  <anonymous>(resume = true) at scripts/File/PrintPreview/PrintPreview.js:235
#2  <anonymous>() at /home/martin/workspace/rsframework/scripts/Idle/../EAction.js:237
#3  <anonymous>() at /home/martin/workspace/rsframework/scripts/File/
PrintPreview/../../Idle/DefaultAction/DefaultAction.js:119
#4  <global>() at -1