Skip to content

Getting an powershell-related error by spamming some keybinds while a command is executing #3264

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
3 tasks done
GEOEGII555 opened this issue Apr 8, 2022 · 2 comments
Closed
3 tasks done

Comments

@GEOEGII555
Copy link

GEOEGII555 commented Apr 8, 2022

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues, especially the pinned issues.

Exception report

Произошла ошибка. Сообщите об этой ошибке, указав данные ниже.
Напишите в GitHub: https://github.com/PowerShell/PSReadLine/issues/new
### Среда
PSReadLine: 2.0.0
PowerShell: 5.1.22000.282
ОС: Microsoft Windows 10.0.22000
Последние 32 ключей

 p y t h o n Spacebar m a i n Ctrl+Backspace Ctrl+Backspace Ctrl+Backspace Ctrl+Backspace p y t h o n Spacebar m a i n . p y Enter
 UpArrow Enter
 UpArrow Enter
 Ctrl+Delete Ctrl+Insert

### Исключение
System.InvalidOperationException: Очередь пуста.
   в System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   в System.Collections.Generic.Queue`1.Dequeue()
   в Microsoft.PowerShell.PSConsoleReadLine.ReadKey()
   в Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   в Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken)

Screenshot

image

Environment data

PS Version: 5.1.22000.282
PS HostName: ConsoleHost (Windows Terminal)
PSReadLine Version: 2.0.0
PSReadLine EditMode: Windows
OS: 10.0.22000.184 (WinBuild.160101.0800)
BufferWidth: 120
BufferHeight: 30

Steps to reproduce

Type some commands. While last command is executing, start hitting CTRL+INSERT, CTRL+DELETE and CTRL+PAUSE
Powershell will enter debug mode
Continue hitting without stopping, and here we go! An error!

Expected behavior

Switch command

Actual behavior

With a small chance, throwing out an error "System.InvalidOperationException: Queue is blank"

@ghost ghost added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Apr 8, 2022
@GEOEGII555 GEOEGII555 changed the title Getting an error while switching fastly commands with arrows (Small chance) Getting an error by spamming some keybinds while command execution Apr 8, 2022
@GEOEGII555 GEOEGII555 changed the title Getting an error by spamming some keybinds while command execution Getting an powershell-related error by spamming some keybinds while a command is executing Apr 8, 2022
@daxian-dbw
Copy link
Member

Thanks for the reporting. This is the second issue reported regarding "Queue is empty" exception, and both involves Ctrl+Break. Will look into it.

@daxian-dbw
Copy link
Member

Close as a duplicate of #3260

@ghost ghost removed the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Apr 12, 2022
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