DICOMEventHandler Crashes when loading DICOM data with special character in the file path
Open, HighPublic


The MITK DICOM Browser crashes if you try to load a dicom file, that has a file path containing special characters.

Reason is that DicomEventHandler::OnSignalAddSeriesToDataManager uses QString::toStdString() to convert into an std::string. That may corrupt special characters and lead to GDCM failing when testing if it can read the file.

Potential solutions (after some web research):

  • QString's toLocal8Bit().constData() (due to windows)
  • std::codecvt and std::wstring_convert
WARNING: Check OnSignalAddSeriesToDataManager() for several instances of the error. It should be at least for normal DICOM images and RT Dose.

Related Objects

floca created this task.Sep 4 2017, 1:49 PM