You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When calling Save on a large DicomDir, counting hundred of thousands of images, a StackOverflowException is thrown.
To Reproduce
Scan a medium containing TBs of DICOM images, add all file references and corresponding Patient, Study and Series details to an instance of DicomDirectory, then call DicomDirectory.Save(string fileName, DicomWriteOptions options = null);
Expected behavior
Normal storage of the DICOMDIR file
Screenshots or test DICOM files
Call stack:
> fo-dicom.core.dll!FellowOakDicom.IO.ByteConverter.ToByteBuffer<uint>(uint[] values) Line 48 C#
fo-dicom.core.dll!FellowOakDicom.DicomDataset.DoAdd<uint>(FellowOakDicom.DicomVR vr, FellowOakDicom.DicomTag tag, System.Collections.Generic.IList<uint> values, bool allowUpdate) Line 1507 C#
fo-dicom.core.dll!FellowOakDicom.DicomDataset.DoAdd<uint>(FellowOakDicom.DicomTag tag, System.Collections.Generic.IList<uint> values, bool allowUpdate) Line 1231 C#
fo-dicom.core.dll!FellowOakDicom.DicomDataset.AddOrUpdate<uint>(FellowOakDicom.DicomTag tag, uint[] values) Line 981 C#
fo-dicom.core.dll!FellowOakDicom.Media.DicomDirectory.SetOffsets(FellowOakDicom.Media.DicomDirectoryRecord record) Line 448 C#
fo-dicom.core.dll!FellowOakDicom.Media.DicomDirectory.SetOffsets(FellowOakDicom.Media.DicomDirectoryRecord record) Line 449 C#
[The 1 frame(s) above this were repeated 9619 times]
fo-dicom.core.dll!FellowOakDicom.Media.DicomDirectory.SetOffsets(FellowOakDicom.Media.DicomDirectoryRecord record) Line 449 C#
fo-dicom.core.dll!FellowOakDicom.Media.DicomDirectory.OnSave() Line 397 C#
fo-dicom.core.dll!FellowOakDicom.DicomFile.Save(string fileName, FellowOakDicom.IO.Writer.DicomWriteOptions options) Line 136 C#
Environment
Fellow Oak DICOM version: 5.2.1
OS: Windows 10 x64
Platform: .NET 8.0
The text was updated successfully, but these errors were encountered:
Describe the bug
When calling Save on a large DicomDir, counting hundred of thousands of images, a StackOverflowException is thrown.
To Reproduce
Scan a medium containing TBs of DICOM images, add all file references and corresponding Patient, Study and Series details to an instance of DicomDirectory, then call DicomDirectory.Save(string fileName, DicomWriteOptions options = null);
Expected behavior
Normal storage of the DICOMDIR file
Screenshots or test DICOM files
Call stack:
Environment
Fellow Oak DICOM version: 5.2.1
OS: Windows 10 x64
Platform: .NET 8.0
The text was updated successfully, but these errors were encountered: