[vtkusers] iren->CreateRepeatingTimer() segfaults

Dominik Szczerba domi at vision.ee.ethz.ch
Sun Oct 8 14:59:24 EDT 2006


Please take the Cone5 example and add:

   int id = iren->CreateRepeatingTimer(10L);
   cerr << "id = " << id << endl;

in front of iren->Init()

I would very much like to have it fixed. The reason is I want to use the 
timer to simulate an idle call, and the window interactor doesnt seem to 
provide any (BTW. why is there no vtkCommand::IdleEvent?).
Regards,
Dominik

David Cole wrote:
> Maybe post some code that reproduces this so we can debug?
> Or steps to follow so that we can reproduce this with a VTK tcl script 
> or running one of the VTK tests interactively...?
> 
> Thx,
> David
> 
> Dominik Szczerba wrote:
> 
>> Any ideas?
>> Thanks,
>> Dominik
>>
>> Program received signal SIGSEGV, Segmentation fault.
>> [Switching to Thread -1241692480 (LWP 10773)]
>> 0xb6f38866 in XtAppAddTimeOut () from /usr/lib/libXt.so.6
>> (gdb) bt
>> #0  0xb6f38866 in XtAppAddTimeOut () from /usr/lib/libXt.so.6
>> #1  0xb7e625f2 in vtkXRenderWindowInteractor::AddTimeOut () from 
>> /home/domi/pack/vtk-5.1/lib/libvtkRendering.so.5.1
>> #2  0xb7e62648 in vtkXRenderWindowInteractor::InternalCreateTimer () 
>> from /home/domi/pack/vtk-5.1/lib/libvtkRendering.so.5.1
>> #3  0xb7e07f43 in vtkRenderWindowInteractor::CreateRepeatingTimer () 
>> from /home/domi/pack/vtk-5.1/lib/libvtkRendering.so.5.1
>> #4  0x08051837 in main (argc=3, argv=0xbf9aaed4) at 
>> /home/domi/projects/vtkMS/src/vtkMS.cxx:284Create

-- 
Dominik Szczerba, Ph.D.
Computer Vision Lab, ETH
http://www.vision.ee.ethz.ch/~domi



More information about the vtkusers mailing list