Retrive Image failure from DCMQRDB
Moderator: Moderator Team
Retrive Image failure from DCMQRDB
hi..
I am querying the database with the DICOM Eye tool, while running the SCP using the command dcmqrscp.exe -v -c dcmqrscp1.cfg 8600..
I am unable to retrieve the images even though it gives the number of images present in the series..it prints the following error..
Assertion failed: !(pos >= this->size()), file ..\..\ofstd\include\dcmtk/ofstd/ofstring.h, line 375
what might be the cause, thanks in advance..
I am querying the database with the DICOM Eye tool, while running the SCP using the command dcmqrscp.exe -v -c dcmqrscp1.cfg 8600..
I am unable to retrieve the images even though it gives the number of images present in the series..it prints the following error..
Assertion failed: !(pos >= this->size()), file ..\..\ofstd\include\dcmtk/ofstd/ofstring.h, line 375
what might be the cause, thanks in advance..
Santosh S B
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
This issue has already been solved. See e.g. here.
another issue
I made the changes, now its not crashing but at the same time i am not getting the output. It says
Requesting Sub-Association
and stops here..
any idea regarding this ????
thanks..
Requesting Sub-Association
and stops here..
any idea regarding this ????
thanks..
Santosh S B
-
- DCMTK Developer
- Posts: 2072
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Hi,
Is there any more output if you add options -vv and -d?
Is the move target correctly specified in the client's request (known AETitle) and also in dcmqrdb's config file (translation to IP adress/port)?
Is there a timeout message after a certain amount of time? Try option "-dhl" do disable DNS lookup.
Regards,
Michael
Is there any more output if you add options -vv and -d?
Is the move target correctly specified in the client's request (known AETitle) and also in dcmqrdb's config file (translation to IP adress/port)?
Is there a timeout message after a certain amount of time? Try option "-dhl" do disable DNS lookup.
Regards,
Michael
Hi Michael,
Here are the details..
I ran the command
dcmqrscp.exe -v -vv -d -c dcmqrscp1.cfg 8600
and the command
>movescu.exe -v -P -aec OFFIS -aem MEDSPHERE -dhl localhost 8600 D:\temp\query\wlistqry1.dcm in another terminal..
at the dcmqrscp these are last few lines its printing
Context ID: 167 (Proposed)
Abstract Syntax: =XRayRadiationDoseSR
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
Requesting Sub-Association
Constructing Associate RQ PDU
At the movescu terminal
Requesting Association
Association Accepted (Max Send PDV: 16372)
================================
Sending query file: D:\temp\query\wlistqry1.dcm
Move SCU RQ: MsgID 1
Request:
# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0020) DA (no value available) # 0, 0 StudyDate
(0008,0052) CS [PATIENT] # 8, 1 QueryRetrieveLevel
(0010,0010) PN (no value available) # 0, 0 PatientsName
(0010,0020) LO (no value available) # 0, 0 PatientID
and its stopping here..
my configuration file for dcmqrdb is
#-----------------------------------------------------------------------
#
# Example configuration file for the dcmqrdb and dcmqrti applications.
#
#-----------------------------------------------------------------------
# Global Configuration Parameters
NetworkType = "tcp"
NetworkTCPPort = 8600
MaxPDUSize = 16384
MaxAssociations = 16
Display = "no"
HostTable BEGIN
#
# The HostTable defines symbolic names for collections of network
# DICOM Application Entities. A symbolic name can represent a single
# application entity or it can represent a group of application entities.
# Each DICOM application entity is defined by a triple consisting of
# Application Entitiy Title, host name and TCP/IP port number.
#
# Entry Format: SymbolicName = ( AETitle, HostName, Portnumber ), ... |
# SymbolicName = SymbolicName, ...
#
# NOTE: in the current implementation you cannot substitute an IP address
# for a hostname.
#
offis1 = (OFFIS, localhost, 8600)
medsphere1 = (MEDSPHERE, localhost,8600)
dicomeye1 = (DicomEye, localhost,8600)
findscu = (FINDSCU, localhost, 8600)
movescu = (MOVESCU, localhost, 8600)
ANY = offis1 , medsphere1 , dicomeye1 , findscu , movescu
#
HostTable END
VendorTable BEGIN
#
# The VendorTable is used by the dcmqrdb and dcmqrti applications.
# You can give a vendor name (r.h.s. entry below) to the dcmqrti
# program and it will talk to all hosts and AEs of the vendor.
# The dcmqrdb program can use the vendor table to restrict move destination
# to hosts belonging to a vendor.
# Also, the dcmqrti and dcmqrdb programs use the name defined on the left hand side
# as the vendor name to display above images.
#
# The format:
# VendorName = SymbolicName
# The symbolic name should be defined in the HostTable.
#
"MedSphere CT Company" = ANY
#
VendorTable END
AETable BEGIN
#
# Each row of the AETable defines an Application Entities (AE) Title known
# to the dcmqrdb application. Each AE Title represents a separate
# image database located in the specified file system directory (storage area).
# Each AE Title has read/write, quota and peer access restrictions.
#
# Entry Format: AETitle StorageArea Access Quota Peers
# AccessFormat: R | RW | W
# Quota Format: ( maxStudies, maxBytesPerStudy )
# Peers Format: ( Hostname, AETitle, Portnumber ), ... |
# Entry in HostTable |
# ANY
#
#COMMON /home/dicom/db/COMMON R (200, 1024mb) ANY
#ACME_STORE /home/dicom/db/ACME_STORE RW (9, 1024mb) acmeCTcompany
#UNITED_STORE /home/dicom/db/UNITED_STORE RW (9, 1024mb) unitedMRcompany
OFFIS D:\temp\OFFIS RW (200, 1024mb)ANY
#Azuriah D:\temp\Azuriah RW (6, 1024mb) ANY
MEDSPHERE D:\temp\MEDSPHERE RW (200, 1024mb) ANY
DicomEye D:\temp\DicomEye RW (200, 1024mb) ANY
#
AETable END
....please do let me know were i am going wrong
Here are the details..
I ran the command
dcmqrscp.exe -v -vv -d -c dcmqrscp1.cfg 8600
and the command
>movescu.exe -v -P -aec OFFIS -aem MEDSPHERE -dhl localhost 8600 D:\temp\query\wlistqry1.dcm in another terminal..
at the dcmqrscp these are last few lines its printing
Context ID: 167 (Proposed)
Abstract Syntax: =XRayRadiationDoseSR
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
Requesting Sub-Association
Constructing Associate RQ PDU
At the movescu terminal
Requesting Association
Association Accepted (Max Send PDV: 16372)
================================
Sending query file: D:\temp\query\wlistqry1.dcm
Move SCU RQ: MsgID 1
Request:
# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0020) DA (no value available) # 0, 0 StudyDate
(0008,0052) CS [PATIENT] # 8, 1 QueryRetrieveLevel
(0010,0010) PN (no value available) # 0, 0 PatientsName
(0010,0020) LO (no value available) # 0, 0 PatientID
and its stopping here..
my configuration file for dcmqrdb is
#-----------------------------------------------------------------------
#
# Example configuration file for the dcmqrdb and dcmqrti applications.
#
#-----------------------------------------------------------------------
# Global Configuration Parameters
NetworkType = "tcp"
NetworkTCPPort = 8600
MaxPDUSize = 16384
MaxAssociations = 16
Display = "no"
HostTable BEGIN
#
# The HostTable defines symbolic names for collections of network
# DICOM Application Entities. A symbolic name can represent a single
# application entity or it can represent a group of application entities.
# Each DICOM application entity is defined by a triple consisting of
# Application Entitiy Title, host name and TCP/IP port number.
#
# Entry Format: SymbolicName = ( AETitle, HostName, Portnumber ), ... |
# SymbolicName = SymbolicName, ...
#
# NOTE: in the current implementation you cannot substitute an IP address
# for a hostname.
#
offis1 = (OFFIS, localhost, 8600)
medsphere1 = (MEDSPHERE, localhost,8600)
dicomeye1 = (DicomEye, localhost,8600)
findscu = (FINDSCU, localhost, 8600)
movescu = (MOVESCU, localhost, 8600)
ANY = offis1 , medsphere1 , dicomeye1 , findscu , movescu
#
HostTable END
VendorTable BEGIN
#
# The VendorTable is used by the dcmqrdb and dcmqrti applications.
# You can give a vendor name (r.h.s. entry below) to the dcmqrti
# program and it will talk to all hosts and AEs of the vendor.
# The dcmqrdb program can use the vendor table to restrict move destination
# to hosts belonging to a vendor.
# Also, the dcmqrti and dcmqrdb programs use the name defined on the left hand side
# as the vendor name to display above images.
#
# The format:
# VendorName = SymbolicName
# The symbolic name should be defined in the HostTable.
#
"MedSphere CT Company" = ANY
#
VendorTable END
AETable BEGIN
#
# Each row of the AETable defines an Application Entities (AE) Title known
# to the dcmqrdb application. Each AE Title represents a separate
# image database located in the specified file system directory (storage area).
# Each AE Title has read/write, quota and peer access restrictions.
#
# Entry Format: AETitle StorageArea Access Quota Peers
# AccessFormat: R | RW | W
# Quota Format: ( maxStudies, maxBytesPerStudy )
# Peers Format: ( Hostname, AETitle, Portnumber ), ... |
# Entry in HostTable |
# ANY
#
#COMMON /home/dicom/db/COMMON R (200, 1024mb) ANY
#ACME_STORE /home/dicom/db/ACME_STORE RW (9, 1024mb) acmeCTcompany
#UNITED_STORE /home/dicom/db/UNITED_STORE RW (9, 1024mb) unitedMRcompany
OFFIS D:\temp\OFFIS RW (200, 1024mb)ANY
#Azuriah D:\temp\Azuriah RW (6, 1024mb) ANY
MEDSPHERE D:\temp\MEDSPHERE RW (200, 1024mb) ANY
DicomEye D:\temp\DicomEye RW (200, 1024mb) ANY
#
AETable END
....please do let me know were i am going wrong
Santosh S B
-
- OFFIS DICOM Team
- Posts: 1493
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
Hi..
These are the few changes i have done for the movescu command,
movescu.exe -v -S -aec OFFIS -aem MEDSPHERE -dhl localhost 8600 D:\temp\query\wlistqry1.dcm
everything is fine at the command prompt but the images are not moved to the new destination..OFFIS contains some 6 .dcm files and MEDSPHERE is empty..nothing is copied to MEDSPHERE after i execute the movescu command..the output is like this..
at the scp terminal..
Association Received (127.0.0.1:MOVESCU -> OFFIS) Mon Sep 10 09:49:47 2007
Association Acknowledged (Max Send PDV: 16372)
Received Move SCP: C-Move RQ: MsgID: 1
AffectedSOPClassUID: =MOVEStudyRootQueryRetrieveInformationModel
Priority: 0
Data Set: Present
Move Destination: MEDSPHERE
Move SCP Request Identifiers:
# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0020) DA (no value available) # 0, 0 StudyDate
(0008,0052) CS [PATIENT] # 8, 1 QueryRetrieveLevel
(0010,0010) PN (no value available) # 0, 0 PatientsName
(0010,0020) LO (no value available) # 0, 0 PatientID
Move SCP Response 1 [status: Success]
Association Release
At the scu terminal
Requesting Association
Association Accepted (Max Send PDV: 16372)
================================
Sending query file: D:\temp\query\wlistqry1.dcm
Move SCU RQ: MsgID 1
Request:
# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0020) DA (no value available) # 0, 0 StudyDate
(0008,0052) CS [PATIENT] # 8, 1 QueryRetrieveLevel
(0010,0010) PN (no value available) # 0, 0 PatientsName
(0010,0020) LO (no value available) # 0, 0 PatientID
C-Move RSP: MsgID: 1 [Status=Success]
AffectedSOPClassUID: =MOVEStudyRootQueryRetrieveInformationModel
Data Set: Not Present
NumberOfCompletedSubOperations: 0
NumberOfFailedSubOperations: 0
NumberOfWarningSubOperations: 0
Releasing Association
And when using the DicomEye as SCU its still giving
# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0018) UI [1.2.840.113619.2.22.288.10010.1674.2.10.20040929.244148] # 56, 1 SOPInstanceUID
(0008,0052) CS [IMAGE] # 6, 1 QueryRetrieveLevel
(0020,000d) UI [1.2.840.113619.2.22.288.10010.1674.20040929.243917] # 50, 1 StudyInstanceUID
(0020,000e) UI [1.2.840.113619.2.22.288.10010.1674.2.20040929.244057] # 52, 1 SeriesInstanceUID
Requesting Sub-Association
anyways first let me get it through MOVESCU then will try to retrieve with
DicomEye
Thanks
These are the few changes i have done for the movescu command,
movescu.exe -v -S -aec OFFIS -aem MEDSPHERE -dhl localhost 8600 D:\temp\query\wlistqry1.dcm
everything is fine at the command prompt but the images are not moved to the new destination..OFFIS contains some 6 .dcm files and MEDSPHERE is empty..nothing is copied to MEDSPHERE after i execute the movescu command..the output is like this..
at the scp terminal..
Association Received (127.0.0.1:MOVESCU -> OFFIS) Mon Sep 10 09:49:47 2007
Association Acknowledged (Max Send PDV: 16372)
Received Move SCP: C-Move RQ: MsgID: 1
AffectedSOPClassUID: =MOVEStudyRootQueryRetrieveInformationModel
Priority: 0
Data Set: Present
Move Destination: MEDSPHERE
Move SCP Request Identifiers:
# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0020) DA (no value available) # 0, 0 StudyDate
(0008,0052) CS [PATIENT] # 8, 1 QueryRetrieveLevel
(0010,0010) PN (no value available) # 0, 0 PatientsName
(0010,0020) LO (no value available) # 0, 0 PatientID
Move SCP Response 1 [status: Success]
Association Release
At the scu terminal
Requesting Association
Association Accepted (Max Send PDV: 16372)
================================
Sending query file: D:\temp\query\wlistqry1.dcm
Move SCU RQ: MsgID 1
Request:
# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0020) DA (no value available) # 0, 0 StudyDate
(0008,0052) CS [PATIENT] # 8, 1 QueryRetrieveLevel
(0010,0010) PN (no value available) # 0, 0 PatientsName
(0010,0020) LO (no value available) # 0, 0 PatientID
C-Move RSP: MsgID: 1 [Status=Success]
AffectedSOPClassUID: =MOVEStudyRootQueryRetrieveInformationModel
Data Set: Not Present
NumberOfCompletedSubOperations: 0
NumberOfFailedSubOperations: 0
NumberOfWarningSubOperations: 0
Releasing Association
And when using the DicomEye as SCU its still giving
# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0018) UI [1.2.840.113619.2.22.288.10010.1674.2.10.20040929.244148] # 56, 1 SOPInstanceUID
(0008,0052) CS [IMAGE] # 6, 1 QueryRetrieveLevel
(0020,000d) UI [1.2.840.113619.2.22.288.10010.1674.20040929.243917] # 50, 1 StudyInstanceUID
(0020,000e) UI [1.2.840.113619.2.22.288.10010.1674.2.20040929.244057] # 52, 1 SeriesInstanceUID
Requesting Sub-Association
anyways first let me get it through MOVESCU then will try to retrieve with
DicomEye
Thanks
Santosh S B
After trying for another hour here is wht i am getting....
movescu -v --study --port 9876 --move DicomEye --call OFFIS localhost 8600 D:\temp\query\wlistqry1.dcm
gives the following o/p
Requesting Association
Association Accepted (Max Send PDV: 16372)
================================
Sending query file: D:\temp\query\wlistqry1.dcm
Move SCU RQ: MsgID 1
Request:
# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0020) DA (no value available) # 0, 0 StudyDate
(0008,0052) CS [STUDY] # 6, 1 QueryRetrieveLevel
(0010,0010) PN (no value available) # 0, 0 PatientsName
(0010,0020) LO (no value available) # 0, 0 PatientID
my query file contains the above displayed items..
The output across the SCP run through the command
dcmqrscp.exe -vv -d -c dcmqrscp.cfg -dhl 8600
is
Requested Extended Negotiation: none
Accepted Extended Negotiation: none
Requesting Sub-Association
Constructing Associate RQ PDU
these are the last 4 lines..it stops at Constructing Associate RQ PDU..
what may be the reason ????
Thanks..I will keep on trying till it works..
movescu -v --study --port 9876 --move DicomEye --call OFFIS localhost 8600 D:\temp\query\wlistqry1.dcm
gives the following o/p
Requesting Association
Association Accepted (Max Send PDV: 16372)
================================
Sending query file: D:\temp\query\wlistqry1.dcm
Move SCU RQ: MsgID 1
Request:
# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0020) DA (no value available) # 0, 0 StudyDate
(0008,0052) CS [STUDY] # 6, 1 QueryRetrieveLevel
(0010,0010) PN (no value available) # 0, 0 PatientsName
(0010,0020) LO (no value available) # 0, 0 PatientID
my query file contains the above displayed items..
The output across the SCP run through the command
dcmqrscp.exe -vv -d -c dcmqrscp.cfg -dhl 8600
is
Requested Extended Negotiation: none
Accepted Extended Negotiation: none
Requesting Sub-Association
Constructing Associate RQ PDU
these are the last 4 lines..it stops at Constructing Associate RQ PDU..
what may be the reason ????
Thanks..I will keep on trying till it works..
Santosh S B
Now i am getting the following at the dcmqrscp terminal...
Requesting Sub-Association
DcmQueryRetrieve: moveSCP: Sub-Association Request Failed:
0006:031b Failed to establish association
0006:0317 Peer aborted Association (or never connected)
0006:031c TCP Initialization Error: No error
Releasing Sub-Association
DcmQueryRetrieve: moveSCP: Sub-Association Release Failed:
0006:0106 ASC Caller passed in a NULL key
Move SCP Response 1 [status: Refused: OutOfResourcesSubOperations]
Association Aborted
What might be the reason..
thanks
Requesting Sub-Association
DcmQueryRetrieve: moveSCP: Sub-Association Request Failed:
0006:031b Failed to establish association
0006:0317 Peer aborted Association (or never connected)
0006:031c TCP Initialization Error: No error
Releasing Sub-Association
DcmQueryRetrieve: moveSCP: Sub-Association Release Failed:
0006:0106 ASC Caller passed in a NULL key
Move SCP Response 1 [status: Refused: OutOfResourcesSubOperations]
Association Aborted
What might be the reason..
thanks
Santosh S B
Thanks guys
i am able to retrieve the images using movescu now..but its copying all the images in the present directory..the command is..
movescu -v -d --study --port 8600 -aem DicomEye --call OFFIS localhost 104 D:\temp\query\query1.dcm
..the AE table entries are..
OFFIS D:\temp\OFFIS RW (6, 1024mb) ANY
Azuriah D:\temp\Azuriah RW (6, 1024mb) ANY
MEDSPHERE D:\temp\MEDSPHERE RW (200, 1024mb) ANY
DicomEye D:\temp\DicomEye RW (200, 1024mb) ANY
it should store all the retrieved images in this D:\temp\DicomEye folder right..
thanks
i am able to retrieve the images using movescu now..but its copying all the images in the present directory..the command is..
movescu -v -d --study --port 8600 -aem DicomEye --call OFFIS localhost 104 D:\temp\query\query1.dcm
..the AE table entries are..
OFFIS D:\temp\OFFIS RW (6, 1024mb) ANY
Azuriah D:\temp\Azuriah RW (6, 1024mb) ANY
MEDSPHERE D:\temp\MEDSPHERE RW (200, 1024mb) ANY
DicomEye D:\temp\DicomEye RW (200, 1024mb) ANY
it should store all the retrieved images in this D:\temp\DicomEye folder right..
thanks
Santosh S B
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot], Semrush [Bot] and 0 guests