terminate called after throwing an instance of 'Orthanc::OrthancException'

I am trying to use Ginkgo CADx to connect to Orthanc, but it causes a serious error when trying to query/retrieve:

terminate called after throwing an instance of ‘Orthanc::OrthancException’

Here is trace output:

W0820 22:52:47.930850 15583 OrthancInitialization.cpp:76] Using the configuration from: Orthanc.conf
W0820 22:52:47.937640 15583 DicomServer.cpp:108] Loading the embedded dictionaries
W0820 22:52:47.962828 15583 OrthancInitialization.cpp:198] Registering JPEG Lossless codecs
W0820 22:52:47.962873 15583 OrthancInitialization.cpp:203] Registering JPEG codecs
I0820 22:52:47.963104 15583 Connection.cpp:148] SQLite::Connection::Execute PRAGMA FOREIGN_KEYS=ON;
I0820 22:52:47.963198 15583 Connection.cpp:148] SQLite::Connection::Execute PRAGMA RECURSIVE_TRIGGERS=ON;
I0820 22:52:47.963220 15583 Connection.cpp:148] SQLite::Connection::Execute PRAGMA SYNCHRONOUS=NORMAL;
I0820 22:52:47.964098 15583 Connection.cpp:148] SQLite::Connection::Execute PRAGMA JOURNAL_MODE=WAL;
I0820 22:52:47.964138 15583 Connection.cpp:148] SQLite::Connection::Execute PRAGMA LOCKING_MODE=EXCLUSIVE;
I0820 22:52:47.964159 15583 Connection.cpp:148] SQLite::Connection::Execute PRAGMA WAL_AUTOCHECKPOINT=1000;
I0820 22:52:47.964227 15583 Statement.cpp:117] SQLite::Statement::Step SELECT name FROM sqlite_master WHERE type=? AND name=?
I0820 22:52:47.964290 15583 Statement.cpp:117] SQLite::Statement::Step SELECT value FROM GlobalProperties WHERE property=?
I0820 22:52:47.964334 15583 DatabaseWrapper.cpp:849] Version of the Orthanc database: 4
I0820 22:52:47.964385 15583 Statement.cpp:111] SQLite::Statement::Run SELECT SUM(compressedSize) FROM AttachedFiles
I0820 22:52:47.964424 15583 Statement.cpp:111] SQLite::Statement::Run SELECT SUM(compressedSize) FROM AttachedFiles
I0820 22:52:47.964472 15583 Statement.cpp:111] SQLite::Statement::Run BEGIN TRANSACTION
I0820 22:52:47.964504 15583 Statement.cpp:111] SQLite::Statement::Run COMMIT
I0820 22:52:47.964534 15583 Statement.cpp:111] SQLite::Statement::Run SELECT SUM(compressedSize) FROM AttachedFiles
I0820 22:52:47.964953 15584 Statement.cpp:117] SQLite::Statement::Step SELECT value FROM GlobalProperties WHERE property=?
I0820 22:52:47.965054 15585 ServerIndex.cpp:1550] Starting the monitor for stable resources (stable age = 60)
I0820 22:52:47.965121 15584 ServerIndex.cpp:272] Starting the database flushing thread (sleep = 10)
W0820 22:52:47.965324 15587 ServerScheduler.cpp:134] The server scheduler has started
W0820 22:52:47.965632 15583 LuaContext.cpp:89] Lua says: Lua toolbox installed
W0820 22:52:47.965663 15583 main.cpp:325] Storage directory: “OrthancStorage”
W0820 22:52:47.965682 15583 main.cpp:326] Index directory: “OrthancStorage”
W0820 22:52:47.965703 15583 ServerContext.cpp:94] Disk compression is enabled
I0820 22:52:47.965723 15583 ServerContext.cpp:487] Storing MD5 for attachments: yes
W0820 22:52:47.965744 15583 ServerIndex.cpp:1078] No limit on the number of stored patients
I0820 22:52:47.965764 15583 Statement.cpp:111] SQLite::Statement::Run SELECT SUM(compressedSize) FROM AttachedFiles
I0820 22:52:47.965801 15583 Statement.cpp:111] SQLite::Statement::Run BEGIN TRANSACTION
I0820 22:52:47.965821 15583 Statement.cpp:111] SQLite::Statement::Run COMMIT
I0820 22:52:47.965839 15583 Statement.cpp:111] SQLite::Statement::Run SELECT SUM(compressedSize) FROM AttachedFiles
W0820 22:52:47.965873 15583 ServerIndex.cpp:1095] No limit on the size of the storage area
I0820 22:52:47.965893 15583 Statement.cpp:111] SQLite::Statement::Run SELECT SUM(compressedSize) FROM AttachedFiles
I0820 22:52:47.965924 15583 Statement.cpp:111] SQLite::Statement::Run BEGIN TRANSACTION
I0820 22:52:47.965944 15583 Statement.cpp:111] SQLite::Statement::Run COMMIT
I0820 22:52:47.965965 15583 Statement.cpp:111] SQLite::Statement::Run SELECT SUM(compressedSize) FROM AttachedFiles
W0820 22:52:47.968138 15583 main.cpp:414] HTTP server listening on port: 8042
I0820 22:52:47.968745 15600 DicomServer.cpp:168] DICOM server started
W0820 22:52:48.018323 15583 main.cpp:424] DICOM server listening on port: 4242
W0820 22:52:48.018417 15583 main.cpp:431] Orthanc has started
I0820 22:52:52.665428 15600 CommandDispatcher.cpp:462] Association Received
I0820 22:52:52.666451 15600 CommandDispatcher.cpp:641] Association Acknowledged (Max Send PDV: 16372)
terminate called after throwing an instance of ‘Orthanc::OrthancException’
Aborted

I am trying to run on Ubuntu 14.04 64 bit, my config flags were:

CC=“ccache gcc” CXX=“ccache g++” cmake -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Debug -DSTANDALONE_BUILD=ON ~/orthanc

I have alto tried to compile and run this on a Beaglebone, and I get the same result.

The server works perfectly otherwise, receives, stores, web interface, works beautiful…

Dear Brian,

Please would you kindly introduce a bug report at:
https://code.google.com/p/orthanc/issues/list

I will have a look at it as soon as possible, around the beginning of September. Please attach your configuration files, a screenshot of your Ginkgo CADx configuration, and a screenshot of the manipulation that causes the crash.

Thanks in advance,
Sébastien-

FYI, I have just tested the interfacing between Ginkgo CADx and Orthanc for C-MOVE, and everything works properly.

This is probably a problem that results from a bad configuration of either Ginkgo CADx or Orthanc.