Closed ohif-bot closed 11 months ago
After inspecting it the results are:
To troubleshoot it was used chrome task manager (memory exceeds 2GB) and it was profiled heap snapshots (some heapsnapshots were generated and for all of them memory exceeds 2GB).
Debugged into (observed exception here): for the package dcmjs: BufferStream/readString(method) and BufferStream/concat(method); for the ohif platform/viewer ViewerLocalFileData
Possible solutions would be
Please review the latest code in the master branch. This issue might have been resolved. If it persists, kindly reopen the issue with updated details.
Try viewer-dev.ohif.org instead of viewer.ohif.org
Our viewer.ohif.org
is deployed from release
branch while viewer-dev.ohif.org
is our master
branch
Read more about branch explanations here https://docs.ohif.org/development/getting-started#developing
Download this image:
ftp://medical.nema.org/medical/dicom/Datasets/WG26/Hamamatsu/Dog_15x15_20x.dcm
(Navigate to here: ftp://medical.nema.org/medical/dicom/Datasets/WG26/Hamamatsu/ and click on the file if the link above doesn't work)
Try to select the file and upload it to your PACS using the + button in the top of the study list (see video: https://www.dropbox.com/s/pya8eall0727eum/Sep-03-2019%2011-30-19.mp4?dl=0).
Chrome will crash with an Aww Snap error. I am guessing it is running out of memory.
It's not clear yet where it is failing. The Uploading code is here: https://github.com/OHIF/Viewers/blob/1b68c307fcf7a2c73d84ccd095b2bb7cdf66b012/platform/viewer/src/googleCloud/api/DicomUploadService.js#L47-L55
It's possible it's failing when reading the file, but it's also possible that the dicomweb-client is failing while calling storeInstances.
https://github.com/dcmjs-org/dicomweb-client/blob/5c1a0a0138b0a77db661df84a6ac80737668b7e1/src/api.js#L1282-L1298
I can imagine storeInstances failing at the multipartEncode step (https://github.com/dcmjs-org/dicomweb-client/blob/5c1a0a0138b0a77db661df84a6ac80737668b7e1/src/message.js#L132-L178)
First step: Find out what is actually causing the failure (comment out the remaining steps one by one and see if it still fails).