MantisBT - ParaView
View Issue Details
0013833ParaView(No Category)public2013-01-29 19:212016-08-12 09:59
Alan Scott 
Kitware Robot 
normalminorhave not tried
closedmoved 
git-master 
 
Sandia
incorrect functionality
0013833: ProgressHandler - spyPlotReader is broken
Progress handler code in the spyplot (CTH) reader is broken. In files vtkSpyPlotReader.cxx and vtkSpyPlotBlockIterator.cxx, the calls to UpdateProgress do not coordinate with each other. This means that progress goes from 0.0 to 0.2, then from 0.04 to 0.4, then from 0.6 to 1.0. This is obviously incorrect.

Another related bug, in the same code, is that for multiple servers, the code counts wrong. In the following code:
 this->Parent->UpdateProgress(0.2 * (file_index+1.0)/numFiles);

numFiles is the number of files handled by this process, and file_index is the file number that all processes are handling. For instance, if the second pvserver is handling 4 files, numFiles will == 4, and file_index will go 5,6,7 and then 8. This gives a progress that is over 1.0 (and is illegal).


Suggested correction (just fixing the file_index issue) would be:

vtkSpyPlotBlockIterator.cxx, line 227, should be:
      this->Parent->UpdateProgress(0.2 * (file_index+1.0)/numFiles);
to
      this->Parent->UpdateProgress(0.2 * (file_index-this->FileStart+1.0)/ numFiles);

Be sure to check the rest of the two SpyPlot reader files for the same bug.
No tags attached.
child of 0013831closed Kitware Robot Master bug - Progress Handler is a mess 
Issue History
2013-01-29 19:21Alan ScottNew Issue
2013-01-29 21:49Alan ScottRelationship addedchild of 0013831
2013-02-07 16:11Alan ScottNote Added: 0030324
2016-08-12 09:59Kitware RobotNote Added: 0038324
2016-08-12 09:59Kitware RobotStatusbacklog => closed
2016-08-12 09:59Kitware RobotResolutionopen => moved
2016-08-12 09:59Kitware RobotAssigned To => Kitware Robot

Notes
(0030324)
Alan Scott   
2013-02-07 16:11   
I believe I forgot to say how to replicate this. I believe it was with Dave's medium CTH dataset, 8 cores. Basically, the number of files must be higher than the number of cores.
(0038324)
Kitware Robot   
2016-08-12 09:59   
Resolving issue as `moved`.

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