Page MenuHomePhabricator

Opening the Modules View crashes in Debug mode
Closed, ResolvedPublic

Description

Reported by an external user:

I've been playing around with the framework and I have found a strange
behavior when I run the workbench in Debug mode 64bits. Whenever I open
it and click "Modules", the application crashes with the following error
details:

Module: 4.8.3
File: global\qglobal.cpp
Line: 2246
ASSERT: "visual != -1" in file itemviews\qheaderview.cpp, line 1175

Then, in Visual Studio I am taken to a break point in the file:
QmitkModuleView.cpp, line 62

  • To note that this crash doesn't happen in Release mode *

Event Timeline

	QtCored4.dll!qt_message_output(QtMsgType msgType=QtFatalMsg, const char * buf=0x000000001179da78)  Line 2247	C++
	QtCored4.dll!qt_message(QtMsgType msgType=QtFatalMsg, const char * msg=0x000000006734d1d0, char * ap=0x0000000000b84c98)  Line 2305 + 0x19 bytes	C++
	QtCored4.dll!qFatal(const char * msg=0x000000006734d1d0, ...)  Line 2489	C++
	QtCored4.dll!qt_assert(const char * assertion=0x0000000065db4800, const char * file=0x0000000065db47e0, int line=1171)  Line 2005	C++

QtGuid4.dll!QHeaderView::setResizeMode(int logicalIndex=5, QHeaderView::ResizeMode mode=ResizeToContents) Line 1171 + 0x21 bytes C++

	liborg_mitk_gui_qt_ext.dll!QmitkModuleView::CreateQtPartControl(QWidget * parent=0x00000000115dd8d0)  Line 62	C++
	liborg_blueberry_ui_qt.dll!berry::QtViewPart::CreatePartControl(void * parent=0x00000000115dd8d0)  Line 25	C++
	liborg_blueberry_ui.dll!berry::ViewReference::CreatePartHelper()  Line 363	C++
	liborg_blueberry_ui.dll!berry::ViewReference::CreatePart()  Line 156 + 0x15 bytes	C++
	liborg_blueberry_ui.dll!berry::WorkbenchPartReference::GetPart(bool restore=true)  Line 467 + 0x29 bytes	C++
	liborg_blueberry_ui.dll!berry::Perspective::ShowView(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & viewId="org.mitk.views.modules", const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & secondaryId="")  Line 1548 + 0x5a bytes	C++
	liborg_blueberry_ui.dll!berry::WorkbenchPage::BusyShowView(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & viewID="org.mitk.views.modules", const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & secondaryID="", int mode=1)  Line 1134 + 0x2a bytes	C++
	liborg_blueberry_ui.dll!berry::WorkbenchPage::ShowView(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & viewID="org.mitk.views.modules", const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & secondaryID="", int mode=1)  Line 3690 + 0x30 bytes	C++
	liborg_blueberry_ui.dll!berry::WorkbenchPage::ShowView(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & viewID="org.mitk.views.modules")  Line 3661 + 0x4c bytes	C++
	liborg_blueberry_ui_qt.dll!berry::QtShowViewAction::Run()  Line 51 + 0xaa bytes	C++
	liborg_blueberry_ui_qt.dll!berry::QtShowViewAction::qt_metacall(QMetaObject::Call _c=InvokeMetaMethod, int _id=0, void * * _a=0x0000000000b86e10)  Line 75	C++
	QtCored4.dll!QMetaObject::metacall(QObject * object=0x000000000e0eebc0, QMetaObject::Call cl=InvokeMetaMethod, int idx=19, void * * argv=0x0000000000b86e10)  Line 238	C++
	QtCored4.dll!QMetaObject::activate(QObject * sender=0x000000000e0eebc0, const QMetaObject * m=0x00000000661162d8, int local_signal_index=1, void * * argv=0x0000000000b86e10)  Line 3272 + 0x49 bytes	C++
	QtGuid4.dll!QAction::triggered(bool _t1=false)  Line 264	C++
	QtGuid4.dll!QAction::activate(QAction::ActionEvent event=Trigger)  Line 1258	C++
	QtGuid4.dll!QAction::trigger()  Line 218 + 0x15 bytes	C++
	QtGuid4.dll!QToolButton::nextCheckState()  Line 1148	C++
	QtGuid4.dll!QAbstractButtonPrivate::click()  Line 529	C++
	QtGuid4.dll!QAbstractButton::mouseReleaseEvent(QMouseEvent * e=0x0000000000b887c8)  Line 1122	C++
	QtGuid4.dll!QToolButton::mouseReleaseEvent(QMouseEvent * e=0x0000000000b887c8)  Line 722	C++
	QtGuid4.dll!QWidget::event(QEvent * event=0x0000000000b887c8)  Line 8188	C++
	QtGuid4.dll!QAbstractButton::event(QEvent * e=0x0000000000b887c8)  Line 1081	C++
	QtGuid4.dll!QToolButton::event(QEvent * event=0x0000000000b887c8)  Line 1164	C++
	QtGuid4.dll!QApplicationPrivate::notify_helper(QObject * receiver=0x000000000e072350, QEvent * e=0x0000000000b887c8)  Line 4396 + 0x15 bytes	C++
	QtGuid4.dll!QApplication::notify(QObject * receiver=0x000000000e072350, QEvent * e=0x0000000000b887c8)  Line 3959 + 0x51 bytes	C++
	mitkWorkbench.exe!QtSafeApplication::notify(QObject * receiver=0x000000000e072350, QEvent * event=0x0000000000b887c8)  Line 47 + 0x1e bytes	C++
	QtCored4.dll!QCoreApplication::notifyInternal(QObject * receiver=0x000000000e072350, QEvent * event=0x0000000000b887c8)  Line 732 + 0x26 bytes	C++
	QtCored4.dll!QCoreApplication::sendSpontaneousEvent(QObject * receiver=0x000000000e072350, QEvent * event=0x0000000000b887c8)  Line 218 + 0x4c bytes	C++
	QtGuid4.dll!QApplicationPrivate::sendMouseEvent(QWidget * receiver=0x000000000e072350, QMouseEvent * event=0x0000000000b887c8, QWidget * alienWidget=0x000000000e072350, QWidget * nativeWidget=0x000000000e0500c0, QWidget * * buttonDown=0x0000000066117fe0, QPointer<QWidget> & lastMouseReceiver={...}, bool spontaneous=true)  Line 3056 + 0x16 bytes	C++
	QtGuid4.dll!QETWidget::translateMouseEvent(const tagMSG & msg={...})  Line 3317 + 0x3f bytes	C++
	QtGuid4.dll!QtWndProc(HWND__ * hwnd=0x00000000079e1110, unsigned int message=514, unsigned __int64 wParam=0, __int64 lParam=1311080)  Line 1657 + 0x15 bytes	C++
	user32.dll!0000000077b09bd1() 	
	[Frames below may be incorrect and/or missing, no symbols loaded for user32.dll]	
	user32.dll!0000000077b098da() 	
	QtCored4.dll!QEventDispatcherWin32::processEvents(QFlags<enum QEventLoop::ProcessEventsFlag> * flags=0x0000000000b8ca70)  Line 806	C++
	QtGuid4.dll!QGuiEventDispatcherWin32::processEvents(QFlags<enum QEventLoop::ProcessEventsFlag> * flags=0x0000000000b8cabc)  Line 1170 + 0x27 bytes	C++
	QtCored4.dll!QEventLoop::processEvents(QFlags<enum QEventLoop::ProcessEventsFlag> * flags=0x0000000000b8cb28)  Line 150	C++
	QtCored4.dll!QEventLoop::exec(QFlags<enum QEventLoop::ProcessEventsFlag> * flags=0x0000000000b8cbb0)  Line 201 + 0x53 bytes	C++
	QtCored4.dll!QCoreApplication::exec()  Line 1009 + 0x23 bytes	C++
	QtGuid4.dll!QApplication::exec()  Line 3673	C++
	liborg_blueberry_ui_qt.dll!berry::QtDisplay::RunEventLoop()  Line 46	C++
	liborg_blueberry_ui.dll!berry::Workbench::RunUI()  Line 764	C++
	liborg_blueberry_ui.dll!berry::Workbench::CreateAndRunWorkbench(berry::Display * display=0x0000000002500b70, berry::WorkbenchAdvisor * advisor=0x0000000005d9e2b0)  Line 190 + 0xa bytes	C++
	liborg_blueberry_ui.dll!berry::PlatformUI::CreateAndRunWorkbench(berry::Display * display=0x0000000002500b70, berry::WorkbenchAdvisor * advisor=0x0000000005d9e2b0)  Line 60	C++
	liborg_mitk_gui_qt_extapplication.dll!QmitkExtApplication::Start()  Line 32 + 0x4b bytes	C++
	liborg_blueberry_osgi.dll!berry::Starter::Run(int & argc=1, char * * argv=0x00000000024e4f10, Poco::Util::AbstractConfiguration * config=0x00000000024f5960)  Line 198 + 0x16 bytes	C++
	mitkWorkbench.exe!main(int argc=1, char * * argv=0x00000000024e4f10)  Line 142 + 0x1e bytes	C++
	mitkWorkbench.exe!__tmainCRTStartup()  Line 586 + 0x19 bytes	C
	mitkWorkbench.exe!mainCRTStartup()  Line 403	C
	kernel32.dll!00000000779e652d() 	
	ntdll.dll!0000000077c1c521()

This view causes a direct crash upon initialization.

[0ab733]: Merge branch 'bug-13438-fix-modules-view-crash'

Merged commits:

2013-03-09 13:30:06 Sascha Zelzer [91ce1f]
Don't set resize mode for non-existing column index.