Hi,
We are facing memory leak issue while executing load of compression of uncompressed dicom instances to JpegLossless(1.2.840.10008.1.2.4.70) i.e. virtual memory keep on increasing and ultimately reaches the operating system limit causing the OS to kill the process. We have tested it with dcm4che version 5.19.1 as well as 5.22.3 but the issue persists.
And we also tried the compression load with JpegLsLossless (1.2.840.10008.1.2.4.80) and Jpeg2000Lossless (1.2.840.10008.1.2.4.90) but we didn't see any memory leak at all. So, it seems the issue is with JpegLossless.
We are using the default compression properties i.e. ImageReaderFactory.properties & ImageWriterFactory.properties. And we also tried with both ways of transcode i.e. legacy as well as new. Please find the attached source code for your reference.
Please suggest and let us know if any other information required.
Regards,
Rahul Gulati.