Page MenuHomePhabricator

MITK crashes when loading .dcm files with insufficient properties.
Closed, DuplicatePublic

Description

This was tested with a couple of single *.dcm files. The files can be properly loaded in an older MITK version.

The files seem not to provide all properties that are expected by the reader.

This is the console output after scanning a folder with DICOM Reader containing one of the images:

inserting filePath: "/home/lichtenn/P0035.dcm"
database filename for "1.2.840.113543.6.6.5.0.25444389492088343624.3.177.20100630.10944" is empty - we should insert on top of it
This looks like a different patient from last insert: "53265583.8"
New patient inserted: 1
New patient inserted as : 1
Going to insert this instance with dbPatientID: 1
Need to insert new study: "1.2.840.113543.6.6.1.5.4.6087106560000048098.99990170000"
Study Added
Statement: SELECT * FROM Series WHERE SeriesInstanceUID = ?
Need to insert new series: "1.2.840.113543.6.6.1.5.4.6087106560000048098.99990170002"
Series Added
Maybe add Instance
Instance Added

The file is displayed in the "External Dicom Data" view.
When clicking the view button, the app crashes when trying to get the "dicom.patient.PatientsName" property in line #1566 of mitk::DicomSeriesReader.cpp