Frequent process failures due to GetConsoleScreenBufferInfoEx failing #7844

Open
opened 2026-01-31 01:14:06 +00:00 by claunia · 0 comments
Owner

Originally created by @AArnott on GitHub (Apr 30, 2020).

Environment

Windows build number: 10.0.19041.0
Windows Terminal version (if applicable): 0.11.1191.0

I'm running PowerShell within the terminal.

Steps to reproduce

Run msbuild.exe or dotnet build.
Resizing the window during the build is not necessary, but may increase the frequency of the failure.

Expected behavior

No errors or build breaks.

Actual behavior

Evidently some processes that are attached to the console and spawned from within the Windows Terminal call GetConsoleScreenBufferInfoEx and it frequently fails with GetConsoleScreenBufferInfoEx->WinError: #6, as shown below:

INFO  00:02:02.377: Targets status: Progress 97.4 %, Pending 1, Ready 0, NotStarted 0, Failed 0, Succeeded 37, FromCache 36, Cache download rate: 0.0 Mbps
INFO  00:02:12.468: Targets status: Progress 97.4 %, Pending 1, Ready 0, NotStarted 0, Failed 0, Succeeded 37, FromCache 36, Cache download rate: 0.0 Mbps
ERROR Command src\env\shell\UIInternal_Checked_X86 (src\env\shell\UIInternal) finished with result Failed, reason: EXEC : error : "GetConsoleScreenBufferInfoEx->WinError: #6"
Log location: \\DESKTOP-CA1DFI9\D$\VS\src\env\shell\UIInternal\Logs\Checked\X86

This causes frequent build breaks. Restarting the build will usually get the build to pass or at least get further along, so I just repeat the build until it finally succeeds.

I've never seen this outside of Windows Terminal.

Originally created by @AArnott on GitHub (Apr 30, 2020). # Environment ```none Windows build number: 10.0.19041.0 Windows Terminal version (if applicable): 0.11.1191.0 ``` I'm running PowerShell within the terminal. # Steps to reproduce Run msbuild.exe or `dotnet build`. Resizing the window during the build is _not_ necessary, but *may* increase the frequency of the failure. # Expected behavior No errors or build breaks. # Actual behavior Evidently some processes that are attached to the console and spawned from within the Windows Terminal call `GetConsoleScreenBufferInfoEx` and it frequently fails with `GetConsoleScreenBufferInfoEx->WinError: #6`, as shown below: ``` INFO 00:02:02.377: Targets status: Progress 97.4 %, Pending 1, Ready 0, NotStarted 0, Failed 0, Succeeded 37, FromCache 36, Cache download rate: 0.0 Mbps INFO 00:02:12.468: Targets status: Progress 97.4 %, Pending 1, Ready 0, NotStarted 0, Failed 0, Succeeded 37, FromCache 36, Cache download rate: 0.0 Mbps ERROR Command src\env\shell\UIInternal_Checked_X86 (src\env\shell\UIInternal) finished with result Failed, reason: EXEC : error : "GetConsoleScreenBufferInfoEx->WinError: #6" Log location: \\DESKTOP-CA1DFI9\D$\VS\src\env\shell\UIInternal\Logs\Checked\X86 ``` This causes *frequent* build breaks. Restarting the build will usually get the build to pass or at least get further along, so I just repeat the build until it finally succeeds. I've never seen this outside of Windows Terminal.
claunia added the Resolution-ExternalNeeds-Tag-FixNeeds-Attention labels 2026-01-31 01:14:06 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7844