Skip to content

PowerShell Crashing on Startup #673

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
trentpolack opened this issue Apr 19, 2018 · 2 comments
Closed

PowerShell Crashing on Startup #673

trentpolack opened this issue Apr 19, 2018 · 2 comments

Comments

@trentpolack
Copy link

trentpolack commented Apr 19, 2018

Regardless of how I startup PowerShell, I'm getting a huge CPU/memory spike at startup and eventually the following error spits out (Windows 10; latest stable of all the things as far as I know):

Oops, something went wrong.  Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Last 0 Keys:


Exception:
System.OutOfMemoryException: Array dimensions exceeded supported range.
   at System.Collections.Generic.List`1.set_Capacity(Int32 value)
   at System.Collections.Generic.List`1.EnsureCapacity(Int32 min)
   at System.Collections.Generic.List`1.Add(T item)
   at System.IO.File.InternalReadAllLines(String path, Encoding encoding)
   at Microsoft.PowerShell.PSConsoleReadLine.<ReadHistoryFile>b__67_0()
   at Microsoft.PowerShell.PSConsoleReadLine.WithHistoryFileMutexDo(Int32 timeout, Action action)
   at Microsoft.PowerShell.PSConsoleReadLine.DelayedOneTimeInitialize()
   at Microsoft.PowerShell.PSConsoleReadLine.Initialize(Runspace runspace, EngineIntrinsics engineIntrinsics)
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
-----------------------------------------------------------------------```
@trentpolack
Copy link
Author

Nuking the history in ~/AppData\Roaming\Microsoft\Windows\PowerShell\PSReadline fixed this.

@lzybkr
Copy link
Contributor

lzybkr commented Apr 19, 2018

This is a dupe of #524, fixed in 2.0.0-beta1.

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

No branches or pull requests

2 participants