Weasis icon indicating copy to clipboard operation
Weasis copied to clipboard

Can't open DX studies

Open raitkook opened this issue 2 years ago • 4 comments

Describe the bug. What happened?

Every DX study that is from chest I'm getting "DICOM file cannot be read" error. All other DX studies are fine.

image

What version of Weasis are you running?

4.3.0

On which system the problem occurs?

Windows

Relevant log output

15.03.2024 12:47:06.167 *ERROR* [Dicom Model-pool-3-thread-1] org.weasis.dicom.codec.DicomMediaIO: Cannot read DICOM: java.lang.ArrayIndexOutOfBoundsException: Index 4 out of bounds for length 4
	at org.dcm4che3.img.util.DicomObjectUtil.isPolygonValid(DicomObjectUtil.java:211)
	at org.dcm4che3.img.util.DicomObjectUtil.getShutterShape(DicomObjectUtil.java:191)
	at org.weasis.dicom.codec.utils.DicomMediaUtils.setShutter(DicomMediaUtils.java:322)
	at org.weasis.dicom.codec.DicomMediaIO.writeInstanceTags(DicomMediaIO.java:526)
	at org.weasis.dicom.codec.DicomMediaIO.setMimeType(DicomMediaIO.java:409)
15.03.2024 12:47:06.177 *INFO* [AWT-EventQueue-0] org.weasis.dicom.explorer.LoadDicom: End of loading DICOM locally

Additional contextual elements

No response

raitkook avatar Mar 15 '24 14:03 raitkook

This image contains a polygon shutter.

Could you share a sample? It seems to me that there's a bug in this method that checks the validity of a polygon.

nroduit avatar Mar 16 '24 06:03 nroduit

File anonymized.

IMG-0001-00001_anon.zip

raitkook avatar Mar 18 '24 08:03 raitkook

Thanks for providing a sample. I can confirm that this is indeed a bug. It will be fix in the next release.

nroduit avatar Mar 19 '24 07:03 nroduit

However, this shutter is strange in that it displays the entire image. It doesn't do its job of masking an area of the image.

nroduit avatar Mar 25 '24 06:03 nroduit