Page MenuHomePhabricator

crash when loading ultrasound plugin (compiler VS2010)
Closed, ResolvedPublic

Description

When activating the ultrasound plugin in a VS2010 MITK build there is a crash during startup in the cpp file QmitkUSControlsCustomVideoDeviceWidget.cpp

QmitkUSControlsCustomVideoDeviceWidget::QmitkUSControlsCustomVideoDeviceWidget(QWidget
*parent)

: QmitkUSAbstractCustomWidget(parent), ui(new

Ui::QmitkUSControlsCustomVideoDeviceWidget)
{

MITK_INFO << staticMetaObject.className(); //ok
MITK_INFO << staticMetaObject.d.superdata; //ok
MITK_INFO << staticMetaObject.d.superdata->className(); //CRASH

ui->setupUi(this); //CRASH - this call seems to cause the crash because it is accessing staticMetaObject.d.superdata. This leads to a crash here:

QmitkUS*Abstract*CustomWidget::QmitkUSAbstractCustomWidget(QWidget*
parent)

: QWidget(parent), m_PrototypeServiceFactory(0), m_IsClonedForQt(false)

{

MITK_INFO << metaObject();
MITK_INFO << metaObject()->className(); //CRASH

Event Timeline

User wintersa has pushed new remote branch:

bug-17734-FixCrashWhenLoadingUltrasoundPlugin

[1c5058]: Merge branch 'bug-17734-FixCrashWhenLoadingUltrasoundPlugin'

Merged commits:

2014-04-24 14:14:23 Adrian Winterstein [7b891b]
Made an additional class for the custom widget factory and moved the ui setup from the constructor of custom video widget to an extra method (later called).