ArgumentOutOfRangeException #12769

Closed
opened 2026-01-31 03:24:29 +00:00 by claunia · 4 comments
Owner

Originally created by @HppZ on GitHub (Mar 1, 2021).

Environment

Windows build number: 19042.804
Windows Terminal version (if applicable): 1.5.10411.0

Exception:
System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in that dimension.
Parameter name: top
Actual value was -53.
   at System.Console.SetCursorPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
   at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
   at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

just:
ctrl+v copy a lot of string into ws, and press ESC.
Originally created by @HppZ on GitHub (Mar 1, 2021). # Environment ```none Windows build number: 19042.804 Windows Terminal version (if applicable): 1.5.10411.0 Exception: System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in that dimension. Parameter name: top Actual value was -53. at System.Console.SetCursorPosition(Int32 left, Int32 top) at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor) at Microsoft.PowerShell.PSConsoleReadLine.ForceRender() at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg) at Microsoft.PowerShell.PSConsoleReadLine.InputLoop() at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics) just: ctrl+v copy a lot of string into ws, and press ESC.
Author
Owner

@zadjii-msft commented on GitHub (Mar 1, 2021):

I'm presuming you're using powershell. What version? Are you using the PSReadline module? If so, which version?

There's a bunch of similar issues - did you try searching those?

@zadjii-msft commented on GitHub (Mar 1, 2021): I'm presuming you're using powershell. What version? Are you using the PSReadline module? If so, which version? There's [a bunch of similar issues](https://github.com/microsoft/terminal/issues?q=is%3Aissue+ArgumentOutOfRangeException+is%3Aclosed) - did you try searching those?
Author
Owner

@HppZ commented on GitHub (Mar 1, 2021):

powershell 7.1.2.
don't know if i am using PSReadline module.

@HppZ commented on GitHub (Mar 1, 2021): powershell 7.1.2. don't know if i am using PSReadline module.
Author
Owner

@zadjii-msft commented on GitHub (Mar 1, 2021):

By any chance, is this any of:

  • PowerShell autocomplete crashes if larger than current screen #7136
  • Strange error if command is larger than screen #7192
  • Error when pasting code #4524

All of those look like they have the same error message

@zadjii-msft commented on GitHub (Mar 1, 2021): By any chance, is this any of: * PowerShell autocomplete crashes if larger than current screen #7136 * Strange error if command is larger than screen #7192 * Error when pasting code #4524 All of those look like they have the same error message
Author
Owner

@ghost commented on GitHub (Mar 6, 2021):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (Mar 6, 2021): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12769