-
Notifications
You must be signed in to change notification settings - Fork 8.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
conhost crashes on SetConsoleWindowInfo #5843
Comments
I don't recall signing off on any conhost changes that would have given it a different build number than 19041.1 (!) |
Looks like it's working properly for me on .152/.208 as well. If you can get a dump from conhost.exe when this happens, can you send it to me? E-mail's in my GitHub profile. 😄 |
Some system32 files are 19041.1 dated Dec 7, 2019, others are 19041.153 dated April 167 and May 12, 2020 (spotted container.dll and computecore.dll for example), some are even 19041.84 (werui.dll). I've sent a crash dump by e-mail, let me know if you need any other. |
Puzzlingly, it looks like we're falling over while trying to render an area that's absolutely on the screen. What other buffer parameters are you using? Starting width/height, buffer width/height? |
I don't have any non-default setting in the registry, no UseDx in HKCU\Console. Note I have EN-US as UI language, but also French and Japanese language packs installed (so console sees MS Gothic, Mincho, NSimSun, SimSun-ExtB, and installed the 4 Cascadia fonts systemwide, but the console is using Cascadia when the crash occurs. Shall I send a few other crash dumps to see if you can find other details? |
This is a real thinker. Sure, a couple more crash dumps might help, but... I'm utterly baffled. If that's the reproducer, and those are the conhosts, and it's just what you get when you run it from CMD this should be an absolute bullseye 😄 |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
Gonna hold this one for a sec. |
@DHowett Thanks, I'll get back to you with some more crash dumps once we're done with Build, Mixed Reality Dev Days and a day or two of sleep to recover 😅 |
Hey I'm just gonna necro this thread now that we're all a good amount past Build. @DHowett did you ever get a chance to look at those crash dumps? |
Sorry for the delay after Build, we had a lot of offline things to take care of. |
@PhMajerus You still seeing this/? I'm not seeing this anymore on a conhost built from |
@zadjii-msft No, testing on Win11 22621.900 (Release Preview channel) doesn't crash anymore. |
Found a new issue with conhost in Windows 10 20H1/2004 as pushed to the release preview ring.
Windows 10 build 19041.208 (up to date release preview ring) on a Surface Book 2 15", conhost.exe file version 10.0.19041.153.
The following code, compiled as CUI and launched from a cmd.exe prompt, will crash conhost, closing the window.
int main()
{
HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
SMALL_RECT srNewWinSize;
srNewWinSize.Top = 1;
srNewWinSize.Left = 1;
srNewWinSize.Right = 40;
srNewWinSize.Bottom = 20;
SetConsoleWindowInfo(hStdOut, TRUE, &srNewWinSize);
}
This used to work fine in previous versions of Windows 10, it seems to be a new issue with 20H1/2004.
The text was updated successfully, but these errors were encountered: