Windows Terminal hangs with DesktopWindowXamlSource
Windows Terminal doesn't start after reboot. It was working on current machine, but suddenly stop working and now it run only a zero size window with "DesktopWindowXamlSource" caption, that hangs immediately after start. I can close it only from task manager.

It was working fine but after another windows update it just doesn't start. I've rebooted my PC several times, deleted profile.json, try to install Preview terminal version - nothing of this doesn't helps to me.
I'm located in secure local network and don't have administrator rights on my PC.
Link on feddback hub: https://aka.ms/AA8xqz6
Environment
Windows 10 2004
Microsoft Windows NT 10.0.19041.0
Windows Terminal version 1.0.1211.0
Steps to reproduce
Run Windows Terminal from desktop icon.
Expected behavior
It start and work
Actual behavior
It start and nothing happen. Just empty window with caption "DesktopWindowXamlSource", that i can't close.
Hey, I'm so sorry we took a long time to get to this bug. Does it still happen with 1.1 or 1.2?
Hi!
I've check just now and can tell you that issue still persist. On both 1.1 and 1.2

Okay this is a long shot, but I'm not really sure where to go with this one currently.
- Could you try adding
"showTabsInTitlebar": false,to yoursettings.json, and see if the Terminal will boot then? This file will be in%localappdata%\Packages\Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe\LocalState\settings.json - Can you open the PowerToys Settings app? You can find that by right-clicking on the powertoys icon in the taskbar after installing PowerToys.
- This one's a real spitball. I know that the PT Settings app is another XAML Islands app, so I'm hoping we can check if the issue is local to the Terminal or not.
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.
Hi! Sorry for the delay showTabsInTitlebar setting has no affect on behavior of the terminal. It still hangs. As for PowerToys unfortunately i can't install it to this PC. I can install apps only from msixbundle file
If you run wsl.exe (outside of terminal!) does it ever work, or does it hang forever? How about wsl.exe -l?
Yes. Problem with Windows Terminal only. Wsl runs nice as from it's own app and from powershell. I've try to run Terminal even without settings.json and have same result.
Can you use Task Manager to “Create a dump file” for WindowsTerminal.exe? You can do it by right-clicking WindowsTerminal on the Details tab.
Then, upload the “.dmp” file to OneDrive or Google Drive and e-mail me a link. My address is on my GitHub profile.
Thanks!
Please, check your e-mail for link
Interesting... it looks like we have a bunch of threads blocked in the Mcafee security driver. Are you getting any AV/security alerts from that software?
I don't receive any, but maybe security officers does. I will check this at monday.
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.
I just had this for the first time ever and I don't have McAfee it took maybe five minutes and then it closed and resolved itself.
Oh, more detail I guess.
I just updated to 21H1 - Windows 10.0.19043.1023 Windows Terminal 1.7.1033.0.
I was closing the WIndow after spending a couple of hours logged in via SSH to one of our HPC systems.
If it happens again I'll try creating a dump as described above.
Oh, actually there's an error in event log:
Exception code 0xc0000602
In module KERNELBASE.dll.
Unfortunately, that doesn't give us enough to work with by itself. However, if it's happening consistently, the Feedback Hub might be able to get us some useful info:
/feedback
Hi there!
Can you please send us feedback with the Feedback Hub with this issue and paste the link here so we can more easily find your crash information on the back end?
Thanks!

I'm having the same problem as well. Just prior to rebooting Windows Terminal worked fine, but after it just doesn't start. Something titled "DesktopWindowXamlSource" appears for couple seconds (without visible window) and closes itself automatically without any warnings/errors:

I've tried setting "showTabsInTitlebar": false in the settings.json - didn't help. I've tried running wsl.exe from cmd.exe - works fine. Default profile on Windows Terminal was PowerShell 7 and separately it works fine as well.
Are there any logs written somewhere when Windows Terminal starts? I don't think it's possible to make a memory dump - it's closing itself too fast.
I'm having the same problem right now, this has never happened before on my end. Are there any possibilities to reset some caches or something similar? I don't want to need to use the old conhost again. :D
PS: Using Win 2004.
A reboot (coincidentally during an update to Windows 21H1) fixed this for me.