Orthanc version 1.4 seems to be causing issues as its frequently stops responding to requests. Also when I try to stop/restart the service in Windows I get errors and the log file says that Postgres is already in use by another instance of orthanc. Reverting back to 1.3.2 fixes everything.
Dear Rana,
We need more input for us to reproduce your issue.
Please describe precisely your use case, and please send us your logs, your configuration files, and your Lua scripts. Also, please check that this issue also occurs in Linux.
Also, try and run Orthanc 1.4.0 by disabling any Lua script. This could be the source of your problems.
The fact that “Postgres is already in use by another instance of orthanc” is extremely strange. Are you sure that you have uninstalled the previous version of Orthanc?
Regards,
Sébastien-
As a raw guess, are you sure that the “DicomAssociationCloseDelay” option is not set to zero in your Orthanc configuration file?
https://bitbucket.org/sjodogne/orthanc/src/02e04783f84bfda5e5e281d58f61a057d884df78/Resources/Configuration.json?at=default&fileviewer=file-view-default
Thank you for your reply Sébastien. It does seem that the issue is with the lua script I’m using for conversion of images to JPEG2000. Weird thing is it never caused any issues before the latest 1.4 version of Orthanc. When the script is used with 1.4 the first instance appears to be stored and then everything just halts (as you can see in the attached log file named Orthanc_with script.log) ie Orthanc wont respond to anything after that.I have attached log files with and without the script enabled and also the script itself along with my config file.Another thing to note is that with version 1.4 the problem persists even if “ConcurrentJobs” is set to 1 with the lua script enabled.
orthanc_config.json (14.8 KB)
Orthanc_with script.log (14 KB)
Orthanc_without script.log (803 KB)
convertJPEG2000.lua (1.99 KB)
I can confirm this, same thing happens to me. Freezing with JPEG2K conversion. I see nothing in the logs but have yet to run in debug mode. I will put my information when I have access to it.
Hello,
Thanks to both of you for reporting and reproducing this issue!
A candidate fix has been committed into the Orthanc mainline:
https://bitbucket.org/sjodogne/orthanc/commits/3a55b77339ff063aeab103f076c57cfe11fdf08e
Please could you give a try? Pre-compiled development snapshots for Windows 32/64 are available at:
https://www.orthanc-server.com/browse.php?path=/orthanc/snapshots (check out “2018-07-16-OrthancNoLuaDeadlock[32|64].exe”)
Regards,
Sébastien-
Thank you for your awesome support as always. I’m currently out of town. I will test as soon as possible and report my results.
Hi Sébastien,
Perfect, that worked. I was also having issues with non-compressed images and Lua script processing and that was resolved also. I am assuming the development snapshot is with debug enabled as although it works, it is very, very slow processing, so in the meantime I went back to 1.3.2, but will be happy to test once a non-debug is released, thanks!
Hello Bryan,
Thanks for the testing!
As soon as Rana validates that the issue is also solved on his side, I’ll release 1.4.1.
Kind Regards,
Sébastien-
Just tested. All seems to be good. Thanks Sébastie, you are a legend. Long live Orthanc !!!
Hi,
Thanks to both of you! As promised, this issue is fixed in newly-released Orthanc 1.4.1:
https://groups.google.com/d/msg/orthanc-users/LBil4zk8ZiY/Q-1MwQFvAwAJ
Sébastien-
Thank you Sébastien.
Thanks. I have put a few hundred studies through and so far so good. I was having memory leak issues intermittently and those look to be resolved as noted in your fixes documentation for 1.4.0. Working well.