Page MenuHomePhabricator

ImageStatisticsView crashes after calculating image statistics
Closed, ResolvedPublic

Description

To reproduce:

  • open MITK and start the statistics plugin view.
  • load a DICOM image in the data manager
  • click on the data manager to trigger the statistics calculation

MITK crashes at void QmitkChartWidget::Impl::ClearData()in QmitkChartWidget.cpp when de-registering data from the web channel.
Message is: ASSERT: "m_connectionsCounter.contains(object)" in file c:\users\qt\work\qt\qtwebchannel\src\webchannel\signalhandler_p.h, line 299

Found this: https://bugreports.qt.io/browse/QTBUG-60250, which leads to https://codereview.qt-project.org/#/c/192174/

This does not happen with the MITK of other users.
Used current master and an older one from end of November. Qt version is 5.7.1

Event Timeline

kalali triaged this task as Normal priority.Jan 5 2018, 3:05 PM
kalali created this task.

Happens currently only in debug configuration.

However, in both configurations the following message is printed to the console: onmessage is not a callable property of qt.webChannelTransport.

Confirmed (with random image).
Also crashed in debug with the same assert.
I assume, it's a Qt bug. Let's find someone with a newer Qt version.

It works with Qt 5.10, so it's apparently a Qt bug that has been fixed in Qt 5.9.
As the minimum Qt version is currently 5.6.0, we check for Qt version in measurementtoolbox plugin and won't build it if <Qt 5.9 is used.

We don't check in measurements plugin, but in MitkChart, as the problem occured there with the QWebEngineView

@hempe I think you also reported the bug some time ago. We finally have a solution 😸, but be aware that you have to upgrade to Qt 5.9 or newer if merged to master to use MitkChart.

Well, the bug is not resolved in Qt 5.9 and 5.9.1

It works for me. I have Qt 5.9.1 Visual Studio 2017 and Windows 10.

Qt 5.9.3 doesn't work for me either.

Qt 5.10 does work. Finally.
Best option is to set Qt 5.10 as minimal version for MitkChart.
Bonus: we also can merge T22518 to master

Spoke with @goch. He suggested to make MitkChart module optional.
Then, we would have to build two versions of the image statistics plugin:

  • for MitkChart with >=Qt 5.10
  • without MitkChart (histogram as table?)
hentsch added a project: Restricted Project.

Just to clarify, two versions of the plugin means just two different histogram widgets in the statistics view.