Crash on start (the ApplicationModel::IPackageStatics_::Current / XamlControlsResources thread) #20119

Closed
opened 2026-01-31 07:04:04 +00:00 by claunia · 34 comments
Owner

Originally created by @stevenh on GitHub (Jun 20, 2023).

Windows Terminal version

1.18.2305.26002

Windows build number

10.0.22621.1848

Other Software

Seemed to start after installing windows 11 updates:
2023-06 Cumulative Update for Windows 11 Version 22H2 for x64-based Systems (KB5027231)
2023-05 Cumulative Update Preview for Windows 11 Version 22H2 for x64-based Systems (KB5026446)
2023-06 Cumulative Update for .NET Framework 3.5 and 4.8.1 for Windows 11, version 22H2 for x64 (KB5027119)
Windows Malicious Software Removal Tool x64 - v5.114 (KB890830)

Steps to reproduce

Try to start Windows Terminal.

I have uninstalled, reinstalled tried the latest dev build 1.18.2305.26002 as well as 1.17.2305.26001 both just crash on start up.

Expected Behavior

Terminal runs

Actual Behavior

Crash to desktop.

From the event logs

Faulting application name: WindowsTerminal.exe, version: 1.18.2305.26002, time stamp: 0x64714178
Faulting module name: Windows.UI.Xaml.dll, version: 10.0.22621.1778, time stamp: 0x2b8b6f52
Exception code: 0xc000027b
Fault offset: 0x0000000000869bb0
Faulting process ID: 0x0x42E0
Faulting application start time: 0x0x1D9A3C24F9C6EA0
Faulting application path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminalPreview_1.18.1462.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe
Faulting module path: C:\Windows\System32\Windows.UI.Xaml.dll
Report ID: 2e50f37a-502f-4000-a672-a8216ba7d5be
Faulting package full name: 
Faulting package-relative application ID: 
Fault bucket 2000668208451747192, type 4
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: WindowsTerminal.exe
P2: 1.18.2305.26002
P3: 64714178
P4: combase.dll
P5: 10.0.22621.1485
P6: a8be94cc
P7: 802b000a
P8: 000000000009200b
P9: 
P10: 

Attached files:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.2748f41f-8c16-4325-a587-48b94ec96955.tmp.mdmp
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.21d7e37f-3b5c-4809-acce-5aca70adc2f9.tmp.WERInternalMetadata.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.1c83b3f3-829c-4dfd-abde-71c47931de45.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.50a48d0b-e084-4dd9-a329-4ca3772ae2f1.tmp.txt
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.53abf8b2-7ab1-4c1d-aab0-732de34ca4a3.tmp.xml

These files may be available here:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_WindowsTerminal._431dae7d3814a1fdfab17d467365be227ce236d_378a4387_9af5da94-e944-42c2-a534-92d028656cc4

Analysis symbol: 
Rechecking for solution: 0
Report Id: 2e50f37a-502f-4000-a672-a8216ba7d5be
Report Status: 268435456
Hashed bucket: 8fcfc95c01a859d9dbc3cd22b62efd78
Cab Guid: 0
Faulting application name: WindowsTerminal.exe, version: 1.17.2305.26001, time stamp: 0x647122fe
Faulting module name: Windows.UI.Xaml.dll, version: 10.0.22621.1778, time stamp: 0x2b8b6f52
Exception code: 0xc000027b
Fault offset: 0x0000000000869bb0
Faulting process ID: 0x0x16F0
Faulting application start time: 0x0x1D9A3C1C6873F24
Faulting application path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.17.11461.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe
Faulting module path: C:\Windows\System32\Windows.UI.Xaml.dll
Report ID: 4f0c9d7a-c792-43e1-ace7-ce89c5d49f7a
Faulting package full name: 
Faulting package-relative application ID: 
Fault bucket 1818485409417120326, type 4
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: WindowsTerminal.exe
P2: 1.17.2305.26001
P3: 647122fe
P4: combase.dll
P5: 10.0.22621.1485
P6: a8be94cc
P7: 802b000a
P8: 000000000009200b
P9: 
P10: 

Attached files:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.a4cb1ec3-9927-4c02-bfb0-8a1b14cc9a0b.tmp.mdmp
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.d416a05a-a646-4bd5-bb8d-6eba441248bc.tmp.WERInternalMetadata.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.a6f2b8b3-eb9c-49d9-96ac-85ba359d5e1c.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.8078b7d1-70fe-4129-b2d4-8eebe4b53c26.tmp.txt
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.d7a251fa-1640-4b4f-ae06-ad05fbcf8649.tmp.xml

These files may be available here:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_WindowsTerminal._cff66014caac85ee5a959a5318a2eb28f942386_c1fd6985_431b8509-a9ff-4ccd-8603-143d2ed0eefd

Analysis symbol: 
Rechecking for solution: 0
Report Id: 4f0c9d7a-c792-43e1-ace7-ce89c5d49f7a
Report Status: 268435456
Hashed bucket: 4c433c97d365032f193c8ed85989ca46
Cab Guid: 0
Originally created by @stevenh on GitHub (Jun 20, 2023). ### Windows Terminal version 1.18.2305.26002 ### Windows build number 10.0.22621.1848 ### Other Software Seemed to start after installing windows 11 updates: 2023-06 Cumulative Update for Windows 11 Version 22H2 for x64-based Systems (KB5027231) 2023-05 Cumulative Update Preview for Windows 11 Version 22H2 for x64-based Systems (KB5026446) 2023-06 Cumulative Update for .NET Framework 3.5 and 4.8.1 for Windows 11, version 22H2 for x64 (KB5027119) Windows Malicious Software Removal Tool x64 - v5.114 (KB890830) ### Steps to reproduce Try to start Windows Terminal. I have uninstalled, reinstalled tried the latest dev build 1.18.2305.26002 as well as 1.17.2305.26001 both just crash on start up. ### Expected Behavior Terminal runs ### Actual Behavior Crash to desktop. From the event logs ``` Faulting application name: WindowsTerminal.exe, version: 1.18.2305.26002, time stamp: 0x64714178 Faulting module name: Windows.UI.Xaml.dll, version: 10.0.22621.1778, time stamp: 0x2b8b6f52 Exception code: 0xc000027b Fault offset: 0x0000000000869bb0 Faulting process ID: 0x0x42E0 Faulting application start time: 0x0x1D9A3C24F9C6EA0 Faulting application path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminalPreview_1.18.1462.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe Faulting module path: C:\Windows\System32\Windows.UI.Xaml.dll Report ID: 2e50f37a-502f-4000-a672-a8216ba7d5be Faulting package full name: Faulting package-relative application ID: ``` ``` Fault bucket 2000668208451747192, type 4 Event Name: APPCRASH Response: Not available Cab Id: 0 Problem signature: P1: WindowsTerminal.exe P2: 1.18.2305.26002 P3: 64714178 P4: combase.dll P5: 10.0.22621.1485 P6: a8be94cc P7: 802b000a P8: 000000000009200b P9: P10: Attached files: \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.2748f41f-8c16-4325-a587-48b94ec96955.tmp.mdmp \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.21d7e37f-3b5c-4809-acce-5aca70adc2f9.tmp.WERInternalMetadata.xml \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.1c83b3f3-829c-4dfd-abde-71c47931de45.tmp.csv \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.50a48d0b-e084-4dd9-a329-4ca3772ae2f1.tmp.txt \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.53abf8b2-7ab1-4c1d-aab0-732de34ca4a3.tmp.xml These files may be available here: \\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_WindowsTerminal._431dae7d3814a1fdfab17d467365be227ce236d_378a4387_9af5da94-e944-42c2-a534-92d028656cc4 Analysis symbol: Rechecking for solution: 0 Report Id: 2e50f37a-502f-4000-a672-a8216ba7d5be Report Status: 268435456 Hashed bucket: 8fcfc95c01a859d9dbc3cd22b62efd78 Cab Guid: 0 ``` ``` Faulting application name: WindowsTerminal.exe, version: 1.17.2305.26001, time stamp: 0x647122fe Faulting module name: Windows.UI.Xaml.dll, version: 10.0.22621.1778, time stamp: 0x2b8b6f52 Exception code: 0xc000027b Fault offset: 0x0000000000869bb0 Faulting process ID: 0x0x16F0 Faulting application start time: 0x0x1D9A3C1C6873F24 Faulting application path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.17.11461.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe Faulting module path: C:\Windows\System32\Windows.UI.Xaml.dll Report ID: 4f0c9d7a-c792-43e1-ace7-ce89c5d49f7a Faulting package full name: Faulting package-relative application ID: ``` ``` Fault bucket 1818485409417120326, type 4 Event Name: APPCRASH Response: Not available Cab Id: 0 Problem signature: P1: WindowsTerminal.exe P2: 1.17.2305.26001 P3: 647122fe P4: combase.dll P5: 10.0.22621.1485 P6: a8be94cc P7: 802b000a P8: 000000000009200b P9: P10: Attached files: \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.a4cb1ec3-9927-4c02-bfb0-8a1b14cc9a0b.tmp.mdmp \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.d416a05a-a646-4bd5-bb8d-6eba441248bc.tmp.WERInternalMetadata.xml \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.a6f2b8b3-eb9c-49d9-96ac-85ba359d5e1c.tmp.csv \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.8078b7d1-70fe-4129-b2d4-8eebe4b53c26.tmp.txt \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.d7a251fa-1640-4b4f-ae06-ad05fbcf8649.tmp.xml These files may be available here: \\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_WindowsTerminal._cff66014caac85ee5a959a5318a2eb28f942386_c1fd6985_431b8509-a9ff-4ccd-8603-143d2ed0eefd Analysis symbol: Rechecking for solution: 0 Report Id: 4f0c9d7a-c792-43e1-ace7-ce89c5d49f7a Report Status: 268435456 Hashed bucket: 4c433c97d365032f193c8ed85989ca46 Cab Guid: 0 ```
Author
Owner

@stevenh commented on GitHub (Jun 21, 2023):

Tried to uninstall the updates which had been installed the same day, unfortunately even though they provide an uninstall option it appears to do nothing, after rebooting the are still in the installed list and the uninstall list.

Ended up doing a system restore from the point just before the updates were installed. This fixed terminal but broke WSL, which needed a repair from advanced options to address.

So it seems that the issue is related to one of the updates I listed, but can't determine which one.

@stevenh commented on GitHub (Jun 21, 2023): Tried to uninstall the updates which had been installed the same day, unfortunately even though they provide an uninstall option it appears to do nothing, after rebooting the are still in the installed list and the uninstall list. Ended up doing a system restore from the point just before the updates were installed. This fixed terminal but broke WSL, which needed a repair from advanced options to address. So it seems that the issue is related to one of the updates I listed, but can't determine which one.
Author
Owner

@zadjii-msft commented on GitHub (Jun 21, 2023):

possibly related? #15526

@zadjii-msft commented on GitHub (Jun 21, 2023): possibly related? #15526
Author
Owner

@stevenh commented on GitHub (Jun 21, 2023):

Looks like a different issue, as this was a crashing no matter what and a different faulting module too.

@stevenh commented on GitHub (Jun 21, 2023): Looks like a different issue, as this was a crashing no matter what and a different faulting module too.
Author
Owner

@jmpecx commented on GitHub (Jun 22, 2023):

same on 1.18.1462.0

@jmpecx commented on GitHub (Jun 22, 2023): same on `1.18.1462.0`
Author
Owner

@DHowett commented on GitHub (Jun 22, 2023):

Very interesting. That first failure bucket above (8fcfc95c01a859d9dbc3cd22b62efd78) indicates that Micorsoft.UI.Xaml.dll can't be loaded at all. Without a time travel trace (supported by the new WinDbg), we might not have an easy time figuring out exactly why that is.

The second one has more hits (4c433c97d365032f193c8ed85989ca46) and has the same exact signature.

For internal folks, MSFT-44828510

@DHowett commented on GitHub (Jun 22, 2023): Very interesting. That first failure bucket above (`8fcfc95c01a859d9dbc3cd22b62efd78`) indicates that `Micorsoft.UI.Xaml.dll` can't be loaded at all. Without a time travel trace (supported by [the new WinDbg](https://aka.ms/windbg)), we might not have an easy time figuring out exactly why that is. The second one has more hits (`4c433c97d365032f193c8ed85989ca46`) and has the same exact signature. For internal folks, MSFT-44828510
Author
Owner

@DHowett commented on GitHub (Jun 22, 2023):

All the hits so far are on Windows 11 22621, and all of them are using XAML 2.8. Interesting. Oh, the 1.17 ones aren't. That's interesting too.

@DHowett commented on GitHub (Jun 22, 2023): All the hits so far are on Windows 11 22621, and all of them are using XAML 2.8. _Interesting._ Oh, the 1.17 ones aren't. That's interesting too.
Author
Owner

@stevenh commented on GitHub (Jun 22, 2023):

Would more event viewer crash report details help, or would they all just be duplicates?

@stevenh commented on GitHub (Jun 22, 2023): Would more event viewer crash report details help, or would they all just be duplicates?
Author
Owner

@DHowett commented on GitHub (Jun 22, 2023):

They'd probably all just be duplicates, unfortunately.

Would you be willing or able to install the new WinDbg and capture a Time Travel Trace when you start Terminal? I'd be happy to write up steps if so! 😄

@DHowett commented on GitHub (Jun 22, 2023): They'd probably all just be duplicates, unfortunately. Would you be willing or able to install the new WinDbg and capture a Time Travel Trace when you start Terminal? I'd be happy to write up steps if so! 😄
Author
Owner

@stevenh commented on GitHub (Jun 22, 2023):

I'm guessing that would require me to replicate the issue, by reinstalling the offending updates?

If so unfortunately take would prevent me for working for pretty much an entire day, as it requires restoring from a system restore point to recover from which in itself takes many hours, but after that requires fixing WSL as it gets corrupted by the restore.

If the KB uninstall process worked it wouldn't be a problem.

I could try to repo on an old machine, but that's Windows 10 not Windows 11.

If someone has access to a sacrificial Windows 11 box, installing the mentioned KB's should be enough to trigger it.

@stevenh commented on GitHub (Jun 22, 2023): I'm guessing that would require me to replicate the issue, by reinstalling the offending updates? If so unfortunately take would prevent me for working for pretty much an entire day, as it requires restoring from a system restore point to recover from which in itself takes many hours, but after that requires fixing WSL as it gets corrupted by the restore. If the KB uninstall process worked it wouldn't be a problem. I could try to repo on an old machine, but that's Windows 10 not Windows 11. If someone has access to a sacrificial Windows 11 box, installing the mentioned KB's should be enough to trigger it.
Author
Owner

@fourpastmidnight commented on GitHub (Jun 23, 2023):

I'm experiencing this on Windows 10 2020 H2. Just updated from 1.13 or 1.14 (can't remember which--and unfortunately, through the Windows Store, no way to revert to a last known good version! Boo!).

Current version is 1.18.2305.26002.

@fourpastmidnight commented on GitHub (Jun 23, 2023): I'm experiencing this on Windows 10 2020 H2. Just updated from 1.13 or 1.14 (can't remember which--and unfortunately, through the Windows Store, no way to revert to a last known good version! Boo!). Current version is 1.18.2305.26002.
Author
Owner

@fourpastmidnight commented on GitHub (Jun 23, 2023):

I also tried the non-preview version: 1.17.2305.26001, and it too, crashes. Now, I open my terminal with the Run as Administrator option. So, I just tried opening it without that, and the non-preview version works. I will try the preview version and report my findings.

@fourpastmidnight commented on GitHub (Jun 23, 2023): I also tried the non-preview version: 1.17.2305.26001, and it too, crashes. Now, I open my terminal with the Run as Administrator option. So, I just tried opening it without that, and the non-preview version works. I will try the preview version and report my findings.
Author
Owner

@fourpastmidnight commented on GitHub (Jun 23, 2023):

Hmm, somehow, I made it so that Windows Terminal Preview would always open in Administrator mode, and I cannot seem to find how I did that. I checked the usual suspects, RIGHT+CLICK the tile in the Start Menu/Task bar, unable to access it there. Dig on the HDD to find the executable location and check the properties--no such luck, yet, it always attempts to open as Admin...

@fourpastmidnight commented on GitHub (Jun 23, 2023): Hmm, somehow, I made it so that Windows Terminal Preview would always open in Administrator mode, and I cannot seem to find how I did that. I checked the usual suspects, RIGHT+CLICK the tile in the Start Menu/Task bar, unable to access it there. Dig on the HDD to find the executable location and check the properties--no such luck, yet, it always attempts to open as Admin...
Author
Owner

@fourpastmidnight commented on GitHub (Jun 23, 2023):

OK, found it, I had set it in the settings.json, which, if Windows Terminal is not opening, you will not be able to get to unless you happen to know where MSFT BURIED the file. Why are these files in such an obtuse location, difficult to find? This should be much simpler, like how Linux does it.

In any event, after setting my default terminal profile's elevate property to false, Windows Terminal Preview opens.

So, there's some bug with elevating processes.

@fourpastmidnight commented on GitHub (Jun 23, 2023): OK, found it, I had set it in the settings.json, which, if Windows Terminal is not opening, you will not be able to get to unless you happen to know where MSFT _BURIED_ the file. Why are these files in such an obtuse location, difficult to find? This should be much simpler, like how Linux does it. In any event, after setting my default terminal profile's `elevate` property to `false`, Windows Terminal Preview opens. So, there's some bug with elevating processes.
Author
Owner

@fourpastmidnight commented on GitHub (Jun 23, 2023):

This may be related to #9452. I say this because 1) My permissions don't match the permissions listed (I added myself as Full Control because "reasons" that I needed at the time I did this; 2) In the Application Event Viewer, I see an error message and it references v1.17 of Windows Terminal Preview even though I'm trying to launch the newly installed 1.18. So, most likely, at least in my case, it's because of the above-referenced issue.

@fourpastmidnight commented on GitHub (Jun 23, 2023): This may be related to #9452. I say this because 1) My permissions don't match the permissions listed (I added myself as Full Control because "reasons" that I needed at the time I did this; 2) In the Application Event Viewer, I see an error message and it references v1.17 of Windows Terminal Preview even though I'm trying to launch the newly installed 1.18. So, most likely, at least in my case, it's because of the above-referenced issue.
Author
Owner

@zadjii-msft commented on GitHub (Sep 6, 2023):

@stevenh it's been a couple months now - any chance you've taken a subsequent update that fixed this for you?


MSFT:44828510 is pointing at failure 7a92b2a3-9830-439e-74a6-8e67cf414365, which still has some 900 hits over the last two weeks.

Stack
Windows.UI.Xaml.dll!CErrorService::ReportParserError
Windows.UI.Xaml.dll!ParserErrorService::ReportError
Windows.UI.Xaml.dll!ParserErrorReporter::SetError
Windows.UI.Xaml.dll!ObjectWriterErrorService::ReportError
Windows.UI.Xaml.dll!ObjectWriterRuntime::CreateTypeImpl
Windows.UI.Xaml.dll!BinaryFormatObjectWriter::CreateInstanceFromType
Windows.UI.Xaml.dll!BinaryFormatObjectWriter::WriteNode
Windows.UI.Xaml.dll!CParser::LoadXamlCore
Windows.UI.Xaml.dll!CCoreServices::ParseXamlWithExistingFrameworkRoot
Windows.UI.Xaml.dll!CApplication::LoadComponent
Windows.UI.Xaml.dll!Application_LoadComponent
Windows.UI.Xaml.dll!DirectUI::FrameworkApplication::LoadComponent
Windows.UI.Xaml.dll!DirectUI::DXamlCore::EnsureCoreApplicationInitialized
Windows.UI.Xaml.dll!DirectUI::FrameworkApplication::StartOnCurrentThreadImpl
Windows.UI.Xaml.dll!DirectUI::FrameworkApplicationGenerated::StartOnCurrentThread
Windows.UI.Xaml.dll!DirectUI::WindowsXamlManager::XamlCore::Initialize
Windows.UI.Xaml.dll!DirectUI::WindowsXamlManager::Initialize
Windows.UI.Xaml.dll!ctl::ComObjectBase::CreateInstanceBase
Windows.UI.Xaml.dll!ctl::make_DirectUI::WindowsXamlManager_
Windows.UI.Xaml.dll!DirectUI::WindowsXamlManagerFactory::InitializeForCurrentThreadImpl
Windows.UI.Xaml.dll!DirectUI::WindowsXamlManagerFactory::InitializeForCurrentThread
TerminalApp.dll!winrt::impl::consume_Windows_ApplicationModel_IPackageStatics_winrt::Windows::ApplicationModel::IPackageStatics_::Current
TerminalApp.dll!`winrt::Microsoft::Terminal::Settings::Model::ApplicationState::SharedInstance'::`2'::_lambda_1_::_lambda_invoker_cdecl_
!winrt::impl::factory_cache_entry_winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager,winrt::Windows::UI::Xaml::Hosting::IWindowsXamlManagerStatics_::call_winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager (__cdecl*)(winrt::Windows::UI::Xaml::Hosting:
TerminalApp.dll!winrt::TerminalApp::implementation::App::Initialize
TerminalApp.dll!winrt::TerminalApp::implementation::App::App
TerminalApp.dll!winrt::make_winrt::TerminalApp::implementation::App_
TerminalApp.dll!winrt::impl::produce_winrt::TerminalApp::factory_implementation::App,winrt::Windows::Foundation::IActivationFactory_::ActivateInstance
WindowsTerminal.exe!`winrt::TerminalApp::App::App'::`1'::_lambda_167__::_lambda_invoker_cdecl_
WindowsTerminal.exe!winrt::impl::factory_cache_entry_winrt::TerminalApp::App,winrt::Windows::Foundation::IActivationFactory_::call_winrt::TerminalApp::App (__cdecl*)(winrt::Windows::Foundation::IActivationFactory const &)_
WindowsTerminal.exe!AppHost::AppHost
WindowsTerminal.exe!wWinMain
WindowsTerminal.exe!__scrt_common_main_seh
kernel32.dll!BaseThreadInitThunkntdll.dll!RtlUserThreadStart

which blames TerminalApp.dll!winrt::impl::consume_Windows_ApplicationModel_IPackageStatics_winrt::Windows::ApplicationModel::IPackageStatics_::Current.

Interestingly, this looks very similar to 5aa86781-00f4-e538-cd8d-ae32045569c1, which we've seen before in MSFT:44764509, which was tracked earlier in #15745

Stack from #15745
combase.dll!RoOriginateErrorW
Windows.UI.Xaml.dll!DirectUI::ErrorHelper::OriginateError
Windows.UI.Xaml.dll!CJupiterErrorServiceListener::NotifyErrorAdded
Windows.UI.Xaml.dll!CErrorService::AddError
Windows.UI.Xaml.dll!CErrorService::ReportParserError
Windows.UI.Xaml.dll!ParserErrorService::ReportError
Windows.UI.Xaml.dll!ParserErrorReporter::SetError
Windows.UI.Xaml.dll!ObjectWriterErrorService::ReportError
Windows.UI.Xaml.dll!ObjectWriterRuntime::CreateTypeImpl
Windows.UI.Xaml.dll!BinaryFormatObjectWriter::CreateInstanceFromType
Windows.UI.Xaml.dll!BinaryFormatObjectWriter::WriteNode
Windows.UI.Xaml.dll!CParser::LoadXamlCore
Windows.UI.Xaml.dll!CCoreServices::ParseXamlWithExistingFrameworkRoot
Windows.UI.Xaml.dll!CApplication::LoadComponent
Windows.UI.Xaml.dll!Application_LoadComponent
Windows.UI.Xaml.dll!DirectUI::FrameworkApplication::LoadComponent
Windows.UI.Xaml.dll!DirectUI::DXamlCore::EnsureCoreApplicationInitialized
Windows.UI.Xaml.dll!DirectUI::FrameworkApplication::StartOnCurrentThreadImpl
Windows.UI.Xaml.dll!DirectUI::FrameworkApplicationGenerated::StartOnCurrentThread
Windows.UI.Xaml.dll!DirectUI::WindowsXamlManager::XamlCore::Initialize
Windows.UI.Xaml.dll!DirectUI::WindowsXamlManager::Initialize
Windows.UI.Xaml.dll!ctl::ComObjectBase::CreateInstanceBase
Windows.UI.Xaml.dll!ctl::make_DirectUI::WindowsXamlManager_
Windows.UI.Xaml.dll!DirectUI::WindowsXamlManagerFactory::InitializeForCurrentThreadImpl
Windows.UI.Xaml.dll!DirectUI::WindowsXamlManagerFactory::InitializeForCurrentThread
TerminalApp.dll!winrt::impl::consume_Windows_ApplicationModel_IPackageStatics_winrt::Windows::ApplicationModel::IPackageStatics_::Current
TerminalApp.dll!`winrt::Microsoft::Terminal::Settings::Model::ApplicationState::SharedInstance'::`2'::_lambda_1_::_lambda_invoker_cdecl_
!winrt::impl::factory_cache_entry_winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager,winrt::Windows::UI::Xaml::Hosting::IWindowsXamlManagerStatics_::call_winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager (__cdecl*)(winrt::Windows::UI::Xaml::Hosting:
TerminalApp.dll!winrt::TerminalApp::implementation::App::Initialize
TerminalApp.dll!winrt::TerminalApp::implementation::App::App
TerminalApp.dll!winrt::make_winrt::TerminalApp::implementation::App_
TerminalApp.dll!winrt::impl::produce_winrt::TerminalApp::factory_implementation::App,winrt::Windows::Foundation::IActivationFactory_::ActivateInstance
WindowsTerminal.exe!`winrt::TerminalApp::App::App'::`1'::_lambda_167__::_lambda_invoker_cdecl_
WindowsTerminal.exe!winrt::impl::factory_cache_entry_winrt::TerminalApp::App,winrt::Windows::Foundation::IActivationFactory_::call_winrt::TerminalApp::App (__cdecl*)(winrt::Windows::Foundation::IActivationFactory const &)_
WindowsTerminal.exe!AppHost::AppHost

Dang both of those look exactly the same. NOTABLY, they hit on basically all OS versions, but also exclusively on 1.17. Maybe this was fixed in the giant process model re-write for 1.18? Does Terminal Preview work for you? ninja edit: I'm just seeing now that you said 1.18 didn't work either. Looking into the Hashed bucket from the 1.18 now...


1.18 crash:

  • BucketDetails?BucketIdentifier=8fcfc95c-01a8-59d9-dbc3-cd22b62efd78
  • MSFT:44812040
  • failure 3c47054a-17b8-fa7a-a5b5-b908b66fa84e
  • Same blame: STOWED_EXCEPTION_XAML_TEXT_Cannot_create_instance_of_type__Microsoft.UI.Xaml.Controls.XamlControlsResources__[Line:_0_Position:_0]_802b000a_TerminalApp.dll!winrt::impl::consume_Windows_UI_Xaml_Hosting_IWindowsXamlManagerStatics_winrt::Windows::UI::Xaml::Hosting::IWindowsXamlManagerStatics_::InitializeForCurrentThread
1.18 version of the stack
combase.dll!RoOriginateErrorW
Windows.UI.Xaml.dll!DirectUI::ErrorHelper::OriginateError
Windows.UI.Xaml.dll!CJupiterErrorServiceListener::NotifyErrorAdded
Windows.UI.Xaml.dll!CErrorService::AddError
Windows.UI.Xaml.dll!CErrorService::ReportParserError
Windows.UI.Xaml.dll!ParserErrorService::ReportError
Windows.UI.Xaml.dll!ParserErrorReporter::SetError
Windows.UI.Xaml.dll!ObjectWriterErrorService::ReportError
Windows.UI.Xaml.dll!ObjectWriterRuntime::CreateTypeImpl
Windows.UI.Xaml.dll!BinaryFormatObjectWriter::CreateInstanceFromType
Windows.UI.Xaml.dll!BinaryFormatObjectWriter::WriteNode
Windows.UI.Xaml.dll!CParser::LoadXamlCore
Windows.UI.Xaml.dll!CCoreServices::ParseXamlWithExistingFrameworkRoot
Windows.UI.Xaml.dll!CApplication::LoadComponent
Windows.UI.Xaml.dll!Application_LoadComponent
Windows.UI.Xaml.dll!DirectUI::FrameworkApplication::LoadComponent
Windows.UI.Xaml.dll!DirectUI::DXamlCore::EnsureCoreApplicationInitialized
Windows.UI.Xaml.dll!DirectUI::FrameworkApplication::StartOnCurrentThreadImpl
Windows.UI.Xaml.dll!DirectUI::FrameworkApplicationGenerated::StartOnCurrentThread
Windows.UI.Xaml.dll!DirectUI::WindowsXamlManager::XamlCore::Initialize
Windows.UI.Xaml.dll!DirectUI::WindowsXamlManager::Initialize
Windows.UI.Xaml.dll!ctl::ComObjectBase::CreateInstanceBase
Windows.UI.Xaml.dll!ctl::make_DirectUI::WindowsXamlManager_
Windows.UI.Xaml.dll!DirectUI::WindowsXamlManagerFactory::InitializeForCurrentThreadImpl
Windows.UI.Xaml.dll!DirectUI::WindowsXamlManagerFactory::InitializeForCurrentThread
TerminalApp.dll!winrt::impl::consume_Windows_UI_Xaml_Hosting_IWindowsXamlManagerStatics_winrt::Windows::UI::Xaml::Hosting::IWindowsXamlManagerStatics_::InitializeForCurrentThread
TerminalApp.dll!`winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager::InitializeForCurrentThread'::`2'::_lambda_1_::_lambda_invoker_cdecl_
!winrt::impl::factory_cache_entry_winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager,winrt::Windows::UI::Xaml::Hosting::IWindowsXamlManagerStatics_::call_winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager (__cdecl*)(winrt::Windows::UI::Xaml::Hosting:
TerminalApp.dll!winrt::TerminalApp::implementation::App::Initialize
TerminalApp.dll!winrt::TerminalApp::implementation::App::App
TerminalApp.dll!winrt::make_winrt::TerminalApp::implementation::App_
TerminalApp.dll!winrt::impl::produce_winrt::TerminalApp::factory_implementation::App,winrt::Windows::Foundation::IActivationFactory_::ActivateInstance
WindowsTerminal.exe!`winrt::TerminalApp::App::App'::`1'::_lambda_168__::_lambda_invoker_cdecl_
WindowsTerminal.exe!winrt::impl::factory_cache_entry_winrt::TerminalApp::App,winrt::Windows::Foundation::IActivationFactory_::call_winrt::TerminalApp::App (__cdecl*)(winrt::Windows::Foundation::IActivationFactory const &)_
WindowsTerminal.exe!WindowEmperor::WindowEmperor
  • This looks like the same thing, just bucketed to a different failure hash because the stack changed so much in 1.18

@fourpastmidnight if what you're seeing is related to running elevated, then it might also be #15576. But if you messed with the permissions on WindowsApps, well, honestly that could be anything. I've literally never seen that work out for someone 😑 I'm gonna collapse your comments as off-topic though, to try and narrow this down to the root cause OP is seeing.

@zadjii-msft commented on GitHub (Sep 6, 2023): @stevenh it's been a couple months now - any chance you've taken a subsequent update that fixed this for you? --- MSFT:44828510 is pointing at failure `7a92b2a3-9830-439e-74a6-8e67cf414365`, which still has some 900 hits over the last two weeks. <details> <summary>Stack</summary> ``` Windows.UI.Xaml.dll!CErrorService::ReportParserError Windows.UI.Xaml.dll!ParserErrorService::ReportError Windows.UI.Xaml.dll!ParserErrorReporter::SetError Windows.UI.Xaml.dll!ObjectWriterErrorService::ReportError Windows.UI.Xaml.dll!ObjectWriterRuntime::CreateTypeImpl Windows.UI.Xaml.dll!BinaryFormatObjectWriter::CreateInstanceFromType Windows.UI.Xaml.dll!BinaryFormatObjectWriter::WriteNode Windows.UI.Xaml.dll!CParser::LoadXamlCore Windows.UI.Xaml.dll!CCoreServices::ParseXamlWithExistingFrameworkRoot Windows.UI.Xaml.dll!CApplication::LoadComponent Windows.UI.Xaml.dll!Application_LoadComponent Windows.UI.Xaml.dll!DirectUI::FrameworkApplication::LoadComponent Windows.UI.Xaml.dll!DirectUI::DXamlCore::EnsureCoreApplicationInitialized Windows.UI.Xaml.dll!DirectUI::FrameworkApplication::StartOnCurrentThreadImpl Windows.UI.Xaml.dll!DirectUI::FrameworkApplicationGenerated::StartOnCurrentThread Windows.UI.Xaml.dll!DirectUI::WindowsXamlManager::XamlCore::Initialize Windows.UI.Xaml.dll!DirectUI::WindowsXamlManager::Initialize Windows.UI.Xaml.dll!ctl::ComObjectBase::CreateInstanceBase Windows.UI.Xaml.dll!ctl::make_DirectUI::WindowsXamlManager_ Windows.UI.Xaml.dll!DirectUI::WindowsXamlManagerFactory::InitializeForCurrentThreadImpl Windows.UI.Xaml.dll!DirectUI::WindowsXamlManagerFactory::InitializeForCurrentThread TerminalApp.dll!winrt::impl::consume_Windows_ApplicationModel_IPackageStatics_winrt::Windows::ApplicationModel::IPackageStatics_::Current TerminalApp.dll!`winrt::Microsoft::Terminal::Settings::Model::ApplicationState::SharedInstance'::`2'::_lambda_1_::_lambda_invoker_cdecl_ !winrt::impl::factory_cache_entry_winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager,winrt::Windows::UI::Xaml::Hosting::IWindowsXamlManagerStatics_::call_winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager (__cdecl*)(winrt::Windows::UI::Xaml::Hosting: TerminalApp.dll!winrt::TerminalApp::implementation::App::Initialize TerminalApp.dll!winrt::TerminalApp::implementation::App::App TerminalApp.dll!winrt::make_winrt::TerminalApp::implementation::App_ TerminalApp.dll!winrt::impl::produce_winrt::TerminalApp::factory_implementation::App,winrt::Windows::Foundation::IActivationFactory_::ActivateInstance WindowsTerminal.exe!`winrt::TerminalApp::App::App'::`1'::_lambda_167__::_lambda_invoker_cdecl_ WindowsTerminal.exe!winrt::impl::factory_cache_entry_winrt::TerminalApp::App,winrt::Windows::Foundation::IActivationFactory_::call_winrt::TerminalApp::App (__cdecl*)(winrt::Windows::Foundation::IActivationFactory const &)_ WindowsTerminal.exe!AppHost::AppHost WindowsTerminal.exe!wWinMain WindowsTerminal.exe!__scrt_common_main_seh kernel32.dll!BaseThreadInitThunkntdll.dll!RtlUserThreadStart ``` </details> which blames `TerminalApp.dll!winrt::impl::consume_Windows_ApplicationModel_IPackageStatics_winrt::Windows::ApplicationModel::IPackageStatics_::Current`. Interestingly, this looks very similar to `5aa86781-00f4-e538-cd8d-ae32045569c1`, which we've seen before in MSFT:44764509, which was tracked earlier in #15745 <details> <summary>Stack from #15745</summary> ``` combase.dll!RoOriginateErrorW Windows.UI.Xaml.dll!DirectUI::ErrorHelper::OriginateError Windows.UI.Xaml.dll!CJupiterErrorServiceListener::NotifyErrorAdded Windows.UI.Xaml.dll!CErrorService::AddError Windows.UI.Xaml.dll!CErrorService::ReportParserError Windows.UI.Xaml.dll!ParserErrorService::ReportError Windows.UI.Xaml.dll!ParserErrorReporter::SetError Windows.UI.Xaml.dll!ObjectWriterErrorService::ReportError Windows.UI.Xaml.dll!ObjectWriterRuntime::CreateTypeImpl Windows.UI.Xaml.dll!BinaryFormatObjectWriter::CreateInstanceFromType Windows.UI.Xaml.dll!BinaryFormatObjectWriter::WriteNode Windows.UI.Xaml.dll!CParser::LoadXamlCore Windows.UI.Xaml.dll!CCoreServices::ParseXamlWithExistingFrameworkRoot Windows.UI.Xaml.dll!CApplication::LoadComponent Windows.UI.Xaml.dll!Application_LoadComponent Windows.UI.Xaml.dll!DirectUI::FrameworkApplication::LoadComponent Windows.UI.Xaml.dll!DirectUI::DXamlCore::EnsureCoreApplicationInitialized Windows.UI.Xaml.dll!DirectUI::FrameworkApplication::StartOnCurrentThreadImpl Windows.UI.Xaml.dll!DirectUI::FrameworkApplicationGenerated::StartOnCurrentThread Windows.UI.Xaml.dll!DirectUI::WindowsXamlManager::XamlCore::Initialize Windows.UI.Xaml.dll!DirectUI::WindowsXamlManager::Initialize Windows.UI.Xaml.dll!ctl::ComObjectBase::CreateInstanceBase Windows.UI.Xaml.dll!ctl::make_DirectUI::WindowsXamlManager_ Windows.UI.Xaml.dll!DirectUI::WindowsXamlManagerFactory::InitializeForCurrentThreadImpl Windows.UI.Xaml.dll!DirectUI::WindowsXamlManagerFactory::InitializeForCurrentThread TerminalApp.dll!winrt::impl::consume_Windows_ApplicationModel_IPackageStatics_winrt::Windows::ApplicationModel::IPackageStatics_::Current TerminalApp.dll!`winrt::Microsoft::Terminal::Settings::Model::ApplicationState::SharedInstance'::`2'::_lambda_1_::_lambda_invoker_cdecl_ !winrt::impl::factory_cache_entry_winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager,winrt::Windows::UI::Xaml::Hosting::IWindowsXamlManagerStatics_::call_winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager (__cdecl*)(winrt::Windows::UI::Xaml::Hosting: TerminalApp.dll!winrt::TerminalApp::implementation::App::Initialize TerminalApp.dll!winrt::TerminalApp::implementation::App::App TerminalApp.dll!winrt::make_winrt::TerminalApp::implementation::App_ TerminalApp.dll!winrt::impl::produce_winrt::TerminalApp::factory_implementation::App,winrt::Windows::Foundation::IActivationFactory_::ActivateInstance WindowsTerminal.exe!`winrt::TerminalApp::App::App'::`1'::_lambda_167__::_lambda_invoker_cdecl_ WindowsTerminal.exe!winrt::impl::factory_cache_entry_winrt::TerminalApp::App,winrt::Windows::Foundation::IActivationFactory_::call_winrt::TerminalApp::App (__cdecl*)(winrt::Windows::Foundation::IActivationFactory const &)_ WindowsTerminal.exe!AppHost::AppHost ``` </details> Dang both of those look exactly the same. NOTABLY, they hit on basically all OS versions, but also _exclusively_ on 1.17. Maybe this was fixed in the giant process model re-write for 1.18? ~Does Terminal Preview work for you?~ ninja edit: I'm just seeing now that you said 1.18 didn't work either. Looking into the `Hashed bucket` from the 1.18 now... --- 1.18 crash: * `BucketDetails?BucketIdentifier=8fcfc95c-01a8-59d9-dbc3-cd22b62efd78` * MSFT:44812040 * failure `3c47054a-17b8-fa7a-a5b5-b908b66fa84e` * Same blame: `STOWED_EXCEPTION_XAML_TEXT_Cannot_create_instance_of_type__Microsoft.UI.Xaml.Controls.XamlControlsResources__[Line:_0_Position:_0]_802b000a_TerminalApp.dll!winrt::impl::consume_Windows_UI_Xaml_Hosting_IWindowsXamlManagerStatics_winrt::Windows::UI::Xaml::Hosting::IWindowsXamlManagerStatics_::InitializeForCurrentThread` <details> <summary>1.18 version of the stack</summary> ``` combase.dll!RoOriginateErrorW Windows.UI.Xaml.dll!DirectUI::ErrorHelper::OriginateError Windows.UI.Xaml.dll!CJupiterErrorServiceListener::NotifyErrorAdded Windows.UI.Xaml.dll!CErrorService::AddError Windows.UI.Xaml.dll!CErrorService::ReportParserError Windows.UI.Xaml.dll!ParserErrorService::ReportError Windows.UI.Xaml.dll!ParserErrorReporter::SetError Windows.UI.Xaml.dll!ObjectWriterErrorService::ReportError Windows.UI.Xaml.dll!ObjectWriterRuntime::CreateTypeImpl Windows.UI.Xaml.dll!BinaryFormatObjectWriter::CreateInstanceFromType Windows.UI.Xaml.dll!BinaryFormatObjectWriter::WriteNode Windows.UI.Xaml.dll!CParser::LoadXamlCore Windows.UI.Xaml.dll!CCoreServices::ParseXamlWithExistingFrameworkRoot Windows.UI.Xaml.dll!CApplication::LoadComponent Windows.UI.Xaml.dll!Application_LoadComponent Windows.UI.Xaml.dll!DirectUI::FrameworkApplication::LoadComponent Windows.UI.Xaml.dll!DirectUI::DXamlCore::EnsureCoreApplicationInitialized Windows.UI.Xaml.dll!DirectUI::FrameworkApplication::StartOnCurrentThreadImpl Windows.UI.Xaml.dll!DirectUI::FrameworkApplicationGenerated::StartOnCurrentThread Windows.UI.Xaml.dll!DirectUI::WindowsXamlManager::XamlCore::Initialize Windows.UI.Xaml.dll!DirectUI::WindowsXamlManager::Initialize Windows.UI.Xaml.dll!ctl::ComObjectBase::CreateInstanceBase Windows.UI.Xaml.dll!ctl::make_DirectUI::WindowsXamlManager_ Windows.UI.Xaml.dll!DirectUI::WindowsXamlManagerFactory::InitializeForCurrentThreadImpl Windows.UI.Xaml.dll!DirectUI::WindowsXamlManagerFactory::InitializeForCurrentThread TerminalApp.dll!winrt::impl::consume_Windows_UI_Xaml_Hosting_IWindowsXamlManagerStatics_winrt::Windows::UI::Xaml::Hosting::IWindowsXamlManagerStatics_::InitializeForCurrentThread TerminalApp.dll!`winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager::InitializeForCurrentThread'::`2'::_lambda_1_::_lambda_invoker_cdecl_ !winrt::impl::factory_cache_entry_winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager,winrt::Windows::UI::Xaml::Hosting::IWindowsXamlManagerStatics_::call_winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager (__cdecl*)(winrt::Windows::UI::Xaml::Hosting: TerminalApp.dll!winrt::TerminalApp::implementation::App::Initialize TerminalApp.dll!winrt::TerminalApp::implementation::App::App TerminalApp.dll!winrt::make_winrt::TerminalApp::implementation::App_ TerminalApp.dll!winrt::impl::produce_winrt::TerminalApp::factory_implementation::App,winrt::Windows::Foundation::IActivationFactory_::ActivateInstance WindowsTerminal.exe!`winrt::TerminalApp::App::App'::`1'::_lambda_168__::_lambda_invoker_cdecl_ WindowsTerminal.exe!winrt::impl::factory_cache_entry_winrt::TerminalApp::App,winrt::Windows::Foundation::IActivationFactory_::call_winrt::TerminalApp::App (__cdecl*)(winrt::Windows::Foundation::IActivationFactory const &)_ WindowsTerminal.exe!WindowEmperor::WindowEmperor ``` </details> * This looks like the same thing, just bucketed to a different failure hash because the stack changed so much in 1.18 --- @fourpastmidnight if what you're seeing is related to running elevated, then it might also be #15576. But if you messed with the permissions on WindowsApps, well, honestly that could be anything. I've literally never seen that work out for someone 😑 I'm gonna collapse your comments as off-topic though, to try and narrow this down to the root cause OP is seeing.
Author
Owner

@zadjii-msft commented on GitHub (Sep 6, 2023):

From a 1.18 dump

0:000> !xamltriage
-------------------------
Callstack for hr=802b000a - E_XAMLPARSEFAILED
  Error message: "Cannot create instance of type 'Microsoft.UI.Xaml.Controls.XamlControlsResources' [Line: 0 Position: 0]"

    combase!RoOriginateErrorW+0x131  (7ff97dfefe71) [onecore\com\combase\winrt\error\error.cpp @ 570]
    Windows_UI_Xaml!DirectUI::ErrorHelper::OriginateError+0x144  (7ff92cc61c0c) [onecoreuap\windows\dxaml\xcp\dxaml\lib\errorhelper.cpp @ 675]
    Windows_UI_Xaml!CJupiterErrorServiceListener::NotifyErrorAdded+0x18a  (7ff92d1390da) [onecoreuap\windows\dxaml\xcp\dxaml\lib\jupitercontrol.cpp @ 1253]
    Windows_UI_Xaml!CErrorService::AddError+0x13a  (7ff92d102a9a) [onecoreuap\windows\dxaml\xcp\core\error\errorservice.cpp @ 647]
    Windows_UI_Xaml!CErrorService::ReportParserError+0xf5  (7ff92d235f05) [onecoreuap\windows\dxaml\xcp\core\error\errorservice.cpp @ 806]
    Windows_UI_Xaml!ParserErrorService::ReportError+0x141  (7ff92d14b821) [onecoreuap\windows\dxaml\xcp\core\parser\parsererrorservice.cpp @ 198]
    Windows_UI_Xaml!ParserErrorReporter::SetError+0x76  (7ff92d28ebe2) [onecoreuap\windows\dxaml\xcp\core\parser\parsererrorservice.cpp @ 67]
    Windows_UI_Xaml!ObjectWriterErrorService::ReportError+0x5c  (7ff92d1930a0) [onecoreuap\windows\dxaml\xcp\core\parser\objectwritererrorservice.cpp @ 43]
    Windows_UI_Xaml!ObjectWriterRuntime::CreateTypeImpl+0x60b  (7ff92cd112db) [onecoreuap\windows\dxaml\xcp\core\parser\objectwriterruntime.cpp @ 83]
    Windows_UI_Xaml!BinaryFormatObjectWriter::CreateInstanceFromType+0xff  (7ff92cbdcf6b) [onecoreuap\windows\dxaml\xcp\core\parser\binaryformatobjectwriter.cpp @ 435]
    Windows_UI_Xaml!BinaryFormatObjectWriter::WriteNode+0x393  (7ff92cbc9013) [onecoreuap\windows\dxaml\xcp\core\parser\binaryformatobjectwriter.cpp @ 135]
    Windows_UI_Xaml!CParser::LoadXamlCore+0xa12  (7ff92cc512f2) [onecoreuap\windows\dxaml\xcp\core\parser\parser.cpp @ 284]
    Windows_UI_Xaml!CCoreServices::ParseXamlWithExistingFrameworkRoot+0x1bd  (7ff92cd89495) [onecoreuap\windows\dxaml\xcp\core\dll\xcpcore.cpp @ 3683]
    Windows_UI_Xaml!CApplication::LoadComponent+0x2bb  (7ff92ccec29b) [onecoreuap\windows\dxaml\xcp\core\packaging\application.cpp @ 511]
    Windows_UI_Xaml!Application_LoadComponent+0xa0  (7ff92ccebe5c) [onecoreuap\windows\dxaml\xcp\core\dll\pinvokes.cpp @ 385]
    Windows_UI_Xaml!DirectUI::FrameworkApplication::LoadComponent+0xac  (7ff92ccea23c) [onecoreuap\windows\dxaml\xcp\dxaml\lib\frameworkapplication_partial.cpp @ 553]
    Windows_UI_Xaml!DirectUI::DXamlCore::EnsureCoreApplicationInitialized+0x136  (7ff92cb413ca) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 675]
    Windows_UI_Xaml!DirectUI::FrameworkApplication::StartOnCurrentThreadImpl+0x57  (7ff92cea0a2b) [onecoreuap\windows\dxaml\xcp\dxaml\lib\frameworkapplication_partial.cpp @ 84]
    Windows_UI_Xaml!DirectUI::FrameworkApplicationGenerated::StartOnCurrentThread+0x2f  (7ff92cea099f) [onecoreuap\windows\dxaml\xcp\dxaml\lib\winrtgeneratedclasses\frameworkapplication.g.cpp @ 667]
    Windows_UI_Xaml!DirectUI::WindowsXamlManager::XamlCore::Initialize+0x1f0  (7ff92cb3eed8) [onecoreuap\windows\dxaml\xcp\dxaml\lib\windowsxamlmanager_partial.cpp @ 235]
    Windows_UI_Xaml!DirectUI::WindowsXamlManager::Initialize+0xfd  (7ff92d72c9dd) [onecoreuap\windows\dxaml\xcp\dxaml\lib\windowsxamlmanager_partial.cpp @ 291]
    Windows_UI_Xaml!ctl::ComObjectBase::CreateInstanceBase+0x13  (7ff92cc73577) [onecoreuap\windows\dxaml\xcp\components\com\comobjectbase.cpp @ 52]
    Windows_UI_Xaml!ctl::ComObject<DirectUI::WindowsXamlManager>::CreateInstance<DirectUI::WindowsXamlManager>+0x52  (7ff92cef32e2) [onecoreuap\windows\dxaml\xcp\components\com\inc\ComObject.h @ 167]
    Windows_UI_Xaml!ctl::make<DirectUI::WindowsXamlManager>+0x1d  (7ff92cef31a9) [onecoreuap\windows\dxaml\xcp\dxaml\lib\comInstantiation.h @ 43]
    Windows_UI_Xaml!DirectUI::WindowsXamlManagerFactory::InitializeForCurrentThreadImpl+0x68  (7ff92cef3050) [onecoreuap\windows\dxaml\xcp\dxaml\lib\windowsxamlmanager_partial.cpp @ 196]
    Windows_UI_Xaml!DirectUI::WindowsXamlManagerFactory::InitializeForCurrentThread+0x79  (7ff92cef2fb9) [onecoreuap\windows\dxaml\xcp\dxaml\lib\winrtgeneratedclasses\windowsxamlmanager.g.cpp @ 92]
    TerminalApp!winrt::impl::consume_Windows_UI_Xaml_Hosting_IWindowsXamlManagerStatics<winrt::Windows::UI::Xaml::Hosting::IWindowsXamlManagerStatics>::InitializeForCurrentThread+0x5e  (7ff86ca7726e) [C:\a\_work\1\s\src\cascadia\TerminalApp\Generated Files\winrt\Windows.UI.Xaml.Hosting.h @ 214]
    TerminalApp!`winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager::InitializeForCurrentThread'::`2'::<lambda_1>::<lambda_invoker_cdecl>+0x17  (7ff86ca77207) [C:\a\_work\1\s\src\cascadia\TerminalApp\Generated Files\winrt\Windows.UI.Xaml.Hosting.h @ 1001]
    TerminalApp!winrt::impl::factory_cache_entry<winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager,winrt::Windows::UI::Xaml::Hosting::IWindowsXamlManagerStatics>::call<winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager  (7ff86ca51728) [C:\a\_work\1\s\src\cascadia\TerminalApp\Generated Files\winrt\base.h @ 6457]
    TerminalApp!winrt::TerminalApp::implementation::App::Initialize+0xa7  (7ff86ca51e67) [C:\a\_work\1\s\src\cascadia\TerminalApp\App.cpp @ 35]
    TerminalApp!winrt::TerminalApp::implementation::App::App+0x86  (7ff86ca60d86) [C:\a\_work\1\s\src\cascadia\TerminalApp\App.cpp @ 27]
    TerminalApp!winrt::make<winrt::TerminalApp::implementation::App>+0x3a  (7ff86ca60cde) [C:\a\_work\1\s\src\cascadia\TerminalApp\Generated Files\winrt\base.h @ 8016]
    TerminalApp!winrt::impl::produce<winrt::TerminalApp::factory_implementation::App,winrt::Windows::Foundation::IActivationFactory>::ActivateInstance+0x1b  (7ff86ca60c8b) [C:\a\_work\1\s\src\cascadia\TerminalApp\Generated Files\winrt\base.h @ 6526]
    WindowsTerminal!`winrt::TerminalApp::App::App'::`1'::<lambda_168_>::<lambda_invoker_cdecl>+0x65  (7ff61be3fc85) [C:\a\_work\1\s\src\cascadia\WindowsTerminal\Generated Files\winrt\TerminalApp.h @ 7074]
    WindowsTerminal!winrt::impl::factory_cache_entry<winrt::TerminalApp::App,winrt::Windows::Foundation::IActivationFactory>::call<winrt::TerminalApp::App  (7ff61be32c8e) [C:\a\_work\1\s\src\cascadia\WindowsTerminal\Generated Files\winrt\base.h @ 6457]
    WindowsTerminal!WindowEmperor::WindowEmperor+0x84  (7ff61be31554) [C:\a\_work\1\s\src\cascadia\WindowsTerminal\WindowEmperor.h @ 40]
    WindowsTerminal!wWinMain+0x11b  (7ff61be3141b) [C:\a\_work\1\s\src\cascadia\WindowsTerminal\main.cpp @ 117]
    WindowsTerminal!__scrt_common_main_seh+0x106  (7ff61be44472) [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288]
    kernel32!BaseThreadInitThunk+0x18  (7ff97d701f88) [clientcore\base\win32\client\thread.c @ 77]
    ntdll!RtlUserThreadStart+0x21  (7ff97ef60b81) [minkernel\ldr\rtlstrt.c @ 1198]
-------------------------
Callstack for hr=80040154 - Class not registered

    Windows_UI_Xaml!DirectUI::XamlParserCallbacks::XamlManagedRuntimeRPInvokes_CreateInstance+0x3d0  (7ff92ccfc01c) [onecoreuap\windows\dxaml\xcp\dxaml\lib\xamlparsercallbacks.cpp @ 49]
    Windows_UI_Xaml!XamlManagedRuntime::CreateInstance+0xae  (7ff92ccfbb0e) [onecoreuap\windows\dxaml\xcp\core\parser\xamlmanagedruntime.cpp @ 40]
    Windows_UI_Xaml!ObjectWriterRuntime::CreateTypeImpl+0xdb  (7ff92cd10dab) [onecoreuap\windows\dxaml\xcp\core\parser\objectwriterruntime.cpp @ 76]
    Windows_UI_Xaml!BinaryFormatObjectWriter::CreateInstanceFromType+0xff  (7ff92cbdcf6b) [onecoreuap\windows\dxaml\xcp\core\parser\binaryformatobjectwriter.cpp @ 435]
    Windows_UI_Xaml!BinaryFormatObjectWriter::WriteNode+0x393  (7ff92cbc9013) [onecoreuap\windows\dxaml\xcp\core\parser\binaryformatobjectwriter.cpp @ 135]
    Windows_UI_Xaml!CParser::LoadXamlCore+0xa12  (7ff92cc512f2) [onecoreuap\windows\dxaml\xcp\core\parser\parser.cpp @ 284]
    Windows_UI_Xaml!CCoreServices::ParseXamlWithExistingFrameworkRoot+0x1bd  (7ff92cd89495) [onecoreuap\windows\dxaml\xcp\core\dll\xcpcore.cpp @ 3683]
    Windows_UI_Xaml!CApplication::LoadComponent+0x2bb  (7ff92ccec29b) [onecoreuap\windows\dxaml\xcp\core\packaging\application.cpp @ 511]
    Windows_UI_Xaml!Application_LoadComponent+0xa0  (7ff92ccebe5c) [onecoreuap\windows\dxaml\xcp\core\dll\pinvokes.cpp @ 385]
    Windows_UI_Xaml!DirectUI::FrameworkApplication::LoadComponent+0xac  (7ff92ccea23c) [onecoreuap\windows\dxaml\xcp\dxaml\lib\frameworkapplication_partial.cpp @ 553]
    Windows_UI_Xaml!DirectUI::DXamlCore::EnsureCoreApplicationInitialized+0x136  (7ff92cb413ca) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 675]
    Windows_UI_Xaml!DirectUI::FrameworkApplication::StartOnCurrentThreadImpl+0x57  (7ff92cea0a2b) [onecoreuap\windows\dxaml\xcp\dxaml\lib\frameworkapplication_partial.cpp @ 84]
    Windows_UI_Xaml!DirectUI::FrameworkApplicationGenerated::StartOnCurrentThread+0x2f  (7ff92cea099f) [onecoreuap\windows\dxaml\xcp\dxaml\lib\winrtgeneratedclasses\frameworkapplication.g.cpp @ 667]
    Windows_UI_Xaml!DirectUI::WindowsXamlManager::XamlCore::Initialize+0x1f0  (7ff92cb3eed8) [onecoreuap\windows\dxaml\xcp\dxaml\lib\windowsxamlmanager_partial.cpp @ 235]
    Windows_UI_Xaml!DirectUI::WindowsXamlManager::Initialize+0xfd  (7ff92d72c9dd) [onecoreuap\windows\dxaml\xcp\dxaml\lib\windowsxamlmanager_partial.cpp @ 291]
    Windows_UI_Xaml!ctl::ComObjectBase::CreateInstanceBase+0x13  (7ff92cc73577) [onecoreuap\windows\dxaml\xcp\components\com\comobjectbase.cpp @ 52]
    Windows_UI_Xaml!ctl::ComObject<DirectUI::WindowsXamlManager>::CreateInstance<DirectUI::WindowsXamlManager>+0x52  (7ff92cef32e2) [onecoreuap\windows\dxaml\xcp\components\com\inc\ComObject.h @ 167]
    Windows_UI_Xaml!ctl::make<DirectUI::WindowsXamlManager>+0x1d  (7ff92cef31a9) [onecoreuap\windows\dxaml\xcp\dxaml\lib\comInstantiation.h @ 43]
    Windows_UI_Xaml!DirectUI::WindowsXamlManagerFactory::InitializeForCurrentThreadImpl+0x68  (7ff92cef3050) [onecoreuap\windows\dxaml\xcp\dxaml\lib\windowsxamlmanager_partial.cpp @ 196]
    Windows_UI_Xaml!DirectUI::WindowsXamlManagerFactory::InitializeForCurrentThread+0x79  (7ff92cef2fb9) [onecoreuap\windows\dxaml\xcp\dxaml\lib\winrtgeneratedclasses\windowsxamlmanager.g.cpp @ 92]
    TerminalApp!winrt::impl::consume_Windows_UI_Xaml_Hosting_IWindowsXamlManagerStatics<winrt::Windows::UI::Xaml::Hosting::IWindowsXamlManagerStatics>::InitializeForCurrentThread+0x5e  (7ff86ca7726e) [C:\a\_work\1\s\src\cascadia\TerminalApp\Generated Files\winrt\Windows.UI.Xaml.Hosting.h @ 214]
    TerminalApp!`winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager::InitializeForCurrentThread'::`2'::<lambda_1>::<lambda_invoker_cdecl>+0x17  (7ff86ca77207) [C:\a\_work\1\s\src\cascadia\TerminalApp\Generated Files\winrt\Windows.UI.Xaml.Hosting.h @ 1001]
    TerminalApp!winrt::impl::factory_cache_entry<winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager,winrt::Windows::UI::Xaml::Hosting::IWindowsXamlManagerStatics>::call<winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager  (7ff86ca51728) [C:\a\_work\1\s\src\cascadia\TerminalApp\Generated Files\winrt\base.h @ 6457]
    TerminalApp!winrt::TerminalApp::implementation::App::Initialize+0xa7  (7ff86ca51e67) [C:\a\_work\1\s\src\cascadia\TerminalApp\App.cpp @ 35]
    TerminalApp!winrt::TerminalApp::implementation::App::App+0x86  (7ff86ca60d86) [C:\a\_work\1\s\src\cascadia\TerminalApp\App.cpp @ 27]
    TerminalApp!winrt::make<winrt::TerminalApp::implementation::App>+0x3a  (7ff86ca60cde) [C:\a\_work\1\s\src\cascadia\TerminalApp\Generated Files\winrt\base.h @ 8016]
    TerminalApp!winrt::impl::produce<winrt::TerminalApp::factory_implementation::App,winrt::Windows::Foundation::IActivationFactory>::ActivateInstance+0x1b  (7ff86ca60c8b) [C:\a\_work\1\s\src\cascadia\TerminalApp\Generated Files\winrt\base.h @ 6526]
    WindowsTerminal!`winrt::TerminalApp::App::App'::`1'::<lambda_168_>::<lambda_invoker_cdecl>+0x65  (7ff61be3fc85) [C:\a\_work\1\s\src\cascadia\WindowsTerminal\Generated Files\winrt\TerminalApp.h @ 7074]
    WindowsTerminal!winrt::impl::factory_cache_entry<winrt::TerminalApp::App,winrt::Windows::Foundation::IActivationFactory>::call<winrt::TerminalApp::App  (7ff61be32c8e) [C:\a\_work\1\s\src\cascadia\WindowsTerminal\Generated Files\winrt\base.h @ 6457]
    WindowsTerminal!WindowEmperor::WindowEmperor+0x84  (7ff61be31554) [C:\a\_work\1\s\src\cascadia\WindowsTerminal\WindowEmperor.h @ 40]
    WindowsTerminal!wWinMain+0x11b  (7ff61be3141b) [C:\a\_work\1\s\src\cascadia\WindowsTerminal\main.cpp @ 117]
    WindowsTerminal!__scrt_common_main_seh+0x106  (7ff61be44472) [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288]
    kernel32!BaseThreadInitThunk+0x18  (7ff97d701f88) [clientcore\base\win32\client\thread.c @ 77]
    ntdll!RtlUserThreadStart+0x21  (7ff97ef60b81) [minkernel\ldr\rtlstrt.c @ 1198]

    Nested Exception (XAML):
       dx ((Windows_UI_Xaml!ErrorContext*)0x1911bad6ba0)

=========================
@$xamltriage()                 : Stowed exception
    ErrorCode        : 0xc000027b
    ErrorCodeString  : Stowed exception
    ErrorInfo        : 0x802b000a (<Unable to get error code text>) in Windows_UI_Xaml!CJupiterErrorServiceListener::NotifyErrorAdded+0x18a
    ErrorMessage     : Cannot create instance of type 'Microsoft.UI.Xaml.Controls.XamlControlsResources' [Line: 0 Position: 0]
    OriginateError   : E_XAMLPARSEFAILED in Windows_UI_Xaml!CJupiterErrorServiceListener::NotifyErrorAdded+0x18a
    StowedExceptions : 2 StowedExceptions
0:000> dx -r1 @$xamltriage().StowedExceptions
@$xamltriage().StowedExceptions                 : 2 StowedExceptions
    length           : 0x2
    [0x0]            : 0x802b000a (<Unable to get error code text>) in Windows_UI_Xaml!CJupiterErrorServiceListener::NotifyErrorAdded+0x18a
    [0x1]            : 0x80040154 (Class not registered) in Windows_UI_Xaml!DirectUI::XamlParserCallbacks::XamlManagedRuntimeRPInvokes_CreateInstance+0x3d0
0:000> dx -r1 @$xamltriage().StowedExceptions[0]
@$xamltriage().StowedExceptions[0]                 : 0x802b000a (<Unable to get error code text>) in Windows_UI_Xaml!CJupiterErrorServiceListener::NotifyErrorAdded+0x18a
    RawData          : 0x1911bada588 : 0x802b000a (<Unable to get error code text>) [Type: _STOWED_EXCEPTION_INFORMATION_V2 *]
    ResultCode       : 802b000a - E_XAMLPARSEFAILED
    ErrorMessage     : Cannot create instance of type 'Microsoft.UI.Xaml.Controls.XamlControlsResources' [Line: 0 Position: 0]
    BlameFunction    : Windows_UI_Xaml!CJupiterErrorServiceListener::NotifyErrorAdded+0x18a
    Stack            : 40 Frames
0:000> dx -r1 @$xamltriage().StowedExceptions[1]
@$xamltriage().StowedExceptions[1]                 : 0x80040154 (Class not registered) in Windows_UI_Xaml!DirectUI::XamlParserCallbacks::XamlManagedRuntimeRPInvokes_CreateInstance+0x3d0
    RawData          : 0x1911bad7bc8 : 0x80040154 (Class not registered) [Type: _STOWED_EXCEPTION_INFORMATION_V2 *]
    ResultCode       : 80040154 - Class not registered
    BlameFunction    : Windows_UI_Xaml!DirectUI::XamlParserCallbacks::XamlManagedRuntimeRPInvokes_CreateInstance+0x3d0
    Stack            : 34 Frames
    NestedExceptionType : XAML
    XamlErrorContext : 0x1911bad6ba0 : 0x80040154 in Windows_UI_Xaml!DirectUI::XamlParserCallbacks::XamlManagedRuntimeRPInvokes_CreateInstance+0x3d0 [Type: ErrorContext *]
@zadjii-msft commented on GitHub (Sep 6, 2023): From a 1.18 dump ``` 0:000> !xamltriage ------------------------- Callstack for hr=802b000a - E_XAMLPARSEFAILED Error message: "Cannot create instance of type 'Microsoft.UI.Xaml.Controls.XamlControlsResources' [Line: 0 Position: 0]" combase!RoOriginateErrorW+0x131 (7ff97dfefe71) [onecore\com\combase\winrt\error\error.cpp @ 570] Windows_UI_Xaml!DirectUI::ErrorHelper::OriginateError+0x144 (7ff92cc61c0c) [onecoreuap\windows\dxaml\xcp\dxaml\lib\errorhelper.cpp @ 675] Windows_UI_Xaml!CJupiterErrorServiceListener::NotifyErrorAdded+0x18a (7ff92d1390da) [onecoreuap\windows\dxaml\xcp\dxaml\lib\jupitercontrol.cpp @ 1253] Windows_UI_Xaml!CErrorService::AddError+0x13a (7ff92d102a9a) [onecoreuap\windows\dxaml\xcp\core\error\errorservice.cpp @ 647] Windows_UI_Xaml!CErrorService::ReportParserError+0xf5 (7ff92d235f05) [onecoreuap\windows\dxaml\xcp\core\error\errorservice.cpp @ 806] Windows_UI_Xaml!ParserErrorService::ReportError+0x141 (7ff92d14b821) [onecoreuap\windows\dxaml\xcp\core\parser\parsererrorservice.cpp @ 198] Windows_UI_Xaml!ParserErrorReporter::SetError+0x76 (7ff92d28ebe2) [onecoreuap\windows\dxaml\xcp\core\parser\parsererrorservice.cpp @ 67] Windows_UI_Xaml!ObjectWriterErrorService::ReportError+0x5c (7ff92d1930a0) [onecoreuap\windows\dxaml\xcp\core\parser\objectwritererrorservice.cpp @ 43] Windows_UI_Xaml!ObjectWriterRuntime::CreateTypeImpl+0x60b (7ff92cd112db) [onecoreuap\windows\dxaml\xcp\core\parser\objectwriterruntime.cpp @ 83] Windows_UI_Xaml!BinaryFormatObjectWriter::CreateInstanceFromType+0xff (7ff92cbdcf6b) [onecoreuap\windows\dxaml\xcp\core\parser\binaryformatobjectwriter.cpp @ 435] Windows_UI_Xaml!BinaryFormatObjectWriter::WriteNode+0x393 (7ff92cbc9013) [onecoreuap\windows\dxaml\xcp\core\parser\binaryformatobjectwriter.cpp @ 135] Windows_UI_Xaml!CParser::LoadXamlCore+0xa12 (7ff92cc512f2) [onecoreuap\windows\dxaml\xcp\core\parser\parser.cpp @ 284] Windows_UI_Xaml!CCoreServices::ParseXamlWithExistingFrameworkRoot+0x1bd (7ff92cd89495) [onecoreuap\windows\dxaml\xcp\core\dll\xcpcore.cpp @ 3683] Windows_UI_Xaml!CApplication::LoadComponent+0x2bb (7ff92ccec29b) [onecoreuap\windows\dxaml\xcp\core\packaging\application.cpp @ 511] Windows_UI_Xaml!Application_LoadComponent+0xa0 (7ff92ccebe5c) [onecoreuap\windows\dxaml\xcp\core\dll\pinvokes.cpp @ 385] Windows_UI_Xaml!DirectUI::FrameworkApplication::LoadComponent+0xac (7ff92ccea23c) [onecoreuap\windows\dxaml\xcp\dxaml\lib\frameworkapplication_partial.cpp @ 553] Windows_UI_Xaml!DirectUI::DXamlCore::EnsureCoreApplicationInitialized+0x136 (7ff92cb413ca) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 675] Windows_UI_Xaml!DirectUI::FrameworkApplication::StartOnCurrentThreadImpl+0x57 (7ff92cea0a2b) [onecoreuap\windows\dxaml\xcp\dxaml\lib\frameworkapplication_partial.cpp @ 84] Windows_UI_Xaml!DirectUI::FrameworkApplicationGenerated::StartOnCurrentThread+0x2f (7ff92cea099f) [onecoreuap\windows\dxaml\xcp\dxaml\lib\winrtgeneratedclasses\frameworkapplication.g.cpp @ 667] Windows_UI_Xaml!DirectUI::WindowsXamlManager::XamlCore::Initialize+0x1f0 (7ff92cb3eed8) [onecoreuap\windows\dxaml\xcp\dxaml\lib\windowsxamlmanager_partial.cpp @ 235] Windows_UI_Xaml!DirectUI::WindowsXamlManager::Initialize+0xfd (7ff92d72c9dd) [onecoreuap\windows\dxaml\xcp\dxaml\lib\windowsxamlmanager_partial.cpp @ 291] Windows_UI_Xaml!ctl::ComObjectBase::CreateInstanceBase+0x13 (7ff92cc73577) [onecoreuap\windows\dxaml\xcp\components\com\comobjectbase.cpp @ 52] Windows_UI_Xaml!ctl::ComObject<DirectUI::WindowsXamlManager>::CreateInstance<DirectUI::WindowsXamlManager>+0x52 (7ff92cef32e2) [onecoreuap\windows\dxaml\xcp\components\com\inc\ComObject.h @ 167] Windows_UI_Xaml!ctl::make<DirectUI::WindowsXamlManager>+0x1d (7ff92cef31a9) [onecoreuap\windows\dxaml\xcp\dxaml\lib\comInstantiation.h @ 43] Windows_UI_Xaml!DirectUI::WindowsXamlManagerFactory::InitializeForCurrentThreadImpl+0x68 (7ff92cef3050) [onecoreuap\windows\dxaml\xcp\dxaml\lib\windowsxamlmanager_partial.cpp @ 196] Windows_UI_Xaml!DirectUI::WindowsXamlManagerFactory::InitializeForCurrentThread+0x79 (7ff92cef2fb9) [onecoreuap\windows\dxaml\xcp\dxaml\lib\winrtgeneratedclasses\windowsxamlmanager.g.cpp @ 92] TerminalApp!winrt::impl::consume_Windows_UI_Xaml_Hosting_IWindowsXamlManagerStatics<winrt::Windows::UI::Xaml::Hosting::IWindowsXamlManagerStatics>::InitializeForCurrentThread+0x5e (7ff86ca7726e) [C:\a\_work\1\s\src\cascadia\TerminalApp\Generated Files\winrt\Windows.UI.Xaml.Hosting.h @ 214] TerminalApp!`winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager::InitializeForCurrentThread'::`2'::<lambda_1>::<lambda_invoker_cdecl>+0x17 (7ff86ca77207) [C:\a\_work\1\s\src\cascadia\TerminalApp\Generated Files\winrt\Windows.UI.Xaml.Hosting.h @ 1001] TerminalApp!winrt::impl::factory_cache_entry<winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager,winrt::Windows::UI::Xaml::Hosting::IWindowsXamlManagerStatics>::call<winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager (7ff86ca51728) [C:\a\_work\1\s\src\cascadia\TerminalApp\Generated Files\winrt\base.h @ 6457] TerminalApp!winrt::TerminalApp::implementation::App::Initialize+0xa7 (7ff86ca51e67) [C:\a\_work\1\s\src\cascadia\TerminalApp\App.cpp @ 35] TerminalApp!winrt::TerminalApp::implementation::App::App+0x86 (7ff86ca60d86) [C:\a\_work\1\s\src\cascadia\TerminalApp\App.cpp @ 27] TerminalApp!winrt::make<winrt::TerminalApp::implementation::App>+0x3a (7ff86ca60cde) [C:\a\_work\1\s\src\cascadia\TerminalApp\Generated Files\winrt\base.h @ 8016] TerminalApp!winrt::impl::produce<winrt::TerminalApp::factory_implementation::App,winrt::Windows::Foundation::IActivationFactory>::ActivateInstance+0x1b (7ff86ca60c8b) [C:\a\_work\1\s\src\cascadia\TerminalApp\Generated Files\winrt\base.h @ 6526] WindowsTerminal!`winrt::TerminalApp::App::App'::`1'::<lambda_168_>::<lambda_invoker_cdecl>+0x65 (7ff61be3fc85) [C:\a\_work\1\s\src\cascadia\WindowsTerminal\Generated Files\winrt\TerminalApp.h @ 7074] WindowsTerminal!winrt::impl::factory_cache_entry<winrt::TerminalApp::App,winrt::Windows::Foundation::IActivationFactory>::call<winrt::TerminalApp::App (7ff61be32c8e) [C:\a\_work\1\s\src\cascadia\WindowsTerminal\Generated Files\winrt\base.h @ 6457] WindowsTerminal!WindowEmperor::WindowEmperor+0x84 (7ff61be31554) [C:\a\_work\1\s\src\cascadia\WindowsTerminal\WindowEmperor.h @ 40] WindowsTerminal!wWinMain+0x11b (7ff61be3141b) [C:\a\_work\1\s\src\cascadia\WindowsTerminal\main.cpp @ 117] WindowsTerminal!__scrt_common_main_seh+0x106 (7ff61be44472) [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288] kernel32!BaseThreadInitThunk+0x18 (7ff97d701f88) [clientcore\base\win32\client\thread.c @ 77] ntdll!RtlUserThreadStart+0x21 (7ff97ef60b81) [minkernel\ldr\rtlstrt.c @ 1198] ------------------------- Callstack for hr=80040154 - Class not registered Windows_UI_Xaml!DirectUI::XamlParserCallbacks::XamlManagedRuntimeRPInvokes_CreateInstance+0x3d0 (7ff92ccfc01c) [onecoreuap\windows\dxaml\xcp\dxaml\lib\xamlparsercallbacks.cpp @ 49] Windows_UI_Xaml!XamlManagedRuntime::CreateInstance+0xae (7ff92ccfbb0e) [onecoreuap\windows\dxaml\xcp\core\parser\xamlmanagedruntime.cpp @ 40] Windows_UI_Xaml!ObjectWriterRuntime::CreateTypeImpl+0xdb (7ff92cd10dab) [onecoreuap\windows\dxaml\xcp\core\parser\objectwriterruntime.cpp @ 76] Windows_UI_Xaml!BinaryFormatObjectWriter::CreateInstanceFromType+0xff (7ff92cbdcf6b) [onecoreuap\windows\dxaml\xcp\core\parser\binaryformatobjectwriter.cpp @ 435] Windows_UI_Xaml!BinaryFormatObjectWriter::WriteNode+0x393 (7ff92cbc9013) [onecoreuap\windows\dxaml\xcp\core\parser\binaryformatobjectwriter.cpp @ 135] Windows_UI_Xaml!CParser::LoadXamlCore+0xa12 (7ff92cc512f2) [onecoreuap\windows\dxaml\xcp\core\parser\parser.cpp @ 284] Windows_UI_Xaml!CCoreServices::ParseXamlWithExistingFrameworkRoot+0x1bd (7ff92cd89495) [onecoreuap\windows\dxaml\xcp\core\dll\xcpcore.cpp @ 3683] Windows_UI_Xaml!CApplication::LoadComponent+0x2bb (7ff92ccec29b) [onecoreuap\windows\dxaml\xcp\core\packaging\application.cpp @ 511] Windows_UI_Xaml!Application_LoadComponent+0xa0 (7ff92ccebe5c) [onecoreuap\windows\dxaml\xcp\core\dll\pinvokes.cpp @ 385] Windows_UI_Xaml!DirectUI::FrameworkApplication::LoadComponent+0xac (7ff92ccea23c) [onecoreuap\windows\dxaml\xcp\dxaml\lib\frameworkapplication_partial.cpp @ 553] Windows_UI_Xaml!DirectUI::DXamlCore::EnsureCoreApplicationInitialized+0x136 (7ff92cb413ca) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 675] Windows_UI_Xaml!DirectUI::FrameworkApplication::StartOnCurrentThreadImpl+0x57 (7ff92cea0a2b) [onecoreuap\windows\dxaml\xcp\dxaml\lib\frameworkapplication_partial.cpp @ 84] Windows_UI_Xaml!DirectUI::FrameworkApplicationGenerated::StartOnCurrentThread+0x2f (7ff92cea099f) [onecoreuap\windows\dxaml\xcp\dxaml\lib\winrtgeneratedclasses\frameworkapplication.g.cpp @ 667] Windows_UI_Xaml!DirectUI::WindowsXamlManager::XamlCore::Initialize+0x1f0 (7ff92cb3eed8) [onecoreuap\windows\dxaml\xcp\dxaml\lib\windowsxamlmanager_partial.cpp @ 235] Windows_UI_Xaml!DirectUI::WindowsXamlManager::Initialize+0xfd (7ff92d72c9dd) [onecoreuap\windows\dxaml\xcp\dxaml\lib\windowsxamlmanager_partial.cpp @ 291] Windows_UI_Xaml!ctl::ComObjectBase::CreateInstanceBase+0x13 (7ff92cc73577) [onecoreuap\windows\dxaml\xcp\components\com\comobjectbase.cpp @ 52] Windows_UI_Xaml!ctl::ComObject<DirectUI::WindowsXamlManager>::CreateInstance<DirectUI::WindowsXamlManager>+0x52 (7ff92cef32e2) [onecoreuap\windows\dxaml\xcp\components\com\inc\ComObject.h @ 167] Windows_UI_Xaml!ctl::make<DirectUI::WindowsXamlManager>+0x1d (7ff92cef31a9) [onecoreuap\windows\dxaml\xcp\dxaml\lib\comInstantiation.h @ 43] Windows_UI_Xaml!DirectUI::WindowsXamlManagerFactory::InitializeForCurrentThreadImpl+0x68 (7ff92cef3050) [onecoreuap\windows\dxaml\xcp\dxaml\lib\windowsxamlmanager_partial.cpp @ 196] Windows_UI_Xaml!DirectUI::WindowsXamlManagerFactory::InitializeForCurrentThread+0x79 (7ff92cef2fb9) [onecoreuap\windows\dxaml\xcp\dxaml\lib\winrtgeneratedclasses\windowsxamlmanager.g.cpp @ 92] TerminalApp!winrt::impl::consume_Windows_UI_Xaml_Hosting_IWindowsXamlManagerStatics<winrt::Windows::UI::Xaml::Hosting::IWindowsXamlManagerStatics>::InitializeForCurrentThread+0x5e (7ff86ca7726e) [C:\a\_work\1\s\src\cascadia\TerminalApp\Generated Files\winrt\Windows.UI.Xaml.Hosting.h @ 214] TerminalApp!`winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager::InitializeForCurrentThread'::`2'::<lambda_1>::<lambda_invoker_cdecl>+0x17 (7ff86ca77207) [C:\a\_work\1\s\src\cascadia\TerminalApp\Generated Files\winrt\Windows.UI.Xaml.Hosting.h @ 1001] TerminalApp!winrt::impl::factory_cache_entry<winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager,winrt::Windows::UI::Xaml::Hosting::IWindowsXamlManagerStatics>::call<winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager (7ff86ca51728) [C:\a\_work\1\s\src\cascadia\TerminalApp\Generated Files\winrt\base.h @ 6457] TerminalApp!winrt::TerminalApp::implementation::App::Initialize+0xa7 (7ff86ca51e67) [C:\a\_work\1\s\src\cascadia\TerminalApp\App.cpp @ 35] TerminalApp!winrt::TerminalApp::implementation::App::App+0x86 (7ff86ca60d86) [C:\a\_work\1\s\src\cascadia\TerminalApp\App.cpp @ 27] TerminalApp!winrt::make<winrt::TerminalApp::implementation::App>+0x3a (7ff86ca60cde) [C:\a\_work\1\s\src\cascadia\TerminalApp\Generated Files\winrt\base.h @ 8016] TerminalApp!winrt::impl::produce<winrt::TerminalApp::factory_implementation::App,winrt::Windows::Foundation::IActivationFactory>::ActivateInstance+0x1b (7ff86ca60c8b) [C:\a\_work\1\s\src\cascadia\TerminalApp\Generated Files\winrt\base.h @ 6526] WindowsTerminal!`winrt::TerminalApp::App::App'::`1'::<lambda_168_>::<lambda_invoker_cdecl>+0x65 (7ff61be3fc85) [C:\a\_work\1\s\src\cascadia\WindowsTerminal\Generated Files\winrt\TerminalApp.h @ 7074] WindowsTerminal!winrt::impl::factory_cache_entry<winrt::TerminalApp::App,winrt::Windows::Foundation::IActivationFactory>::call<winrt::TerminalApp::App (7ff61be32c8e) [C:\a\_work\1\s\src\cascadia\WindowsTerminal\Generated Files\winrt\base.h @ 6457] WindowsTerminal!WindowEmperor::WindowEmperor+0x84 (7ff61be31554) [C:\a\_work\1\s\src\cascadia\WindowsTerminal\WindowEmperor.h @ 40] WindowsTerminal!wWinMain+0x11b (7ff61be3141b) [C:\a\_work\1\s\src\cascadia\WindowsTerminal\main.cpp @ 117] WindowsTerminal!__scrt_common_main_seh+0x106 (7ff61be44472) [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288] kernel32!BaseThreadInitThunk+0x18 (7ff97d701f88) [clientcore\base\win32\client\thread.c @ 77] ntdll!RtlUserThreadStart+0x21 (7ff97ef60b81) [minkernel\ldr\rtlstrt.c @ 1198] Nested Exception (XAML): dx ((Windows_UI_Xaml!ErrorContext*)0x1911bad6ba0) ========================= @$xamltriage() : Stowed exception ErrorCode : 0xc000027b ErrorCodeString : Stowed exception ErrorInfo : 0x802b000a (<Unable to get error code text>) in Windows_UI_Xaml!CJupiterErrorServiceListener::NotifyErrorAdded+0x18a ErrorMessage : Cannot create instance of type 'Microsoft.UI.Xaml.Controls.XamlControlsResources' [Line: 0 Position: 0] OriginateError : E_XAMLPARSEFAILED in Windows_UI_Xaml!CJupiterErrorServiceListener::NotifyErrorAdded+0x18a StowedExceptions : 2 StowedExceptions 0:000> dx -r1 @$xamltriage().StowedExceptions @$xamltriage().StowedExceptions : 2 StowedExceptions length : 0x2 [0x0] : 0x802b000a (<Unable to get error code text>) in Windows_UI_Xaml!CJupiterErrorServiceListener::NotifyErrorAdded+0x18a [0x1] : 0x80040154 (Class not registered) in Windows_UI_Xaml!DirectUI::XamlParserCallbacks::XamlManagedRuntimeRPInvokes_CreateInstance+0x3d0 0:000> dx -r1 @$xamltriage().StowedExceptions[0] @$xamltriage().StowedExceptions[0] : 0x802b000a (<Unable to get error code text>) in Windows_UI_Xaml!CJupiterErrorServiceListener::NotifyErrorAdded+0x18a RawData : 0x1911bada588 : 0x802b000a (<Unable to get error code text>) [Type: _STOWED_EXCEPTION_INFORMATION_V2 *] ResultCode : 802b000a - E_XAMLPARSEFAILED ErrorMessage : Cannot create instance of type 'Microsoft.UI.Xaml.Controls.XamlControlsResources' [Line: 0 Position: 0] BlameFunction : Windows_UI_Xaml!CJupiterErrorServiceListener::NotifyErrorAdded+0x18a Stack : 40 Frames 0:000> dx -r1 @$xamltriage().StowedExceptions[1] @$xamltriage().StowedExceptions[1] : 0x80040154 (Class not registered) in Windows_UI_Xaml!DirectUI::XamlParserCallbacks::XamlManagedRuntimeRPInvokes_CreateInstance+0x3d0 RawData : 0x1911bad7bc8 : 0x80040154 (Class not registered) [Type: _STOWED_EXCEPTION_INFORMATION_V2 *] ResultCode : 80040154 - Class not registered BlameFunction : Windows_UI_Xaml!DirectUI::XamlParserCallbacks::XamlManagedRuntimeRPInvokes_CreateInstance+0x3d0 Stack : 34 Frames NestedExceptionType : XAML XamlErrorContext : 0x1911bad6ba0 : 0x80040154 in Windows_UI_Xaml!DirectUI::XamlParserCallbacks::XamlManagedRuntimeRPInvokes_CreateInstance+0x3d0 [Type: ErrorContext *] ```
Author
Owner

@zadjii-msft commented on GitHub (Sep 6, 2023):

all had similar reports. All bucketed to similar failures.

@zadjii-msft commented on GitHub (Sep 6, 2023): * #15583 _(this thread)_ * #15576 * #15745 * #15526 * #14961 all had similar reports. All bucketed to similar failures.
Author
Owner

@zadjii-msft commented on GitHub (Sep 6, 2023):

Oh dear. Now I remember where I've seen this.

#14961 mentioned a similar crash on start, and we pegged that down to an ACLs issue.

Combining notes:

  • ACLs issues we almost always dupe to #9452. Go read that thread, it's helpful.
  • Running cacls "C:\Program Files\WindowsApps" /s (as admin) should give something like:
    • My own:
      C:\Program Files\WindowsApps "D:PAI(A;OICI;FA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;OICI;0x1200a9;;;S-1-15-3-1024-3635283841-2530182609-996808640-1887759898-3848208603-3313616867-983405619-2501854204)(A;OICI;FA;;;SY)(A;CI;0x1200a9;;;BA)(A;OICI;0x1200a9;;;LS)(A;OICI;0x1200a9;;;NS)(A;OICI;0x1200a9;;;RC)(XA;;0x1200a9;;;BU;(Exists WIN://SYSAPPID))"
      
    • Leonard's:
      C:\Program Files\WindowsApps "D:PAI(A;;FA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;OICIIO;GA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;;0x1200a9;;;S-1-15-3-1024-3635283841-2530182609-996808640-1887759898-3848208603-3313616867-983405619-2501854204)(A;OICIIO;GXGR;;;S-1-15-3-1024-3635283841-2530182609-996808640-1887759898-3848208603-3313616867-983405619-2501854204)(A;;FA;;;SY)(A;OICIIO;GA;;;SY)(A;CI;0x1200a9;;;BA)(A;OICI;0x1200a9;;;LS)(A;OICI;0x1200a9;;;NS)(A;OICI;0x1200a9;;;RC)(XA;;0x1200a9;;;BU;(Exists WIN://SYSAPPID))"
      
    • A note from Dustin: (source https://github.com/microsoft/terminal/issues/15576#issuecomment-1612218759)

      Not necessarily "exactly," as I have one fewer S-1-15-3 entry than you do on my fairly clean install. 😄

      If you see anything other than S-1-5-80 or S-1-15-3, however, that is a big red flag.

  • If they're broken, they might look like:
    C:\Program Files\WindowsApps "D:PAI(A;;FA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;OICIIO;FA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;;0x1200a9;;;S-1-15-3-1024-3635283841-2530182609-996808640-1887759898-3848208603-3313616867-983405619-2501854204)(A;OICIIO;0x1200a9;;;S-1-15-3-1024-3635283841-2530182609-996808640-1887759898-3848208603-3313616867-983405619-2501854204)(A;;FA;;;SY)(A;OICIIO;FA;;;SY)(A;CI;0x1200a9;;;BA)(A;OICI;0x1200a9;;;LS)(A;OICI;0x1200a9;;;NS)(A;OICI;0x1200a9;;;RC)(XA;;0x1200a9;;;BU;(Exists WIN://SYSAPPID))(A;OICI;FA;;;S-1-5-21-757397538-3420403896-3795204366-1001)"
    
  • From https://github.com/microsoft/terminal/issues/14961#issuecomment-1461141118

    Anything that follows is done without warranty, express or implied.
    This command will restore the ACLs of WindowsApps to the ones shipped with Windows.
    CACLS "C:\Program Files\WindowsApps" /S:"D:PAI(A;OICI;FA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;OICI;0x1200a9;;;S-1-15-3-1024-3635283841-2530182609-996808640-1887759898-3848208603-3313616867-983405619-2501854204)(A;OICI;FA;;;SY)(A;CI;0x1200a9;;;BA)(A;OICI;0x1200a9;;;LS)(A;OICI;0x1200a9;;;NS)(A;OICI;0x1200a9;;;RC)(XA;;0x1200a9;;;BU;(Exists WIN://SYSAPPID))"
    The one thing that icacls can't do that cacls (deprecated) can is apply that last SDDL particle that indicates any token with an App ID can access it.
    Never apply this recursively. Never apply any permission changes to WindowsApps recursively‼️‼️ We've learned that doing so is nearly unrecoverable.

    • A user had success with this in the past, though mucking with WindowsApps is often a one-way ticket to "Reinstall Windows" land.

Now, perhaps it's time for some big picture questions. We've gotten a bunch of these since 1.16. Often as admin, but not exclusively. Did we become more susceptible to this in recent releases? The move to the MUX framework package comes to mind as a possible cause. Maybe we're relying on loading that (rather than out of our package), and a badly-permissioned MUX package causes us to explode.

Often, we find these reports after someone messed with permissions manually, but not always. I sure hope there's not a bug in the FWP installer that leaves a MUX with bad permissions. I idly wonder if we can easily whip up a powershell script that could detect the bad permissions.

Looks like if that theory is correct, then a whole bunch of apps would be affected - Maps, Camera, Feedback Hub, the WSA app, the print queue app...


holy butts I found a bug that had meaningful info in it: MSFT:45128013. that's fixed in os.2020!8470532 (feb 6, 2023) (and is a cherry pick of !8469169, which links MSFT:32005359 and MSFT:32005359). It was also duped to MSFT:44757004, which was fixed in os2020!9113385 (Jul 12, 2023)

@zadjii-msft commented on GitHub (Sep 6, 2023): Oh dear. Now I remember where I've seen this. #14961 mentioned a similar crash on start, and we pegged that down to an ACLs issue. Combining notes: * ACLs issues we almost always dupe to #9452. Go read that thread, it's helpful. * Running `cacls "C:\Program Files\WindowsApps" /s` (as admin) should give something like: * My own: ``` C:\Program Files\WindowsApps "D:PAI(A;OICI;FA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;OICI;0x1200a9;;;S-1-15-3-1024-3635283841-2530182609-996808640-1887759898-3848208603-3313616867-983405619-2501854204)(A;OICI;FA;;;SY)(A;CI;0x1200a9;;;BA)(A;OICI;0x1200a9;;;LS)(A;OICI;0x1200a9;;;NS)(A;OICI;0x1200a9;;;RC)(XA;;0x1200a9;;;BU;(Exists WIN://SYSAPPID))" ``` * Leonard's: ``` C:\Program Files\WindowsApps "D:PAI(A;;FA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;OICIIO;GA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;;0x1200a9;;;S-1-15-3-1024-3635283841-2530182609-996808640-1887759898-3848208603-3313616867-983405619-2501854204)(A;OICIIO;GXGR;;;S-1-15-3-1024-3635283841-2530182609-996808640-1887759898-3848208603-3313616867-983405619-2501854204)(A;;FA;;;SY)(A;OICIIO;GA;;;SY)(A;CI;0x1200a9;;;BA)(A;OICI;0x1200a9;;;LS)(A;OICI;0x1200a9;;;NS)(A;OICI;0x1200a9;;;RC)(XA;;0x1200a9;;;BU;(Exists WIN://SYSAPPID))" ``` * A note from Dustin: (source https://github.com/microsoft/terminal/issues/15576#issuecomment-1612218759) > Not necessarily "exactly," as I have one fewer `S-1-15-3` entry than you do on my fairly clean install. 😄 > > If you see anything other than `S-1-5-80` or `S-1-15-3`, however, that is a big red flag. * If they're broken, they might look like: ``` C:\Program Files\WindowsApps "D:PAI(A;;FA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;OICIIO;FA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;;0x1200a9;;;S-1-15-3-1024-3635283841-2530182609-996808640-1887759898-3848208603-3313616867-983405619-2501854204)(A;OICIIO;0x1200a9;;;S-1-15-3-1024-3635283841-2530182609-996808640-1887759898-3848208603-3313616867-983405619-2501854204)(A;;FA;;;SY)(A;OICIIO;FA;;;SY)(A;CI;0x1200a9;;;BA)(A;OICI;0x1200a9;;;LS)(A;OICI;0x1200a9;;;NS)(A;OICI;0x1200a9;;;RC)(XA;;0x1200a9;;;BU;(Exists WIN://SYSAPPID))(A;OICI;FA;;;S-1-5-21-757397538-3420403896-3795204366-1001)" ``` * From https://github.com/microsoft/terminal/issues/14961#issuecomment-1461141118 > **Anything that follows is done without warranty, express or implied**. > This command will restore the ACLs of WindowsApps to the ones shipped with Windows. > ```CACLS "C:\Program Files\WindowsApps" /S:"D:PAI(A;OICI;FA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;OICI;0x1200a9;;;S-1-15-3-1024-3635283841-2530182609-996808640-1887759898-3848208603-3313616867-983405619-2501854204)(A;OICI;FA;;;SY)(A;CI;0x1200a9;;;BA)(A;OICI;0x1200a9;;;LS)(A;OICI;0x1200a9;;;NS)(A;OICI;0x1200a9;;;RC)(XA;;0x1200a9;;;BU;(Exists WIN://SYSAPPID))"``` > The one thing that icacls can't do that cacls (deprecated) can is apply that last SDDL particle that indicates any token with an App ID can access it. Never apply this recursively. **Never apply any permission changes to WindowsApps recursively**‼️‼️ We've learned that doing so is nearly unrecoverable. * A user had success with this in the past, though mucking with WindowsApps is often a one-way ticket to "Reinstall Windows" land. --- Now, perhaps it's time for some big picture questions. We've gotten a bunch of these since 1.16. Often as admin, but not exclusively. Did we become more susceptible to this in recent releases? The move to the MUX framework package comes to mind as a possible cause. Maybe we're relying on loading that (rather than out of our package), and a badly-permissioned MUX package causes _us_ to explode. Often, we find these reports after someone messed with permissions manually, but _not always_. I sure hope there's not a bug in the FWP installer that leaves a MUX with bad permissions. I idly wonder if we can easily whip up a powershell script that could detect the bad permissions. Looks like if that theory is correct, then a whole bunch of apps would be affected - Maps, Camera, Feedback Hub, the WSA app, the print queue app... --- holy butts I found a bug that had meaningful info in it: MSFT:45128013. that's fixed in os.2020!8470532 (feb 6, 2023) (and is a cherry pick of !8469169, which links MSFT:32005359 and MSFT:32005359). It was also duped to MSFT:44757004, which was fixed in os2020!9113385 (Jul 12, 2023)
Author
Owner

@zadjii-msft commented on GitHub (Sep 6, 2023):

We might also be able to glean something from the output of the following script:

$results = @()
$allPackages = Get-AppxPackage
# First, dump all the XAML packages
$allPackages | Where-Object { $_.PackageFullName -like "*xaml*" }
write-output "----------------------------------------"
# Iterate over all regkeys that start with "AppX" in HKEY_CURRENT_USER\Software\Classes
$keys = Get-ChildItem HKCU:\Software\Classes | Where-Object { (Get-ItemProperty $_.PSPath) -like "*AppX*" }
foreach ($key in $keys) {
    # if the name is LITERALLY "HKEY_CURRENT_USER\Software\Classes\*", skip it
    if ($key.Name -eq "HKEY_CURRENT_USER\Software\Classes\*") {
        continue
    }
    # Does the key have a "Shell/open" subkey?
    if (Test-Path "$($key.PSPath)\Shell\open") {
        # Look for "PackageId" under the shell/open subkey
        $packageId = (Get-ItemProperty "$($key.PSPath)\Shell\open").PackageId
        # Is the package installed?
        $package = $allPackages | Where-Object { $_.PackageFullName -eq $packageId }
        if ($package) {
            # Uncomment to list installed packages in Classes. Left commented out for privacy.
            # Write-Host "`e[32m$packageId`e[m -> $($package.PackageFullName)"
            continue
        }
        Write-Host "$key -> `e[31m$packageId`e[m wasn't found"
        $results += [PSCustomObject]@{
            Key = $key.Name
            PackageId = $packageId
        }
    }
    else{
        write-output "didn't find 'Shell\open' under `e[33m$key`e[m"
    }
}
write-output "----------------------------------------"
write-output "Summary: These we couldn't find`n"
write-output $results

That'll list off all the "XAML" apps you might have (presumably, mostly Microsoft.UI.XAML ones). The second part finds some reg keys that might be stale - I'm gonna be honest I don't totally understand the root cause of the bug that spawned that script. But if Microsoft.UI.Xaml shows up in the summary at the end, well, that'd be unexpected for sure.

@zadjii-msft commented on GitHub (Sep 6, 2023): We might also be able to glean something from the output of the following script: ```pwsh $results = @() $allPackages = Get-AppxPackage # First, dump all the XAML packages $allPackages | Where-Object { $_.PackageFullName -like "*xaml*" } write-output "----------------------------------------" # Iterate over all regkeys that start with "AppX" in HKEY_CURRENT_USER\Software\Classes $keys = Get-ChildItem HKCU:\Software\Classes | Where-Object { (Get-ItemProperty $_.PSPath) -like "*AppX*" } foreach ($key in $keys) { # if the name is LITERALLY "HKEY_CURRENT_USER\Software\Classes\*", skip it if ($key.Name -eq "HKEY_CURRENT_USER\Software\Classes\*") { continue } # Does the key have a "Shell/open" subkey? if (Test-Path "$($key.PSPath)\Shell\open") { # Look for "PackageId" under the shell/open subkey $packageId = (Get-ItemProperty "$($key.PSPath)\Shell\open").PackageId # Is the package installed? $package = $allPackages | Where-Object { $_.PackageFullName -eq $packageId } if ($package) { # Uncomment to list installed packages in Classes. Left commented out for privacy. # Write-Host "`e[32m$packageId`e[m -> $($package.PackageFullName)" continue } Write-Host "$key -> `e[31m$packageId`e[m wasn't found" $results += [PSCustomObject]@{ Key = $key.Name PackageId = $packageId } } else{ write-output "didn't find 'Shell\open' under `e[33m$key`e[m" } } write-output "----------------------------------------" write-output "Summary: These we couldn't find`n" write-output $results ``` That'll list off all the "XAML" apps you might have (presumably, mostly Microsoft.UI.XAML ones). The second part finds some reg keys that might be stale - I'm gonna be honest I don't totally understand the root cause of the bug that spawned that script. But if Microsoft.UI.Xaml shows up in the summary at the end, well, that'd be unexpected for sure.
Author
Owner

@zadjii-msft commented on GitHub (Sep 6, 2023):

LASTLY:

There's a running theory amongst some other folks that issues like this were caused by updates-in-progress. Like, Terminal tried to use a MUX that was partially installed, and got stuck, until the next reboot. Something like that. That might explain why at least one of these failures had a whole bunch of hits right after we released 1.18, but nearly none since. It sounded like a reboot would fix it, or at least kick things to get them going (which is annoying but not the end of the world).

I was also given a BIG HAMMER script1 that would collect a boatload of diagnostics. I believe it'll only work on Insiders builds, and will almost certainly have PII in it. If anyone else is hitting this and we can't get to the root cause, then email me (then @ me here so I make sure to check the spam filter) and we can use that script privately to try and get those logs.


  1. note to self: search osgwiki for GetDeploymentLogs-Desktop.ps1. ↩︎

@zadjii-msft commented on GitHub (Sep 6, 2023): LASTLY: There's a running theory amongst some other folks that issues like this were caused by updates-in-progress. Like, Terminal tried to use a MUX that was partially installed, and got stuck, until the next reboot. Something like that. That might explain why at least one of these failures had a whole bunch of hits right after we released 1.18, but nearly none since. It _sounded_ like a reboot would fix it, or at least kick things to get them going (which is annoying but not the end of the world). I was also given a BIG HAMMER script[^1] that would collect a boatload of diagnostics. I believe it'll only work on Insiders builds, and will almost certainly have PII in it. If anyone else is hitting this and we can't get to the root cause, then email me (then @ me here so I make sure to check the spam filter) and we can use that script privately to try and get those logs. [^1]: note to self: search osgwiki for `GetDeploymentLogs-Desktop.ps1`.
Author
Owner

@stevenh commented on GitHub (Sep 7, 2023):

@stevenh it's been a couple months now - any chance you've taken a subsequent update that fixed this for you?

I ended up reverting all the Windows updates that had been applied recently and have not had it happen since thankfully. It was a very painful process as the uninstall option never works so had to do full system rollback which also has issues, requiring repairs after.

Sorry can't be more helpful.

@stevenh commented on GitHub (Sep 7, 2023): > @stevenh it's been a couple months now - any chance you've taken a subsequent update that fixed this for you? I ended up reverting all the Windows updates that had been applied recently and have not had it happen since thankfully. It was a very painful process as the uninstall option never works so had to do full system rollback which also has issues, requiring repairs after. Sorry can't be more helpful.
Author
Owner

@o-sdn-o commented on GitHub (Sep 7, 2023):

If it helps, on my system (10.0.19045.3324) in April'23 WT could only run up to (and including) the 2acdc9d7e2 commit. After subsequent commits, it stopped working. I haven't checked the current main branch.

Update: Current main branch works on my system (10.0.19045.3324). When WT was not working (in April'23), it seemed to me that my Windows instance did not have some updated component (MUX). Now everything works.

@o-sdn-o commented on GitHub (Sep 7, 2023): If it helps, on my system ~~(10.0.19045.3324)~~ in April'23 WT could only run up to (and including) the 2acdc9d7e26c112a087be511c641ff7a8fe631e2 commit. After subsequent commits, it stopped working. ~~I haven't checked the current main branch.~~ Update: Current main branch works on my system (10.0.19045.3324). When WT was not working (in April'23), it seemed to me that my Windows instance did not have some updated component (MUX). Now everything works.
Author
Owner

@zadjii-msft commented on GitHub (Sep 7, 2023):

WT could only run up to (and including) the 2acdc9d7e2 commit. After subsequent commits, it stopped working

That's so weird. The subsequent commit is 7a2e4f8d9b, and that doesn't look like it should cause anything like this...

Heck, there's not a ton of commits around https://github.com/microsoft/terminal/commits/main?after=3830c62a814e0d55d8899243d0fd48891cc2d93f+264&branch=main&qualified_name=refs%2Fheads%2Fmain that look like what's reported here.

@zadjii-msft commented on GitHub (Sep 7, 2023): > WT could only run up to (and including) the 2acdc9d7e26c112a087be511c641ff7a8fe631e2 commit. After subsequent commits, it stopped working That's _so weird_. The subsequent commit is 7a2e4f8d9b521e3f0d645510841a918150b64a25, and that doesn't look like it should cause anything like this... Heck, there's not a ton of commits around https://github.com/microsoft/terminal/commits/main?after=3830c62a814e0d55d8899243d0fd48891cc2d93f+264&branch=main&qualified_name=refs%2Fheads%2Fmain that look like what's reported here.
Author
Owner

@o-sdn-o commented on GitHub (Sep 7, 2023):

Indeed it is. Apparently I then rolled back to earlier commits after WT started crashing, it seems due to the lack of MUX 2.8 in my system.

Apparently WT stopped working after the following commit:
17cf44fa71

@o-sdn-o commented on GitHub (Sep 7, 2023): Indeed it is. Apparently I then rolled back to earlier commits after WT started crashing, it seems due to the lack of MUX 2.8 in my system. Apparently WT stopped working after the following commit: https://github.com/microsoft/terminal/commit/17cf44fa71defcdf8f7a03cce0a8d848c8cd8aa3
Author
Owner

@zadjii-msft commented on GitHub (Sep 7, 2023):

Yea, but we didn't upgrade to MUX 2.8 till 17cf44fa71, like, 26 commits later: 2acdc9d7e2...17cf44fa71

That does seem like a reasonable explanation though. That might explain why main works then - it's a specific revision of 2.8 that's broken, but not the most recent one.

@zadjii-msft commented on GitHub (Sep 7, 2023): Yea, but we didn't upgrade to MUX 2.8 till 17cf44fa71defcdf8f7a03cce0a8d848c8cd8aa3, like, 26 commits later: https://github.com/microsoft/terminal/compare/2acdc9d7e26c112a087be511c641ff7a8fe631e2...17cf44fa71defcdf8f7a03cce0a8d848c8cd8aa3 That does _seem_ like a reasonable explanation though. That might explain why `main` works then - it's a specific revision of 2.8 that's broken, but not the most recent one.
Author
Owner

@zadjii-msft commented on GitHub (Sep 7, 2023):

Oh hey look at that, we posted at the same time. THAT looks like the commit I'd blame too.

@zadjii-msft commented on GitHub (Sep 7, 2023): Oh hey look at that, we posted at the same time. THAT looks like the commit I'd blame too.
Author
Owner

@zadjii-msft commented on GitHub (Sep 7, 2023):

@o-sdn-o can you run the PWSH script in https://github.com/microsoft/terminal/issues/15583#issuecomment-1709044819 and share the output? That might be enlightening?

@zadjii-msft commented on GitHub (Sep 7, 2023): @o-sdn-o can you run the PWSH script in https://github.com/microsoft/terminal/issues/15583#issuecomment-1709044819 and share the output? That _might_ be enlightening?
Author
Owner

@o-sdn-o commented on GitHub (Sep 7, 2023):

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS D:\temp\444> .\test_wt.ps1


Name              : Microsoft.Advertising.Xaml
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X86
ResourceId        : 
Version           : 10.1811.1.0
PackageFullName   : Microsoft.Advertising.Xaml_10.1811.1.0_x86__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.Advertising.Xaml_10.1811.1.0_x86__8wekyb3d8bbwe
IsFramework       : True
PackageFamilyName : Microsoft.Advertising.Xaml_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok

Name              : Microsoft.Advertising.Xaml
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X64
ResourceId        : 
Version           : 10.1811.1.0
PackageFullName   : Microsoft.Advertising.Xaml_10.1811.1.0_x64__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.Advertising.Xaml_10.1811.1.0_x64__8wekyb3d8bbwe
IsFramework       : True
PackageFamilyName : Microsoft.Advertising.Xaml_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok

Name              : Microsoft.UI.Xaml.2.0
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X86
ResourceId        : 
Version           : 2.1810.18004.0
PackageFullName   : Microsoft.UI.Xaml.2.0_2.1810.18004.0_x86__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.0_2.1810.18004.0_x86__8wekyb3d8bbwe
IsFramework       : True
PackageFamilyName : Microsoft.UI.Xaml.2.0_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok

Name              : Microsoft.UI.Xaml.2.0
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X64
ResourceId        : 
Version           : 2.1810.18004.0
PackageFullName   : Microsoft.UI.Xaml.2.0_2.1810.18004.0_x64__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.0_2.1810.18004.0_x64__8wekyb3d8bbwe
IsFramework       : True
PackageFamilyName : Microsoft.UI.Xaml.2.0_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok

Name              : Microsoft.UI.Xaml.2.1
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X64
ResourceId        : 
Version           : 2.11906.6001.0
PackageFullName   : Microsoft.UI.Xaml.2.1_2.11906.6001.0_x64__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.1_2.11906.6001.0_x64__8wekyb3d8bbwe
IsFramework       : True
PackageFamilyName : Microsoft.UI.Xaml.2.1_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok

Name              : Microsoft.UI.Xaml.2.1
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X86
ResourceId        : 
Version           : 2.11906.6001.0
PackageFullName   : Microsoft.UI.Xaml.2.1_2.11906.6001.0_x86__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.1_2.11906.6001.0_x86__8wekyb3d8bbwe
IsFramework       : True
PackageFamilyName : Microsoft.UI.Xaml.2.1_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok

Name              : Microsoft.UI.Xaml.2.2
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X86
ResourceId        : 
Version           : 2.21909.17002.0
PackageFullName   : Microsoft.UI.Xaml.2.2_2.21909.17002.0_x86__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.2_2.21909.17002.0_x86__8wekyb3d8bbwe
IsFramework       : True
PackageFamilyName : Microsoft.UI.Xaml.2.2_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok

Name              : Microsoft.UI.Xaml.2.2
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X64
ResourceId        : 
Version           : 2.21909.17002.0
PackageFullName   : Microsoft.UI.Xaml.2.2_2.21909.17002.0_x64__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.2_2.21909.17002.0_x64__8wekyb3d8bbwe
IsFramework       : True
PackageFamilyName : Microsoft.UI.Xaml.2.2_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok

Name              : Microsoft.UI.Xaml.2.3
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X86
ResourceId        : 
Version           : 2.32002.13001.0
PackageFullName   : Microsoft.UI.Xaml.2.3_2.32002.13001.0_x86__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.3_2.32002.13001.0_x86__8wekyb3d8bbwe
IsFramework       : True
PackageFamilyName : Microsoft.UI.Xaml.2.3_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok

Name              : Microsoft.UI.Xaml.2.3
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X64
ResourceId        : 
Version           : 2.32002.13001.0
PackageFullName   : Microsoft.UI.Xaml.2.3_2.32002.13001.0_x64__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.3_2.32002.13001.0_x64__8wekyb3d8bbwe
IsFramework       : True
PackageFamilyName : Microsoft.UI.Xaml.2.3_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok

Name              : Microsoft.UI.Xaml.2.4
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X64
ResourceId        : 
Version           : 2.42007.9001.0
PackageFullName   : Microsoft.UI.Xaml.2.4_2.42007.9001.0_x64__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.4_2.42007.9001.0_x64__8wekyb3d8bbwe
IsFramework       : True
PackageFamilyName : Microsoft.UI.Xaml.2.4_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok

Name              : Microsoft.UI.Xaml.2.4
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X86
ResourceId        : 
Version           : 2.42007.9001.0
PackageFullName   : Microsoft.UI.Xaml.2.4_2.42007.9001.0_x86__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.4_2.42007.9001.0_x86__8wekyb3d8bbwe
IsFramework       : True
PackageFamilyName : Microsoft.UI.Xaml.2.4_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok

Name              : Microsoft.UI.Xaml.2.5
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X86
ResourceId        : 
Version           : 2.52012.2002.0
PackageFullName   : Microsoft.UI.Xaml.2.5_2.52012.2002.0_x86__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.5_2.52012.2002.0_x86__8wekyb3d8bbwe
IsFramework       : True
PackageFamilyName : Microsoft.UI.Xaml.2.5_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok

Name              : Microsoft.UI.Xaml.2.5
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X64
ResourceId        : 
Version           : 2.52012.2002.0
PackageFullName   : Microsoft.UI.Xaml.2.5_2.52012.2002.0_x64__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.5_2.52012.2002.0_x64__8wekyb3d8bbwe
IsFramework       : True
PackageFamilyName : Microsoft.UI.Xaml.2.5_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok

Name              : Microsoft.UI.Xaml.2.6
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X64
ResourceId        : 
Version           : 2.62112.3002.0
PackageFullName   : Microsoft.UI.Xaml.2.6_2.62112.3002.0_x64__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.6_2.62112.3002.0_x64__8wekyb3d8bbwe
IsFramework       : True
PackageFamilyName : Microsoft.UI.Xaml.2.6_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok

Name              : Microsoft.UI.Xaml.2.6
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X86
ResourceId        : 
Version           : 2.62112.3002.0
PackageFullName   : Microsoft.UI.Xaml.2.6_2.62112.3002.0_x86__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.6_2.62112.3002.0_x86__8wekyb3d8bbwe
IsFramework       : True
PackageFamilyName : Microsoft.UI.Xaml.2.6_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok

Name              : Microsoft.UI.Xaml.2.7
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X64
ResourceId        : 
Version           : 7.2208.15002.0
PackageFullName   : Microsoft.UI.Xaml.2.7_7.2208.15002.0_x64__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.7_7.2208.15002.0_x64__8wekyb3d8bbwe
IsFramework       : True
PackageFamilyName : Microsoft.UI.Xaml.2.7_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok

Name              : Microsoft.UI.Xaml.2.7
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X86
ResourceId        : 
Version           : 7.2208.15002.0
PackageFullName   : Microsoft.UI.Xaml.2.7_7.2208.15002.0_x86__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.7_7.2208.15002.0_x86__8wekyb3d8bbwe
IsFramework       : True
PackageFamilyName : Microsoft.UI.Xaml.2.7_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok

Name              : Microsoft.UI.Xaml.2.8
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X64
ResourceId        : 
Version           : 8.2306.22001.0
PackageFullName   : Microsoft.UI.Xaml.2.8_8.2306.22001.0_x64__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.8_8.2306.22001.0_x64__8wekyb3d8bbwe
IsFramework       : True
PackageFamilyName : Microsoft.UI.Xaml.2.8_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok

Name              : Microsoft.UI.Xaml.2.8
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X86
ResourceId        : 
Version           : 8.2306.22001.0
PackageFullName   : Microsoft.UI.Xaml.2.8_8.2306.22001.0_x86__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.8_8.2306.22001.0_x86__8wekyb3d8bbwe
IsFramework       : True
PackageFamilyName : Microsoft.UI.Xaml.2.8_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok

----------------------------------------
HKEY_CURRENT_USER\Software\Classes\AppX4j5v7692qeayhwcg2qhwgwbcdyrpwsc0 -> e[31mMicrosoft.PPIProjection_10.0.18362.449_neutral_neutral_cw5n1h2txyewye[m wasn't found
HKEY_CURRENT_USER\Software\Classes\AppX85jqyztr8fqc6b7sw64y2mjjrnx59njs -> e[31mInputApp_1000.18362.449.0_neutral_neutral_cw5n1h2txyewye[m wasn't found
HKEY_CURRENT_USER\Software\Classes\AppXa5q0sm6rab4bbk8faqwhapj4mvw0n9ek -> e[31mMicrosoft.PPIProjection_10.0.18362.449_neutral_neutral_cw5n1h2txyewye[m wasn't found
HKEY_CURRENT_USER\Software\Classes\AppXb6t8194632yvzp2fm989q0bfn7x48r84 -> e[31mMicrosoft.Windows.Cortana_1.13.0.18362_neutral_neutral_cw5n1h2txyewye[m wasn't found
HKEY_CURRENT_USER\Software\Classes\AppXe8d7fy32jcm7fkx8p2wzxa43pep36805 -> e[31mMicrosoft.Windows.ShellExperienceHost_10.0.18362.449_neutral_neutral_cw5n1h2txyewye[m wasn't found
HKEY_CURRENT_USER\Software\Classes\AppXnyyfqebxgk8p4scs5cx21tngqn4hwcsq -> e[31mMicrosoft.Windows.Cortana_1.13.0.18362_neutral_neutral_cw5n1h2txyewye[m wasn't found
----------------------------------------
Summary: These we couldn't find


Key       : HKEY_CURRENT_USER\Software\Classes\AppX4j5v7692qeayhwcg2qhwgwbcdyrpwsc0
PackageId : Microsoft.PPIProjection_10.0.18362.449_neutral_neutral_cw5n1h2txyewy


Key       : HKEY_CURRENT_USER\Software\Classes\AppX85jqyztr8fqc6b7sw64y2mjjrnx59njs
PackageId : InputApp_1000.18362.449.0_neutral_neutral_cw5n1h2txyewy


Key       : HKEY_CURRENT_USER\Software\Classes\AppXa5q0sm6rab4bbk8faqwhapj4mvw0n9ek
PackageId : Microsoft.PPIProjection_10.0.18362.449_neutral_neutral_cw5n1h2txyewy


Key       : HKEY_CURRENT_USER\Software\Classes\AppXb6t8194632yvzp2fm989q0bfn7x48r84
PackageId : Microsoft.Windows.Cortana_1.13.0.18362_neutral_neutral_cw5n1h2txyewy


Key       : HKEY_CURRENT_USER\Software\Classes\AppXe8d7fy32jcm7fkx8p2wzxa43pep36805
PackageId : Microsoft.Windows.ShellExperienceHost_10.0.18362.449_neutral_neutral_cw5n1h2txyewy


Key       : HKEY_CURRENT_USER\Software\Classes\AppXnyyfqebxgk8p4scs5cx21tngqn4hwcsq
PackageId : Microsoft.Windows.Cortana_1.13.0.18362_neutral_neutral_cw5n1h2txyewy



PS D:\temp\444> 
@o-sdn-o commented on GitHub (Sep 7, 2023): ``` Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. Try the new cross-platform PowerShell https://aka.ms/pscore6 PS D:\temp\444> .\test_wt.ps1 Name : Microsoft.Advertising.Xaml Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US Architecture : X86 ResourceId : Version : 10.1811.1.0 PackageFullName : Microsoft.Advertising.Xaml_10.1811.1.0_x86__8wekyb3d8bbwe InstallLocation : C:\Program Files\WindowsApps\Microsoft.Advertising.Xaml_10.1811.1.0_x86__8wekyb3d8bbwe IsFramework : True PackageFamilyName : Microsoft.Advertising.Xaml_8wekyb3d8bbwe PublisherId : 8wekyb3d8bbwe IsResourcePackage : False IsBundle : False IsDevelopmentMode : False NonRemovable : False IsPartiallyStaged : False SignatureKind : Store Status : Ok Name : Microsoft.Advertising.Xaml Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US Architecture : X64 ResourceId : Version : 10.1811.1.0 PackageFullName : Microsoft.Advertising.Xaml_10.1811.1.0_x64__8wekyb3d8bbwe InstallLocation : C:\Program Files\WindowsApps\Microsoft.Advertising.Xaml_10.1811.1.0_x64__8wekyb3d8bbwe IsFramework : True PackageFamilyName : Microsoft.Advertising.Xaml_8wekyb3d8bbwe PublisherId : 8wekyb3d8bbwe IsResourcePackage : False IsBundle : False IsDevelopmentMode : False NonRemovable : False IsPartiallyStaged : False SignatureKind : Store Status : Ok Name : Microsoft.UI.Xaml.2.0 Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US Architecture : X86 ResourceId : Version : 2.1810.18004.0 PackageFullName : Microsoft.UI.Xaml.2.0_2.1810.18004.0_x86__8wekyb3d8bbwe InstallLocation : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.0_2.1810.18004.0_x86__8wekyb3d8bbwe IsFramework : True PackageFamilyName : Microsoft.UI.Xaml.2.0_8wekyb3d8bbwe PublisherId : 8wekyb3d8bbwe IsResourcePackage : False IsBundle : False IsDevelopmentMode : False NonRemovable : False IsPartiallyStaged : False SignatureKind : Store Status : Ok Name : Microsoft.UI.Xaml.2.0 Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US Architecture : X64 ResourceId : Version : 2.1810.18004.0 PackageFullName : Microsoft.UI.Xaml.2.0_2.1810.18004.0_x64__8wekyb3d8bbwe InstallLocation : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.0_2.1810.18004.0_x64__8wekyb3d8bbwe IsFramework : True PackageFamilyName : Microsoft.UI.Xaml.2.0_8wekyb3d8bbwe PublisherId : 8wekyb3d8bbwe IsResourcePackage : False IsBundle : False IsDevelopmentMode : False NonRemovable : False IsPartiallyStaged : False SignatureKind : Store Status : Ok Name : Microsoft.UI.Xaml.2.1 Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US Architecture : X64 ResourceId : Version : 2.11906.6001.0 PackageFullName : Microsoft.UI.Xaml.2.1_2.11906.6001.0_x64__8wekyb3d8bbwe InstallLocation : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.1_2.11906.6001.0_x64__8wekyb3d8bbwe IsFramework : True PackageFamilyName : Microsoft.UI.Xaml.2.1_8wekyb3d8bbwe PublisherId : 8wekyb3d8bbwe IsResourcePackage : False IsBundle : False IsDevelopmentMode : False NonRemovable : False IsPartiallyStaged : False SignatureKind : Store Status : Ok Name : Microsoft.UI.Xaml.2.1 Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US Architecture : X86 ResourceId : Version : 2.11906.6001.0 PackageFullName : Microsoft.UI.Xaml.2.1_2.11906.6001.0_x86__8wekyb3d8bbwe InstallLocation : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.1_2.11906.6001.0_x86__8wekyb3d8bbwe IsFramework : True PackageFamilyName : Microsoft.UI.Xaml.2.1_8wekyb3d8bbwe PublisherId : 8wekyb3d8bbwe IsResourcePackage : False IsBundle : False IsDevelopmentMode : False NonRemovable : False IsPartiallyStaged : False SignatureKind : Store Status : Ok Name : Microsoft.UI.Xaml.2.2 Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US Architecture : X86 ResourceId : Version : 2.21909.17002.0 PackageFullName : Microsoft.UI.Xaml.2.2_2.21909.17002.0_x86__8wekyb3d8bbwe InstallLocation : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.2_2.21909.17002.0_x86__8wekyb3d8bbwe IsFramework : True PackageFamilyName : Microsoft.UI.Xaml.2.2_8wekyb3d8bbwe PublisherId : 8wekyb3d8bbwe IsResourcePackage : False IsBundle : False IsDevelopmentMode : False NonRemovable : False IsPartiallyStaged : False SignatureKind : Store Status : Ok Name : Microsoft.UI.Xaml.2.2 Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US Architecture : X64 ResourceId : Version : 2.21909.17002.0 PackageFullName : Microsoft.UI.Xaml.2.2_2.21909.17002.0_x64__8wekyb3d8bbwe InstallLocation : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.2_2.21909.17002.0_x64__8wekyb3d8bbwe IsFramework : True PackageFamilyName : Microsoft.UI.Xaml.2.2_8wekyb3d8bbwe PublisherId : 8wekyb3d8bbwe IsResourcePackage : False IsBundle : False IsDevelopmentMode : False NonRemovable : False IsPartiallyStaged : False SignatureKind : Store Status : Ok Name : Microsoft.UI.Xaml.2.3 Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US Architecture : X86 ResourceId : Version : 2.32002.13001.0 PackageFullName : Microsoft.UI.Xaml.2.3_2.32002.13001.0_x86__8wekyb3d8bbwe InstallLocation : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.3_2.32002.13001.0_x86__8wekyb3d8bbwe IsFramework : True PackageFamilyName : Microsoft.UI.Xaml.2.3_8wekyb3d8bbwe PublisherId : 8wekyb3d8bbwe IsResourcePackage : False IsBundle : False IsDevelopmentMode : False NonRemovable : False IsPartiallyStaged : False SignatureKind : Store Status : Ok Name : Microsoft.UI.Xaml.2.3 Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US Architecture : X64 ResourceId : Version : 2.32002.13001.0 PackageFullName : Microsoft.UI.Xaml.2.3_2.32002.13001.0_x64__8wekyb3d8bbwe InstallLocation : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.3_2.32002.13001.0_x64__8wekyb3d8bbwe IsFramework : True PackageFamilyName : Microsoft.UI.Xaml.2.3_8wekyb3d8bbwe PublisherId : 8wekyb3d8bbwe IsResourcePackage : False IsBundle : False IsDevelopmentMode : False NonRemovable : False IsPartiallyStaged : False SignatureKind : Store Status : Ok Name : Microsoft.UI.Xaml.2.4 Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US Architecture : X64 ResourceId : Version : 2.42007.9001.0 PackageFullName : Microsoft.UI.Xaml.2.4_2.42007.9001.0_x64__8wekyb3d8bbwe InstallLocation : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.4_2.42007.9001.0_x64__8wekyb3d8bbwe IsFramework : True PackageFamilyName : Microsoft.UI.Xaml.2.4_8wekyb3d8bbwe PublisherId : 8wekyb3d8bbwe IsResourcePackage : False IsBundle : False IsDevelopmentMode : False NonRemovable : False IsPartiallyStaged : False SignatureKind : Store Status : Ok Name : Microsoft.UI.Xaml.2.4 Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US Architecture : X86 ResourceId : Version : 2.42007.9001.0 PackageFullName : Microsoft.UI.Xaml.2.4_2.42007.9001.0_x86__8wekyb3d8bbwe InstallLocation : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.4_2.42007.9001.0_x86__8wekyb3d8bbwe IsFramework : True PackageFamilyName : Microsoft.UI.Xaml.2.4_8wekyb3d8bbwe PublisherId : 8wekyb3d8bbwe IsResourcePackage : False IsBundle : False IsDevelopmentMode : False NonRemovable : False IsPartiallyStaged : False SignatureKind : Store Status : Ok Name : Microsoft.UI.Xaml.2.5 Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US Architecture : X86 ResourceId : Version : 2.52012.2002.0 PackageFullName : Microsoft.UI.Xaml.2.5_2.52012.2002.0_x86__8wekyb3d8bbwe InstallLocation : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.5_2.52012.2002.0_x86__8wekyb3d8bbwe IsFramework : True PackageFamilyName : Microsoft.UI.Xaml.2.5_8wekyb3d8bbwe PublisherId : 8wekyb3d8bbwe IsResourcePackage : False IsBundle : False IsDevelopmentMode : False NonRemovable : False IsPartiallyStaged : False SignatureKind : Store Status : Ok Name : Microsoft.UI.Xaml.2.5 Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US Architecture : X64 ResourceId : Version : 2.52012.2002.0 PackageFullName : Microsoft.UI.Xaml.2.5_2.52012.2002.0_x64__8wekyb3d8bbwe InstallLocation : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.5_2.52012.2002.0_x64__8wekyb3d8bbwe IsFramework : True PackageFamilyName : Microsoft.UI.Xaml.2.5_8wekyb3d8bbwe PublisherId : 8wekyb3d8bbwe IsResourcePackage : False IsBundle : False IsDevelopmentMode : False NonRemovable : False IsPartiallyStaged : False SignatureKind : Store Status : Ok Name : Microsoft.UI.Xaml.2.6 Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US Architecture : X64 ResourceId : Version : 2.62112.3002.0 PackageFullName : Microsoft.UI.Xaml.2.6_2.62112.3002.0_x64__8wekyb3d8bbwe InstallLocation : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.6_2.62112.3002.0_x64__8wekyb3d8bbwe IsFramework : True PackageFamilyName : Microsoft.UI.Xaml.2.6_8wekyb3d8bbwe PublisherId : 8wekyb3d8bbwe IsResourcePackage : False IsBundle : False IsDevelopmentMode : False NonRemovable : False IsPartiallyStaged : False SignatureKind : Store Status : Ok Name : Microsoft.UI.Xaml.2.6 Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US Architecture : X86 ResourceId : Version : 2.62112.3002.0 PackageFullName : Microsoft.UI.Xaml.2.6_2.62112.3002.0_x86__8wekyb3d8bbwe InstallLocation : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.6_2.62112.3002.0_x86__8wekyb3d8bbwe IsFramework : True PackageFamilyName : Microsoft.UI.Xaml.2.6_8wekyb3d8bbwe PublisherId : 8wekyb3d8bbwe IsResourcePackage : False IsBundle : False IsDevelopmentMode : False NonRemovable : False IsPartiallyStaged : False SignatureKind : Store Status : Ok Name : Microsoft.UI.Xaml.2.7 Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US Architecture : X64 ResourceId : Version : 7.2208.15002.0 PackageFullName : Microsoft.UI.Xaml.2.7_7.2208.15002.0_x64__8wekyb3d8bbwe InstallLocation : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.7_7.2208.15002.0_x64__8wekyb3d8bbwe IsFramework : True PackageFamilyName : Microsoft.UI.Xaml.2.7_8wekyb3d8bbwe PublisherId : 8wekyb3d8bbwe IsResourcePackage : False IsBundle : False IsDevelopmentMode : False NonRemovable : False IsPartiallyStaged : False SignatureKind : Store Status : Ok Name : Microsoft.UI.Xaml.2.7 Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US Architecture : X86 ResourceId : Version : 7.2208.15002.0 PackageFullName : Microsoft.UI.Xaml.2.7_7.2208.15002.0_x86__8wekyb3d8bbwe InstallLocation : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.7_7.2208.15002.0_x86__8wekyb3d8bbwe IsFramework : True PackageFamilyName : Microsoft.UI.Xaml.2.7_8wekyb3d8bbwe PublisherId : 8wekyb3d8bbwe IsResourcePackage : False IsBundle : False IsDevelopmentMode : False NonRemovable : False IsPartiallyStaged : False SignatureKind : Store Status : Ok Name : Microsoft.UI.Xaml.2.8 Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US Architecture : X64 ResourceId : Version : 8.2306.22001.0 PackageFullName : Microsoft.UI.Xaml.2.8_8.2306.22001.0_x64__8wekyb3d8bbwe InstallLocation : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.8_8.2306.22001.0_x64__8wekyb3d8bbwe IsFramework : True PackageFamilyName : Microsoft.UI.Xaml.2.8_8wekyb3d8bbwe PublisherId : 8wekyb3d8bbwe IsResourcePackage : False IsBundle : False IsDevelopmentMode : False NonRemovable : False IsPartiallyStaged : False SignatureKind : Store Status : Ok Name : Microsoft.UI.Xaml.2.8 Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US Architecture : X86 ResourceId : Version : 8.2306.22001.0 PackageFullName : Microsoft.UI.Xaml.2.8_8.2306.22001.0_x86__8wekyb3d8bbwe InstallLocation : C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.8_8.2306.22001.0_x86__8wekyb3d8bbwe IsFramework : True PackageFamilyName : Microsoft.UI.Xaml.2.8_8wekyb3d8bbwe PublisherId : 8wekyb3d8bbwe IsResourcePackage : False IsBundle : False IsDevelopmentMode : False NonRemovable : False IsPartiallyStaged : False SignatureKind : Store Status : Ok ---------------------------------------- HKEY_CURRENT_USER\Software\Classes\AppX4j5v7692qeayhwcg2qhwgwbcdyrpwsc0 -> e[31mMicrosoft.PPIProjection_10.0.18362.449_neutral_neutral_cw5n1h2txyewye[m wasn't found HKEY_CURRENT_USER\Software\Classes\AppX85jqyztr8fqc6b7sw64y2mjjrnx59njs -> e[31mInputApp_1000.18362.449.0_neutral_neutral_cw5n1h2txyewye[m wasn't found HKEY_CURRENT_USER\Software\Classes\AppXa5q0sm6rab4bbk8faqwhapj4mvw0n9ek -> e[31mMicrosoft.PPIProjection_10.0.18362.449_neutral_neutral_cw5n1h2txyewye[m wasn't found HKEY_CURRENT_USER\Software\Classes\AppXb6t8194632yvzp2fm989q0bfn7x48r84 -> e[31mMicrosoft.Windows.Cortana_1.13.0.18362_neutral_neutral_cw5n1h2txyewye[m wasn't found HKEY_CURRENT_USER\Software\Classes\AppXe8d7fy32jcm7fkx8p2wzxa43pep36805 -> e[31mMicrosoft.Windows.ShellExperienceHost_10.0.18362.449_neutral_neutral_cw5n1h2txyewye[m wasn't found HKEY_CURRENT_USER\Software\Classes\AppXnyyfqebxgk8p4scs5cx21tngqn4hwcsq -> e[31mMicrosoft.Windows.Cortana_1.13.0.18362_neutral_neutral_cw5n1h2txyewye[m wasn't found ---------------------------------------- Summary: These we couldn't find Key : HKEY_CURRENT_USER\Software\Classes\AppX4j5v7692qeayhwcg2qhwgwbcdyrpwsc0 PackageId : Microsoft.PPIProjection_10.0.18362.449_neutral_neutral_cw5n1h2txyewy Key : HKEY_CURRENT_USER\Software\Classes\AppX85jqyztr8fqc6b7sw64y2mjjrnx59njs PackageId : InputApp_1000.18362.449.0_neutral_neutral_cw5n1h2txyewy Key : HKEY_CURRENT_USER\Software\Classes\AppXa5q0sm6rab4bbk8faqwhapj4mvw0n9ek PackageId : Microsoft.PPIProjection_10.0.18362.449_neutral_neutral_cw5n1h2txyewy Key : HKEY_CURRENT_USER\Software\Classes\AppXb6t8194632yvzp2fm989q0bfn7x48r84 PackageId : Microsoft.Windows.Cortana_1.13.0.18362_neutral_neutral_cw5n1h2txyewy Key : HKEY_CURRENT_USER\Software\Classes\AppXe8d7fy32jcm7fkx8p2wzxa43pep36805 PackageId : Microsoft.Windows.ShellExperienceHost_10.0.18362.449_neutral_neutral_cw5n1h2txyewy Key : HKEY_CURRENT_USER\Software\Classes\AppXnyyfqebxgk8p4scs5cx21tngqn4hwcsq PackageId : Microsoft.Windows.Cortana_1.13.0.18362_neutral_neutral_cw5n1h2txyewy PS D:\temp\444> ```
Author
Owner

@o-sdn-o commented on GitHub (Sep 7, 2023):

MUX 2.8 (if I understood correctly) came to my system with some recent updates. I didn't install it specifically. It wasn't there in the spring (April'23).

This seems to be an update from June'2023: .2306.<->Microsoft.UI.Xaml.2.8_8.2306.22001.0_x86__8wekyb3d8bbwe

@o-sdn-o commented on GitHub (Sep 7, 2023): MUX 2.8 (if I understood correctly) came to my system with some recent updates. I didn't install it specifically. It wasn't there in the spring (April'23). This seems to be an update from June'2023: `.2306.`<->`Microsoft.UI.Xaml.2.8_8.2306.22001.0_x86__8wekyb3d8bbwe`
Author
Owner

@o-sdn-o commented on GitHub (Sep 8, 2023):

FYI, the script does not work on my system in pwsh without additional imports (e.g., Import-Module -Name Appx -UseWindowsPowerShell, Details: https://github.com/PowerShell/PowerShell/issues/13138):

PowerShell 7.3.6

PS D:\temp\444> .\test_wt.ps1
Get-AppxPackage: D:\temp\444\test_wt.ps1:2
Line |
   2 |  $allPackages = Get-AppxPackage
     |                 ~~~~~~~~~~~~~~~
     | The 'Get-AppxPackage' command was found in the module 'Appx', but the module could not be loaded due to the following
     | error: [Operation is not supported on this platform. (0x80131539)] For more information, run 'Import-Module Appx'.
----------------------------------------

PS D:\temp\444> Import-Module Appx
Import-Module: Operation is not supported on this platform. (0x80131539)
@o-sdn-o commented on GitHub (Sep 8, 2023): FYI, the script does not work on my system in `pwsh` without additional imports (e.g., `Import-Module -Name Appx -UseWindowsPowerShell`, Details: https://github.com/PowerShell/PowerShell/issues/13138): ``` PowerShell 7.3.6 PS D:\temp\444> .\test_wt.ps1 Get-AppxPackage: D:\temp\444\test_wt.ps1:2 Line | 2 | $allPackages = Get-AppxPackage | ~~~~~~~~~~~~~~~ | The 'Get-AppxPackage' command was found in the module 'Appx', but the module could not be loaded due to the following | error: [Operation is not supported on this platform. (0x80131539)] For more information, run 'Import-Module Appx'. ---------------------------------------- PS D:\temp\444> Import-Module Appx Import-Module: Operation is not supported on this platform. (0x80131539) ```
Author
Owner

@zadjii-msft commented on GitHub (Feb 7, 2024):

Hey folks in this thread - is this still happening/? Weird that we got like, a lot of reports of this right after the original 1.19pre/1.18 releases, and then like, none after that. And seemingly none for the 1.20pre/1.19 release.

I'm wondering if it was in fact, just a torn state on the MUX package, that maybe got resolved by the OS in the meantime?

@zadjii-msft commented on GitHub (Feb 7, 2024): Hey folks in this thread - is this still happening/? Weird that we got like, a lot of reports of this right after the original 1.19pre/1.18 releases, and then like, none after that. And seemingly none for the 1.20pre/1.19 release. I'm wondering if it was in fact, just a torn state on the MUX package, that maybe got resolved by the OS in the meantime?
Author
Owner

@o-sdn-o commented on GitHub (Feb 7, 2024):

is this still happening/?

Looks like this was resolved by the OS and doesn't happen anymore.

@o-sdn-o commented on GitHub (Feb 7, 2024): > is this still happening/? Looks like this was resolved by the OS and doesn't happen anymore.
Author
Owner

@fourpastmidnight commented on GitHub (Feb 7, 2024):

It happened to me a few weeks ago. But then I had a thought. I had recently rebooted and hadn't started up any WSL session yet. Maybe the underlying VM was slow to boot/become ready? So I closed the non-working Ubuntu terminal tab and opened a new one. It came right up with no issues. 😕 But at least it worked! 🙂

@fourpastmidnight commented on GitHub (Feb 7, 2024): It happened to me a few weeks ago. But then I had a thought. I had recently rebooted and hadn't started up any WSL session yet. Maybe the underlying VM was slow to boot/become ready? So I closed the non-working Ubuntu terminal tab and opened a new one. It came right up with no issues. 😕 But at least it worked! 🙂
Author
Owner

@zadjii-msft commented on GitHub (Feb 7, 2024):

Well, I'm gonna close this out then. Undoubtably, we'll get some reports in the future about weird torn packaging state crashes again, but I'm not sure there's much we can do on our side to mitigate them 🤷

@zadjii-msft commented on GitHub (Feb 7, 2024): Well, I'm gonna close this out then. Undoubtably, we'll get some reports in the future about weird torn packaging state crashes again, but I'm not sure there's much we can do on our side to mitigate them 🤷
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20119