microsoft / terminal

The new Windows Terminal and the original Windows console host, all in the same place!
MIT License
95.27k stars 8.27k forks source link

Exception 0xc0000409 in ucrtbase.dll #13193

Closed Nazar78 closed 2 years ago

Nazar78 commented 2 years ago

Windows Terminal version

1.12.10983.0

Windows build number

10.0.22000.708

Other Software

No response

Steps to reproduce

From the context menu it works, launching directly from the menu also works. But on the latest Windows 11 it doesn't work: Start -> right-click -> Windows Terminal or with Admin.

In the event viewer it's showing this:

Faulting application name: WindowsTerminal.exe, version: 1.12.2204.8003, time stamp: 0x62508e2a Faulting module name: ucrtbase.dll, version: 10.0.22000.1, time stamp: 0x00e78ce9 Exception code: 0xc0000409 Fault offset: 0x000000000007dd7e Faulting process id: 0x228c Faulting application start time: 0x01d871efed6469ee Faulting application path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.12.10983.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe Faulting module path: C:\WINDOWS\System32\ucrtbase.dll Report Id: b77f3deb-3000-4181-9d2c-5bfb3c0e1170 Faulting package full name: Faulting package-relative application ID:

image

Expected Behavior

The Windows Terminal should normally open.

Actual Behavior

The Windows Terminal doesn't launch.

abhinavsatheesh commented 2 years ago

I seem to have the same issue with my PC.

It all started with a Windows Update to Build 22000.613

While opening by search Terminal from start menu it works.

lhecker commented 2 years ago

This is likely MSFT-33471786. It occurs because we're allocating (for example) 0x1fffffffffffff30 bytes of memory.

lhecker commented 2 years ago

I have a theory why this happens but I can't reproduce the crash so I can't debug it unfortunately. If someone has the time to spare could you please do these two things for me?

If you're uncomfortable uploading these files to GitHub, please feel free to send me them via mail to: <my github username>@microsoft.com

image

Nazar78 commented 2 years ago

@lhecker

Thank you for looking into this, here you go the files requested. Console.reg.txt settings.json.txt

abhinavsatheesh commented 2 years ago

In my Event Viewer, the crash is detailed like this

Faulting application name: WindowsTerminal.exe, version: 1.12.2204.8003, time stamp: 0x62508e2a Faulting module name: ucrtbase.dll, version: 10.0.22000.1, time stamp: 0x00e78ce9 Exception code: 0xc0000409 Fault offset: 0x000000000007dd7e Faulting process ID: 0x3910 Faulting application start time: 0x01d874b9caf953c6 Faulting application path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.12.10983.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe Faulting module path: C:\WINDOWS\System32\ucrtbase.dll Report ID: 30a1bc3f-f972-455b-b2fb-f234abbcbc57 Faulting package full name: Faulting package-relative application ID:

ghost commented 2 years ago

:tada:This issue was addressed in #13212, which has now been successfully released as Windows Terminal v1.14.186.:tada:

Handy links:

ghost commented 2 years ago

:tada:This issue was addressed in #13212, which has now been successfully released as Windows Terminal Preview v1.15.186.:tada:

Handy links:

abhinavsatheesh commented 2 years ago

Thanks a lot! It is now working

zadjii-msft commented 2 years ago

@lhecker there's a whole pile of things like this:

You think there's any chance this fixed some of those also?

H1-N1 commented 7 months ago

doesn't work i have the lastes update os and terminal [process exited with code 5 (0x00000005)]