-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugWG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues
Milestone
Description
After performance improvements in PR #2822 we still have some problems (edited by @daxian-dbw):
- Hung or Freeze of a progress pane. If
Write-Progressor the corresponding API is not called very frequently, new progress record may not be rendered for a long time, which means the user won't see the new progress update during that time. This is because we now use a timer to indicate whether a call toWrite-Progressor the corresponding API would do the actual rendering, so in case there is no more incoming calls, new progress record updates would not be rendered. - If Write-Progress frequently updates a progress pane and the script makes output to console the user sees that the display flickers. This can be illustrated by
1..1e4 | % { $_;Write-Progress "..." -PercentComplete ($_*100/1e4)}. - ResetProgress() - In the case of multiple runspaces with one Host, the finished pipeline will remove the progress bar that is still used by unfinished pipeline from another runspace. This is an existing problem even before the fix in Improve a progress pane performance (one thread) #2822. If a Host is used by multiple runspaces and the pipeline threads from them are all writing progress bars, then it's almost for sure a mess. We didn't see reports on this before so assuming this is rare to happen.
- Write-Progress does not work correctly with nested operations. #5370 - With
Write-Progress -Completedin nested scenarios we need a delayStart-Sleep 1to get screen update in followWrite-Progress. - Tons of allocations. Perhaps we could add overloads with a struct.
- Progress bar remains despite Completed record in progress stream (now with portable repro) #12541 - Cmdlet authors want to show 100% complete result. But if they would use
-Completeusers never saw the message. If they would write a message without-Completethe message displayed until pipeline finished.
LuanVSO, ertyz, CavemanIke and MAZ01001DrakonFG
Metadata
Metadata
Assignees
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugWG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues