Viewers icon indicating copy to clipboard operation
Viewers copied to clipboard

Error: decodeTask: imageFrame.pixelData is undefined after decoding

Open kin3tik opened this issue 6 years ago • 8 comments

Hi All,

I am attempting to set up an embedded view using version 4.2.7 from here within my own ASP MVC application following docs.ohif.org/deployment/#embedded-viewer, using the ?url= param to pass my own JSON object.

I've tried generating my own JSON from a DCM/Dicom file, and I have also tried using the sample JSON/DCM from the link above. Both result in the js error below:

index.umd.js:55464 Uncaught (in promise) Error: decodeTask: imageFrame.pixelData is undefined after decoding

If I drop the ?url= param and use the worklist view provided by the sample viewer config (here) I can browse and view images correctly.

At this point I'm not sure what I'm missing - does anyone have any ideas? Thanks.

2020-07-08 18_51_36-Window

kin3tik avatar Jul 08 '20 08:07 kin3tik

Hi All,

I've put together a minimal case in the hopes someone may be able to help me out. It's a fresh dotnet core 3.1 ASP MVC project with only a couple views/controllers added by following the deployment guide for an embedded viewer (though not using an iframe here).

I'm only using the sample JSON and DCM provided in the documentation here: https://docs.ohif.org/deployment/#data.

Sample Visual Studio solution attached (also dropbox link here). You should be able to run the solution and hit the endpoint https://localhost:44357/viewer?url=/viewer/test with browser dev tools open to reproduce.

If anyone has any idea where the issue is a nudge in the right direction would be hugely appreciated. Thanks.

OhifTest.zip

kin3tik avatar Jul 13 '20 04:07 kin3tik

@kin3tik, I didn't look at your solution but I have this feature implemented in DICOMcloud (.NET 4.7), check these referenced:

  1. OHIFController
  2. OHIFService

The code generates an older version of the JSON metadata which need to be updated to work with the latest version of the viewer but may give you an idea.

Zaid-Safadi avatar Jul 13 '20 21:07 Zaid-Safadi

Hi @Zaid-Safadi , thank you for the suggestion. I haven't had any issues (I think) parsing the dcm files using fo-dicom to generate the JSON metadata, and I've tried just using the JSON metadata + dicom file in the OHIF Viewer documentation as a sanity check, but both in the same issue from my original comment :(

kin3tik avatar Jul 14 '20 03:07 kin3tik

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 04 '20 05:08 stale[bot]

@kin3tik, it's possible the documentation's JSON file is outdated. It's not living documentation, and we update it infrequently. This is an area I wish we were better, but we have funding limitations.

There should be an issue floating around where we discuss the new format. Have you verified that after the JSON is requested, a DICOM Web request to retrieve the frame is made?

dannyrb avatar Aug 11 '20 23:08 dannyrb

@dannyrb hi danny, thanks for the reply. I can confirm it makes a network request to the dicom file - the issue seems to be occurring after this. I attached a visual studio solution to the second comment that reproduces my issue. Completely lost as to how to resolve.

kin3tik avatar Aug 12 '20 05:08 kin3tik

I have the same issue. The same configuration works on commit d76fab0bc9012cf4e619fc418b075abd30279745 from a year ago. Not sure if it matters but I am using wadouri. Also the same issue as OP, I see the dcm file transferred, but fails on decoding.

DraconPern avatar Sep 13 '20 19:09 DraconPern

I believe I'm running into the same issue when trying wadouri with an old dcm4chee server. The wado downloaded file seems to be correct and works with other applications.

thiagoss avatar Aug 04 '21 03:08 thiagoss