error movescu-dcmqrscp

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
horus
Posts: 20
Joined: Fri, 2006-02-24, 19:33

error movescu-dcmqrscp

#1 Post by horus »

Hi,

I'm Orazio Gambino, ph.d. at the Computer Science Department of University of Palermo.

I'm trying to move a dicom file using the pair movescu->dcmqrscp.

I used the following command line for movescu:

_____________________________________________________________
movescu -v -P -aec ACME_STORE -aem ACME_COPY localhost 104 rsp0004.dcm
pause
_____________________________________________________________

I use as query-file rsp0004.dcm, generated by a previous query/retrieval operation using findscu->dcmqrscp. In this way, I don't need to create a move_query.dcm file for movescu.

The index.dat was generated by dcmqridx.
Index.dat is located both in c:\home and c:\home\dicom\ACME_STORE.

The DCMTK application movescu, dcmqrscp,findscu and dcmqridx are located in c:\home

ACME_COPY is the AE where I want to move the selected file by movescu and query-file rsp0004.dcm. The associated directory is c:\ACME_COPY

I'm working in localhost.

All the .dcm files are contained in c:\home\dicom\ACME_STORE

This is the configurationof dcmqrscp :
_____________________________________________________________
# Global Configuration Parameters
NetworkType = "tcp"
NetworkTCPPort = 104
MaxPDUSize = 8192
MaxAssociations = 20
Display = "yes"
#---------------------------------------
HostTable BEGIN

echoscu = (ECHOSCU, localhost, 104)
findscu = (FINDSCU, localhost, 104)
movescu = (MOVESCU, localhost, 104)
storescu = (STORESCU, localhost, 104)
storescp = (STORESCP, localhost, 104)

ANY = echoscu, findscu, movescu, storescu, storescp

HostTable END
#---------------------------------------
VendorTable BEGIN

"DCMTK AEC"=ANY
"DCMTK AET"=ANY

VendorTable END
#---------------------------------------
AETable BEGIN

COMMON c:\home\dicom\COMMON RW (200, 1024mb) ANY
ACME_STORE c:\home\dicom\ACME_STORE RW (400, 1024mb) ANY
UNITED_STORE c:\home\dicom\UNITED_STORE RW (400, 1024mb) ANY
ACME_COPY c:\ACME_COPY RW (400, 1024mb) ANY

AETable END
_____________________________________________________________

I obtain this terrific result:
_____________________________________________________________
C:\home>dcmqrscp -v 104
Association Received (localhost:MOVESCU -> ACME_STORE) Thu Mar 09 12:43:33 2006
Association Acknowledged (Max Send PDV: 16372)
Assertion failed: !(pos >= this->size()), file ..\..\..\dcmtk\ofstd\include\dcmtk/ofstd/ofstring.h, line 375
_____________________________________________________________
C:\home>movescu -v -P -aec ACME_STORE -aem ACME_COPY localhost 104 rsp0004.dcm
Requesting Association
Association Accepted (Max Send PDV: 8180)
================================
Sending query file: rsp0004.dcm
Move SCU RQ: MsgID 1
Request:

# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0020) DA [19940613] # 8, 1 StudyDate
(0008,0052) CS [PATIENT] # 8, 1 QueryRetrieveLe
vel
(0008,0054) AE [ACME_STORE] # 10, 1 RetrieveAETitle

(0010,0010) PN [XXXXX^ANNA] # 14, 1 PatientName
(0010,0020) LO [SMS511104] # 10, 1 PatientID
_____________________________________________________________

I omit the surname in the Patientname tag, of course.

It should work!!!!

What's wrong?

Thank you.

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

One obvious problem with your configuration is that you specified ACME_COPY in the AETable and not in the HostTable. I would recommend that you read the documentation files dcmqrcnf.txt and dcmqrset.txt as well as the relevant man pages very thoroughly.

Furthermore, you should read the relevant parts of the DICOM standard (again) since it seems that your understanding of the DICOM Query/Retrieve and Storage service is still quite limited.

Btw, working examples of how to use movescu can be found both in this forum and in the newsgroup.

horus
Posts: 20
Joined: Fri, 2006-02-24, 19:33

#3 Post by horus »

Dear Mr. Riesmeier,

my knowledge about dicom protocol is so basic because my field of research is medical imaging, not dicom protocol.

I'm trying to perform a demo for my students which consists in obtaining a patient-list and moving one or more .dcm which belong to a patient.

The first part of the demo (patient list) is ok, now I would like to use the rsp000x.dcm files to move the files belonging to a patient.

I come from DCMTK General forum (see simulations for students) where your colleague Mr. Onken wasn't able to help me about dcmqrscp but he gave me a new version of findscu and movescu because they were affected by A BUG.

Mr. Sabin helped me so much.

I am gratefull both Mr. Onken and Mr. Sabin.

The topic I opened has been viewed by 270 users, so I suppose that my discussion about findscu, dcmqrscp and movescu is interesting for the community.

Now, Mr. Sabin suggested me to open here another topic because I have some errors due to a bad configuration of dcmqrscp, as you confirm. I also suppose that probably I should set other options in the movescu command line.

ACME_COPY is defined in the same manner of ACME_STORE, COMMON and UNITED_STORE except for the path, of course.
Why Should I define it also in the HostTable?

The actual configuration of dcmqrscp and findscu performs a patients retrieval obtaining a rsp000x.dcm file for each patient.

Could you show me where I can find a movescu demo which shows how to use a rsp000x.dcm to move all the .dcm files belonging to a patient into the directory defined by ACME_COPY?

Thank you for your patience, Mr. Riesmeier.

horus
Posts: 20
Joined: Fri, 2006-02-24, 19:33

abnormal program termination

#4 Post by horus »

Hi,

I'm trying to play only with movescu and dcmqrscp. In order to perform
a .dcm file transfer, I realized that I must use also storescp; but I have already errors with movescu and dcmqrscp.


dcmqrscp CRASHES, showing an alert window of Microsoft Visual C++ with "abnormal program termination" and shows on the DosConsolle the
following messagge:
_____________________________________________________________

C:\home>dcmqrscp -v 104
Association Received (localhost:MOVESCU -> ACME_STORE) Sat Mar 11
14:13:16 2006
Association Acknowledged (Max Send PDV: 16372)
Assertion failed: !(pos >= this->size()), file
..\..\..\dcmtk\ofstd\include\dcmtk/ofstd/ofstring.h, line 375
_____________________________________________________________


I report the configuration of dcmqrscp:
_____________________________________________________________

# Global Configuration Parameters
NetworkType = "tcp"
NetworkTCPPort = 104
MaxPDUSize = 8192
MaxAssociations = 20
Display = "yes"
#---------------------------------------
HostTable BEGIN


echoscu = (ECHOSCU, localhost, 104)
findscu = (FINDSCU, localhost, 104)
movescu = (MOVESCU, localhost, 104)
storescu = (STORESCU, localhost, 104)
storescp = (STORESCP, localhost, 104)


ANY = echoscu, findscu, movescu, storescu, storescp


HostTable END
#---------------------------------------
VendorTable BEGIN


"DCMTK AEC"=ANY
"DCMTK AET"=ANY


VendorTable END
#---------------------------------------
AETable BEGIN


COMMON c:\home\dicom\COMMON RW (200, 1024mb) ANY
ACME_STORE c:\home\dicom\ACME_STORE RW (400, 1024mb) ANY
UNITED_STORE c:\home\dicom\UNITED_STORE RW (400, 1024mb) ANY
ACME_COPY c:\ACME_COPY RW (400, 1024mb) movescu


AETable END
_____________________________________________________________


All the .dcm files are placed into c:\home\dicom\ACME_STORE; while
c:\home\dicom\COMMON and c:\home\dicom\UNITED_STORE contain nothing.


A database (index.dat) has been created and it is placed in
c:\home\dicom\ACME_STORE.


Findscu works very well and I obtained a rsp000x.dcm file for each
patient.
I use this file as query for movescu with the following command line:
_____________________________________________________________
C:\home>movescu -aec ACME_STORE -aem ACME_COPY 127.0.0.1 104
rsp0004.dcm
____________________________________________________________


ACME_COPY is the Application Entity where I want move the files
belonging to the patient recognized by Findscu.


I used a little application called TESTSCU (downloadable at
http://www.charruasoft.com/downen.htm) to perform an echo with the
following parameters:


ip address: 127.0.0.1
port: 104
Local AET: MOVESCU
Remote AET: ACME_STORE


I received the Echo OK!
_____________________________________________________________

C:\home>dcmqrscp -v 104
Association Received (localhost:MOVESCU -> ACME_STORE) Sat Mar 11
14:33:10 2006
Association Acknowledged (Max Send PDV: 16372)
Received Echo SCP RQ: MsgID 3
Association Release
_____________________________________________________________

What could be the problem??????


Thanks.

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1445
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#5 Post by Marco Eichelberg »

To repeat what I posted on comp.protocols.dicom:

Code: Select all

Assertion failed: !(pos >= this->size()), file
..\..\..\dcmtk\ofstd\include\dcmtk/ofstd/ofstring.h, line 375
an assertion failure of this kind should never happen - this is most likely a bug in DCMTK.

I would suggest that you compile a debug version from source if you have Visual C++ 6.0 or newer available (you also need CMake for that and you SHOULD read the installation instructions before attempting it) and re-run the test with that version. That should give a good stack trace indicating what exactly is happening.

The dcmqrscp has seen quite a bit of changes and re-factoring from release 3.5.3 (then still named "imagectn") to the current release, so this may very well be possible.

horus
Posts: 20
Joined: Fri, 2006-02-24, 19:33

compiled OK! But I have the same errors movescu-dcmqrscp!

#6 Post by horus »

Dear Mr. Eichelberg,

I compiled the DCMTK 3.5.4 source code substituting findscu and movescu code provided by Michel Onken.

I used Visual C++ 6.0 (Service Pack 6) under Windows XP / Intel x86

The source code files have been placed in c:\dcmtkBEFOREcmake.

The project files .dsp have been obtained with CMAKE version 2.2 patch 3 with the following configuration:

_________________________________________________________
cmake_install_prefix c:/programmi/dcmtk
doxygen_executable c:/dcmtkBEFOREcmake/doxygen/configure.cfg
with_libpnginc c:/dcmtklib/libpng-1.2.8/
with_libtiffinc c:/dcmtklib/tiff-3.7.4/
with_libxmlinc c:/dcmtklib/libxml2-2.6.26/
with_opensslinc c:/dcmtklib/openssl-0.9.8a/
with_zlibinc c:/dcmtklib/zlib-1.2.3/
_________________________________________________________


The ofstd part has no problem:
_________________________________________________________
--------------------Configuration: ofstd - Win32 Debug--------------------
Compiling...
ofcmdln.cxx
ofconapp.cxx
ofcond.cxx
ofconfig.cxx
ofconsol.cxx
ofcrc32.cxx
ofdate.cxx
ofdatime.cxx
offname.cxx
oflist.cxx
oflogfil.cxx
ofstd.cxx
ofstring.cxx
ofthread.cxx
oftime.cxx
Creating library...
_________________________________________________________


Some warnings here:
___________________________________________________________
--------------------Configuration: dsr2html - Win32 Debug--------------------
Compiling...
dsr2html.cxx
Linking...
LINK : warning LNK4049: locally defined symbol "_xmlFree" imported
--------------------Configuration: dsr2xml - Win32 Debug--------------------
Compiling...
dsr2xml.cxx
Linking...
LINK : warning LNK4049: locally defined symbol "_xmlFree" imported
--------------------Configuration: dsrdump - Win32 Debug--------------------
Compiling...
dsrdump.cxx
Linking...
LINK : warning LNK4049: locally defined symbol "_xmlFree" imported
--------------------Configuration: xml2dsr - Win32 Debug--------------------
Compiling...
xml2dsr.cxx
Linking...
LINK : warning LNK4049: locally defined symbol "_xmlFree" imported
--------------------Configuration: mkreport - Win32 Debug--------------------
Compiling...
mkreport.cxx
Linking...
LINK : warning LNK4049: locally defined symbol "_xmlFree" imported
--------------------Configuration: dcmmkcrv - Win32 Debug--------------------
Compiling...
dcmmkcrv.cxx
Linking...
--------------------Configuration: dcmmklut - Win32 Debug--------------------
Compiling...
dcmmklut.cxx
Linking...
--------------------Configuration: dcmp2pgm - Win32 Debug--------------------
Compiling...
dcmp2pgm.cxx
Linking...
LINK : warning LNK4049: locally defined symbol "_xmlFree" imported
--------------------Configuration: dcmprscp - Win32 Debug--------------------
Compiling...
dcmprscp.cxx
Linking...
LINK : warning LNK4049: locally defined symbol "_xmlFree" imported
--------------------Configuration: dcmprscu - Win32 Debug--------------------
Compiling...
dcmprscu.cxx
Linking...
LINK : warning LNK4049: locally defined symbol "_xmlFree" imported
_____________________________________________________________

Finally, all the library have been compiled:

_____________________________________________________________
--------------------Configuration: ALL_BUILD - Win32 Debug--------------------
Building Custom Rule ALL_BUILD_force_1.rule
"Build all projects"

ALL_BUILD - 0 error(s), 10 warning(s)
_____________________________________________________________


Opening INSTALL.DSP all the executable files are created in c:/dcmtk-3.5.4-win32-i386:

_____________________________________________________________
--------------------Configuration: INSTALL - Win32 Debug--------------------
Building Custom Rule INSTALL_force_1.rule
Running cmake script file cmake_install.cmake
-- Installing C:/dcmtkBEFOREcmake/../dcmtk-3.5.4-win32-i386/share/doc/COPYRIGHT
-- Installing C:/dcmtkBEFOREcmake/../dcmtk-3.5.4-win32-i386/share/doc/FAQ
-- Installing C:/dcmtkBEFOREcmake/../dcmtk-3.5.4-win32-i386/share/doc/HISTORY
-- Installing C:/dcmtkBEFOREcmake/../dcmtk-3.5.4-win32-i386/include/dcmtk/config/osconfig.h
-- Installing C:/dcmtkBEFOREcmake/../dcmtk-3.5.4-win32-i386/include/dcmtk/config/cfwin32.h
-- Installing C:/dcmtkBEFOREcmake/../dcmtk-3.5.4-win32-i386/lib/ofstd.lib
-- Installing C:/dcmtkBEFOREcmake/../dcmtk-3.5.4-win32-i386/include/dcmtk/ofstd/ofalgo.h
-- Installing C:/dcmtkBEFOREcmake/../dcmtk-3.5.4-win32-i386/include/dcmtk/ofstd/ofbmanip.h
-- Installing C:/dcmtkBEFOREcmake/../dcmtk-3.5.4-win32-i386/include/dcmtk/ofstd/ofcast.h
-- Installing C:/dcmtkBEFOREcmake/../dcmtk-3.5.4-win32-i386/include/dcmtk/ofstd/ofcmdln.h
-- Installing C:/dcmtkBEFOREcmake/../dcmtk-3.5.4-win32-i386/include/dcmtk/ofstd/ofconapp.h
-- Installing C:/dcmtkBEFOREcmake/../dcmtk-3.5.4-win32-i386/include/dcmtk/ofstd/ofcond.h
-- Installing C:/dcmtkBEFOREcmake/../dcmtk-3.5.4-win32-i386/include/dcmtk/ofstd/ofconfig.h
-- Installing C:/dcmtkBEFOREcmake/../dcmtk-3.5.4-win32-i386/include/dcmtk/ofstd/ofconsol.h
-- Installing C:/dcmtkBEFOREcmake/../dcmtk-3.5.4-win32-i386/include/dcmtk/ofstd/ofcrc32.h
-- Installing C:/dcmtkBEFOREcmake/../dcmtk-3.5.4-win32-i386/include/dcmtk/ofstd/ofdate.h
-- Installing C:/dcmtkBEFOREcmake/../dcmtk-3.5.4-win32-i386/include/dcmtk/ofstd/ofdatime.h
-- Installing C:/dcmtkBEFOREcmake/../dcmtk-3.5.4-win32-i386/include/dcmtk/ofstd/offname.h
-- Installing C:/dcmtkBEFOREcmake/../dcmtk-3.5.4-win32-i386/include/dcmtk/ofstd/ofglobal.h
-- Installing C:/dcmtkBEFOREcmake/../dcmtk-3.5.4-win32-i386/include/dcmtk/ofstd/oflist.h
-- Installing C:/dcmtkBEFOREcmake/../dcmtk-3.5.4-win32-i386/include/dcmtk/ofstd/oflogfil.h
-- Installing C:/dcmtkBEFOREcmake/../dcmtk-3.5.4-win32-i386/include/dcmtk/ofstd/ofoset.h
-- Installing C:/dcmtkBEFOREcmake/../dcmtk-3.5.4-win32-i386/include/dcmtk/ofstd/ofset.h

................ and so on...............

_____________________________________________________________


No problem!!!!

But I have the same errors mentioned in the previous reply when I execute movescu and dcmqrscp.
______________________________________________________
Assertion failed: !(pos >= this->size()), file ..\..\ofstd\include\dcmtk/ofstd/o
fstring.h, line 375
________________________________________________________

...and it CRASHES!

I could send to you the directories and the files (compressed!), so you could try on your PC!

They are few megs!

Thank you a lot for your support, Mr. Eichelberg.

Michael Onken
DCMTK Developer
Posts: 2051
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

#7 Post by Michael Onken »

Hi horus,

youir building procedure just looks fine, but to know, where this (serious) error comes from, you would need to debug dcmqrscp, meaning running it in a Visual Studio Debug Session and then executing line per line. This would give us information, where to fix this problem.

Perhaps it's a bug that is new in 3.5.4, so you might try dcmqrscp from 3.5.3 (still called "imagectn" there) from our ftp server. That means some additional work for you, but I'm not able to check the error for myself.

You could try to isolate the bug (finding a minimal set of files), that causes this error, perhaps one DICOM file from the database and the query file you are using. You could then send us those files and we will try to track the bug down for you (and us...).

Regards
Michael

Markus Sabin
Posts: 99
Joined: Tue, 2005-07-12, 13:50
Location: Erlangen, Germany

#8 Post by Markus Sabin »

Michael Onken wrote: youir building procedure just looks fine, but to know, where this (serious) error comes from, you would need to debug dcmqrscp, meaning running it in a Visual Studio Debug Session and then executing line per line. This would give us information, where to fix this problem.
...or alternatively, set a breakpoint in ..\..\ofstd\include\dcmtk/ofstd/ofstring.h, line 375 and wait until it is hit to get the stack trace....

horus
Posts: 20
Joined: Fri, 2006-02-24, 19:33

-d option!

#9 Post by horus »

Hi Mr. Onken , Mr. Sabin , Mr. Eichelberg

I removed from the directory ACME_STORE the most "strange" .dcm file whose dimension was more than 1 MB; then I updated index.dat file and finally dcmqrscp-movescu. Same errors.

I introduced the -d option to obtain more informations:
_____________________________________________________________
C:\home>dcmqrscp -v -d 104
PDU Type: Associate Request, PDU Length: 367 + 6 bytes PDU header
01 00 00 00 01 6f 00 01 00 00 41 43 4d 45 5f 53
54 4f 52 45 20 20 20 20 20 20 4d 4f 56 45 53 43
55 20 20 20 20 20 20 20 20 20 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 10 00 00 15 31 2e
32 2e 38 34 30 2e 31 30 30 30 38 2e 33 2e 31 2e
31 2e 31 20 00 00 66 01 00 ff 00 30 00 00 1b 31
2e 32 2e 38 34 30 2e 31 30 30 30 38 2e 35 2e 31
2e 34 2e 31 2e 32 2e 31 2e 31 40 00 00 13 31 2e
32 2e 38 34 30 2e 31 30 30 30 38 2e 31 2e 32 2e
31 40 00 00 13 31 2e 32 2e 38 34 30 2e 31 30 30
30 38 2e 31 2e 32 2e 32 40 00 00 11 31 2e 32 2e
38 34 30 2e 31 30 30 30 38 2e 31 2e 32 20 00 00
66 03 00 ff 00 30 00 00 1b 31 2e 32 2e 38 34 30
2e 31 30 30 30 38 2e 35 2e 31 2e 34 2e 31 2e 32
2e 31 2e 32 40 00 00 13 31 2e 32 2e 38 34 30 2e
31 30 30 30 38 2e 31 2e 32 2e 31 40 00 00 13 31
2e 32 2e 38 34 30 2e 31 30 30 30 38 2e 31 2e 32
2e 32 40 00 00 11 31 2e 32 2e 38 34 30 2e 31 30
30 30 38 2e 31 2e 32 50 00 00 3a 51 00 00 04 00
00 40 00 52 00 00 1b 31 2e 32 2e 32 37 36 2e 30
2e 37 32 33 30 30 31 30 2e 33 2e 30 2e 33 2e 35
2e 34 55 00 00 0f 4f 46 46 49 53 5f 44 43 4d 54
4b 5f 33 35 34
Association Received (localhost:MOVESCU -> ACME_STORE) Thu Mar 16 15:22:12 2006
Parameters:
Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.5.4
Our Implementation Version Name: OFFIS_DCMTK_354
Their Implementation Class UID: 1.2.276.0.7230010.3.0.3.5.4
Their Implementation Version Name: OFFIS_DCMTK_354
Application Context Name: 1.2.840.10008.3.1.1.1
Calling Application Name: MOVESCU
Called Application Name: ACME_STORE
Responding Application Name:
Our Max PDU Receive Size: 8192
Their Max PDU Receive Size: 16384
Presentation Contexts:
Context ID: 1 (Proposed)
Abstract Syntax: =FINDPatientRootQueryRetrieveInformationModel
Proposed SCP/SCU Role: Default
Accepted SCP/SCU Role: Default
Proposed Transfer Syntax(es):
=LittleEndianExplicit
=BigEndianExplicit
=LittleEndianImplicit
Context ID: 3 (Proposed)
Abstract Syntax: =MOVEPatientRootQueryRetrieveInformationModel
Proposed SCP/SCU Role: Default
Accepted SCP/SCU Role: Default
Proposed Transfer Syntax(es):
=LittleEndianExplicit
=BigEndianExplicit
=LittleEndianImplicit
Requested Extended Negotiation: none
Accepted Extended Negotiation: none
Constructing Associate AC PDU
Association Acknowledged (Max Send PDV: 16372)
Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.5.4
Our Implementation Version Name: OFFIS_DCMTK_354
Their Implementation Class UID: 1.2.276.0.7230010.3.0.3.5.4
Their Implementation Version Name: OFFIS_DCMTK_354
Application Context Name: 1.2.840.10008.3.1.1.1
Calling Application Name: MOVESCU
Called Application Name: ACME_STORE
Responding Application Name:
Our Max PDU Receive Size: 8192
Their Max PDU Receive Size: 16384
Presentation Contexts:
Context ID: 1 (Accepted)
Abstract Syntax: =FINDPatientRootQueryRetrieveInformationModel
Proposed SCP/SCU Role: Default
Accepted SCP/SCU Role: Default
Accepted Transfer Syntax: =LittleEndianExplicit
Context ID: 3 (Accepted)
Abstract Syntax: =MOVEPatientRootQueryRetrieveInformationModel
Proposed SCP/SCU Role: Default
Accepted SCP/SCU Role: Default
Accepted Transfer Syntax: =LittleEndianExplicit
Requested Extended Negotiation: none
Accepted Extended Negotiation: none
DIMSE receiveCommand
DIMSE receiveCommand: 1 pdv's (106 bytes), presID=3
DIMSE Command Received:

# Dicom-Data-Set
# Used TransferSyntax: LittleEndianImplicit
(0000,0002) UI =MOVEPatientRootQueryRetrieveInformationModel # 28, 1 AffectedSO
PClassUID
(0000,0100) US 33 # 2, 1 CommandField
(0000,0110) US 1 # 2, 1 MessageID
(0000,0600) AE [ACME_COPY] # 10, 1 MoveDestination

(0000,0700) US 0 # 2, 1 Priority
(0000,0800) US 1 # 2, 1 DataSetType
Assertion failed: !(pos >= this->size()), file ..\..\..\dcmtk\ofstd\include\dcmt
k/ofstd/ofstring.h, line 375
_____________________________________________________________
C:\home>movescu -d -aec ACME_STORE -aem ACME_COPY 127.0.0.1 104 rsp0004.dcm
Request Parameters:
Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.5.4
Our Implementation Version Name: OFFIS_DCMTK_354
Their Implementation Class UID:
Their Implementation Version Name:
Application Context Name: 1.2.840.10008.3.1.1.1
Calling Application Name: MOVESCU
Called Application Name: ACME_STORE
Responding Application Name: resp AP Title
Our Max PDU Receive Size: 16384
Their Max PDU Receive Size: 0
Presentation Contexts:
Context ID: 1 (Proposed)
Abstract Syntax: =FINDPatientRootQueryRetrieveInformationModel
Proposed SCP/SCU Role: Default
Accepted SCP/SCU Role: Default
Proposed Transfer Syntax(es):
=LittleEndianExplicit
=BigEndianExplicit
=LittleEndianImplicit
Context ID: 3 (Proposed)
Abstract Syntax: =MOVEPatientRootQueryRetrieveInformationModel
Proposed SCP/SCU Role: Default
Accepted SCP/SCU Role: Default
Proposed Transfer Syntax(es):
=LittleEndianExplicit
=BigEndianExplicit
=LittleEndianImplicit
Requested Extended Negotiation: none
Accepted Extended Negotiation: none
Constructing Associate RQ PDU
PDU Type: Associate Accept, PDU Length: 217 + 6 bytes PDU header
02 00 00 00 00 d9 00 01 00 00 41 43 4d 45 5f 53
54 4f 52 45 20 20 20 20 20 20 4d 4f 56 45 53 43
55 20 20 20 20 20 20 20 20 20 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 10 00 00 15 31 2e
32 2e 38 34 30 2e 31 30 30 30 38 2e 33 2e 31 2e
31 2e 31 21 00 00 1b 01 00 00 00 40 00 00 13 31
2e 32 2e 38 34 30 2e 31 30 30 30 38 2e 31 2e 32
2e 31 21 00 00 1b 03 00 00 00 40 00 00 13 31 2e
32 2e 38 34 30 2e 31 30 30 30 38 2e 31 2e 32 2e
31 50 00 00 3a 51 00 00 04 00 00 20 00 52 00 00
1b 31 2e 32 2e 32 37 36 2e 30 2e 37 32 33 30 30
31 30 2e 33 2e 30 2e 33 2e 35 2e 34 55 00 00 0f
4f 46 46 49 53 5f 44 43 4d 54 4b 5f 33 35 34
Association Parameters Negotiated:
Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.5.4
Our Implementation Version Name: OFFIS_DCMTK_354
Their Implementation Class UID: 1.2.276.0.7230010.3.0.3.5.4
Their Implementation Version Name: OFFIS_DCMTK_354
Application Context Name: 1.2.840.10008.3.1.1.1
Calling Application Name: MOVESCU
Called Application Name: ACME_STORE
Responding Application Name: ACME_STORE
Our Max PDU Receive Size: 16384
Their Max PDU Receive Size: 8192
Presentation Contexts:
Context ID: 1 (Accepted)
Abstract Syntax: =FINDPatientRootQueryRetrieveInformationModel
Proposed SCP/SCU Role: Default
Accepted SCP/SCU Role: Default
Accepted Transfer Syntax: =LittleEndianExplicit
Context ID: 3 (Accepted)
Abstract Syntax: =MOVEPatientRootQueryRetrieveInformationModel
Proposed SCP/SCU Role: Default
Accepted SCP/SCU Role: Default
Accepted Transfer Syntax: =LittleEndianExplicit
Requested Extended Negotiation: none
Accepted Extended Negotiation: none
DIMSE Command To Send:

# Dicom-Data-Set
# Used TransferSyntax: UnknownTransferSyntax
(0000,0000) UL 0 # 4, 1 CommandGroupLen
gth
(0000,0002) UI =MOVEPatientRootQueryRetrieveInformationModel # 28, 1 AffectedSO
PClassUID
(0000,0100) US 33 # 2, 1 CommandField
(0000,0110) US 1 # 2, 1 MessageID
(0000,0600) AE [ACME_COPY] # 10, 1 MoveDestination

(0000,0700) US 0 # 2, 1 Priority
(0000,0800) US 1 # 2, 1 DataSetType
DIMSE sendDcmDataset: sending 106 bytes
DIMSE sendDcmDataset: sending 90 bytes
_____________________________________________________________

I' d like to know of it is enough for you to understand the problem.

If it's no, I'll try a debug session...I hope in the week-end.....the lessons are started :-(

Thank you very very much, guys.

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1445
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#10 Post by Marco Eichelberg »

I' d like to know of it is enough for you to understand the problem.
No, unfortunately.

horus
Posts: 20
Joined: Fri, 2006-02-24, 19:33

THERE IS A BUG IN DCMQRSCP/C-MOVE

#11 Post by horus »

Hi guys,

I saw the topic dcmqrscp c-move problem by Aaron.

I had the same errors of Aaron using movescu-dcmqrscp, if you read the previous posts !!!

It seems that they are solved.

Could you send me the debugged versions (.h, .cxx, .exe) of the applications (like you made with findscu)?


Thank you.

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#12 Post by Jörg Riesmeier »

Here's the relevant part of the diff.

1. File "dcmtk/dcmqrdb/include/dcmtk/dcmqrdb/dcmqrcbg.h":

Code: Select all

@@ -70,10 +69,10 @@
     , assocStarted(OFFalse)
     , origPresId(origpresid)
     , origMsgId(origmsgid)
-//    , origAETitle()
+    , origAETitle()
 //    , origHostName()
     , priority(prior)
-//    , ourAETitle()
+    , ourAETitle()
     , failedUIDs(NULL)
     , nRemaining(0)
     , nCompleted(0)
@@ -81,9 +80,7 @@
     , nWarning(0)
     , getCancelled(OFFalse)
     {
-      origAETitle[0] = '\0';
       origHostName[0] = '\0';
-      ourAETitle[0] = '\0';
     }

     /// check whether verbose mode is enabled
2. File "dcmtk/dcmqrdb/include/dcmtk/dcmqrdb/dcmqrcbm.h":

Code: Select all

@@ -76,7 +75,7 @@
 //    , origAETitle()
 //    , origHostName()
     , priority(pr)
-//    , ourAETitle()
+    , ourAETitle()
 //    , dstAETitle()
     , failedUIDs(NULL)
     , nRemaining(0)
@@ -87,7 +86,6 @@
       origAETitle[0] = '\0';
       origHostName[0] = '\0';
       dstAETitle[0] = '\0';
-      ourAETitle[0] = '\0';
     }

     /** callback handler called by the DIMSE_storeProvider callback function.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 1 guest