problem forwarding big studies

Hello,

I was wondering if more people experience the same problems as we do.
The problem occurs when we forward really big studies (12K to 18K images) (it doesn’t always happen but in about 50% of the times).

Our setup:
CT scanner → Orthanc → Remote PACS.
Orthanc receives the CT images from the CT scanner modifies a couple of DICOM tags and forwards these images to the remote PACS and then removes the images from Orthanc.

Symptoms:
after about 10K images Orthanc stops forwarding images, but can still receive images without problems. Also the webinterface is also working normally.
If i start a forward of the missing images from the webinterface it looks like it starts to forward but the remote PACS doesn’t receive any images.
If i then try to restart the Orthanc service it doesn’t restart, i have to kill the Orthanc process and start again. After this Orthanc behaves again.

I’ve made a trace logging of forward gone wrong but can’t post it here it’s 225 MB.

I’ve been using this setup for about a year now. It used to work flawlessly but since i think September i started to go wrong sometimes.
I’m not sure on which version a was at the time, but normally i’m not far behind on the most current release of Orthanc.
So i think the problem did not occur in older Orthanc versions prior to 0.9.2 ?

If i look in older Orhanc Error loggings i see this kind of error’s i think it’s related:

E1214 17:48:39.691841 ModifyInstanceCommand.cpp:107] Unable to modify instance 025f161f-1f6f7699-49750e09-041c8b50-ba303803 in a Lua script: Unknown resource E1214 17:48:39.691841 ModifyInstanceCommand.cpp:107] Unable to modify instance b7812028-89e3bac2-d64884c3-f7522840-f2277a27 in a Lua script: Unknown resource E1214 17:50:44.413680 MongooseServer.cpp:754] Exception in the HTTP handler: Unknown resource E1214 18:58:12.287067 MongooseServer.cpp:754] Exception in the HTTP handler: Unknown resource E1214 19:18:39.924553 ModifyInstanceCommand.cpp:107] Unable to modify instance ccaabb8d-3b73fc3d-3895fd67-dd3ca17f-6e669ff0 in a Lua script: Unknown resource E1214 19:18:39.924553 ModifyInstanceCommand.cpp:107] Unable to modify instance efbcef6e-40b3a748-65a9d76a-c64ef843-25fe6b83 in a Lua script: Unknown resource E1216 19:19:17.070560 MongooseServer.cpp:754] Exception in the HTTP handler: Unknown resource

Anybody having the same kind of problems?

I can email the trace logfile of a forward gone wrong if that would help.

Regards,
Robert

Hello,

Sorry, I currently have no time to personally dig this hazy problem, as I have other close deadlines.

It would be really useful to provide an explicit, precise scenario for me to directly reproduce the problem. And, as Orthanc is fully open-source, it would be even greater if another developer could provide a patch.

Regards,
Sébastien-

Our Philipts CT sends about 4-5 studies each day to Orthanc … 15-20K sized images, about 2000 images/day … no problems at all.
We do no forward the images to remote PACS, as we are changing the main 2 PACS we have to only use OrthanC, but for me, it could be that you are having problems, not with big images, but with tags modification, maybe you have and error in you LUA script that get stuck with some kind of images.

If you could upload the log to dropbox or google drive and post the link, I could try to check what happens.

The size of the images is not 15-20 K(B) but it’s the amount om images in 1 study.
so it’s that amount of CT images (these are JPEG lossless compressed 1.2.840.10008.1.2.4.70)

I’ve only seen this problem happening with these big studies not with the smaller studies that also get send through Orthanc (about 3000 images per study).

Some more info:

When we send these big studies it takes about 1 hour to send all images.
We only have this kind of studies on average once a week.
Orthanc is running on windows server 2003 (yes i know…)

Regards,
Robert

Our ‘largest’ studies … are about 1200 images, and forwarded without any problem.

20.000 images … I think, that could be about 3Gb studies ¿? … take into account about Windows < 2008 problems with that sizes of dirs.

Are you using any DB pluging? … maybe your problem it’s related to the undergo platform W2003, not Orthan itself.

You should try with a small linux machine, also if you could publish your log on dropbox or google drive, we could check it.

Hello,

just posting a follow-up.
Since i’ve changed my lua forward script to use the REST api to modify the dicomtags instead of the ModifyInstance lua command the forwarding works without any problems with big studies.

Regards,
Robert

Great! This is really good news.

Thanks for the feedback,
Sébastien-