MantisBT - VTK
View Issue Details
0006194VTK(No Category)public2007-12-21 11:512016-08-12 09:54
Nicolas 
Berk Geveci 
normalcrashalways
closedmoved 
AMD OpteronLinux2.6.20 fc6
 
 
0006194: Segfault with python and vtk3dwidgets

I'm getting a segfault when I use a 3dwidget and don't keep a (python) reference on it.

This piece of code illustrate the problem (with a segfault when you try to interact with the window) :

#######################################
import vtk

ren = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.AddRenderer(ren)
iren = vtk.vtkRenderWindowInteractor()
iren.SetRenderWindow(renWin)
iren.Initialize()

widgets = []
for i in range (10): # or any value > 1
    widget = vtk.vtkBoxWidget() # or any other widget
    widget.SetInteractor(iren)
    widget.On()
    #widgets.append(widget) # no segfault with this line

renWin.Render()
iren.Start()
No tags attached.
Issue History
2007-12-21 11:51NicolasNew Issue
2007-12-27 12:15NicolasNote Added: 0010026
2008-02-06 09:20Jeff BaumesStatusbacklog => tabled
2008-02-06 09:20Jeff BaumesAssigned To => Berk Geveci
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:54Kitware RobotNote Added: 0036940
2016-08-12 09:54Kitware RobotStatusexpired => closed
2016-08-12 09:54Kitware RobotResolutionopen => moved

Notes
(0010026)
Nicolas   
2007-12-27 12:15   
The whole report doesn't appear in "simple view", switch to "advanced" to view the "Steps To Reproduce" part.
(0036940)
Kitware Robot   
2016-08-12 09:54   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.