Terminal fails to launch because of 21h1_themeresources.xaml #20748

Open
opened 2026-01-31 07:23:00 +00:00 by claunia · 0 comments
Owner

Originally created by @xlinush on GitHub (Oct 30, 2023).

Windows Terminal version

1.18.2822.0

Windows build number

10.0.25987.1000

Debugging notes

Hi,

I've not been able to launch Terminal for a while and decided to debug into the launching.

(518c.1628): Windows Runtime Originate Error - code 40080201 (first chance)
(518c.1628): C++ EH exception - code e06d7363 (first chance)
(518c.1628): C++ EH exception - code e06d7363 (first chance)
C:\__w\1\s\src\cascadia\TerminalApp\Generated Files\winrt\base.h(6620)\TerminalApp.dll!00007FF9FC4AF7A2: LogHr(1) tid(1628) 80004005 Unspecified error
    [struct winrt::Microsoft::UI::Xaml::Controls::XamlControlsResources __cdecl winrt::Windows::Foundation::IActivationFactory::ActivateInstance<struct winrt::Microsoft::UI::Xaml::Controls::XamlControlsResources>(void) const]
(518c.1628): C++ EH exception - code e06d7363 (first chance)
(518c.1628): C++ EH exception - code e06d7363 (first chance)
TerminalApp.dll!00007FF9FC529886: ReturnHr(1) tid(1628) 80004005 Unspecified error
    Msg:[winrt::hresult_error: Cannot locate resource from 'ms-appx:///Microsoft.UI.Xaml/Themes/21h1_themeresources.xaml'.] 
(518c.1628): Windows Runtime Originate Error - code 40080201 (first chance)
(518c.1628): Unknown exception - code c000027b (!!! second chance !!!)
KERNELBASE!RaiseFailFastException+0x160:
00007ffa`8ac34ac0 0f1f440000      nop     dword ptr [rax+rax]

It seems like some WinUI resource is missing which caused Terminal to crash. Doesn't feel like a problem of Terminal, and I'm just wondering if anyone's hit this before. It could be that I'm running an insider build of Windows which was messed up a while ago.

Thanks!

Steps to reproduce

  1. Launch Terminal
  2. Notice nothing happened

Expected Behavior

Terminal should launch

Actual Behavior

Terminal didn't launch

Originally created by @xlinush on GitHub (Oct 30, 2023). ### Windows Terminal version 1.18.2822.0 ### Windows build number 10.0.25987.1000 ### Debugging notes Hi, I've not been able to launch Terminal for a while and decided to debug into the launching. ```windbg (518c.1628): Windows Runtime Originate Error - code 40080201 (first chance) (518c.1628): C++ EH exception - code e06d7363 (first chance) (518c.1628): C++ EH exception - code e06d7363 (first chance) C:\__w\1\s\src\cascadia\TerminalApp\Generated Files\winrt\base.h(6620)\TerminalApp.dll!00007FF9FC4AF7A2: LogHr(1) tid(1628) 80004005 Unspecified error [struct winrt::Microsoft::UI::Xaml::Controls::XamlControlsResources __cdecl winrt::Windows::Foundation::IActivationFactory::ActivateInstance<struct winrt::Microsoft::UI::Xaml::Controls::XamlControlsResources>(void) const] (518c.1628): C++ EH exception - code e06d7363 (first chance) (518c.1628): C++ EH exception - code e06d7363 (first chance) TerminalApp.dll!00007FF9FC529886: ReturnHr(1) tid(1628) 80004005 Unspecified error Msg:[winrt::hresult_error: Cannot locate resource from 'ms-appx:///Microsoft.UI.Xaml/Themes/21h1_themeresources.xaml'.] (518c.1628): Windows Runtime Originate Error - code 40080201 (first chance) (518c.1628): Unknown exception - code c000027b (!!! second chance !!!) KERNELBASE!RaiseFailFastException+0x160: 00007ffa`8ac34ac0 0f1f440000 nop dword ptr [rax+rax] ``` It seems like some WinUI resource is missing which caused Terminal to crash. Doesn't feel like a problem of Terminal, and I'm just wondering if anyone's hit this before. It could be that I'm running an insider build of Windows which was messed up a while ago. Thanks! ### Steps to reproduce 1. Launch Terminal 2. Notice nothing happened ### Expected Behavior Terminal should launch ### Actual Behavior Terminal didn't launch
claunia added the Needs-TriageIssue-BugResolution-ExternalCulprit-Centennial labels 2026-01-31 07:23:00 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20748