View Issue Details

IDProjectCategoryView StatusLast Update
0002641Slicer4Core: Base Codepublic2012-10-15 12:25
ReporterpinterAssigned Tojcfr 
PrioritylowSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product VersionSlicer 4.1.1 
Target VersionSlicer 4.2.0Fixed in VersionSlicer 4.2.0 
Summary0002641: Slicer crashes when trying to load scripted module from root directory
Description

I have a module in the directory d:\DicomRtImportSelfTest.
When Slicer wants to initialize the module at startup, it crashes at vtkSlicerApplicationLogic.cxx:1662 (this line: std::string shareDirectory = itksys::SystemTools::JoinPath(components.begin(), components.end() - 4 - offset); )
If I move the directory in another one (d:\DicomRtImportSelfTest\DicomRtImportSelfTest), it works fine.

TagsNo tags attached.

Activities

jcfr

jcfr

2012-10-15 10:18

administrator   ~0006539

Fixed pushed as a topic on my fork: https://github.com/jcfr/Slicer/tree/2641-GetModuleHomeDirectory-check-for-invalid-filepath

Let me know if it works for you. Then I will integrate to the trunk.

pinter

pinter

2012-10-15 12:08

developer   ~0006547

I tried it and it works fine with the module being in the root directory.

Thanks for the fix!

jcfr

jcfr

2012-10-15 12:23

administrator   ~0006548

Fixed in r21190
See http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=21190

Issue History

Date Modified Username Field Change
2012-10-14 07:14 pinter New Issue
2012-10-14 07:14 pinter Status new => assigned
2012-10-14 07:14 pinter Assigned To => pieper
2012-10-15 04:45 pieper Assigned To pieper => jcfr
2012-10-15 06:27 jcfr Target Version => Slicer 4.2.0 - coming release
2012-10-15 10:18 jcfr Note Added: 0006539
2012-10-15 10:18 jcfr Status assigned => feedback
2012-10-15 12:08 pinter Note Added: 0006547
2012-10-15 12:23 jcfr Note Added: 0006548
2012-10-15 12:23 jcfr Status feedback => resolved
2012-10-15 12:23 jcfr Fixed in Version => Slicer 4.2.0 - coming release
2012-10-15 12:23 jcfr Resolution open => fixed
2012-10-15 12:25 pinter Status resolved => closed