microsoft / microsoft/microsoft-ui-xaml

[Crash] Crash when using Islands with WPF app and MAUI WinUI

Open
#10,698 3 comments 0 reactions 0 assignees View on GitHub
.NET MAUI area-Islands area-Lists Crash help wanted team-Controls
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

I m trying to do some proof of concept of using MAUI in WPF, using XamlIslands. While some simple example work, i have found there a couple of things like loading a ItemTemplate on a ListView that are failing/crashing the app.
I have this repo that loads maui as a submodule, to be easier to debug the maui code,

https://github.com/rmarinho/WpfIslandsApp/tree/use-maui

- if you clone and run the WpfIslandsApp it will see it works, renders buttons and a simple CollectionView but without item template.
- Uncomment this code https://github.com/rmarinho/WpfIslandsApp/blob/use-maui/MauiLib/CustomView.cs#L22 to enable the ItemTemplate, that will make the WinUI ListView use as template a control called ItemContentControl. I can see that when this being inflated and asked to the xamlprovider its not found and making it crash on the arrange method.

use [this ](https://github.com/microsoft/microsoft-ui-xaml/blob/main/docs/debugging_crashes.md)to get analysis of the crash

```

Microsoft (R) Windows Debugger Version 10.0.22000.832 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.

Loading Dump File [C:\Users\rumar\AppData\Local\Temp\CrashDumps\WpfIslandsApp.exe.68752.dmp]
User Mini Dump File with Full Memory: Only application data is available

Symbol search path is: srv*
Executable search path is:
Windows 10 Version 26100 MP (32 procs) Free x64
Product: WinNt, suite: SingleUserTS
Edition build lab: 26100.1.amd64fre.ge_release.240331-1435
Machine Name:
Debug session time: Thu Jul 31 16:52:41.000 2025 (UTC + 1:00)
System Uptime: 21 days 16:18:33.685
Process Uptime: 0 days 0:00:05.000
................................................................
................................................................
..........................................
Loading unloaded module list
....
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(10c90.eb84): Unknown exception - code c000027b (first/second chance not available)
For analysis of this file, run !analyze -v
KERNELBASE!RaiseFailFastException+0x188:
00007ff9`b5b65c68 0f1f440000 nop dword ptr [rax+rax]
0:000> cdb: Reading initial command '.lines; !analyze -v; .ecxr; kP; q'
Line number information will be loaded
*******************************************************************************
* *
* Exception Analysis *
* *
*******************************************************************************

*** WARNING: Unable to verify checksum for WpfIslandsApp.exe
DEBUG_FLR_EXCEPTION_CODE(80004005) and the ".exr -1" ExceptionCode(c000027b) don't match

KEY_VALUES_STRING: 1

Key : Analysis.CPU.mSec
Value: 7108

Key : Analysis.DebugAnalysisManager
Value: Create

Key : Analysis.Elapsed.mSec
Value: 36722

Key : Analysis.Init.CPU.mSec
Value: 906

Key : Analysis.Init.Elapsed.mSec
Value: 6367

Key : Analysis.Memory.CommitPeak.Mb
Value: 421

Key : CLR.Engine
Value: CORECLR

Key : CLR.Version
Value: 8.0.1825.31117

Key : SerializedError
Value: System.Runtime.InteropServices.COMException

Key : Timeline.OS.Boot.DeltaSec
Value: 1873113

Key : Timeline.Process.Start.DeltaSec
Value: 5

Key : WER.OS.Branch
Value: ge_release

Key : WER.OS.Timestamp
Value: 2024-03-31T14:35:00Z

Key : WER.OS.Version
Value: 10.0.26100.1

Key : WER.Process.Version
Value: 1.0.0.0

NTGLOBALFLAG: 0

PROCESS_BAM_CURRENT_THROTTLED: 0

PROCESS_BAM_PREVIOUS_THROTTLED: 0

APPLICATION_VERIFIER_FLAGS: 0

CONTEXT: (.ecxr)
rax=0000004033bed510 rbx=0000004033bedaf0 rcx=0000004033bed510
rdx=0000004033bed9c0 rsi=00007ff9b7b37001 rdi=0000004033bed510
rip=00007ff9b5b65c68 rsp=0000004033bed430 rbp=0000004033bed530
r8=0000000000000000 r9=0000004033bed980 r10=00007ff9b5840000
r11=00007ff9b592d775 r12=ffffffffffffffff r13=0000000000000000
r14=0000000000000001 r15=0000000000000002
iopl=0 nv up ei pl nz na po nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000204
KERNELBASE!RaiseFailFastException+0x188:
00007ff9`b5b65c68 0f1f440000 nop dword ptr [rax+rax]
Resetting default scope

EXCEPTION_RECORD: (.exr -1)
ExceptionAddress: 000001d483c611f5 (Microsoft_UI_Xaml!FailFastWithStowedExceptions+0x0000000000000059)
ExceptionCode: c000027b
ExceptionFlags: 00000001
NumberParameters: 2
Parameter[0]: 000001d488f24a70
Parameter[1]: 0000000000000006

PROCESS_NAME: WpfIslandsApp.exe

ERROR_CODE: (NTSTATUS) 0xc000027b - An application-internal exception has occurred.

EXCEPTION_CODE_STR: 80004005

EXCEPTION_PARAMETER1: 000001d488f24a70

EXCEPTION_PARAMETER2: 0000000000000006

FAULTING_THREAD: ffffffff

STACK_TEXT:
000001d4`88f39f90 00007ff9`b7a07d9f combase!RoOriginateLanguageException+0x5f

STACK_COMMAND: *** Stowed Exception v2 ***; .exr -1; dpp 0x1d488f24a70 L0x6; dt 0x1d488ef1f58 combase!STOWED_EXCEPTION_INFORMATION_V2 -r; dps 0x1d488f39f90 L0x2; *** Nested 'LEO1' @ 0x1D488ECF8C8 ***; *** Invalid Nested Address ***; *** combase!RoOriginate* ***; dt 0x1d488e

FAULTING_SOURCE_LINE: onecore\com\combase\winrt\error\error.cpp

FAULTING_SOURCE_FILE: onecore\com\combase\winrt\error\error.cpp

FAULTING_SOURCE_LINE_NUMBER: 1518

SYMBOL_NAME: combase!RoOriginateLanguageException+5f

MODULE_NAME: combase

IMAGE_NAME: combase.dll

FAILURE_BUCKET_ID: STOWED_EXCEPTION_IRestrictedErrorInfo_TEXT_System.Runtime.InteropServices.COMException_80004005_combase.dll!RoOriginateLanguageException

OS_VERSION: 10.0.26100.1

BUILDLAB_STR: ge_release

OSPLATFORM_TYPE: x64

OSNAME: Windows 10

IMAGE_VERSION: 10.0.26100.4652

FAILURE_ID_HASH: {aded3713-77eb-4de9-d020-4a4a67784d9f}

Followup: MachineOwner
---------

rax=0000004033bed510 rbx=0000004033bedaf0 rcx=0000004033bed510
rdx=0000004033bed9c0 rsi=00007ff9b7b37001 rdi=0000004033bed510
rip=00007ff9b5b65c68 rsp=0000004033bed430 rbp=0000004033bed530
r8=0000000000000000 r9=0000004033bed980 r10=00007ff9b5840000
r11=00007ff9b592d775 r12=ffffffffffffffff r13=0000000000000000
r14=0000000000000001 r15=0000000000000002
iopl=0 nv up ei pl nz na po nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000204
KERNELBASE!RaiseFailFastException+0x188:
00007ff9`b5b65c68 0f1f440000 nop dword ptr [rax+rax]
*** Stack trace for last set context - .thread/.cxr resets it
Child-SP RetAddr Call Site
00000040`33bed430 00007ff9`b7a6d869 KERNELBASE!RaiseFailFastException+0x188
00000040`33beda10 000001d4`83c611f5 combase!RoFailFastWithErrorContextInternal2(
HRESULT hrError = ,
unsigned long cStowedExceptions = ,
struct _STOWED_EXCEPTION_INFORMATION_V2 ** aStowedExceptionPointers = )+0x4a9 [onecore\com\combase\winrt\error\error.cpp @ 1469]
00000040`33bedc30 000001d4`840a003a Microsoft_UI_Xaml!FailFastWithStowedExceptions(
HRESULT hrError = 0x80004005,
unsigned long cStowedExceptions = 5,
struct _STOWED_EXCEPTION_INFORMATION_V2 ** aStowedExceptionPointers = 0x000001d4`88f0e020)+0x59 [C:\__w\1\s\dxaml\xcp\components\base\ErrorContext.cpp @ 1508]
00000040`33bedc60 000001d4`8409f93e Microsoft_UI_Xaml!DirectUI::ErrorHelper::ProcessUnhandledError(
class DirectUI::ErrorInfo * errorInfo = 0x00000040`33bedd00,
bool fSkipFailFastIfNoErrorContext = true,
bool * pfHandled = 0x00000040`33bedce0)+0x102 [C:\__w\1\s\dxaml\xcp\dxaml\lib\ErrorHelper.cpp @ 582]
00000040`33bedcc0 00007ff9`ac373919 Microsoft_UI_Xaml!DirectUI::FinalUnhandledErrorDetectedRegistration::OnFinalUnhandledErrorDetected(
struct IInspectable * pSender = 0x00000000`00000000,
struct ABI::Windows::ApplicationModel::Core::IUnhandledErrorDetectedEventArgs * pArgs = )+0xce [C:\__w\1\s\dxaml\xcp\dxaml\lib\ErrorHelper.cpp @ 913]
00000040`33bedd50 00007ff9`ac373959 twinapi_appcore!Windows::Internal::Details::GitInvokeHelper,Windows::Internal::GitPtr,2>::Invoke+0x59
00000040`33bedd80 00007ff9`ac365407 twinapi_appcore!Windows::ApplicationModel::Core::UnhandledErrorInvokeHelper::Invoke+0x19
00000040`33beddb0 00007ff9`ac352168 twinapi_appcore!Microsoft::WRL::InvokeTraits<2>::InvokeDelegates<,Windows::Foundation::IEventHandler >+0x57
00000040`33beddf0 00007ff9`ac322e99 twinapi_appcore!Microsoft::WRL::EventSource,Microsoft::WRL::InvokeModeOptions<2> >::DoInvoke< >+0x78
00000040`33bede30 00007ff9`ac322c96 twinapi_appcore!Microsoft::WRL::EventSource,Microsoft::WRL::InvokeModeOptions<2> >::InvokeAll+0x29
00000040`33bede80 00007ff9`ac322bb6 twinapi_appcore!Windows::ApplicationModel::Core::CoreApplication::ForwardLocalError+0x76
00000040`33beded0 00007ff9`b7a52575 twinapi_appcore!Windows::ApplicationModel::Core::CoreApplicationFactory::ForwardLocalError+0x116
00000040`33bedf10 000001d4`840a029f combase!CallErrorForwarder(
void * hProcess = 0xffffffff`ffffffff,
int fLocal = 0n1,
struct IRestrictedErrorInfo * pRestrictedErrorInfo = 0x000001d4`88ef1ec8)+0x181 [onecore\com\combase\winrt\error\error.cpp @ 1615]
00000040`33bedfa0 000001d4`83bbe0d5 Microsoft_UI_Xaml!DirectUI::ErrorHelper::ReportUnhandledError(
HRESULT hrError = 0x80004005)+0xd3 [C:\__w\1\s\dxaml\xcp\dxaml\lib\ErrorHelper.cpp @ 475]
(Inline Function) --------`-------- Microsoft_UI_Xaml!AgCoreCallbacks::ReportUnhandledError+0xa [C:\__w\1\s\dxaml\xcp\dxaml\lib\FxCallbacks.cpp @ 520]
(Inline Function) --------`-------- Microsoft_UI_Xaml!FxCallbacks::Error_ReportUnhandledError+0xa [C:\__w\1\s\dxaml\xcp\dxaml\lib\FxCallbacks.cpp @ 901]
(Inline Function) --------`-------- Microsoft_UI_Xaml!CCoreServices::ReportUnhandledError+0xa [C:\__w\1\s\dxaml\xcp\core\dll\xcpcore.cpp @ 4075]
00000040`33bee030 000001d4`8399eda7 Microsoft_UI_Xaml!CXcpDispatcher::Tick+0x2204b5 [C:\__w\1\s\dxaml\xcp\win\shared\xcpwindow.cpp @ 1152]
00000040`33bee080 000001d4`8399e2b1 Microsoft_UI_Xaml!CXcpDispatcher::OnReentrancyProtectedWindowMessage(
unsigned int msg = 0x402,
int64 lParam = 0n0,
unsigned int64 wParam = )+0x22b [C:\__w\1\s\dxaml\xcp\win\shared\xcpwindow.cpp @ 759]
(Inline Function) --------`-------- Microsoft_UI_Xaml!CDeferredInvoke::DispatchQueuedMessage(void)+0x2f [C:\__w\1\s\dxaml\xcp\win\shared\xcpwindow.cpp @ 141]
00000040`33bee110 000001d4`83adb21d Microsoft_UI_Xaml!CXcpDispatcher::MessageTimerCallback(void)+0xe1 [C:\__w\1\s\dxaml\xcp\win\shared\xcpwindow.cpp @ 1254]
(Inline Function) --------`-------- Microsoft_UI_Xaml!CXcpDispatcher::MessageTimerCallbackStatic(void)+0x9 [C:\__w\1\s\dxaml\xcp\win\shared\xcpwindow.cpp @ 1223]
(Inline Function) --------`-------- Microsoft_UI_Xaml!CXcpDispatcher::Init::__l46::::operator()(void)+0x9 [C:\__w\1\s\dxaml\xcp\win\shared\xcpwindow.cpp @ 324]
00000040`33bee160 00007ff9`81b47797 Microsoft_UI_Xaml!Microsoft::WRL::Details::DelegateArgTraits = 0x00007ff9`81acd59e,
struct IInspectable * = 0x00000000`00000000)+0xd [C:\__w\1\s\packages\Microsoft.Windows.SDK.cpp.10.0.22621.755\c\Include\10.0.22621.0\winrt\wrl\event.h @ 354]
00000040`33bee190 00007ff9`81b47581 CoreMessagingXP!Microsoft::WRL::Details::DelegateArgTraits,Microsoft::WRL::InvokeModeOptions<1> >::InvokeAll+0xad
00000040`33bee220 00007ff9`81af0aad CoreMessagingXP!Microsoft::UI::Dispatching::DispatcherQueueTimer::TimerCallback+0x83
00000040`33bee280 00007ff9`81af4b06 CoreMessagingXP!CFlat::SehSafe::Execute< >+0x21
00000040`33bee2b0 00007ff9`81ae0e49 CoreMessagingXP!Microsoft::CoreUI::ActionCallback::ImportAdapter$+0x66
00000040`33bee2f0 00007ff9`81acc930 CoreMessagingXP!Microsoft::CoreUI::Dispatch::TimeoutManager::Callback_OnDispatch+0x1a9
00000040`33bee3b0 00007ff9`81acc69d CoreMessagingXP!Microsoft::CoreUI::Dispatch::Dispatcher::Callback_DispatchNextItem+0x1bc
00000040`33bee450 00007ff9`81abfe6c CoreMessagingXP!Microsoft::CoreUI::Dispatch::Dispatcher::Callback_DispatchLoop+0x1b9
00000040`33bee510 00007ff9`81ac2d12 CoreMessagingXP!Microsoft::CoreUI::Dispatch::EventLoop::Callback_RunCoreLoop+0x164
00000040`33bee570 00007ff9`81ac3088 CoreMessagingXP!Microsoft::CoreUI::Dispatch::UserAdapter::DrainCoreMessagingQueue+0x15a
00000040`33bee630 00007ff9`81b03753 CoreMessagingXP!Microsoft::CoreUI::Dispatch::UserAdapter::OnUserDispatch+0x98
00000040`33bee680 00007ff9`81b038e6 CoreMessagingXP!Microsoft::CoreUI::Dispatch::UserAdapter::DoWork+0xa7
00000040`33bee6e0 00007ff9`81b03e5e CoreMessagingXP!Microsoft::CoreUI::Dispatch::UserAdapter::HandleDispatchNotifyMessage+0x132
00000040`33bee740 00007ff9`b71381d6 CoreMessagingXP!Microsoft::CoreUI::Dispatch::UserAdapter::WindowProc+0x5e
00000040`33bee770 00007ff9`b7137a5c user32!UserCallWinProcCheckWow+0x356
00000040`33bee8d0 00007ff9`b7168eb3 user32!DispatchClientMessage+0x9c
00000040`33bee930 00007ff9`b8625df4 user32!_fnDWORD+0x33
00000040`33bee990 00007ff9`b6021324 ntdll!KiUserCallbackDispatcherContinue
00000040`33beea18 00007ff9`b7160322 win32u!NtUserGetMessage+0x14
00000040`33beea20 00007ff9`b8367d00 user32!GetMessageW+0x22
00000040`33beea80 00007ff9`482dad17 msctf!CThreadInputMgr::GetMessageW+0x40
00000040`33beeab0 00007ff9`24cbb33a 0x00007ff9`482dad17
00000040`33beebb0 00007ff9`24cbb188 WindowsBase!System.Boolean System.Windows.Threading.Dispatcher::GetMessage+0xba
00000040`33beec50 00007ff8`9b9d9eed WindowsBase!System.Windows.Threading.Dispatcher::PushFrameImpl+0x88
00000040`33beece0 00007ff8`9b9d872b PresentationFramework!System.Object System.Windows.Application::RunDispatcher+0x1d
00000040`33beed20 00007ff9`46903a61 PresentationFramework!System.Int32 System.Windows.Application::RunInternal+0x14b
00000040`33beed80 00007ff9`a64707b3 0x00007ff9`46903a61
00000040`33beedd0 00007ff9`a631635d coreclr!CallDescrWorkerInternal(void)+0x83 [D:\a\_work\1\s\src\coreclr\vm\amd64\CallDescrWorkerAMD64.asm @ 100]
(Inline Function) --------`-------- coreclr!CallDescrWorkerWithHandler(void)+0x5a [D:\a\_work\1\s\src\coreclr\vm\callhelpers.cpp @ 67]
00000040`33beee10 00007ff9`a6392203 coreclr!MethodDescCallSite::CallTargetWorker(
unsigned int64 * pArguments = 0x00000040`33bef078,
unsigned int64 * pReturnValue = 0x00000000`00000000,
int cbReturnValue = 0n0)+0x249 [D:\a\_work\1\s\src\coreclr\vm\callhelpers.cpp @ 570]
(Inline Function) --------`-------- coreclr!MethodDescCallSite::Call(void)+0xb [D:\a\_work\1\s\src\coreclr\vm\callhelpers.h @ 458]
00000040`33beef50 00007ff9`a6392bb4 coreclr!RunMainInternal(
struct Param * pParam = 0x00000040`33bef0c0)+0x11f [D:\a\_work\1\s\src\coreclr\vm\assembly.cpp @ 1304]
00000040`33bef070 00007ff9`a6392741 coreclr!RunMain(
class MethodDesc * pFD = 0x00007ff9`46a86728,
int * piRetVal = 0x00000040`33bef140,
class PtrArray ** stringArgs = 0x00000040`33bef3f8,
short numSkipArgs = )+0xe0 [D:\a\_work\1\s\src\coreclr\vm\assembly.cpp @ 1375]
00000040`33bef100 00007ff9`a6392ee6 coreclr!Assembly::ExecuteMainMethod(
class PtrArray ** stringArgs = 0x00000040`33bef3f8,
int waitForOtherThreads = )+0x1b5 [D:\a\_work\1\s\src\coreclr\vm\assembly.cpp @ 1504]
00000040`33bef3d0 00007ff9`a644db1e coreclr!CorHost2::ExecuteAssembly(
unsigned long dwAppDomainId = ,
wchar_t * pwzAssemblyPath = 0x000001d4`ee5b58e0 "Q:\repos\rmarinho\WpfIslandsApp\WpfIslandsApp\bin\Debug\net8.0-windows10.0.26100.0\WpfIslandsApp.dll",
int argc = 0n0,
wchar_t ** argv = 0x00000000`00000000,
unsigned long * pReturnValue = 0x00000040`33bef5c4)+0x246 [D:\a\_work\1\s\src\coreclr\vm\corhost.cpp @ 350]
00000040`33bef4e0 00007ff9`a7e622ab coreclr!coreclr_execute_assembly(
void * hostHandle = 0x000001d4`f0022ee0,
unsigned int domainId = 1,
int argc = 0n0,
char ** argv = ,
char * managedAssemblyPath = 0x000001d4`ee541880 "Q:\repos\rmarinho\WpfIslandsApp\WpfIslandsApp\bin\Debug\net8.0-windows10.0.26100.0\WpfIslandsApp.dll",
unsigned int * exitCode = 0x00000040`33bef5c4)+0xde [D:\a\_work\1\s\src\coreclr\dlls\mscoree\exports.cpp @ 504]
(Inline Function) --------`-------- hostpolicy!coreclr_t::execute_assembly(
char * managed_assembly_path = )+0x29 [D:\a\_work\1\s\src\native\corehost\hostpolicy\coreclr.cpp @ 109]
00000040`33bef580 00007ff9`a7e6258c hostpolicy!run_app_for_context(
struct hostpolicy_context_t * context = 0x000001d4`ee4f50d0,
int argc = 0n0,
wchar_t ** argv = )+0x68b [D:\a\_work\1\s\src\native\corehost\hostpolicy\hostpolicy.cpp @ 256]
00000040`33bef6b0 00007ff9`a7e62ec3 hostpolicy!run_app(
int argc = 0n0,
wchar_t ** argv = 0x000001d4`ee4df3a8)+0x3c [D:\a\_work\1\s\src\native\corehost\hostpolicy\hostpolicy.cpp @ 285]
00000040`33bef6f0 00007ff9`3cf9e02b hostpolicy!corehost_main(
int argc = 0n1,
wchar_t ** argv = 0x000001d4`ee4df3a0)+0x163 [D:\a\_work\1\s\src\native\corehost\hostpolicy\hostpolicy.cpp @ 426]
00000040`33bef7f0 00007ff9`3cfa08cc hostfxr!execute_app(
class std::basic_string,std::allocator > * impl_dll_dir = ,
class corehost_init_t * init = 0x000001d4`ee4f33a0,
int argc = 0n1,
wchar_t ** argv = 0x000001d4`ee4df3a0)+0x2bb [D:\a\_work\1\s\src\runtime\src\native\corehost\fxr\fx_muxer.cpp @ 146]
00000040`33bef880 00007ff9`3cfa2ca6 hostfxr!`anonymous namespace'::read_config_and_execute(
class std::basic_string,std::allocator > * host_command = 0x00000040`33befba0 "",
struct host_startup_info_t * host_info = ,
class std::basic_string,std::allocator > * app_candidate = ,
class std::unordered_map,std::allocator >,std::allocator,std::allocator > > >,known_options_hash,std::equal_to,std::allocator,std::allocator >,std::allocator,std::allocator > > > > > > * opts = ,
int new_argc = 0n1,
wchar_t ** new_argv = 0x000001d4`ee4df3a0,
host_mode_t mode = apphost (0n2),
bool is_sdk_command = false,
wchar_t * out_buffer = 0x00000000`00000000 "",
int buffer_size = 0n0,
int * required_buffer_size = 0x00000000`00000000)+0xac [D:\a\_work\1\s\src\runtime\src\native\corehost\fxr\fx_muxer.cpp @ 533]
00000040`33bef980 00007ff9`3cfa0dcd hostfxr!fx_muxer_t::handle_exec_host_command(
class std::basic_string,std::allocator > * host_command = 0x00000040`33befba0 "",
struct host_startup_info_t * host_info = 0x00000040`33befbc0,
class std::basic_string,std::allocator > * app_candidate = 0x00000040`33befae8 "Q:\repos\rmarinho\WpfIslandsApp\WpfIslandsApp\bin\Debug\net8.0-windows10.0.26100.0\WpfIslandsApp.dll",
class std::unordered_map,std::allocator >,std::allocator,std::allocator > > >,known_options_hash,std::equal_to,std::allocator,std::allocator >,std::allocator,std::allocator > > > > > > * opts = 0x00000040`33befaa0 { size=0x0 },
int argc = 0n1,
wchar_t ** argv = 0x000001d4`ee4df3a0,
int argoff = 0n1,
host_mode_t mode = apphost (0n2),
bool is_sdk_command = false,
wchar_t * result_buffer = 0x00000000`00000000 "",
int buffer_size = 0n0,
int * required_buffer_size = 0x00000000`00000000)+0x1d6 [D:\a\_work\1\s\src\runtime\src\native\corehost\fxr\fx_muxer.cpp @ 1008]
00000040`33befa30 00007ff9`3cf984e8 hostfxr!fx_muxer_t::execute(
class std::basic_string,std::allocator > * host_command = 0x00000040`33befba0 "",
int argc = 0n1,
wchar_t ** argv = 0x000001d4`ee4df3a0,
struct host_startup_info_t * host_info = 0x00000040`33befbc0,
wchar_t * result_buffer = 0x00000000`00000000 "",
int buffer_size = 0n0,
int * required_buffer_size = 0x00000000`00000000)+0x2ad [D:\a\_work\1\s\src\runtime\src\native\corehost\fxr\fx_muxer.cpp @ 579]
00000040`33befb60 00007ff6`d2e1fbe1 hostfxr!hostfxr_main_startupinfo(
int argc = 0n1,
wchar_t ** argv = 0x000001d4`ee4df3a0,
wchar_t * host_path = 0x000001d4`ee4d9ad0 "Q:\repos\rmarinho\WpfIslandsApp\WpfIslandsApp\bin\Debug\net8.0-windows10.0.26100.0\WpfIslandsApp.exe",
wchar_t * dotnet_root = 0x000001d4`ee4de930 "C:\Program Files\dotnet\",
wchar_t * app_path = 0x000001d4`ee4e7350 "Q:\repos\rmarinho\WpfIslandsApp\WpfIslandsApp\bin\Debug\net8.0-windows10.0.26100.0\WpfIslandsApp.dll")+0xa8 [D:\a\_work\1\s\src\runtime\src\native\corehost\fxr\hostfxr.cpp @ 63]
00000040`33befc60 00007ff6`d2e1fff6 WpfIslandsApp_exe!exe_start(
int argc = 0n1,
wchar_t ** argv = 0x000001d4`ee4df3a0)+0x861 [D:\a\_work\1\s\src\native\corehost\corehost.cpp @ 240]
00000040`33befe10 00007ff6`d2e21698 WpfIslandsApp_exe!wmain(
int argc = 0n1,
wchar_t ** argv = 0x000001d4`ee4df3a0)+0x146 [D:\a\_work\1\s\src\native\corehost\corehost.cpp @ 311]
(Inline Function) --------`-------- WpfIslandsApp_exe!invoke_main(void)+0x22 [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 90]
00000040`33befe80 00007ff9`b773e8d7 WpfIslandsApp_exe!__scrt_common_main_seh(void)+0x10c [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288]
00000040`33befec0 00007ff9`b84fc34c kernel32!BaseThreadInitThunk+0x17
00000040`33befef0 00000000`00000000 ntdll!RtlUserThreadStart+0x2c
quit:
NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\atlmfc.natvis'
NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\ObjectiveC.natvis'
NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\concurrency.natvis'
NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\cpp_rest.natvis'
NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\stl.natvis'
NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\Windows.Data.Json.natvis'
NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\Windows.Devices.Geolocation.natvis'
NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\Windows.Devices.Sensors.natvis'
NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\Windows.Media.natvis'
NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\windows.natvis'
NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\winrt.natvis'
```

Contributor guide

Open the contributing guide

Research direction

Clone the WpfIslandsApp repository on the use-maui branch and run the working reproduction first. Then uncomment MauiLib/CustomView.cs at line 22 to enable the ItemTemplate, and use the linked Microsoft UI XAML crash-debugging guidance to inspect the failure; done means the WPF app renders the templated ListView without crashing.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.