Skip to content

System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in that dimension. #855

Closed
@CarlKnox

Description

@CarlKnox

Last 200 Keys:
Tab . g e t t Tab ) Enter
[ Ctrl+v ] $ a Spacebar = Spacebar " " Enter
UpArrow Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Home $ a Spacebar = Spacebar N
e w - Delete Enter
UpArrow ] : : n e w ( ) LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftA
rrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftA
rrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow Backspace Backspace Backspace [ LeftArrow Bac
kspace Enter
UpArrow Backspace Backspace Backspace Backspace Backspace Backspace Backspace Enter
UpArrow Delete Home Delete Delete Delete Delete Delete Enter
UpArrow Escape Ctrl+v Enter
Ctrl+v Enter
$ w e b r Tab . c o n Tab . l e n Tab Enter
Ctrl+v Enter
Ctrl+v Enter
$ d i a g Enter
UpArrow . c o n t e Tab Enter
Ctrl+v Enter
Ctrl+v Enter
Ctrl+v Enter
Ctrl+v Enter
Enter
Enter
Ctrl+v Enter
$ d a i l Tab Enter
UpArrow Spacebar | Spacebar f t Enter
UpArrow Backspace l Enter
$ t a b l e Enter
Enter
UpArrow UpArrow UpArrow UpArrow UpArrow UpArrow UpArrow UpArrow UpArrow DownArrow UpArrow UpArrow UpArrow UpArrow UpArr
ow Escape

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

Environment data

PS version: 5.1.17134.407
PSReadline version: 1.2
os: 10.0.17134.1 (WinBuild.160101.0800)
PS file version: 10.0.17134.1 (WinBuild.160101.0800)

Steps to reproduce or exception report

The only odd thing is my scroll buffer height is 3000 and that I leave a working window open for days.
It's also an older version of PSReadline.

Metadata

Metadata

Assignees

No one assigned

    Labels

    OutOfRangeIssues relating to System.ArgumentOutOfRangeException

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions