Unusual error from dcmdump

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
alwittta
Posts: 111
Joined: Wed, 2006-03-15, 08:30

Unusual error from dcmdump

#1 Post by alwittta »

Dear friends

Could you please tell me what is the meaning of following error:
I am getting this error, when I run the dcmdup application

Code: Select all

D:\CT3S1>dcmdump.exe metadata
DcmItem: Non-standard VR '
' encountered while parsing attribute (0008,0090), assuming 2 byte length field
DcmItem: Non-standard VR 'PA' encountered while parsing attribute (5a41,4f5a), assuming 4 byte length field
DcmItem: Length of attribute (5a41,4f5a) is odd
DcmElement: Unknown Tag & Data(5a41,4f5a) larger (1057169481) that remaining bytes in file
dcmdump: error: Invalid Stream: reading file: metadata
Kindly tell me, how can I fix the problem?

Thanks and Regards
Alvin

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

Are you sure that the file contains DICOM data (DICOM Fileformat or Dataset)? At least, the file seems to be corrupted.

alwittta
Posts: 111
Joined: Wed, 2006-03-15, 08:30

#3 Post by alwittta »

Dear Jörg

File seems OK, because, I can able to open the file in DicomWorks.
Any clue, where the problem is ?

Thanks and Regards
Alvin

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1462
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#4 Post by Marco Eichelberg »

The problem is that the dataset is encoded in Explicit VR transfer syntax but contains invalid Value Representations (data types) that are not defined in DICOM. This is a severe problem because the size of the length field depends on the VR and an incorrect guess causes the parser to fail on the rest of the dataset. While DCMTK has a mechanism for "guessing" the size of the length field in such cases, in this specific case the heuristic seems to fail. Other parsers may still be able to read the file, depending on how they treat this problem. Nevertheless the file is not a valid DICOM file.

alwittta
Posts: 111
Joined: Wed, 2006-03-15, 08:30

#5 Post by alwittta »

Thanks Marco, for the reply.

Could you please tell me which function is used for "guessing" the size of the length filed - VR?

Thanks and Regards
Alvin

alwittta
Posts: 111
Joined: Wed, 2006-03-15, 08:30

#6 Post by alwittta »

Dear friends,

Problem got fixed by using the latest version of DCMTK

Thanks and Regards
Alvin

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#7 Post by Jörg Riesmeier »

And what was the reason for your problem?
File seems OK, because, I can able to open the file in DicomWorks.
This does not mean anything ...

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest