XNAT-OHIF - issue loading CTs with image type DERIVED\SECONDARY\MPR

29 views
Skip to first unread message

Haroon Chughtai

unread,
May 28, 2026, 12:32:40 PMMay 28
to xnat_discussion
Hi folks,

I'm having an issue with viewing some CT sessions in XNAT-OHIF that some of our researchers have uploaded.

When trying to open the viewer, I get a general "Something went wrong in LeftSidePanel - LeftSidePanel: Offset is outside the bounds of the DataView" error, and the console reports "LeftSidePanel Error Boundary RangeError: Offset is outside the bounds of the DataView"

I've narrowed it down to being an issue only when the sessions includes series with Image Type of DERIVED\SECONDARY\MPR but am now at a bit of a loss as I think all the tags that I'd expect are there.

Has anyone else come across this issue or have any advice on how to resolve?

Cheers,
Haroon

Haroon Chughtai

unread,
Jul 15, 2026, 1:44:35 PMJul 15
to xnat_discussion
Replying to my own post in case anyone else runs into this.

It turned out not to be related to the Image Type at all and that was a red herring. The actual cause was a malformed tag in the affected files: the Purpose of Reference Code Sequence (0040,A170), nested inside the Contributing Equipment Sequence (0018,A001), was encoded with VR UN instead of SQ.

I think that this was technically legal DICOM so the server side is happy meaning the files archive fine and the session JSON is generated as normal. But dcmjs in the viewer front end mis-parses the UN-encoded sequence, reads past the end of the buffer, and throws the DataView RangeError. The LeftSidePanel error boundary is just the first thing to catch it, so that takes everything down.

In our case the affected series were MPR/MIP reformats that had been exported through a different route to the primary acquistions so I guess somewhere in that export nested sequence (SQ) got rewritten as UN.

When I stripped the affected tag e.g using `dcmodify --erase-all "(0018,A001)" file.dcm`and re-uploaded the sessions loaded fine.

Hope that saves someone else some head-scratching!

Cheers, 
Haroon

Reply all
Reply to author
Forward
0 new messages