Skip to content

Problem with a really large item in history on macOS #941

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
TravisEz13 opened this issue Jun 13, 2019 · 2 comments
Closed

Problem with a really large item in history on macOS #941

TravisEz13 opened this issue Jun 13, 2019 · 2 comments
Labels
OutOfRange Issues relating to System.ArgumentOutOfRangeException

Comments

@TravisEz13
Copy link
Member

TravisEz13 commented Jun 13, 2019

Environment data

PS version: 6.2.0-rc.1
PSReadline version: 2.0.0-beta3
os: Darwin ************** 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64
PS file version:
BufferHeight: 63
BufferWidth: 131
WindowHeight: 63
WindowWidth: 131

Error

Last 200 Keys:

 $ p ' + " i " + ' d ' ) ; Enter
 $ n u l l = g e ` T ` - c O M m A ` N D Space g e t - * ; Enter
 $ n u l l = I n v o k e - E x p r e s s i o n ( ' d ' + " i " + ' r ' ) ; Enter
 $ n u l l = I n v o k e - E x p r e s s i o n ( ' $ p ' + " i " + ' d ' ) ; Enter
 $ n u l l = g e ` T ` - c O M m A ` N D Space g e t - * ; Enter
 $ n u l l = I n v o k e - E x p r e s s i o n ( ' d ' + " i " + ' r ' ) ; Enter
 $ n u l l = I n Enter
 Enter
 ' @ Enter
 UpArrow UpArrow

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 -173.
   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.HistoryRecall(Int32 direction)
   at Microsoft.PowerShell.PSConsoleReadLine.PreviousHistory(Nullable`1 key, Object arg)
   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, CancellationToken cancellationToken)

Steps to reproduce or exception report

  • put the following in history
get-command
  • put the following in history
@'
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=Invoke-Expression('$p'+"i"+'d');
$null=ge`T`-cOMmA`ND get-*;
$null=Invoke-Expression('d'+"i"+'r');
$null=In

'@
  • hit up arrow twice to get to the first item in history
@lzybkr
Copy link
Contributor

lzybkr commented Jun 14, 2019

This is probably being reported frequently. See #663 and #691 for my feedback on an attempt at the fix.

I think fixing this issue properly (not exactly what's in #691) should be a priority.

@SteveL-MSFT SteveL-MSFT added this to the 2.0.0-Consider milestone Jun 18, 2019
@daxian-dbw daxian-dbw modified the milestone: 2.0.0-Consider Jun 18, 2019
@joeyaiello joeyaiello changed the title Problem with a really large item in history on mac os Problem with a really large item in history on macOS 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

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

5 participants