MantisBT - ParaView | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0013834 | ParaView | (No Category) | public | 2013-01-29 19:43 | 2016-08-12 09:59 | |||||
Reporter | Alan Scott | |||||||||
Assigned To | Kitware Robot | |||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | |||||
Status | closed | Resolution | moved | |||||||
Platform | OS | OS Version | ||||||||
Product Version | git-master | |||||||||
Target Version | Fixed in Version | |||||||||
Project | Sandia | |||||||||
Topic Name | ||||||||||
Type | incorrect functionality | |||||||||
Summary | 0013834: ProgressHandler needs fixing, error checking, consistency and COMMENTS. | |||||||||
Description | The progress handler needs to have it's throttle fixe. File vtkPVProgressHandler.cxx, member function vtkPVProgressHandler::ReportProgress(). Progress should NEVER be outside of the range of 0 to 1, so don't send MPI calls for out of range progress. Also, make sure to throttle progress for 0.0, since many functions in the code incorrectly send this billions of times. I changed if (progress <= 0.0 || progress >= 1.0 || this->Internals->ProgressTimer->GetElapsedTime() > this->ProgressFrequency) to if (progress >= 0.0 && progress <= 1.0 && this->Internals->ProgressTimer->GetElapsedTime() > this->ProgressFrequency) The Progress Report code needs a way to find error cases with progress. I suggest adding the following at the top of the vtkPVProgressHandler::ReportProgress() function, which I assume only is printed for debug builds: if (progress < 0.0 || progress > 1.0 ) vtkWarningMacro(<< "vtkPVProgressHandler::ReportProgress - "<< " progress out of range [0.0-1.0] " << progress); The Progress Handler code needs to have progress be consistent throughout. In most functions, progress goes from 0.0 to 1.0. In the call to SetLocalProgress(), progress becomes a range of 0 to 100, and inside this code makes a call that requires it to be divided by 100! Keep 0.0 to 1.0 throughout. Be sure to change LastProgress = progress*100.0 (assuming it even gets used, which I couldn't find). Last, please document the range for progress and change the variable for progress if it has a different range. It was confusing what it should be. (progress100?) | |||||||||
Steps To Reproduce | ||||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | ||||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2013-01-29 19:43 | Alan Scott | New Issue | ||||||||
2013-01-29 21:23 | Alan Scott | Note Added: 0030274 | ||||||||
2013-01-29 21:24 | Alan Scott | Note Edited: 0030274 | bug_revision_view_page.php?bugnote_id=30274#r555 | |||||||
2013-01-29 21:29 | Alan Scott | Note Added: 0030275 | ||||||||
2013-01-29 21:50 | Alan Scott | Relationship added | child of 0013831 | |||||||
2013-01-30 16:58 | Alan Scott | Note Added: 0030283 | ||||||||
2013-04-29 15:24 | Alan Scott | Note Added: 0030629 | ||||||||
2013-05-01 13:55 | Nikhil Shetty | Assigned To | => Nikhil Shetty | |||||||
2013-06-05 15:59 | Nikhil Shetty | Assigned To | Nikhil Shetty => | |||||||
2013-06-05 16:00 | Nikhil Shetty | Assigned To | => Nikhil Shetty | |||||||
2013-06-05 16:37 | Nikhil Shetty | Assigned To | Nikhil Shetty => | |||||||
2016-08-12 09:59 | Kitware Robot | Note Added: 0038325 | ||||||||
2016-08-12 09:59 | Kitware Robot | Status | backlog => closed | |||||||
2016-08-12 09:59 | Kitware Robot | Resolution | open => moved | |||||||
2016-08-12 09:59 | Kitware Robot | Assigned To | => Kitware Robot |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|