Search found 1257 matches

by Marco Eichelberg
Tue, 2020-09-15, 08:44
Forum: DCMTK - General
Topic: Sometimes FIPS TLS Error Message
Replies: 1
Views: 29

Re: Sometimes FIPS TLS Error Message

The error messages "drbg stuck" and "fips selftest failed" (which are generated by OpenSSL and only printed by DCMTK) seem to indicate that there is a problem with your FIPS module. DRBG is the Deterministic Random Bit Generator, and if that does not respond, then the self-test of the FIPS module wi...
by Marco Eichelberg
Thu, 2020-08-27, 12:09
Forum: DCMTK - General
Topic: DicomImage() constructor is NOT thread safe
Replies: 1
Views: 96

Re: DicomImage() constructor is NOT thread safe

The problem is that you pass the same DcmDataset object to all constructors, which is not supported. DcmDataset loads larger attribute values from the file in a lazy "on demand" pattern when they are accessed first. Probably all of your constructors trigger this behaviour in parallel. It might help ...
by Marco Eichelberg
Thu, 2020-08-27, 12:01
Forum: DCMTK - General
Topic: In Android getting crash when calling sendFINDRequest
Replies: 4
Views: 163

Re: In Android getting crash when calling sendFINDRequest

That sounds like heap memory corruption. Unfortunately, such errors are hard to debug. Check if memory debuggers such as valgrind, dmalloc or the various -fsanitize options in gcc or clang can be used on your platform.
by Marco Eichelberg
Thu, 2020-08-27, 11:55
Forum: DCMTK - General
Topic: Making an SCPPool for worklist threads
Replies: 1
Views: 78

Re: Making an SCPPool for worklist threads

There is no restriction in the SCPPool class that would prevent you from implementing a Worklist SCP. The worklist server in DCMTK is simply much older than the SCPPool class and uses a different mechanism to support multiple clients: I creates a separate process for each incoming network connection...
by Marco Eichelberg
Mon, 2020-08-10, 11:02
Forum: DCMTK - General
Topic: On the problem that dicmtk can't read drtstructuresetiod data
Replies: 15
Views: 374

Re: On the problem that dicmtk can't read drtstructuresetiod data

That may explain the problem. When dcmEnableAutomaticInputDataCorrection is set to OFTrue, then certain trivial data corrections such as removing unneeded padding characters at the end of a field are performed, and in the case of UID elements, all space characters (which should never occur in a UID)...
by Marco Eichelberg
Mon, 2020-08-10, 09:48
Forum: DCMPRINT
Topic: Print SCU and Print SCP
Replies: 8
Views: 309

Re: Print SCU and Print SCP

The solution is much simpler: You can deactivate the loading of the calibration file "printer.dat" by removing (or commenting out) the line Characteristics = printer.dat in the configuration file: ; Characteristics = printer.dat Alternatively, a sample printer.dat file is provided in the download pa...
by Marco Eichelberg
Wed, 2020-07-29, 07:33
Forum: DCMTK - General
Topic: DCMTK installation problem
Replies: 1
Views: 96

Re: DCMTK installation problem

The error about "unicode/ucnv.h" means that in the CMake step, compilation with ICU was enabled, but during compilation, ICU cannot be found. Disable ICU in CMake, and try again. The error messages about ofstd.lib are follow-up errors, these will disappear as soon as compilation of the ofstd library...
by Marco Eichelberg
Wed, 2020-07-29, 07:27
Forum: DCMTK - General
Topic: In Android getting crash when calling sendFINDRequest
Replies: 4
Views: 163

Re: In Android getting crash when calling sendFINDRequest

I am not an Android developer; I hope my comments apply for development on Android: It should be possible to compile a debug build of a shared object and get a stack trace indicating where (in the source code) the crash happens. Without that, this will be a guessing exercise. When you have the same ...
by Marco Eichelberg
Mon, 2020-07-06, 10:22
Forum: DCMTK - Installation
Topic: dcm2xml and dcmj2pnm stream file to stdin
Replies: 2
Views: 4111

Re: dcm2xml and dcmj2pnm stream file to stdin

In case anybody wants to implement that, here's some brief instructions. Modify the following four methods such that they recognize "-" as a special filename indicating stdin or stdout, respectively, and then use a different stream class to read or write the DICOM object: DcmFileFormat::loadFileUnti...
by Marco Eichelberg
Thu, 2020-07-02, 08:05
Forum: DCMTK - General
Topic: Decompression Bug #369 / Test data cabinet
Replies: 2
Views: 172

Re: Decompression Bug #369 / Test data cabinet

The YCbCr to RGB conversion routine in the IJG JPEG library does not work correctly for cases where BitsStored < BitsAllocated. This is a case that is permitted in DICOM, but probably does not occur in practice (yet), because so far all color imaging modalities produce 24 bit "true color" (i.e., 8 b...
by Marco Eichelberg
Sun, 2020-06-14, 15:35
Forum: DCMTK - General
Topic: MPPS NCREATE error
Replies: 2
Views: 252

Re: MPPS NCREATE error

It seems to me that the DVTk SCP for some reason closes the transport connection unexpectedly, as this line seems to indicate: DUL Action: AA 4 Indicate AP Abort . This is a "provider abort", i.e. what happens when DCMTK discovers that suddenly the network connection is gone without have been proper...
by Marco Eichelberg
Sun, 2020-06-14, 15:26
Forum: DCMTK - General
Topic: Store SCP error: DIMSE Failed to receive message
Replies: 3
Views: 265

Re: Store SCP error: DIMSE Failed to receive message

In any case. I don't think that you can solve this problem on DCMTK level. The TCP transport connection apparently breaks spontaneously, and the error message only describes what happens in storescp when detecting that the network connection is suddenly gone unexpectedly.
by Marco Eichelberg
Sun, 2020-06-14, 15:24
Forum: DCMTK - General
Topic: Header only storescu/storescp
Replies: 6
Views: 383

Re: Header only storescu/storescp

You cannot use storescu to send a partial image. You could, however, use dcmodify to create sample datasets without pixel data:

Code: Select all

dcmodify -e PixelData <filename.dcm>
by Marco Eichelberg
Tue, 2020-05-19, 18:24
Forum: DCMPRINT
Topic: C++ Print listen
Replies: 3
Views: 701

Re: C++ Print listen

I can only suggest that you look at the implementation of tcpsrv.cc, which is the main standalone print server. One problem here is that you are using the PSVTCPCentralServer class. That is actually not a print server. When compiled on Unix/Linux, the print server uses one process only for inter-pro...
by Marco Eichelberg
Mon, 2020-05-04, 13:54
Forum: DCMPRINT
Topic: C++ Print listen
Replies: 3
Views: 701

Re: C++ Print listen

The problem here is that not all files in your project have been compiled with the same compiler options for the build model. These options include /MT, /MD, /MTd, /MDd for "multithreaded", "multhreaded DLL", "multithreaded debug", "multhreaded DLL debug". Microsoft provides four different versions ...