Autodesk / Autodesk/maya-usd

ProgressBarScope not advanced the correct number of steps on early out or because of unrelated failure

Open
#3,541 1 comment 0 reactions 1 assignee Claimed by @santosg87 View on GitHub
bug
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.