MantisBT - ParaView
View Issue Details
0008997ParaView(No Category)public2009-05-11 11:462011-01-13 17:00
Ken Moreland 
Utkarsh Ayachit 
normalcrashhave not tried
closedfixed 
 
3.63.6 
0008997: Crash when deleting viewed object in line plot
When you are showing something in a line plot and you delete the object you are looking at in the pipeline browser, you get a crash. To replicate, do the following.

1. Create a Wavelet source.
2. Add a plot over line filter. Apply.
3. With the plot view still active, delete the plot over line filter. Crash.
No tags attached.
related to 0009025closed Utkarsh Ayachit Crash when plots attaches to two files 
? PlotCrash.tiff (282,558) 2009-05-12 18:40
https://www.vtk.org/Bug/file/7237/PlotCrash.tiff
Issue History
2009-05-11 11:46Ken MorelandNew Issue
2009-05-11 11:46Ken MorelandStatusbacklog => tabled
2009-05-11 11:46Ken MorelandAssigned To => Utkarsh Ayachit
2009-05-11 12:48Utkarsh AyachitNote Added: 0016376
2009-05-11 12:48Utkarsh AyachitStatustabled => @80@
2009-05-11 12:48Utkarsh AyachitResolutionopen => unable to reproduce
2009-05-11 19:39Alan ScottNote Added: 0016381
2009-05-11 19:39Alan ScottStatus@80@ => closed
2009-05-12 18:40Ken MorelandFile Added: PlotCrash.tiff
2009-05-12 18:42Ken MorelandNote Added: 0016410
2009-05-12 18:42Ken MorelandStatusclosed => @20@
2009-05-12 18:42Ken MorelandResolutionunable to reproduce => reopened
2009-05-13 13:44Utkarsh AyachitTarget Version => 3.6
2009-05-14 09:22Ken MorelandRelationship addedrelated to 0009025
2009-05-14 15:38Utkarsh AyachitNote Added: 0016446
2009-05-14 15:38Utkarsh AyachitStatus@20@ => @80@
2009-05-14 15:38Utkarsh AyachitFixed in Version => 3.6
2009-05-14 15:38Utkarsh AyachitResolutionreopened => fixed
2009-05-14 15:49Ken MorelandNote Added: 0016447
2009-05-14 15:49Ken MorelandStatus@80@ => closed
2011-01-13 17:00Source_changeset_attached => VTK master a2bd8391
2011-01-13 17:00Source_changeset_attached => VTK master 020ef709
2011-06-16 13:10Zack GalbreathCategory => (No Category)

Notes
(0016376)
Utkarsh Ayachit   
2009-05-11 12:48   
Unable to reproduce. May have been fixed by the following commit that was committed a short while ago.

Author: Utkarsh Ayachit <utkarsh.ayachit@kitware.com>
Date: Mon May 11 14:00:45 2009 +0000

    BUG: Invalid superclass. Fixed that.

diff --git a/Servers/ServerManager/vtkSMChartRepresentationProxy.h b/Servers/ServerMan
index d4ddab2..2049ddb 100644
--- a/Servers/ServerManager/vtkSMChartRepresentationProxy.h
+++ b/Servers/ServerManager/vtkSMChartRepresentationProxy.h
@@ -30,7 +30,8 @@ class VTK_EXPORT vtkSMChartRepresentationProxy : public vtkSMClientD
 {
 public:
   static vtkSMChartRepresentationProxy* New();
- vtkTypeRevisionMacro(vtkSMChartRepresentationProxy, vtkSMChartRepresentationProxy);
+ vtkTypeRevisionMacro(vtkSMChartRepresentationProxy,
+ vtkSMClientDeliveryRepresentationProxy);
   void PrintSelf(ostream& os, vtkIndent indent);
 
   // Description:
(0016381)
Alan Scott   
2009-05-11 19:39   
I couldn't replicate the bug either.

Tested client/ remote server.
(0016410)
Ken Moreland   
2009-05-12 18:42   
Nope it is still crashing for me. And it is definitely not fixed by that checkin. (I noticed that problem earlier and had other problems with it. It was after updating with that fix did I notice this new problem.)

The problem might be specific to Mac. I was not able to replicate it on Linux. I have attached a stack trace.
(0016446)
Utkarsh Ayachit   
2009-05-14 15:38   
BUG: Attempting to fix BUG 0008997. vtkQtLineChart::layoutNeeded() may have been fired as a consequence of the series being added/removed. In that case the obsolete CurrentSeries data structure may be invalid (even have invalid indices). Since layoutChart() is called "eventually" by the vtkQtChartArea, in some cases it's possible the this->paint() gets called before the layoutChart(). If that happens, the the paint method may try to access invalid series. Hence we ensure that the CurrentSeries datastructure is cleared here. It will be repopulated in layoutChart().
    
BUG: When all series were removed from the chart, the chart would not rebuild the locator tree. Consequently it would segfault when all series were removed and the user hovers over the plot. Fixed that as well.


/cvsroot/ParaView3/ParaView3/VTK/GUISupport/Qt/Chart/vtkQtLineChart.cxx,v <-- VTK/GUISupport/Qt/Chart/vtkQtLineChart.cxx
new revision: 1.18; previous revision: 1.17
/cvsroot/ParaView3/ParaView3/VTK/GUISupport/Qt/Chart/vtkQtLineChart.h,v <-- VTK/GUISupport/Qt/Chart/vtkQtLineChart.h
new revision: 1.9; previous revision: 1.8
(0016447)
Ken Moreland   
2009-05-14 15:49   
It looks like that fixed it.