QAbstractItemView::dataChanged caused application crash, how to debug this issue ?
-
As you see in the call stack below, the crash happened during the execution of the function QAbstractItemView::dataChanged. I have no clue how locate the origin of this issue in my code. Any help plz ?
This is the content of the stack of the interrupted thread at the moment of the crash:
<threads> <thread> <id>7928</id> <status>interrupted</status> <stack> <frame> <module>C:\Program Files\xxxxxxxx\Qt5\bin\Qt5Widgets_v142_x64.dll</module> <address>0033:0000000054D1742A</address> <function> <name>QAbstractItemView::dataChanged</name> <offset>26</offset> </function> <file></file> <line> <number></number> <offset></offset> </line> </frame> <frame> <module>C:\Program Files\xxxxxxxxx\Qt5\bin\Qt5Core_v142_x64.dll</module> <address>0033:000000005E458A1F</address> <function> <name>QObject::event</name> <offset>255</offset> </function> <file></file> <line> <number></number> <offset></offset> </line> </frame> <frame> <module>C:\Program Files\xxxxxxxxx\Qt5\bin\Qt5Widgets_v142_x64.dll</module> <address>0033:0000000054B2B5D5</address> <function> <name>QWidget::event</name> <offset>3493</offset> </function> <file></file> <line> <number></number> <offset></offset> </line> </frame> <frame> <module>C:\Program Files\xxxxxxx\Qt5\bin\Qt5Widgets_v142_x64.dll</module> <address>0033:0000000054BC8770</address> <function> <name>QFrame::event</name> <offset>48</offset> </function> <file></file> <line> <number></number> <offset></offset> </line> </frame> <frame> <module>C:\Program Files\xxxxxxxx\Qt5\bin\Qt5Widgets_v142_x64.dll</module> <address>0033:0000000054BC9E98</address> <function> <name>QAbstractScrollArea::event</name> <offset>1144</offset> </function> <file></file> <line> <number></number> <offset></offset> </line> </frame> <frame> <module>C:\Program Files\xxxxxxxx\Qt5\bin\Qt5Widgets_v142_x64.dll</module> <address>0033:0000000054B06D33</address> <function> <name>QApplicationPrivate::notify_helper</name> <offset>275</offset> </function> <file></file> <line> <number></number> <offset></offset> </line> </frame> <frame> <module>C:\Program Files\xxxxxxxx\Qt5\bin\Qt5Widgets_v142_x64.dll</module> <address>0033:0000000054B05C98</address> <function> <name>QApplication::notify</name> <offset>6184</offset> </function> <file></file> <line> <number></number> <offset></offset> </line> </frame> <frame> <module>C:\Program Files\xxxxxxx\Qt5\bin\Qt5Core_v142_x64.dll</module> <address>0033:000000005E432A8C</address> <function> <name>QCoreApplication::notifyInternal2</name> <offset>172</offset> </function> <file></file> <line> <number></number> <offset></offset> </line> </frame> <frame> <module>C:\Program Files\xxxxxxxxx\Qt5\bin\Qt5Core_v142_x64.dll</module> <address>0033:000000005E43472F</address> <function> <name>QCoreApplicationPrivate::sendPostedEvents</name> <offset>527</offset> </function> <file></file> <line> <number></number> <offset></offset> </line> </frame> <frame> <module>C:\Program Files\xxxxxxxxx\Qt5\bin\plugins\platforms\qwindows_v142_x64.dll</module> <address>0033:0000000095C9289F</address> <function> <name>qt_plugin_query_metadata</name> <offset>7871</offset> </function> <file></file> <line> <number></number> <offset></offset> </line> </frame> <frame> <module>C:\Program Files\xxxxxxxxxx\Qt5\bin\Qt5Core_v142_x64.dll</module> <address>0033:000000005E47BE6F</address> <function> <name>QEventDispatcherWin32::processEvents</name> <offset>3471</offset> </function> <file></file> <line> <number></number> <offset></offset> </line> </frame> <frame> <module>C:\WINDOWS\System32\USER32.dll</module> <address>0033:00000000BB40E858</address> <function> <name>CallWindowProcW</name> <offset>1016</offset> </function> <file></file> <line> <number></number> <offset></offset> </line> </frame> <frame> <module>C:\WINDOWS\System32\USER32.dll</module> <address>0033:00000000BB40E299</address> <function> <name>DispatchMessageW</name> <offset>601</offset> </function> <file></file> <line> <number></number> <offset></offset> </line> </frame> <frame> <module>C:\Program Files\xxxxxxxxx\Qt5\bin\Qt5Core_v142_x64.dll</module> <address>0033:000000005E47B6A3</address> <function> <name>QEventDispatcherWin32::processEvents</name> <offset>1475</offset> </function> <file></file> <line> <number></number> <offset></offset> </line> </frame> <frame> <module>C:\Program Files\xxxxxxxxx\Qt5\bin\plugins\platforms\qwindows_v142_x64.dll</module> <address>0033:0000000095C92879</address> <function> <name>qt_plugin_query_metadata</name> <offset>7833</offset> </function> <file></file> <line> <number></number> <offset></offset> </line> </frame> <frame> <module>C:\Program Files\xxxxxxxx\Qt5\bin\Qt5Core_v142_x64.dll</module> <address>0033:000000005E42EFDB</address> <function> <name>QEventLoop::exec</name> <offset>459</offset> </function> <file></file> <line> <number></number> <offset></offset> </line> </frame> <frame> <module>C:\Program Files\xxxxxxx\Qt5\bin\Qt5Core_v142_x64.dll</module> <address>0033:000000005E4319A4</address> <function> <name>QCoreApplication::exec</name> <offset>340</offset> </function> <file></file> <line> <number></number> <offset></offset> </line> </frame> <frame> <module>C:\Program Files\xxxxxxxx\Qt5\bin\QtWinMigrate_v142_x64.dll</module> <address>0033:00000000AB723548</address> <function> <name>QMfcApp::run</name> <offset>56</offset> </function> <file></file> <line> <number></number> <offset></offset> </line> </frame> <frame> <module>C:\xxxx\xxxxxxxx\bin\MyApp_x64.exe</module> <address>0033:00000000B1126C7C</address> <function> <name></name> <offset></offset> </function> <file></file> <line> <number></number> <offset></offset> </line> </frame> <frame> <module>C:\xxxx\xxxxxxx\bin\mfc140u.dll</module> <address>0033:0000000076639FF7</address> <function> <name></name> <offset></offset> </function> <file></file> <line> <number></number> <offset></offset> </line> </frame> <frame> <module>C:\xxxx\xxxxxxx\bin\MyApp_x64.exe</module> <address>0033:00000000B1160C6A</address> <function> <name></name> <offset></offset> </function> <file></file> <line> <number></number> <offset></offset> </line> </frame> <frame> <module>C:\WINDOWS\System32\KERNEL32.DLL</module> <address>0033:00000000BCAB7034</address> <function> <name>BaseThreadInitThunk</name> <offset>20</offset> </function> <file></file> <line> <number></number> <offset></offset> </line> </frame> <frame> <module>C:\WINDOWS\SYSTEM32\ntdll.dll</module> <address>0033:00000000BD322651</address> <function> <name>RtlUserThreadStart</name> <offset>33</offset> </function> <file></file> <line> <number></number> <offset></offset> </line> </frame> </stack> </thread> <thread>
-
@AkGustav
That is not enough information to help. From a debugger you should get some stack trace. Unless you can get that from a "dmp file", I would not know.Actually you can guess from the content you show that it died in
QAbstractItemView::dataChanged()
called fromQAbstractScrollArea::event()
. What/why I don't know.Build your code with debug, run under a debugger, and see if you can track down what the problem is. Have you have written your own model? Use QAbstractItemModelTester Class to test it.