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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
CarlKnox opened this issue Feb 9, 2019 · 1 comment
Labels
OutOfRange Issues relating to System.ArgumentOutOfRangeException

Comments

@CarlKnox
Copy link

CarlKnox commented Feb 9, 2019


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.

@daxian-dbw daxian-dbw added this to the 2.0.0-Consider milestone Jun 18, 2019
@joeyaiello joeyaiello added the OutOfRange Issues relating to System.ArgumentOutOfRangeException label Jun 18, 2019
@daxian-dbw
Copy link
Member

Fixed by #979 and #967

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OutOfRange Issues relating to System.ArgumentOutOfRangeException
Projects
None yet
Development

No branches or pull requests

3 participants