terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Windows Terminal hangs with DesktopWindowXamlSource

Open maksimushka32 opened this issue 6 years ago • 30 comments

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. image (2)

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.

maksimushka32 avatar Jul 10 '20 07:07 maksimushka32

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?

DHowett avatar Aug 13 '20 23:08 DHowett

Hi! I've check just now and can tell you that issue still persist. On both 1.1 and 1.2 image

maksimushka32 avatar Aug 14 '20 06:08 maksimushka32

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 your settings.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. image
    • 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.

zadjii-msft avatar Aug 19 '20 20:08 zadjii-msft

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.

ghost avatar Aug 23 '20 22:08 ghost

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

maksimushka32 avatar Aug 24 '20 08:08 maksimushka32

If you run wsl.exe (outside of terminal!) does it ever work, or does it hang forever? How about wsl.exe -l?

DHowett avatar Sep 04 '20 00:09 DHowett

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.

maksimushka32 avatar Sep 04 '20 06:09 maksimushka32

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!

DHowett avatar Sep 04 '20 06:09 DHowett

Please, check your e-mail for link

maksimushka32 avatar Sep 04 '20 06:09 maksimushka32

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?

DHowett avatar Sep 04 '20 17:09 DHowett

I don't receive any, but maybe security officers does. I will check this at monday.

maksimushka32 avatar Sep 04 '20 20:09 maksimushka32

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.

ghost avatar Sep 14 '20 04:09 ghost

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.

owainkenwayucl avatar May 26 '21 16:05 owainkenwayucl

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.

owainkenwayucl avatar May 26 '21 16:05 owainkenwayucl

Oh, actually there's an error in event log:

Exception code 0xc0000602

In module KERNELBASE.dll.

owainkenwayucl avatar May 26 '21 16:05 owainkenwayucl

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

zadjii-msft avatar May 27 '21 16:05 zadjii-msft

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!

image image

ghost avatar May 27 '21 16:05 ghost

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: windows_terminal_issue

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.

muRn avatar May 28 '21 08:05 muRn

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.

LinqLover avatar Jun 01 '21 16:06 LinqLover

A reboot (coincidentally during an update to Windows 21H1) fixed this for me.

brechtm avatar Jun 01 '21 18:06 brechtm