-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
PowerShell 7 APPCRASH System.ArgumentOutOfRangeException #20860
Comments
📣 Hey @DarkLite1, how did we do? We would love to hear your feedback with the link below! 🗣️ 🔗 https://forms.office.com/r/P926k48jRJ |
Likely duplicate of #16894 |
This issue has been marked as duplicate and has not had any activity for 1 day. It has been closed for housekeeping purposes. |
📣 Hey @DarkLite1, how did we do? We would love to hear your feedback with the link below! 🗣️ 🔗 aka.ms/PSRepoFeedback |
Indeed, it does seem to be related. Thank you for pointing us in the right direction. |
Prerequisites
Steps to reproduce
We are experiencing a problem that PowerShell 7.4.0 crashes when using
Set-SFTPItem
in parallel running jobs. We also reported this in issue 556 of theOpen-SSH
module.Looking in the Windows Event Viewer we see 3 errors which happen at exactly the same time. This makes us believe it's the PowerShell process that crashes within the PowerShell background job started by
Start-Job
.Possibly related to .NET version 8, see this issue with a similar error message.
See attachment for the event logs.
Event log errors.zip
pwsh.exe.23908.zip
Repro
Expected behavior
Actual behavior
Error details
The background process reported an error with the following message: Unhandled exception. System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index').
Environment data
Visuals
No response
The text was updated successfully, but these errors were encountered: