Terminal displays as "DesktopWindowXaml..." when it's starting #15810

Closed
opened 2026-01-31 04:49:05 +00:00 by claunia · 6 comments
Owner

Originally created by @KotlinIsland on GitHub (Nov 7, 2021).

Windows Terminal version (or Windows build number)

Microsoft Windows [Version 10.0.19043.1288]

Other Software

No response

Steps to reproduce

Open wt

Expected Behavior

window displays as "Terminal" or something with the terminal icon.

Actual Behavior

"DesktopWindowXaml..." with a broken icon.

image

Once it loads it's back to normal.

Originally created by @KotlinIsland on GitHub (Nov 7, 2021). ### Windows Terminal version (or Windows build number) Microsoft Windows [Version 10.0.19043.1288] ### Other Software _No response_ ### Steps to reproduce Open wt ### Expected Behavior window displays as "Terminal" or something with the terminal icon. ### Actual Behavior "DesktopWindowXaml..." with a broken icon. ![image](https://user-images.githubusercontent.com/65446343/140664670-04d26def-8a43-4075-9234-11745b090b5e.png) Once it loads it's back to normal.
Author
Owner

@zadjii-msft commented on GitHub (Nov 8, 2021):

Which version of the Terminal is this? Do you have WSL installed?

My theory is that we're hitting the very slow path of the old WSL distro lookup, which is hanging during the creation of the window, so we don't actually update the window title to something sensible.


I suppose this is something we could fix regardless of if it's fixed already. Like, we could always we the title and icon of the window, even before we load the settings. Should be easy enough to repro, just slap a Sleep(10000) in the WslDistroGenerator

@zadjii-msft commented on GitHub (Nov 8, 2021): Which version of the Terminal is this? Do you have WSL installed? My theory is that we're hitting the very slow path of the old WSL distro lookup, which is hanging during the creation of the window, so we don't actually update the window title to something sensible. <hr> I suppose this is something we could fix _regardless_ of if it's fixed already. Like, we could always we the title and icon of the window, even before we load the settings. Should be easy enough to repro, just slap a `Sleep(10000)` in the `WslDistroGenerator`
Author
Owner

@KotlinIsland commented on GitHub (Nov 9, 2021):

I've seen this on every version of Terminal I've used, and yes WSL 2 with wsl as default shell.

@KotlinIsland commented on GitHub (Nov 9, 2021): I've seen this on every version of Terminal I've used, and yes WSL 2 with wsl as default shell.
Author
Owner

@Rosefield commented on GitHub (Nov 9, 2021):

I also noticed this when I was working on all of the saved layout / quit features. It can be fairly reliably reproduced by having window layout saying enabled and quitting/reloading half a dozen or so windows, resulting in a process list like this (dev/main not updated since the 1.12 release cut). This computer has WSL1 installed, but I only have powershell panes here.

image

@Rosefield commented on GitHub (Nov 9, 2021): I also noticed this when I was working on all of the saved layout / quit features. It can be fairly reliably reproduced by having window layout saying enabled and quitting/reloading half a dozen or so windows, resulting in a process list like this (dev/main not updated since the 1.12 release cut). This computer has WSL1 installed, but I only have powershell panes here. ![image](https://user-images.githubusercontent.com/6185249/140853664-a38d3538-be22-4762-9bb8-f1288a89fac8.png)
Author
Owner

@Link1J commented on GitHub (Jan 10, 2022):

The two DesktopWindowXamlSource is created by C:\Windows\System32\Windows.UI.dll. So I am going to guess they are what make XAML Islands work. My guess on why one of them appears (I don't know which) is that the window isn't configured to be hidden, but Windows makes it disappear when it has a parent. I have seen it appear when closing apps using XAML Islands, probably because it loses it parent window before it is closed.

Making it not appear may need an OS level fix, if it is even possible to fix.

@Link1J commented on GitHub (Jan 10, 2022): The two `DesktopWindowXamlSource` is created by `C:\Windows\System32\Windows.UI.dll`. So I am going to guess they are what make XAML Islands work. My guess on why one of them appears (I don't know which) is that the window isn't configured to be hidden, but Windows makes it disappear when it has a parent. I have seen it appear when closing apps using XAML Islands, probably because it loses it parent window before it is closed. Making it not appear may need an OS level fix, if it is even possible to fix.
Author
Owner

@zadjii-msft commented on GitHub (Aug 22, 2022):

You know what, I think the real root cause here is /dup #6507

@zadjii-msft commented on GitHub (Aug 22, 2022): You know what, I think the real root cause here is /dup #6507
Author
Owner

@ghost commented on GitHub (Aug 22, 2022):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Aug 22, 2022): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15810