View Issue Details

IDProjectCategoryView StatusLast Update
0002600Slicer4Core: Scripting (Wrapping, Python)public2012-10-30 07:47
Reportermgrauer Assigned Tojcfr  
PrioritynormalSeveritycrashReproducibilityhave not tried
Status closedResolutionfixed 
Product VersionSlicer 4.1.1 
Target VersionSlicer 4.2.0Fixed in VersionSlicer 4.2.0 
Summary0002600: out of bounds parameter in GetParameterDescription python interactor crashes Slicer
Description

I found this using the Python interactor on Slicer Slicer-4.1.0-2012-09-11-linux-amd64, the latest nightly build, r20972.

m = slicer.modules.addscalarvolumes
l = m.cliModuleLogic()
n = l.CreateNode()
print n.GetNumberOfParameterGroups()
2
n.GetParameterDescription(2, 0)

causes a crash

assuming we had not crashed

print n.GetNumberOfParametersInGroup(1)
1
n.GetParameterDescription(1, 0)
'Interpolation order if two images are in different coordinate frames or have different sampling.'
n.GetParameterDescription(1, 1)

causes a crash

TagsNo tags attached.

Relationships

related to 0002604 closedmillerjv Command line parameter are not saved into the scene 
related to 0002699 acknowledgedalexy Add test for vtkMRMLCommandLineModuleNode 

Activities

jcfr

jcfr

2012-10-03 12:49

administrator   ~0006369

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

See also r21101 / http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=21101

mgrauer

mgrauer

2012-10-29 06:25

reporter   ~0006835

I tried this on Linux nightly binary 2012-09-12 (before the fix), it crashed with this error message:

error: [/slicerweb/Slicer-4.1.0-2012-09-12-linux-amd64/./bin/SlicerApp-real] exit abnormally - Report the problem

I tried both of these cases again on Linux nightly binary 2012-10-24 (after the fix), it still crashes, but with a different error message:

Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'std::logic_error'
error: [/slicerweb/Slicer-4.2.0-rc1-2012-10-24-linux-amd64/./bin/SlicerApp-real] exit abnormally - Report the problem.

jcfr

jcfr

2012-10-29 06:43

administrator   ~0006837

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

mgrauer

mgrauer

2012-10-30 07:47

reporter   ~0006905

Verified the fix with nightly binary build 2012-10-29 on Linux.

Issue History

Date Modified Username Field Change
2012-10-02 13:15 mgrauer New Issue
2012-10-02 13:15 mgrauer Status new => assigned
2012-10-02 13:15 mgrauer Assigned To => jcfr
2012-10-02 14:01 jcfr Target Version => Slicer 4.2.0 - coming release
2012-10-03 08:23 jcfr Relationship added related to 0002604
2012-10-03 12:49 jcfr Note Added: 0006369
2012-10-03 12:49 jcfr Status assigned => resolved
2012-10-03 12:49 jcfr Fixed in Version => Slicer 4.2.0 - coming release
2012-10-03 12:49 jcfr Resolution open => fixed
2012-10-29 06:25 mgrauer Note Added: 0006835
2012-10-29 06:25 mgrauer Status resolved => feedback
2012-10-29 06:25 mgrauer Resolution fixed => reopened
2012-10-29 06:42 jcfr Relationship added related to 0002699
2012-10-29 06:43 jcfr Note Added: 0006837
2012-10-29 06:43 jcfr Status feedback => resolved
2012-10-29 06:43 jcfr Resolution reopened => fixed
2012-10-30 07:47 mgrauer Note Added: 0006905
2012-10-30 07:47 mgrauer Status resolved => closed