Skip to content

Could not run Tesseract ... Cannot access a disposed object Image`1 #594

@rkm

Description

@rkm

IsIdentifiable service produced this error during the extraction pipeline, and sent the message to the dead-letter queue:

Exception while classifying ExtractedFileStatusMessage:
System.ApplicationException: Could not run Tesseract on 'foo.dcm'
 ---> System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Image`1'.
   at SixLabors.ImageSharp.Image.ThrowObjectDisposedException(Type type)
   at IsIdentifiable.Runners.DicomFileRunner.ValidateDicomPixelData(IFileInfo fi, DicomFile dicomFile, DicomDataset ds, String modality, String[] imageTypeArr) in /home/runner/work/IsIdentifiable/IsIdentifiable/IsIdentifiable/Runners/DicomFileRunner.cs:line 334
   --- End of inner exception stack trace ---
   at IsIdentifiable.Runners.DicomFileRunner.ValidateDicomPixelData(IFileInfo fi, DicomFile dicomFile, DicomDataset ds, String modality, String[] imageTypeArr) in /home/runner/work/IsIdentifiable/IsIdentifiable/IsIdentifiable/Runners/Dicom
FileRunner.cs:line 429
   at IsIdentifiable.Runners.DicomFileRunner.ValidateDicomFile(IFileInfo fi) in /home/runner/work/IsIdentifiable/IsIdentifiable/IsIdentifiable/Runners/DicomFileRunner.cs:line 208
   at SmiServices.Microservices.IsIdentifiable.IsIdentifiableQueueConsumer.ProcessMessageImpl(IMessageHeader header, ExtractedFileStatusMessage statusMessage, UInt64 tag) in /home/runner/work/SmiServices/SmiServices/src/SmiServices/Microse
rvices/IsIdentifiable/IsIdentifiableQueueConsumer.cs:line 64. File could not be scanned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions