View Issue Details

IDProjectCategoryView StatusLast Update
0002618Slicer4Module DICOMpublic2012-12-08 09:46
Reporterfedorov Assigned Topieper  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version 
Target VersionSlicer 4.2.0Fixed in VersionSlicer 4.2.0 
Summary0002618: Repeated insertion of items locks up DICOM DB
Description

The test illustrating the problem is available here:

https://github.com/fedorov/Reporting/blob/master/Testing/RepeatInsertTest.py

Steps to reproduce:

1) load two volumes from DICOM into the scene
2) run the test twice using execfile() from the python console

Additional Information

Steve and I spent quite some time debugging this, but failed. This report is here for the future reference. The adopted workaround is not to insert the new DICOM items into DB, but instead save on disk and import manually.

TagsNo tags attached.

Relationships

related to 0002516 closedpieper Classroom Course 1 

Activities

pieper

pieper

2012-10-08 06:48

administrator   ~0006432

I believe the indexer is not finishing before the next operation is started. I ran into this with the
RSNA test.

Can you try with rev 21122 or later and a pattern like the following:

  indexer = ctk.ctkDICOMIndexer()
  indexer.addDirectory(slicer.dicomDatabase, dicomFilesDirectory, None)
  indexer.waitForImportFinished()
fedorov

fedorov

2012-10-08 07:16

developer   ~0006434

Last edited: 2012-10-08 07:16

Steve, the test that was failing for me (https://github.com/fedorov/Reporting/blob/master/Testing/RepeatInsertTest.py) appears to work! I cannot quite test this in the exact usage scenario of Reporting module right now, because support of multiple reports is broken.

Issue History

Date Modified Username Field Change
2012-10-05 11:12 fedorov New Issue
2012-10-05 11:12 fedorov Status new => assigned
2012-10-05 11:12 fedorov Assigned To => pieper
2012-10-05 13:02 pieper Relationship added related to 0002516
2012-10-08 06:48 pieper Note Added: 0006432
2012-10-08 07:16 fedorov Note Added: 0006434
2012-10-08 07:16 fedorov Note Edited: 0006434
2012-10-08 07:17 fedorov Status assigned => closed
2012-10-08 07:17 fedorov Resolution open => fixed
2012-10-08 07:17 fedorov Fixed in Version => Slicer 4.2.0 - coming release
2012-12-08 09:46 jcfr Target Version => Slicer 4.2.0