Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download is broken in the current version #38

Open
fedorov opened this issue Jan 12, 2017 · 6 comments

Comments

Projects
None yet
2 participants
@fedorov
Copy link
Member

commented Jan 12, 2017

Reported on Slicer user list:

I am trying to download a collection from the TCIA archive using slicer. I
have successfully installed the TCIA browser module and added it the key for
my TCIA account.

I can browse the database but I can neither load images on the scene nor add
to my dicom database .

If I try to browse the database again, after trying to download something, I
get this error:

Traceback (most recent call last):
File
"C:/Users/rayox010/AppData/Roaming/NA-MIC/Extensions-25516/TCIABrowser/lib/Slicer-4.6/qt-scripted-modules/TCIABrowser.py",
line 682, in studiesTableSelectionChanged
if self.studyInstanceUIDs[n].isSelected():
ValueError: Trying to call 'isSelected' on a destroyed QTableWidgetItem
object

This is the full log:

[DEBUG][Qt] 11.01.2017 20:06:46 [] (unknown:0) - Session start time .......:
2017-01-11 20:06:46
[DEBUG][Qt] 11.01.2017 20:06:46 [] (unknown:0) - Slicer version ...........:
4.6.2 (revision 25516) win-amd64 - installed
[DEBUG][Qt] 11.01.2017 20:06:46 [] (unknown:0) - Operating system .........:
Windows / 7 / Service Pack 1 (Build 7601) - 64-bit
[DEBUG][Qt] 11.01.2017 20:06:46 [] (unknown:0) - Memory ...................:
6066 MB physical, 12131 MB virtual
[DEBUG][Qt] 11.01.2017 20:06:46 [] (unknown:0) - CPU ......................:
GenuineIntel , 2 cores, 16 logical processors
[DEBUG][Qt] 11.01.2017 20:06:46 [] (unknown:0) - Developer mode enabled ...:
no
[DEBUG][Qt] 11.01.2017 20:06:46 [] (unknown:0) - Prefer executable CLI ....:
no
[DEBUG][Qt] 11.01.2017 20:06:46 [] (unknown:0) - Additional module paths ..:
C:/Users/rayox010/AppData/Roaming/NA-MIC/Extensions-25516/DeveloperToolsForExtensions/lib/Slicer-4.6/qt-scripted-modules,
C:\programas\Slicer_4_6_2\XNATSlicer-master\XNATSlicer,
C:/Users/rayox010/AppData/Roaming/NA-MIC/Extensions-25516/VolumeClip/lib/Slicer-4.6/qt-scripted-modules,
C:/Users/rayox010/AppData/Roaming/NA-MIC/Extensions-25516/TCIABrowser/lib/Slicer-4.6/qt-scripted-modules
[DEBUG][Qt] 11.01.2017 20:06:46 [] (unknown:0) - Number of registered
modules: 136
[DEBUG][Qt] 11.01.2017 20:06:46 [] (unknown:0) - Number of instantiated
modules: 136
[INFO][Stream] 11.01.2017 20:06:47 [] (unknown:0) - Initializing terminology
mapping for map file
C:/programas/Slicer_4_6_2/share/Slicer-4.6/ColorFiles/Terminology//GenericAnatomyColors-SNOMED.csv
[INFO][Stream] 11.01.2017 20:06:47 [] (unknown:0) - 288 terms were read for
Slicer LUT GenericAnatomyColors
[DEBUG][Qt] 11.01.2017 20:06:47 [] (unknown:0) - Number of loaded modules:
136
[DEBUG][Qt] 11.01.2017 20:06:47 [] (unknown:0) - Switch to module:
"Welcome"
[WARNING][Qt] 11.01.2017 20:07:11 [] (unknown:0) - libpng warning: iCCP:
known incorrect sRGB profile
[WARNING][Qt] 11.01.2017 20:07:11 [] (unknown:0) - libpng warning: iCCP:
known incorrect sRGB profile
[DEBUG][Qt] 11.01.2017 20:07:14 [] (unknown:0) - Switch to module:
"TCIABrowser"
[DEBUG][Qt] 11.01.2017 20:07:14 [] (unknown:0) -
ctkDICOMModelPrivate::generateQuery: query is: SELECT UID as UID,
PatientsName as Name, PatientsAge as Age, PatientsBirthDate as Date,
PatientID as "Subject ID" FROM Patients ORDER BY "Name" DESC
[DEBUG][Qt] 11.01.2017 20:07:14 [] (unknown:0) -
ctkDICOMModelPrivate::updateQueries for Root: query is: SELECT UID as UID,
PatientsName as Name, PatientsAge as Age, PatientsBirthDate as Date,
PatientID as "Subject ID" FROM Patients ORDER BY "Name" DESC
[WARNING][Qt] 11.01.2017 20:07:14 [] (unknown:0) - QSqlQuery::exec: database
not open
[DEBUG][Qt] 11.01.2017 20:07:14 [] (unknown:0) -
ctkDICOMModelPrivate::generateQuery: query is: SELECT UID as UID,
PatientsName as Name, PatientsAge as Age, PatientsBirthDate as Date,
PatientID as "Subject ID" FROM Patients ORDER BY "Name" DESC
[DEBUG][Qt] 11.01.2017 20:07:14 [] (unknown:0) -
ctkDICOMModelPrivate::updateQueries for Root: query is: SELECT UID as UID,
PatientsName as Name, PatientsAge as Age, PatientsBirthDate as Date,
PatientID as "Subject ID" FROM Patients ORDER BY "Name" DESC
[DEBUG][Qt] 11.01.2017 20:07:14 [] (unknown:0) -
ctkDICOMModelPrivate::generateQuery: query is: SELECT StudyInstanceUID as
UID, StudyDescription as Name, ModalitiesInStudy as Scan, StudyDate as Date,
AccessionNumber as Number, InstitutionName as Institution,
ReferringPhysician as Referrer, PerformingPhysiciansName as Performer FROM
Studies WHERE PatientsUID='30' ORDER BY "Name" DESC
[DEBUG][Qt] 11.01.2017 20:07:14 [] (unknown:0) -
ctkDICOMModelPrivate::updateQueries for Patient: query is: SELECT
StudyInstanceUID as UID, StudyDescription as Name, ModalitiesInStudy as
Scan, StudyDate as Date, AccessionNumber as Number, InstitutionName as
Institution, ReferringPhysician as Referrer, PerformingPhysiciansName as
Performer FROM Studies WHERE PatientsUID='30' ORDER BY "Name" DESC
[DEBUG][Qt] 11.01.2017 20:07:14 [] (unknown:0) -
ctkDICOMModelPrivate::generateQuery: query is: SELECT StudyInstanceUID as
UID, StudyDescription as Name, ModalitiesInStudy as Scan, StudyDate as Date,
AccessionNumber as Number, InstitutionName as Institution,
ReferringPhysician as Referrer, PerformingPhysiciansName as Performer FROM
Studies WHERE PatientsUID='31' ORDER BY "Name" DESC
[DEBUG][Qt] 11.01.2017 20:07:14 [] (unknown:0) -
ctkDICOMModelPrivate::updateQueries for Patient: query is: SELECT
StudyInstanceUID as UID, StudyDescription as Name, ModalitiesInStudy as
Scan, StudyDate as Date, AccessionNumber as Number, InstitutionName as
Institution, ReferringPhysician as Referrer, PerformingPhysiciansName as
Performer FROM Studies WHERE PatientsUID='31' ORDER BY "Name" DESC
[CRITICAL][Stream] 11.01.2017 20:07:40 [] (unknown:0) - Traceback (most
recent call last):
[CRITICAL][Stream] 11.01.2017 20:07:40 [] (unknown:0) -   File
"C:/Users/rayox010/AppData/Roaming/NA-MIC/Extensions-25516/TCIABrowser/lib/Slicer-4.6/qt-scripted-modules/TCIABrowser.py",
line 755, in onLoadButton
[CRITICAL][Stream] 11.01.2017 20:07:40 [] (unknown:0) -
self.addSelectedToDownloadQueue()
[CRITICAL][Stream] 11.01.2017 20:07:40 [] (unknown:0) -   File
"C:/Users/rayox010/AppData/Roaming/NA-MIC/Extensions-25516/TCIABrowser/lib/Slicer-4.6/qt-scripted-modules/TCIABrowser.py",
line 814, in addSelectedToDownloadQueue
[CRITICAL][Stream] 11.01.2017 20:07:40 [] (unknown:0) -     loadables =
plugin.examine([fileList])
[CRITICAL][Stream] 11.01.2017 20:07:40 [] (unknown:0) -   File
"C:\programas\Slicer_4_6_2\lib\Slicer-4.6\qt-scripted-modules\DICOMLib\DICOMPlugin.py",
line 119, in examine
[CRITICAL][Stream] 11.01.2017 20:07:40 [] (unknown:0) -     return
self.examineForImport(fileList)
[CRITICAL][Stream] 11.01.2017 20:07:40 [] (unknown:0) -   File
"C:/programas/Slicer_4_6_2/lib/Slicer-4.6/qt-scripted-modules/DICOMScalarVolumePlugin.py",
line 52, in examineForImport
[CRITICAL][Stream] 11.01.2017 20:07:40 [] (unknown:0) -
loadablesForFiles = self.examineFiles(files)
[CRITICAL][Stream] 11.01.2017 20:07:40 [] (unknown:0) -   File
"C:/programas/Slicer_4_6_2/lib/Slicer-4.6/qt-scripted-modules/DICOMScalarVolumePlugin.py",
line 67, in examineFiles
[CRITICAL][Stream] 11.01.2017 20:07:40 [] (unknown:0) -     seriesUID =
slicer.dicomDatabase.fileValue(files[0],self.tags['seriesUID'])
[CRITICAL][Stream] 11.01.2017 20:07:40 [] (unknown:0) - IndexError: tuple
index out of range

Does any one of you know where the problem is and how to solve it?

Thanks in advance.

Félix.

@fedorov

This comment has been minimized.

Copy link
Member Author

commented Jan 12, 2017

might be related to 7c371ea

@fedorov

This comment has been minimized.

Copy link
Member Author

commented Jan 18, 2017

@mehrtash did you have a chance to look into this? I am hoping this is something simple that should not take a lot of time.

@mehrtash

This comment has been minimized.

Copy link
Member

commented Jan 18, 2017

@fedorov No haven't check it yet. I'll take a look at it this week.

@fedorov

This comment has been minimized.

Copy link
Member Author

commented Jan 24, 2017

Any news?

@fedorov

This comment has been minimized.

Copy link
Member Author

commented Jan 25, 2017

Testing with 2017-01-18 nightly, the issue could not be reproduced.

Thread on user list: http://slicer-users.65878.n3.nabble.com/TCIA-connection-tt4031550.html

@fedorov

This comment has been minimized.

Copy link
Member Author

commented Jan 25, 2017

Reproducible with IvyGap collection.

fedorov added a commit to fedorov/TCIABrowser that referenced this issue Jan 25, 2017

@fedorov fedorov assigned fedorov and unassigned mehrtash Jan 25, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.