Process terminated Error if cancel Write-Progress after opening third pane #8926

Closed
opened 2026-01-31 01:41:35 +00:00 by claunia · 2 comments
Owner

Originally created by @Seekatar on GitHub (Jun 9, 2020).

Environment

Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.18363.0 Microsoft Windows NT 10.0.18363.0

Windows Terminal
Version: 1.0.1401.0

Any other software? 
PowerShell 7
Name                           Value
----                           -----
PSVersion                      7.0.1
PSEdition                      Core
GitCommitId                    7.0.1
OS                             Microsoft Windows 10.0.18363
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Steps to reproduce

  1. Open a new tab in PS7
  2. Split horizontally with Shift+Alt+_
  3. Run this in the lower pane
(0..1000) | % { write-progress -Activity "Testing" -CurrentOperation $_; Start-Sleep -Seconds .5 }
  1. Split horizontally again under the lower pain with Shift+Alt+_
  2. In the second pane, running the progress, do Ctrl+C to stop it

Expected behavior

The progress should stop

Actual behavior

Get the following error message and that pane is hung. You have to close the tab.

Process terminated. Cannot process the operation because the supplied coordinate is not valid. Specify a coordinate within the buffer area of 183,11. (Parameter 'value.Y')
Actual value was 14.
   at System.Environment.FailFast(System.String, System.Exception)
   at Microsoft.PowerShell.UnmanagedPSEntry.Start(System.String, System.String[], Int32)
   at Microsoft.PowerShell.ManagedPSEntry.Main(System.String[])
System.Management.Automation.PSArgumentOutOfRangeException: Cannot process the operation because the supplied coordinate is not valid. Specify a coordinate within the buffer area of 183,11. (Parameter 'value.Y')
Actual value was 14.
   at Microsoft.PowerShell.ConsoleHostRawUserInterface.CheckCoordinateWithinBuffer(Coordinates& c, CONSOLE_SCREEN_BUFFER_INFO& bufferInfo, String paramName)
   at Microsoft.PowerShell.ConsoleHostRawUserInterface.set_CursorPosition(Coordinates value)
   at Microsoft.PowerShell.ProgressPane.Hide()
   at Microsoft.PowerShell.ConsoleHostUserInterface.ResetProgress()
   at Microsoft.PowerShell.Executor.ExecuteCommandHelper(Pipeline tempPipeline, Exception& exceptionThrown, ExecutionOptions options)
   at Microsoft.PowerShell.Executor.ExecuteCommand(String command, Exception& exceptionThrown, ExecutionOptions options)
   at Microsoft.PowerShell.ConsoleHost.InputLoop.Run(Boolean inputLoopIsNested)
   at Microsoft.PowerShell.ConsoleHost.InputLoop.RunNewInputLoop(ConsoleHost parent, Boolean isNested)
   at Microsoft.PowerShell.ConsoleHost.EnterNestedPrompt()
   at Microsoft.PowerShell.ConsoleHost.DoRunspaceLoop(String initialCommand, Boolean skipProfiles, Collection`1 initialCommandArgs, Boolean staMode, String configurationName)
   at Microsoft.PowerShell.ConsoleHost.Run(CommandLineParameterParser cpp, Boolean isPrestartWarned)
   at Microsoft.PowerShell.ConsoleHost.Start(String bannerText, String helpText, String[] args)
   at Microsoft.PowerShell.ConsoleShell.Start(InitialSessionState initialSessionState, String bannerText, String helpText, String[] args)
   at Microsoft.PowerShell.UnmanagedPSEntry.Start(String consoleFilePath, String[] args, Int32 argc)
[process exited with code 2148734499]
Originally created by @Seekatar on GitHub (Jun 9, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Platform ServicePack Version VersionString -------- ----------- ------- ------------- Win32NT 10.0.18363.0 Microsoft Windows NT 10.0.18363.0 Windows Terminal Version: 1.0.1401.0 Any other software? PowerShell 7 Name Value ---- ----- PSVersion 7.0.1 PSEdition Core GitCommitId 7.0.1 OS Microsoft Windows 10.0.18363 Platform Win32NT PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0 ``` # Steps to reproduce 1. Open a new tab in PS7 2. Split horizontally with Shift+Alt+_ 3. Run this in the lower pane ```PowerShell (0..1000) | % { write-progress -Activity "Testing" -CurrentOperation $_; Start-Sleep -Seconds .5 } ``` 4. Split horizontally again under the lower pain with Shift+Alt+_ 5. In the second pane, running the progress, do Ctrl+C to stop it # Expected behavior The progress should stop # Actual behavior Get the following error message and that pane is hung. You have to close the tab. ```none Process terminated. Cannot process the operation because the supplied coordinate is not valid. Specify a coordinate within the buffer area of 183,11. (Parameter 'value.Y') Actual value was 14. at System.Environment.FailFast(System.String, System.Exception) at Microsoft.PowerShell.UnmanagedPSEntry.Start(System.String, System.String[], Int32) at Microsoft.PowerShell.ManagedPSEntry.Main(System.String[]) System.Management.Automation.PSArgumentOutOfRangeException: Cannot process the operation because the supplied coordinate is not valid. Specify a coordinate within the buffer area of 183,11. (Parameter 'value.Y') Actual value was 14. at Microsoft.PowerShell.ConsoleHostRawUserInterface.CheckCoordinateWithinBuffer(Coordinates& c, CONSOLE_SCREEN_BUFFER_INFO& bufferInfo, String paramName) at Microsoft.PowerShell.ConsoleHostRawUserInterface.set_CursorPosition(Coordinates value) at Microsoft.PowerShell.ProgressPane.Hide() at Microsoft.PowerShell.ConsoleHostUserInterface.ResetProgress() at Microsoft.PowerShell.Executor.ExecuteCommandHelper(Pipeline tempPipeline, Exception& exceptionThrown, ExecutionOptions options) at Microsoft.PowerShell.Executor.ExecuteCommand(String command, Exception& exceptionThrown, ExecutionOptions options) at Microsoft.PowerShell.ConsoleHost.InputLoop.Run(Boolean inputLoopIsNested) at Microsoft.PowerShell.ConsoleHost.InputLoop.RunNewInputLoop(ConsoleHost parent, Boolean isNested) at Microsoft.PowerShell.ConsoleHost.EnterNestedPrompt() at Microsoft.PowerShell.ConsoleHost.DoRunspaceLoop(String initialCommand, Boolean skipProfiles, Collection`1 initialCommandArgs, Boolean staMode, String configurationName) at Microsoft.PowerShell.ConsoleHost.Run(CommandLineParameterParser cpp, Boolean isPrestartWarned) at Microsoft.PowerShell.ConsoleHost.Start(String bannerText, String helpText, String[] args) at Microsoft.PowerShell.ConsoleShell.Start(InitialSessionState initialSessionState, String bannerText, String helpText, String[] args) at Microsoft.PowerShell.UnmanagedPSEntry.Start(String consoleFilePath, String[] args, Int32 argc) [process exited with code 2148734499] ```
claunia added the Resolution-ExternalNeeds-Tag-Fix labels 2026-01-31 01:41:35 +00:00
Author
Owner

@DHowett commented on GitHub (Jun 10, 2020):

This is a /duplicate of https://github.com/PowerShell/PowerShell/issues/12485

@DHowett commented on GitHub (Jun 10, 2020): This is a /duplicate of https://github.com/PowerShell/PowerShell/issues/12485
Author
Owner

@ghost commented on GitHub (Jun 10, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Jun 10, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8926