microsoft / microsoft/microsoft-ui-xaml

Crash when using MenuBar

Open
#10,174 4 comments 0 reactions 0 assignees View on GitHub
bug needs-triage
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Describe the bug

A bit of background... I've been working on improving the [Python bindings for WinRT](https://github.com/pywinrt/pywinrt). So I first noticed this bug there. But I've made a minimal reproducible test case using just C++.

The problem is that we get a hard crash with no stack track when trying to add a `MenuBar` and display it. This makes the issue very difficult to debug.

### Steps to reproduce the bug

1. Build and run https://github.com/dlech/ConsoleApplication1

### Expected behavior

The app should not crash. Preferably, it should just work. Or if additional configuration is required, it should fail gracefully with a useful error message instead of a hard crash.

### Screenshots

![Image](https://github.com/user-attachments/assets/83b8d21f-f662-4677-9b9d-8735cc017126)

```
Unhandled exception at 0x00007FFAAABAA270 (Microsoft.ui.xaml.dll) in ConsoleApplication1.exe: 0xC000027B: An application-internal exception has occurred (parameters: 0x000001A56819CC40, 0x0000000000000003).
```

### NuGet package version

WinUI 3 - Windows App SDK 1.6.2: 1.6.241106002

### Windows version

Windows 11 (22H2): Build 22621

### Additional context

Visual Studio Output

'ConsoleApplication1.exe' (Win32): Loaded 'C:\Users\extra\source\repos\ConsoleApplication1\ARM64\Debug\ConsoleApplication1.exe'. Symbols loaded.

'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Users\extra\source\repos\ConsoleApplication1\ARM64\Debug\Microsoft.WindowsAppRuntime.Bootstrap.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\msvcp140d.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140d.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbased.dll'. Symbols loaded.
The thread 22660 has exited with code 0 (0x0).
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\uxtheme.dll'. Symbols loaded without source information.
\BuildOutput\Release\ARM64\WindowsAppRuntime_DLL\WindowsAppRuntimeInsights.h(53)\Microsoft.WindowsAppRuntime.Bootstrap.dll!00007FFAFB04D024: (caller: 00007FFAFB04CD24) LogHr(1) tid(82d8) 8007007E The specified module could not be found.
Msg:[Unable to load resource dll. Microsoft.WindowsAppRuntime.Insights.Resource.dll]
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\clbcatq.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\AppXDeploymentClient.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\Windows.ApplicationModel.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\Windows.StateRepositoryCore.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\twinui.appcore.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\OneCoreUAPCommonProxyStub.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\daxexec.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\container.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\usermgrcli.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\Windows.StateRepositoryClient.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\Windows.StateRepositoryPS.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\LicenseManagerApi.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\capauthz.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\ntmarta.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\propsys.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\Windows.FileExplorer.Common.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\Windows.System.Launcher.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Unloaded 'C:\Windows\System32\Windows.System.Launcher.dll'
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\apphelp.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\networkexplorer.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\Windows.System.Launcher.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Unloaded 'C:\Windows\System32\Windows.System.Launcher.dll'
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\edputil.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\Windows.System.Launcher.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Unloaded 'C:\Windows\System32\Windows.System.Launcher.dll'
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\urlmon.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\iertutil.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\srvcli.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\netutils.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\cldapi.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\sspicli.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\OneCoreCommonProxyStub.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\execmodelproxy.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\mpr.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.6_6000.311.13.0_arm64__8wekyb3d8bbwe\Microsoft.WindowsAppRuntime.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\userenv.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\xmllite.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Unloaded 'C:\Windows\System32\powrprof.dll'
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\rometadata.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\romd_arm64.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\umpdc.dll'. Symbols loaded without source information.
onecore\base\appmodel\runtime\src\lookup.cpp(218)\kernelbase.dll!00007FFB25346CF0: (caller: 00007FFB25346DA0) ReturnHr(1) tid(82d8) 8007007A The data area passed to a system call is too small.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.6_6000.311.13.0_arm64__8wekyb3d8bbwe\Microsoft.ui.xaml.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.6_6000.311.13.0_arm64__8wekyb3d8bbwe\CoreMessagingXP.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\DWrite.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.6_6000.311.13.0_arm64__8wekyb3d8bbwe\Microsoft.UI.Windowing.Core.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.6_6000.311.13.0_arm64__8wekyb3d8bbwe\Microsoft.Internal.FrameworkUdk.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\d3d11.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\d2d1.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\BCP47Langs.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\CoreMessaging.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\dxgi.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\dcomp.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\Microsoft.Internal.WarpPal.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\Microsoft.Internal.FrameworkUdk.System.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.6_6000.311.13.0_arm64__8wekyb3d8bbwe\Microsoft.WindowsAppRuntime.Insights.Resource.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\directxdatabasehelper.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\DXCore.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Unloaded 'C:\Windows\System32\DXCore.dll'
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\twinapi.appcore.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\Windows.UI.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\DXCore.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\ResourcePolicyClient.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\Windows.UI.Immersive.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Unloaded 'C:\Windows\System32\ResourcePolicyClient.dll'
onecore\base\appmodel\runtime\src\lookup.cpp(218)\kernelbase.dll!00007FFB25346CF0: (caller: 00007FFB25346DD8) ReturnHr(2) tid(81d4) 8007007A The data area passed to a system call is too small.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\qcdx8380.inf_arm64_063dd02d406e6685\qcdx11arm64xum.dll'.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\qcdx8380.inf_arm64_063dd02d406e6685\qcegparm64x.dll'.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.6_6000.311.13.0_arm64__8wekyb3d8bbwe\Microsoft.Windows.ApplicationModel.Resources.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\BCP47mrm.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.6_6000.311.13.0_arm64__8wekyb3d8bbwe\MRM.dll'. Symbols loaded.
onecoreuap\windows\frameworkudk\mrtcore.cpp(388)\Microsoft.Internal.FrameworkUdk.System.dll!00007FFADEC12A54: (caller: 00007FFA6F8FB490) ReturnHr(1) tid(82d8) 80073D54 The process has no package identity.
'ConsoleApplication1.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\qcdx8380.inf_arm64_063dd02d406e6685\qcegparm64x.dll'
Exception thrown at 0x00007FFB25396278 (KernelBase.dll) in ConsoleApplication1.exe: WinRT originate error - 0x8007007A : 'The data area passed to a system call is too small.'.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'. Symbols loaded without source information.
C:\__w\1\s\dev\DynamicDependency\API\PackageGraphManager.cpp(234)\Microsoft.WindowsAppRuntime.dll!00007FFAC266933C: (caller: 00007FFAC265E3D4) ReturnHr(1) tid(82d8) 8007007A The data area passed to a system call is too small.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\qcdx8380.inf_arm64_063dd02d406e6685\qcgpuarm64xcompilercore.DLL'.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Globalization.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\cryptbase.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.6_6000.311.13.0_arm64__8wekyb3d8bbwe\dcompi.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.6_6000.311.13.0_arm64__8wekyb3d8bbwe\Microsoft.UI.Composition.OSSupport.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.6_6000.311.13.0_arm64__8wekyb3d8bbwe\marshal.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.6_6000.311.13.0_arm64__8wekyb3d8bbwe\dwmcorei.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\D3DCompiler_47.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.6_6000.311.13.0_arm64__8wekyb3d8bbwe\Microsoft.InputStateManager.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\cryptsp.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.6_6000.311.13.0_arm64__8wekyb3d8bbwe\Microsoft.UI.Input.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\D3DSCache.dll'. Symbols loaded without source information.
onecore\internal\sdk\inc\wil/resource.h(955)\dwmcorei.dll!00007FFA5D99FDD8: (caller: 00007FFA5D9A747C) ReturnNt(1) tid(1cec) C0000022 'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\msctf.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\TextShaping.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.6_6000.311.13.0_arm64__8wekyb3d8bbwe\Microsoft.UI.Windowing.dll'. Symbols loaded without source information.
The thread 33236 has exited with code 0 (0x0).
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\UIAutomationCore.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\DataExchange.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.6_6000.311.13.0_arm64__8wekyb3d8bbwe\Microsoft.UI.Xaml.Controls.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\TextInputFramework.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\dwmapi.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\ApplicationTargetedFeatureDatabase.dll'. Symbols loaded without source information.
The thread 'ShellHandwriting Delegate Thread' (31952) has exited with code 0 (0x0).
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\InputHost.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\XamlDiagnostics\arm64\WinUI3\Microsoft.VisualStudio.DesignTools.WinUITap.dll'. Symbols loaded without source information.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\psapi.dll'. Symbols loaded without source information.
Microsoft.UI.Xaml.dll!00007FF9F920EA58: 80070057 - E_INVALIDARG
Microsoft.UI.Xaml.dll!00007FF9F920EA58: 80070057 - E_INVALIDARG
Microsoft.UI.Xaml.dll!00007FF9F920EA58: 80070057 - E_INVALIDARG
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.6_6000.311.13.0_arm64__8wekyb3d8bbwe\Microsoft.DirectManipulation.dll'. Symbols loaded without source information.
onecoreuap\windows\frameworkudk\warppal.cpp(783)\Microsoft.Internal.WarpPal.dll!00007FFB1826E74C: (caller: 00007FFADECBF1B0) ReturnHr(1) tid(82d8) 80004002 No such interface supported
onecoreuap\windows\frameworkudk\warppal.cpp(783)\Microsoft.Internal.WarpPal.dll!00007FFB1826E74C: (caller: 00007FFADECBF1B0) ReturnHr(2) tid(82d8) 80004002 No such interface supported
Exception thrown at 0x00007FFB25396278 (KernelBase.dll) in ConsoleApplication1.exe: WinRT originate error - 0x80004005 : 'Cannot find a Resource with the Name/Key TabViewScrollButtonBackground'.
Exception thrown at 0x00007FFB25396278 (KernelBase.dll) in ConsoleApplication1.exe: WinRT originate error - 0x802B000A : 'Cannot find a Resource with the Name/Key TabViewScrollButtonBackground [Line: 0 Position: 0]'.
Microsoft.UI.Xaml.dll!00007FF9F923B530: 80004005 - Unspecified error
/Microsoft.UI.Xaml/Themes/generic.xaml
Beginning search for resource with key 'TabViewScrollButtonBackground'.
Searching dictionary '' for resource with key 'TabViewScrollButtonBackground'.
Searching dictionary 'Framework-defined colors' for resource with key 'TabViewScrollButtonBackground'.
Finished searching dictionary 'Framework-defined colors'.
Searching dictionary 'Framework ThemeResources.xbf' for resource with key 'TabViewScrollButtonBackground'.
Searching theme dictionary (active theme: 'Dark') for resource with key 'TabViewScrollButtonBackground'.
Searching dictionary '' for resource with key 'TabViewScrollButtonBackground'.
Finished searching dictionary ''.
Finished searching theme dictionary (active theme: 'Dark').
Finished searching dictionary 'Framework ThemeResources.xbf'.
Finished searching dictionary ''.
Searching dictionary '' for resource with key 'TabViewScrollButtonBackground'.
Finished searching dictionary ''.
Finished search for resource with key 'TabViewScrollButtonBackground'.
Exception thrown at 0x00007FFB25396278 (KernelBase.dll) in ConsoleApplication1.exe: WinRT originate error - 0x80004005 : 'Cannot find a Resource with the Name/Key TabViewButtonBackground'.
Exception thrown at 0x00007FFB25396278 (KernelBase.dll) in ConsoleApplication1.exe: WinRT originate error - 0x802B000A : 'Cannot find a Resource with the Name/Key TabViewScrollButtonBackground [Line: 0 Position: 0]'.
Microsoft.UI.Xaml.dll!00007FF9F923B530: 80004005 - Unspecified error
/Microsoft.UI.Xaml/Themes/generic.xaml
Beginning search for resource with key 'TabViewButtonBackground'.
Searching dictionary '' for resource with key 'TabViewButtonBackground'.
Searching dictionary 'Framework-defined colors' for resource with key 'TabViewButtonBackground'.
Finished searching dictionary 'Framework-defined colors'.
Searching dictionary 'Framework ThemeResources.xbf' for resource with key 'TabViewButtonBackground'.
Searching theme dictionary (active theme: 'Dark') for resource with key 'TabViewButtonBackground'.
Searching dictionary '' for resource with key 'TabViewButtonBackground'.
Finished searching dictionary ''.
Finished searching theme dictionary (active theme: 'Dark').
Finished searching dictionary 'Framework ThemeResources.xbf'.
Finished searching dictionary ''.
Searching dictionary '' for resource with key 'TabViewButtonBackground'.
Finished searching dictionary ''.
Finished search for resource with key 'TabViewButtonBackground'.
Unhandled exception at 0x00007FF9F88EA270 (Microsoft.ui.xaml.dll) in ConsoleApplication1.exe: 0xC000027B: An application-internal exception has occurred (parameters: 0x000001D3E5BBD860, 0x0000000000000003).

The program '[35600] ConsoleApplication1.exe' has exited with code 0 (0x0).


Contributor guide

Open the contributing guide

Research direction

Start by building and running the linked ConsoleApplication1 minimal reproduction with WinUI 3 Windows App SDK 1.6.2 on Windows 11, then inspect the crash and Visual Studio output when adding and displaying MenuBar. Done means the application no longer hard-crashes, or it reports a useful failure when additional configuration is required.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, frontend
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.