'loadFile' is failing with error "premature end of stream"

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
angad
Posts: 112
Joined: Thu, 2010-02-18, 09:54

'loadFile' is failing with error "premature end of stream"

#1 Post by angad » Fri, 2012-12-07, 13:30

Hi All,
I'm trying to load a CR Image. Its around 10.5 MB. I'm calling the function "loadStatus = file_format.loadFile(<file_name>);". But it is failing with the following error,..
--------------------------------------------------
W: DcmItem: Non-standard VR ' ' (00\00) encountered while parsing element (0000,0000), assuming 2 byte length field
W: DcmItem: Dataset not in ascending tag order, at element (0000,0000)
W: DcmItem: Non-standard VR ' ' (00\00) encountered while parsing element (0000,0000), assuming 2 byte length field
W: DcmItem: Element (0000,0000) found twice in one dataset/item, ignoring second entry
W: DcmItem: Non-standard VR ' ' (00\00) encountered while parsing element (0000,0000), assuming 2 byte length field
W: DcmItem: Element (0000,0000) found twice in one dataset/item, ignoring second entry
W: DcmItem: Non-standard VR ' ' (00\00) encountered while parsing element (0000,0000), assuming 2 byte length field
W: DcmItem: Element (0000,0000) found twice in one dataset/item, ignoring second entry
W: DcmItem: Non-standard VR ' ' (00\00) encountered while parsing element (0000,0000), assuming 2 byte length field
W: DcmItem: Element (0000,0000) found twice in one dataset/item, ignoring second entry
W: DcmItem: Non-standard VR ' ' (00\00) encountered while parsing element (0000,0000), assuming 2 byte length field
W: DcmItem: Element (0000,0000) found twice in one dataset/item, ignoring second entry
W: DcmItem: Non-standard VR ' ' (00\00) encountered while parsing element (0000,0000), assuming 2 byte length field
W: DcmItem: Element (0000,0000) found twice in one dataset/item, ignoring second entry
W: DcmItem: Non-standard VR ' ' (00\00) encountered while parsing element (0000,0000), assuming 2 byte length field
W: DcmItem: Element (0000,0000) found twice in one dataset/item, ignoring second entry
W: DcmItem: Non-standard VR ' ' (00\00) encountered while parsing element (0000,0000), assuming 2 byte length field
W: DcmItem: Element (0000,0000) found twice in one dataset/item, ignoring second entry
W: DcmItem: Non-standard VR ' ' (00\00) encountered while parsing element (0000,0000), assuming 2 byte length field
W: DcmItem: Element (0000,0000) found twice in one dataset/item, ignoring second entry
W: DcmItem: Non-standard VR ' ' (00\00) encountered while parsing element (0000,0000), assuming 2 byte length field
W: DcmItem: Element (0000,0000) found twice in one dataset/item, ignoring second entry
W: DcmItem: Non-standard VR ' ' (00\00) encountered while parsing element (0000,0000), assuming 2 byte length field
W: DcmItem: Element (0000,0000) found twice in one dataset/item, ignoring second entry
--------------------------------------------------
This error message is coming continuously (More than 100MB, same log). Probably till the file is read completely.

Below are the error details
* loadStatus.good() = False
* loadStatus.text() = "I/O suspension or premature end of stream"
* loadStatus.status() = 1
* loadStatus.code() = 10

But I'm able to open the same file with "ezDICOM". But "eFilm" is throwing an error "Not yet Implemented".

Can anyone please help on fixing this issue,..???

Thanks,
Angad

Michael Onken
DCMTK Developer
Posts: 1805
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: 'loadFile' is failing with error "premature end of strea

#2 Post by Michael Onken » Wed, 2013-05-08, 10:44

Hi,

this seems to be a problem within the DICOM file itself. Are you able to run dcmdump on it?

Best,
Michael

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest