JPNaude / Qtilities

Building blocks for Qt applications
http://jpnaude.github.io/Qtilities/
Other
137 stars 39 forks source link

DebugPlugin destructor crashes when MainWindowExample closes. #100

Open JPNaude opened 10 years ago

JPNaude commented 10 years ago

The crash happens when the debug widget is deleted:

Qtilities::Plugins::Debug::DebugPlugin::~DebugPlugin() {
    if (d->debug_mode)
        delete d->debug_mode;
    delete d;
}

For now, the first two lines are uncommented, causing a memory leak but since the application is closing it will be fine for now.

Stack trace is below:

0   QXmlStreamWriter::QXmlStreamWriter  Qt5Cored        0x5e0f0613  
1   QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d5bbc9a  
2   QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d614838  
3   QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d6187d7  
4   QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d36020c  
5   QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d60f719  
6   QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d614178  
7   QXmlStreamWriter::QXmlStreamWriter  Qt5Cored        0x5e13ff96  
8   QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d36067d  
9   QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d56bb02  
10  Qtilities::CoreGui::ObserverWidget::~ObserverWidget ObserverWidget.cpp  349 0x7fef51845be   
11  Qtilities::CoreGui::ObserverWidget::`vbase destructor'  QtilitiesCoreGuid_1_5       0x7fef5176a63   
12  Qtilities::CoreGui::ObserverWidget::`vector deleting destructor'    QtilitiesCoreGuid_1_5       0x7fef51b5478   
13  QXmlStreamWriter::QXmlStreamWriter  Qt5Cored        0x5e13ff96  
14  QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d36067d  
15  QWidget::`scalar deleting destructor'   QtilitiesCoreGuid_1_5       0x7fef51b5a08   
16  QXmlStreamWriter::QXmlStreamWriter  Qt5Cored        0x5e13ff96  
17  QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d36067d  
18  QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d54d982  
19  QGroupBox::`scalar deleting destructor' QtilitiesCoreGuid_1_5       0x7fef51c2768   
20  QXmlStreamWriter::QXmlStreamWriter  Qt5Cored        0x5e13ff96  
21  QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d36067d  
22  Qtilities::CoreGui::CommandEditor::~CommandEditor   CommandEditor.cpp   53  0x7fef522f70d   
23  Qtilities::CoreGui::CommandEditor::`vbase destructor'   QtilitiesCoreGuid_1_5       0x7fef5176753   
24  Qtilities::CoreGui::CommandEditor::`scalar deleting destructor' QtilitiesTestingd_1_5       0x7fef216adb8   
25  QXmlStreamWriter::QXmlStreamWriter  Qt5Cored        0x5e13ff96  
26  QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d36067d  
27  QWidget::`scalar deleting destructor'   QtilitiesTestingd_1_5       0x7fef2147bc8   
28  QXmlStreamWriter::QXmlStreamWriter  Qt5Cored        0x5e13ff96  
29  QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d36067d  
30  QWidget::`scalar deleting destructor'   QtilitiesTestingd_1_5       0x7fef2147bc8   
31  QXmlStreamWriter::QXmlStreamWriter  Qt5Cored        0x5e13ff96  
32  QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d36067d  
33  QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d384b58  
34  QXmlStreamWriter::QXmlStreamWriter  Qt5Cored        0x5e13ff96  
35  QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d36067d  
36  QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d54bb62  
37  QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d623b86  
38  QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d62f922  
39  QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d631be8  
40  QXmlStreamWriter::QXmlStreamWriter  Qt5Cored        0x5e13ff96  
41  QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d36067d  
42  QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d54bb62  
43  QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d61a652  
44  QToolBox::`scalar deleting destructor'  QtilitiesTestingd_1_5       0x7fef216b3a8   
45  QXmlStreamWriter::QXmlStreamWriter  Qt5Cored        0x5e13ff96  
46  QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d36067d  
47  QWidget::`scalar deleting destructor'   QtilitiesTestingd_1_5       0x7fef2147bc8   
48  QXmlStreamWriter::QXmlStreamWriter  Qt5Cored        0x5e13ff96  
49  QWidgetLineControl::displayTextChanged  Qt5Widgetsd     0x5d36067d  
... <More>              

Happens on Qt 5.1.0 with MSVC 2010, Windows 7