Repository navigation
ArgumentOutOfRangeException in 2.0.0 GA version #1469
Copy link
Copy link
Closed
Labels
Description
Error message said I should report this so here it goes:
E:\projects\MSBuildStaticGraphTester [transitiveReferences +7 ~5 -0 !]> .\src\out\Release\bin\GraphGen\net472\GraphGen.exe E:\projects\roslyn\src\NuGet\Microsoft.Net.Compilers.Toolset\Microsoft.Net.Compilers.Toolset.Package.csproj package.pdf "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Mstart .\package_PathsEndingIn_vbc.csproj.pdf
Oops, something went wrong. Please report this bug with the details below.
Report on GitHub: https://github.com/PowerShell/PSReadLine/issues/new
### Environment
PSReadLine: 2.0.0
PowerShell: 7.0.0
OS: Microsoft Windows 10.0.18363
Last 200 Keys
Enter
s t a r t Spacebar p a Tab Tab Enter
UpArrow UpArrow DownArrow DownArrow Spacebar Backspace Backspace Backspace g i t Spacebar s t a t u s Enter
. . \ d e Tab Spacebar Tab Tab Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace - Tab Spacebar E n t e r p r i s e Enter
UpArrow UpArrow UpArrow UpArrow Enter
s t a r t Spacebar p a Tab Tab Enter
UpArrow UpArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+RightArrow Ctrl+RightArrow Ctrl+RightArrow " " Spacebar LeftArro
w LeftArrow Ctrl+v Enter
UpArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+RightArrow Ctrl+RightArrow Ctrl+RightArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow
Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+RightArrow Ctrl+LeftArrow Ctrl+RightArrow Ctrl+RightArrow Ctrl+RightArrow Ctrl+RightArrow Ctrl+RightArrow Ctrl
+RightArrow Ctrl+RightArrow Ctrl+RightArrow Ctrl+RightArrow Ctrl+RightArrow Ctrl+RightArrow Ctrl+RightArrow Ctrl+RightArrow Ctrl+RightArrow Ctrl+RightArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow RightArrow RightArro
w RightArrow RightArrow LeftArrow Shift+Ctrl+LeftArrow Shift+Ctrl+LeftArrow Ctrl+x Backspace Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+Lef
tArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+LeftArrow Ctrl+RightArrow LeftArrow Ctrl+v Spacebar Enter
s t a r t Spacebar p a c k Tab Tab Enter
UpArrow UpArrow DownArrow DownArrow UpArrow UpArrow DownArrow
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 'top')
Actual value was 55.
at System.ConsolePal.SetCursorPosition(Int32 left, Int32 top)
at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
at Microsoft.PowerShell.PSConsoleReadLine.UpdateFromHistory(HistoryMoveCursor moveCursor)
at Microsoft.PowerShell.PSConsoleReadLine.HistoryRecall(Int32 direction)
at Microsoft.PowerShell.PSConsoleReadLine.NextHistory(Nullable`1 key, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(PSKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken)
I was going through the command history with the up / down keys when this happened.
Reacted by Florian Hötzinger
Activity
iSazonov commentedon Apr 14, 2020
petacreepers23 commentedon Apr 15, 2020
daxian-dbw commentedon Apr 20, 2020
This happened with PSReadLine 2.0.0, so it's something new.
Mihai Codoban (@cdmihai) Can you please run the script below in the pwsh session where you run into this issue to collect the environment data?
Also, are you able to consistently reproduce the issue? If so, can you please provide the repro steps (including your history commands that triggers the issue when using
up/downkeys)?[-]System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in that dimension. (Parameter 'top')[/-][+]ArgumentOutOfRangeException happens in PSReadLine of version 2.0.0[/+]cdmihai commentedon Apr 22, 2020
I've restarted multiple times since then, so that pwsh session is long gone. Does it still make sense to run the script?
It only happened once. If it happens again, I'll run the script snippet you mentioned, and preserve the command history I was browsing through.
iSazonov commentedon Apr 22, 2020
Dongbo Wang (@daxian-dbw) Maybe collect exceptions for telemetry?
daxian-dbw commentedon Apr 22, 2020
Mihai Codoban (@cdmihai) Yes, please do report back with those additional information if it happens to you again. Thanks!
Ilya (@iSazonov) I don't think the exception would be that interesting. A repro is what we desperately need :)
iSazonov commentedon Apr 22, 2020
My thoughts is that console applications is very sensitive and having all that we have with your script could be useful in telemetry.
petacreepers23 commentedon Apr 22, 2020
daxian-dbw commentedon Apr 22, 2020
daniel0x00 commentedon Apr 26, 2020
jhoneill commentedon Apr 29, 2020
daxian-dbw commentedon Apr 29, 2020
jhoneill commentedon Apr 29, 2020
iSazonov commentedon Apr 30, 2020
jhoneill commentedon Apr 30, 2020
daxian-dbw commentedon May 1, 2020
[-]ArgumentOutOfRangeException happens in PSReadLine of version 2.0.0[/-][+]ArgumentOutOfRangeException in 2.0.0 GA version[/+]