MantisBT - VTK
View Issue Details
0003713VTK(No Category)public2006-09-05 06:302013-04-05 19:57
akiyama 
David Cole 
normalminoralways
closedfixed 
 
 
0003713: vtkInteractorStyleRubberBandZoom exceeds a window frame.
A line is drawn from the reverse side when a mouse pointer is dragged to the outside of the window. sometimes SEGV.
No tags attached.
cxx vtkInteractorStyleRubberBandZoom.cxx (7,204) 2008-06-23 09:52
https://www.vtk.org/Bug/file/6553/vtkInteractorStyleRubberBandZoom.cxx
patch vtkInteractorStyleRubberBandZoom.cxx.patch (2,052) 2008-08-08 14:47
https://www.vtk.org/Bug/file/6656/vtkInteractorStyleRubberBandZoom.cxx.patch
Issue History
2008-06-23 09:52Gerrick BivinsNote Added: 0012459
2008-06-23 09:52Gerrick BivinsFile Added: vtkInteractorStyleRubberBandZoom.cxx
2008-08-08 14:47Gerrick BivinsFile Added: vtkInteractorStyleRubberBandZoom.cxx.patch
2008-08-08 14:48Gerrick BivinsNote Added: 0012973
2008-08-15 16:44Dave DeMarleNote Added: 0013041
2008-08-20 16:08David ColeNote Added: 0013120
2008-08-20 16:08David ColeAssigned ToMathieu Malaterre => David Cole
2008-08-20 16:09David ColeStatustabled => @80@
2008-08-20 16:09David ColeResolutionopen => fixed
2008-08-20 16:09David ColeNote Added: 0013121
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2013-04-05 19:57Berk GeveciStatuscustomer review => closed

Notes
(0012459)
Gerrick Bivins   
2008-06-23 09:52   
I was able to reproduce this on Mac OSX 10.5.3. On windows, it crashed my application. I was able to fix this by adding a simple check in vtkInteractorStyleRubberBandZoom::OnMouseMove to ensure that the method doesn't continue to execute if the mouse moves outside of the bounds of the window (See attached).
(0012973)
Gerrick Bivins   
2008-08-08 14:48   
Here is the patch for this fix.
(0013041)
Dave DeMarle   
2008-08-15 16:44   
I've adapted and committed the patch. I'll mark it fixed once the dashboards have at it.

[kargad:ParaView3/VTK/Rendering] demarle% cvs commit -m "BUG: 0003713. Dragging rubber band off window could crash. Thanks Gerrick Bivins for the patch." vtkInteractorStyleRubberBand*
Commit to directory "ParaView3/VTK/Rendering" lies in external project VTK
/cvsroot/ParaView3/ParaView3/VTK/Rendering/vtkInteractorStyleRubberBand2D.cxx,v <-- vtkInteractorStyleRubberBand2D.cxx
new revision: 1.5; previous revision: 1.4
/cvsroot/ParaView3/ParaView3/VTK/Rendering/vtkInteractorStyleRubberBand3D.cxx,v <-- vtkInteractorStyleRubberBand3D.cxx
new revision: 1.5; previous revision: 1.4
/cvsroot/ParaView3/ParaView3/VTK/Rendering/vtkInteractorStyleRubberBandPick.cxx,v <-- vtkInteractorStyleRubberBandPick.cxx
new revision: 1.9; previous revision: 1.8
/cvsroot/ParaView3/ParaView3/VTK/Rendering/vtkInteractorStyleRubberBandZoom.cxx,v <-- vtkInteractorStyleRubberBandZoom.cxx
new revision: 1.8; previous revision: 1.7
(0013120)
David Cole   
2008-08-20 16:08   
Merged to VTK-5-2:

    /cvsroot/VTK/VTK/Rendering/vtkInteractorStyleRubberBand2D.h,v <-- Rendering/vtkInteractorStyleRubberBand2D.h
    new revision: 1.3.2.1; previous revision: 1.3
    /cvsroot/VTK/VTK/Rendering/vtkInteractorStyleRubberBand2D.cxx,v <-- Rendering/vtkInteractorStyleRubberBand2D.cxx
    new revision: 1.4.2.1; previous revision: 1.4
    /cvsroot/VTK/VTK/Rendering/vtkInteractorStyleRubberBand3D.h,v <-- Rendering/vtkInteractorStyleRubberBand3D.h
    new revision: 1.3.2.1; previous revision: 1.3
    /cvsroot/VTK/VTK/Rendering/vtkInteractorStyleRubberBand3D.cxx,v <-- Rendering/vtkInteractorStyleRubberBand3D.cxx
    new revision: 1.4.2.1; previous revision: 1.4
    /cvsroot/VTK/VTK/Rendering/vtkInteractorStyleRubberBandPick.cxx,v <-- Rendering/vtkInteractorStyleRubberBandPick.cxx
    new revision: 1.8.36.1; previous revision: 1.8
    /cvsroot/VTK/VTK/Rendering/vtkInteractorStyleRubberBandZoom.cxx,v <-- Rendering/vtkInteractorStyleRubberBandZoom.cxx
    new revision: 1.7.2.1; previous revision: 1.7
(0013121)
David Cole   
2008-08-20 16:09   
Fixed in CVS HEAD and in the VTK-5-2 branch...