ProgressBarScope not advanced the correct number of steps on early out or because of unrelated failure
- Dominant language
- Wolfram Language
- Stars
- 905
- Forks
- 223
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 17
Description
The ProgressBarScope destructor issues a warning when the object being destroyed hasn't been advance through all steps. However, when used in UsdMayaExportTranslator::writer() and perhaps elsewhere, there are code paths because of early out or because of errors where the progress bar does not get advanced the total number of steps. This can lead to spurious warnings about the progress bar not being advanced the correct number of steps even though the flow is working as it should.
It seems as if the warning message should either be removed from the ProgressBarScope destructor, or to make it easier for clients to use the ProgressBarScope there should be an "advanceToEnd()" method that could be called in situations where the initially guessed number of steps is not needed because of early out or an error was encountered, thus de-cluttering any log files.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.