Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception Processing Message 0xc0000005 - Unexpected parameters #9981

Open
Larhei opened this issue Sep 12, 2024 · 5 comments
Open

Exception Processing Message 0xc0000005 - Unexpected parameters #9981

Larhei opened this issue Sep 12, 2024 · 5 comments
Labels
area-Images Images, SVG bug Something isn't working team-Rendering Issue for the Rendering team

Comments

@Larhei
Copy link

Larhei commented Sep 12, 2024

Describe the bug

We are developing an App on Windows where we have a WinformsProcess and an MauiProcess running in Fullscreen. We switch between the two UI worlds. From time to time the Maui process gets killed because of a

PopupHostWindow giving us:
Processing Message 0xc0000005 - Unexpected parameters
followed by an other

PopupHostWindow ging us:
Unknown Hard Error

The stacktrace is

 	KernelBase.dll!RaiseFailFastException()	Unknown
 	CoreMessagingXP.dll!CFlat::Abandonment::FailWithException(struct _EXCEPTION_RECORD *,struct _CONTEXT *)	Unknown
 	CoreMessagingXP.dll!CFlat::ExceptionHandling::UnexpectedStructuredExceptionFilter(struct _EXCEPTION_POINTERS *,void *)	Unknown
 	CoreMessagingXP.dll!`Cn::Com::DeferredRelease::Callback_ProcessItems'::`1'::filt$0()	Unknown
 	CoreMessagingXP.dll!__C_specific_handler()	Unknown
 	ntdll.dll!RtlpExecuteHandlerForException()	Unknown
 	ntdll.dll!RtlDispatchException()	Unknown
 	ntdll.dll!KiUserExceptionDispatch()	Unknown
>	Microsoft.ui.xaml.dll!RenderTargetBitmapImplUsingSpriteVisuals::PreCommit(DCompTreeHost * dcompTreeHost, HWTexture * hwTexture, IPALEvent * completionEvent) Line 121	C++
 	Microsoft.ui.xaml.dll!CRenderTargetBitmap::PreCommit(CWindowRenderTarget * renderTarget, IPALEvent * completionEvent) Line 278	C++
 	Microsoft.ui.xaml.dll!CRenderTargetBitmapManager::PreCommit(CWindowRenderTarget * renderTarget) Line 524	C++
 	Microsoft.ui.xaml.dll!CCoreServices::SubmitPrimitiveCompositionCommands(CWindowRenderTarget * pRenderTarget, CUIElement * pVisualRoot, IPALClock * pClock, float rFrameStartTime) Line 6888	C++
 	Microsoft.ui.xaml.dll!CCoreServices::NWDrawTree(HWWalk * pHWWalk, CWindowRenderTarget * pRenderTarget, VisualTree * pVisualTree, bool forceRedraw, bool * pFrameDrawn) Line 6449	C++
 	Microsoft.ui.xaml.dll!CCoreServices::NWDrawMainTree(CWindowRenderTarget * pIRenderTarget, bool forceRedraw, bool * pFrameDrawn) Line 5913	C++
 	Microsoft.ui.xaml.dll!CWindowRenderTarget::Draw(CCoreServices * forceRedraw, bool pFrameDrawn, bool *) Line 129	C++
 	Microsoft.ui.xaml.dll!CXcpBrowserHost::OnTick() Line 339	C++
 	Microsoft.ui.xaml.dll!CXcpDispatcher::Tick() Line 1128	C++
 	Microsoft.ui.xaml.dll!CXcpDispatcher::OnReentrancyProtectedWindowMessage(unsigned int msg, unsigned __int64 lParam, __int64) Line 741	C++
 	Microsoft.ui.xaml.dll!CDeferredInvoke::DispatchQueuedMessage(bool * dispatchedWork, bool * hasMoreWork) Line 147	C++
 	[Inline Frame] Microsoft.ui.xaml.dll!CXcpDispatcher::MessageTimerCallback() Line 1213	C++
 	[Inline Frame] Microsoft.ui.xaml.dll!CXcpDispatcher::MessageTimerCallbackStatic(void * myUserData) Line 1203	C++
 	[Inline Frame] Microsoft.ui.xaml.dll!CXcpDispatcher::Init::__l46::<lambda_1>::operator()(ABI::Microsoft::UI::Dispatching::IDispatcherQueueTimer *) Line 313	C++
 	Microsoft.ui.xaml.dll!Microsoft::WRL::Details::DelegateArgTraits<long (__cdecl ABI::Windows::Foundation::ITypedEventHandler_impl<ABI::Windows::Foundation::Internal::AggregateType<ABI::Microsoft::UI::Dispatching::DispatcherQueueTimer *,ABI::Microsoft::UI::Dispatching::IDispatcherQueueTimer *>,IInspectable *>::*)(ABI::Microsoft::UI::Dispatching::IDispatcherQueueTimer *,IInspectable *)>::DelegateInvokeHelper<Microsoft::WRL::Implements<Microsoft::WRL::RuntimeClassFlags<2>,ABI::Windows::Foundation::ITypedEventHandler<ABI::Microsoft::UI::Dispatching::DispatcherQueueTimer *,IInspectable *>,Microsoft::WRL::FtmBase>,`CXcpDispatcher::Init'::`46'::<lambda_1> &,1,ABI::Microsoft::UI::Dispatching::IDispatcherQueueTimer *,IInspectable *>::Invoke(ABI::Microsoft::UI::Dispatching::IDispatcherQueueTimer * <args_0>, IInspectable * <args_1>) Line 354	C++
 	CoreMessagingXP.dll!Microsoft::WRL::Details::DelegateArgTraits<long ( Windows::Foundation::ITypedEventHandler_impl<struct Windows::Foundation::Internal::AggregateType<class Microsoft::UI::Dispatching::DispatcherQueueTimer *,struct Microsoft::UI::Dispatching::IDispatcherQueueTimer *>,struct IInspectable *>::*)(struct Microsoft::UI::Dispatching::IDispatcherQueueTimer *,struct IInspectable *)>::DelegateInvokeHelper<struct Microsoft::WRL::Implements<struct Microsoft::WRL::RuntimeClassFlags<2>,struct Windows::Foundation::ITypedEventHandler<class Microsoft::UI::Dispatching::DispatcherQueueTimer *,struct IInspectable *>,class Microsoft::WRL::FtmBase>,class <lambda_82cf8073f4f042d1a68771c460cb9f49>,-1,struct Microsoft::UI::Dispatching::IDispatcherQueueTimer *,struct IInspectable *>::Invoke(struct Microsoft::UI::Dispatching::IDispatcherQueueTimer *,struct IInspectable *)	Unknown
 	CoreMessagingXP.dll!Microsoft::WRL::InvokeTraits<-2>::InvokeDelegates<class <lambda_1e854da9c9ccd42f6138c3b007a32877>,struct Windows::Foundation::ITypedEventHandler<class Microsoft::UI::Dispatching::DispatcherQueueTimer *,struct IInspectable *> >(class <lambda_1e854da9c9ccd42f6138c3b007a32877>,class Microsoft::WRL::Details::EventTargetArray *,class Microsoft::WRL::EventSource<struct Windows::Foundation::ITypedEventHandler<class Microsoft::UI::Dispatching::DispatcherQueueTimer *,struct IInspectable *>,struct Microsoft::WRL::InvokeModeOptions<-2> > *)	Unknown
 	CoreMessagingXP.dll!Microsoft::UI::Dispatching::DispatcherQueueTimer::TimerCallback(void *)	Unknown
 	CoreMessagingXP.dll!CFlat::SehSafe::Execute<<lambda_a81ff790741c2a62f2197c2561f5fe49>>()	Unknown
 	CoreMessagingXP.dll!Microsoft::CoreUI::ActionCallback::ImportAdapter$(class CFlat::Box$1<struct CFlat::FunctionPointerAndUserData$1<long (*)(void *)> > *)	Unknown
 	CoreMessagingXP.dll!Microsoft::CoreUI::Dispatch::TimeoutManager::Callback_OnDispatch(void)	Unknown
 	CoreMessagingXP.dll!Microsoft::CoreUI::Dispatch::Dispatcher::Callback_DispatchNextItem(class Microsoft::CoreUI::Dispatch::DispatchItem *)	Unknown
 	CoreMessagingXP.dll!Microsoft::CoreUI::Dispatch::Dispatcher::Callback_DispatchLoop(enum Microsoft::CoreUI::Dispatch::RunnablePriorityMask)	Unknown
 	CoreMessagingXP.dll!Microsoft::CoreUI::Dispatch::EventLoop::Callback_RunCoreLoop(enum Microsoft::CoreUI::Dispatch::RunMode)	Unknown
 	CoreMessagingXP.dll!Microsoft::CoreUI::Dispatch::UserAdapter::DrainCoreMessagingQueue(enum Microsoft::CoreUI::Dispatch::UserAdapter$UserPriority,void * *)	Unknown
 	CoreMessagingXP.dll!Microsoft::CoreUI::Dispatch::UserAdapter::OnUserDispatch(bool,enum Microsoft::CoreUI::Dispatch::UserAdapter$UserPriority,void * *)	Unknown
 	CoreMessagingXP.dll!Microsoft::CoreUI::Dispatch::UserAdapter::DoWork(struct HWND__ *,enum Microsoft::CoreUI::Dispatch::UserAdapter$UserPriority,bool)	Unknown
 	CoreMessagingXP.dll!Microsoft::CoreUI::Dispatch::UserAdapter::HandleDispatchNotifyMessage(struct HWND__ *,unsigned __int64,__int64)	Unknown
 	CoreMessagingXP.dll!Microsoft::CoreUI::Dispatch::UserAdapter::WindowProc(struct HWND__ *,unsigned int,unsigned __int64,__int64)	Unknown
 	user32.dll!UserCallWinProcCheckWow()	Unknown
 	user32.dll!DispatchMessageWorker()	Unknown
 	Microsoft.ui.xaml.dll!DirectUI::FrameworkApplication::RunDesktopWindowMessageLoop() Line 1337	C++
 	Microsoft.ui.xaml.dll!DirectUI::FrameworkApplication::StartDesktop() Line 242	C++
 	[Inline Frame] Microsoft.ui.xaml.dll!DirectUI::FrameworkApplicationFactory::StartImpl(ABI::Microsoft::UI::Xaml::IApplicationInitializationCallback *) Line 183	C++
 	Microsoft.ui.xaml.dll!DirectUI::FrameworkApplicationFactory::Start(ABI::Microsoft::UI::Xaml::IApplicationInitializationCallback * pCallback) Line 831	C++
 	[Managed to Native Transition]	
 	Microsoft.WinUI.dll!ABI.Microsoft.UI.Xaml.IApplicationStaticsMethods.Start(WinRT.IObjectReference _obj, Microsoft.UI.Xaml.ApplicationInitializationCallback callback) Line 18	C#
 	Microsoft.WinUI.dll!Microsoft.UI.Xaml.Application.Start(Microsoft.UI.Xaml.ApplicationInitializationCallback callback) Line 272	C#
 	xxx.dll!xxx.Platforms.Windows.Program.Main(string[] args) Line 32	C#
 	[Native to Managed Transition]	
 	[Inline Frame] hostpolicy.dll!coreclr_t::execute_assembly(int) Line 109	C++
 	hostpolicy.dll!run_app_for_context(const hostpolicy_context_t & context, int argc, const wchar_t * * argv) Line 256	C++
 	hostpolicy.dll!run_app(const int argc, const wchar_t * * argv) Line 285	C++
 	hostpolicy.dll!corehost_main(const int argc, const wchar_t * * argv) Line 426	C++
 	hostfxr.dll!execute_app(const std::wstring & impl_dll_dir, corehost_init_t * init, const int argc, const wchar_t * * argv) Line 145	C++
 	hostfxr.dll!`anonymous namespace'::read_config_and_execute(const std::wstring & host_command, const host_startup_info_t & host_info, const std::wstring & app_candidate, const std::unordered_map<enum known_options,std::vector<std::wstring,std::allocator<std::wstring>>,known_options_hash,std::equal_to<enum known_options>,std::allocator<std::pair<enum known_options const ,std::vector<std::wstring,std::allocator<std::wstring>>>>> & opts, int new_argc, const wchar_t * * new_argv, host_mode_t mode, const bool is_sdk_command, wchar_t * out_buffer, int buffer_size, int * required_buffer_size) Line 532	C++
 	hostfxr.dll!fx_muxer_t::handle_exec_host_command(const std::wstring & host_command, const host_startup_info_t & host_info, const std::wstring & app_candidate, const std::unordered_map<enum known_options,std::vector<std::wstring,std::allocator<std::wstring>>,known_options_hash,std::equal_to<enum known_options>,std::allocator<std::pair<enum known_options const ,std::vector<std::wstring,std::allocator<std::wstring>>>>> & opts, int argc, const wchar_t * * argv, int argoff, host_mode_t mode, const bool is_sdk_command, wchar_t * result_buffer, int buffer_size, int * required_buffer_size) Line 1007	C++
 	hostfxr.dll!fx_muxer_t::execute(const std::wstring host_command, const int argc, const wchar_t * * argv, const host_startup_info_t & host_info, wchar_t * result_buffer, int buffer_size, int * required_buffer_size) Line 578	C++
 	hostfxr.dll!hostfxr_main_startupinfo(const int argc, const wchar_t * * argv, const wchar_t * host_path, const wchar_t * dotnet_root, const wchar_t * app_path) Line 62	C++
 	xxx.exe!exe_start(const int argc, const wchar_t * * argv) Line 240	C++
 	xxx.exe!wmain(const int argc, const wchar_t * * argv) Line 311	C++
 	[Inline Frame] xxx.exe!invoke_main() Line 90	C++
 	xxx.exe!__scrt_common_main_seh() Line 288	C++
 	kernel32.dll!BaseThreadInitThunk()	Unknown
 	ntdll.dll!RtlUserThreadStart()	Unknown

So the code raising this should be

if (elementCompNodeNoRef == nullptr)
{
    // The element is being rendered with a LayoutTransitionElement, and doesn't have a comp node. Instead, get the comp node
    // from the LTE itself. The LTE will contain all the SpriteVisual content in the element's subtree.
    ASSERT(m_uiElement->IsHiddenForLayoutTransition());
    elementCompNodeNoRef = m_uiElement->GetFirstLTETargetingThis()->GetCompositionPeer();
}

locals is giving us
image

when doing watch we get
image

Because this is way to deep for me, could someone please give a hint to me what is causing this?

On the maui side I see a few DropShadows and Alphamasks trying to get rendert
image

When running the app we get some Com Exceptions telling invalid height when trying to render this shadows, but the are catched.

In Output we see

The thread '.NET Tiered Compilation Worker' (19632) has exited with code 0 (0x0).
The thread 9500 has exited with code 3762509125 (0xe0435545).
The thread 8800 has exited with code 3221225477 (0xc0000005).
The thread 6580 has exited with code 3221225477 (0xc0000005).
The thread 11028 has exited with code 3221225477 (0xc0000005).
The thread 'DWM Compositor Thread' (4908) has exited with code 3221225477 (0xc0000005).
The thread 'Composition Token Thread' (10716) has exited with code 3221225477 (0xc0000005).
The thread 'DWM Master Input Thread' (8276) has exited with code 3221225477 (0xc0000005).
The thread 'DWM Manipulation Thread' (7348) has exited with code 3221225477 (0xc0000005).
The thread 'DManip Delegate Thread' (2948) has exited with code 3221225477 (0xc0000005).
The thread 2912 has exited with code 3221225477 (0xc0000005).
The thread 4180 has exited with code 3221225477 (0xc0000005).
The thread 2740 has exited with code 3221225477 (0xc0000005).
The thread '.NET EventPipe' (9372) has exited with code 3221225477 (0xc0000005).
The thread '.NET TP Worker' (68) has exited with code 3221225477 (0xc0000005).
The thread '.NET ThreadPool IO' (11244) has exited with code 3221225477 (0xc0000005).
The thread '.NET Long Running Task' (11220) has exited with code 3221225477 (0xc0000005).
The thread '.NET Long Running Task' (10912) has exited with code 3221225477 (0xc0000005).
The thread 13196 has exited with code 3221225477 (0xc0000005).
The thread 10852 has exited with code 3221225477 (0xc0000005).
The thread 10708 has exited with code 3221225477 (0xc0000005).
The thread '.NET TP Worker' (16872) has exited with code 3221225477 (0xc0000005).
The thread 10052 has exited with code 3221225477 (0xc0000005).
The thread 12444 has exited with code 3221225477 (0xc0000005).
The thread 5472 has exited with code 3221225477 (0xc0000005).
The thread 17104 has exited with code 3221225477 (0xc0000005).
The thread '.NET Timer' (11240) has exited with code 3221225477 (0xc0000005).
The thread '.NET Counter Poller' (10072) has exited with code 3221225477 (0xc0000005).
The thread '.NET TP Gate' (10832) has exited with code 3221225477 (0xc0000005).
The thread 13200 has exited with code 3221225477 (0xc0000005).
The thread 1936 has exited with code 3221225477 (0xc0000005).
The program '[11064] xxx.exe' has exited with code 3221225477 (0xc0000005) 'Access violation'.

Trying to Procdump this with:
procdump -ma -i c:\dumps
gives us nothing

Eventlog gives us nothing.

Any suggestions?

Steps to reproduce the bug

None

Expected behavior

No response

Screenshots

No response

NuGet package version

None

Windows version

Windows 10 (1809): Build 17763

Additional context

No response

@Larhei Larhei added the bug Something isn't working label Sep 12, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Sep 12, 2024
Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@codendone codendone added area-Images Images, SVG team-Rendering Issue for the Rendering team and removed needs-triage Issue needs to be triaged by the area owners labels Sep 13, 2024
@park-jasper
Copy link

Hi, we are getting the same exception, also in the same location that you described.
We are running a MAUI desktop application on WinUI3, and currently we cannot reproduce the error on the developer PCs.
Some of our users never have this problem, for others that have it the application crashes multiple times per day.

This is our CrashDump stack (in case it has additional usable info):

STACK_TEXT:  
000000d9`321fd180 00007ffb`d2d654db     : 00000000`00000000 00000307`e2a58978 00000000`00000000 00007ffb`0000000f : Microsoft_ui_xaml!RenderTargetBitmapImplUsingSpriteVisuals::PreCommit+0x5d
000000d9`321fd330 00007ffb`d2c9a6ce     : 00000000`00000000 00000000`00000000 00000307`e2a58978 000002c7`3d803f10 : Microsoft_ui_xaml!CRenderTargetBitmap::PreCommit+0xfb
000000d9`321fd390 00007ffb`d2a5fe03     : 00000000`00000001 00000000`00000000 00000307`d2b25740 00000000`00000000 : Microsoft_ui_xaml!CRenderTargetBitmapManager::PreCommit+0x23a526
000000d9`321fd3f0 00007ffb`d2961b89     : 000002c7`3bc83b80 00000307`d2b25740 00000000`00000000 00000000`00000000 : Microsoft_ui_xaml!CCoreServices::SubmitPrimitiveCompositionCommands+0x103
000000d9`321fd490 00007ffb`d295a30d     : 000002c7`3bc2e0b0 00000307`d2b25740 00000000`00000000 00007ffb`d2beda98 : Microsoft_ui_xaml!CCoreServices::NWDrawTree+0x759
000000d9`321fd610 00007ffb`d295a187     : 00000307`d2b4b6b0 00007ffb`d2b20853 00000000`00000000 00000307`d2b4b670 : Microsoft_ui_xaml!CCoreServices::NWDrawMainTree+0x14d
000000d9`321fd6c0 00007ffb`d295a0c9     : 00005c4e`bde3d82f 00000000`00000000 000002c7`3bcfb910 00000000`00000402 : Microsoft_ui_xaml!CWindowRenderTarget::Draw+0x67
000000d9`321fd700 00007ffb`d2a9ba8a     : 00007ffb`d34be348 000002c7`3bcf0a10 00000000`00000002 00000000`00000002 : Microsoft_ui_xaml!CXcpBrowserHost::OnTick+0x59
000000d9`321fd740 00007ffb`d2a9b923     : 000002c7`3bcff590 000002c7`3bcf0a20 000002c7`3d8036f0 000002c7`3bcf0a10 : Microsoft_ui_xaml!CXcpDispatcher::Tick+0x8a
000000d9`321fd790 00007ffb`d2a9ad58     : ffffffff`00000000 00000307`e51555b0 00000000`00000000 00000000`00000000 : Microsoft_ui_xaml!CXcpDispatcher::OnReentrancyProtectedWindowMessage+0xa3
000000d9`321fd810 00007ffb`d2a9ac39     : 00000000`00000000 00000000`00000000 00000307`e51557c0 00000000`00000000 : Microsoft_ui_xaml!CDeferredInvoke::DispatchQueuedMessage+0xc8
000000d9`321fd8d0 00007ffb`d28c8057     : ffffffff`fffffffe 00000000`00000000 00000000`00000518 00007ffb`d284d5fe : Microsoft_ui_xaml!Microsoft::WRL::Details::DelegateArgTraits<long (__cdecl ABI::Windows::Foundation::ITypedEventHandler_impl<ABI::Windows::Foundation::Internal::AggregateType<ABI::Microsoft::UI::Dispatching::DispatcherQueueTimer *,ABI::Microsoft::UI::Dispatching::IDispatcherQueueTimer *>,IInspectable *>::*)(ABI::Microsoft::UI::Dispatching::IDispatcherQueueTimer *,IInspectable *)>::DelegateInvokeHelper<Microsoft::WRL::Implements<Microsoft::WRL::RuntimeClassFlags<2>,ABI::Windows::Foundation::ITypedEventHandler<ABI::Microsoft::UI::Dispatching::DispatcherQueueTimer *,IInspectable *>,Microsoft::WRL::FtmBase>,`CXcpDispatcher::Init'::`46'::<lambda_1> &,1,ABI::Microsoft::UI::Dispatching::IDispatcherQueueTimer *,IInspectable *>::Invoke+0x79
000000d9`321fd960 00007ffb`d28c33df     : 00000000`0000000b 000002c7`3d811dd0 000002c7`3bc18f98 000002c7`3d8039c0 : CoreMessagingXP!Microsoft::WRL::Details::DelegateArgTraits<long (__cdecl Windows::Foundation::ITypedEventHandler_impl<Windows::Foundation::Internal::AggregateType<Microsoft::UI::Dispatching::DispatcherQueueTimer * __ptr64,Microsoft::UI::Dispatching::IDispatcherQueueTimer * __ptr64>,IInspectable * __ptr64>::*)(Microsoft::UI::Dispatching::IDispatcherQueueTimer * __ptr64,IInspectable * __ptr64) __ptr64>::DelegateInvokeHelper<Microsoft::WRL::Implements<Microsoft::WRL::RuntimeClassFlags<2>,Windows::Foundation::ITypedEventHandler<Microsoft::UI::Dispatching::DispatcherQueueTimer * __ptr64,IInspectable * __ptr64>,Microsoft::WRL::FtmBase>,<lambda_82cf8073f4f042d1a68771c460cb9f49>,-1,Microsoft::UI::Dispatching::IDispatcherQueueTimer * __ptr64,IInspectable * __ptr64>::Invoke+0x87
000000d9`321fd9a0 00007ffb`d28c84f3     : 000002c7`3d811dd0 00000000`00000000 000002c7`3d8fe0d0 000002c7`3d811dd0 : CoreMessagingXP!Microsoft::WRL::InvokeTraits<-2>::InvokeDelegates<<lambda_1e854da9c9ccd42f6138c3b007a32877>,Windows::Foundation::ITypedEventHandler<Microsoft::UI::Dispatching::DispatcherQueueTimer * __ptr64,IInspectable * __ptr64> >+0x83
000000d9`321fda00 00007ffb`d2870b0d     : 000002c7`3d8fe0d0 00000000`00000000 000000d9`321fdab0 00000000`00000001 : CoreMessagingXP!Microsoft::UI::Dispatching::DispatcherQueueTimer::TimerCallback+0xf3
000000d9`321fda60 00007ffb`d2874b66     : 000002c7`3d802a60 00007ffb`d28c8400 000002c7`00000000 00000000`00000001 : CoreMessagingXP!CFlat::SehSafe::Execute<<lambda_a81ff790741c2a62f2197c2561f5fe49> >+0x21
000000d9`321fda90 00007ffb`d2860ea9     : 000002c7`3bc13f20 00000307`00000000 00000307`d2b433a0 00000000`00000010 : CoreMessagingXP!Microsoft::CoreUI::ActionCallback::ImportAdapter$+0x66
000000d9`321fdad0 00007ffb`d284c990     : 000002c7`3d8fead0 00000307`e51557c0 00000307`d2b433a0 000002c7`3bc2d500 : CoreMessagingXP!Microsoft::CoreUI::Dispatch::TimeoutManager::Callback_OnDispatch+0x1a9
000000d9`321fdb90 00007ffb`d284c6fd     : 000002c7`3d802a60 00000000`00000000 00000000`00000000 000002c7`3bc2d500 : CoreMessagingXP!Microsoft::CoreUI::Dispatch::Dispatcher::Callback_DispatchNextItem+0x1bc
000000d9`321fdc30 00007ffb`d283fecc     : 000002c7`3bc6a2e0 ffffffff`fffffffe 000002c7`3bcffc20 00007ffb`d2842ecd : CoreMessagingXP!Microsoft::CoreUI::Dispatch::Dispatcher::Callback_DispatchLoop+0x1b9
000000d9`321fdcf0 00007ffb`d2842d72     : 000002c7`3bcffc20 000002c7`3bcf0350 000002c7`00000000 000002c7`3bcff590 : CoreMessagingXP!Microsoft::CoreUI::Dispatch::EventLoop::Callback_RunCoreLoop+0x164
000000d9`321fdd50 00007ffb`d28430e8     : 000002c7`3d802a60 000002c7`3d8036f0 00000000`00000000 00007ffb`d283f341 : CoreMessagingXP!Microsoft::CoreUI::Dispatch::UserAdapter::DrainCoreMessagingQueue+0x15a
000000d9`321fde10 00007ffb`d28837d3     : 00000000`002e1042 000000d9`321fe2d0 00000000`00000001 00000000`80000022 : CoreMessagingXP!Microsoft::CoreUI::Dispatch::UserAdapter::OnUserDispatch+0x98
000000d9`321fde60 00007ffb`d2883966     : 000002c7`3d8d3d40 00000000`002e1042 00000000`80000022 000002c7`3bcff590 : CoreMessagingXP!Microsoft::CoreUI::Dispatch::UserAdapter::DoWork+0xa7
000000d9`321fdec0 00007ffb`d2883ede     : 00000000`00000000 00000000`00000060 0000212c`e96d2fbe 00007ffc`a3bb37ee : CoreMessagingXP!Microsoft::CoreUI::Dispatch::UserAdapter::HandleDispatchNotifyMessage+0x132
000000d9`321fdf20 00007ffc`a3b983f1     : 65746e49`67617244 3a726f74`70656372 00000000`00000000 00000000`80000022 : CoreMessagingXP!Microsoft::CoreUI::Dispatch::UserAdapter::WindowProc+0x5e
000000d9`321fdf50 00007ffc`a3b980ac     : 00000000`00008388 00007ffb`d2883e80 00000000`002e1042 00000000`80000000 : user32!UserCallWinProcCheckWow+0x2d1
000000d9`321fe0b0 00007ffc`a3ba31dd     : 00000000`00000000 00000000`00000000 00000000`00000001 00007ffc`a3c16000 : user32!DispatchClientMessage+0x9c
000000d9`321fe110 00007ffc`a5ef4114     : 00000000`00000000 00000000`00000000 00000000`00000070 ffffffff`ffffffff : user32!_fnDWORD+0x3d
000000d9`321fe170 00007ffc`a33f1534     : 00007ffc`a3ba550a 00000000`80000006 00000000`00000000 000000d9`00000000 : ntdll!KiUserCallbackDispatcherContinue
000000d9`321fe1f8 00007ffc`a3ba550a     : 00000000`80000006 00000000`00000000 000000d9`00000000 00007ffb`00000001 : win32u!NtUserGetMessage+0x14
000000d9`321fe200 00007ffb`d2b6f4dc     : 00000000`00000000 000000d9`00000000 00000000`00000000 00000000`00000000 : user32!GetMessageW+0x2a
000000d9`321fe260 00007ffb`d2b6f749     : 00000000`00000000 000000d9`321fe379 00000000`00000000 00000000`ffffffff : Microsoft_ui_xaml!DirectUI::FrameworkApplication::RunDesktopWindowMessageLoop+0x3c
000000d9`321fe2e0 00007ffb`d2a1a230     : 000002c7`3d8cf0e0 000002c7`3bcf3690 00007ffb`d05c4a50 00007ffb`d04949dc : Microsoft_ui_xaml!DirectUI::FrameworkApplication::StartDesktop+0x1fd
000000d9`321fe3e0 00007ffc`2e6012f6     : 00007ffb`d2a1a1c0 000000d9`321fe4c8 0000b90f`1c2b1583 000000d9`321fe108 : Microsoft_ui_xaml!DirectUI::FrameworkApplicationFactory::Start+0x70
000000d9`321fe430 00007ffb`d2a1a1bf     : 000000d9`321fe4c8 0000b90f`1c2b1583 000000d9`321fe108 000000d9`321fe430 : Microsoft_WinUI!WinRT.IWinRTObject.get_QueryInterfaceCachee+0xd
000000d9`321fe438 000000d9`321fe4c8     : 0000b90f`1c2b1583 000000d9`321fe108 000000d9`321fe430 0000b90f`1c2b1583 : Microsoft_ui_xaml!DirectUI::FrameworkApplicationFactory::Start
000000d9`321fe440 0000b90f`1c2b1583     : 000000d9`321fe108 000000d9`321fe430 0000b90f`1c2b1583 00007ffc`3029c920 : 0x000000d9`321fe4c8
000000d9`321fe448 000000d9`321fe108     : 000000d9`321fe430 0000b90f`1c2b1583 00007ffc`3029c920 ffffffff`ffffffff : 0x0000b90f`1c2b1583
000000d9`321fe450 000000d9`321fe430     : 0000b90f`1c2b1583 00007ffc`3029c920 ffffffff`ffffffff 00000000`00000000 : 0x000000d9`321fe108
000000d9`321fe458 0000b90f`1c2b1583     : 00007ffc`3029c920 ffffffff`ffffffff 00000000`00000000 00000000`00000001 : 0x000000d9`321fe430
000000d9`321fe460 00007ffc`3029c920     : ffffffff`ffffffff 00000000`00000000 00000000`00000001 000000d9`321fe430 : 0x0000b90f`1c2b1583
000000d9`321fe468 ffffffff`ffffffff     : 00000000`00000000 00000000`00000001 000000d9`321fe430 00007ffc`2e6012e6 : coreclr!vtable_InlinedCallFrame
000000d9`321fe470 00000000`00000000     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : 0xffffffff`ffffffff

Additional info from the CrashDump:

FAULTING_SOURCE_FILE:  C:\__w\1\s\dxaml\xcp\components\imaging\RenderTargetBitmapImplUsingSpriteVisuals.cpp
FAULTING_SOURCE_LINE_NUMBER:  121
SYMBOL_NAME:  Microsoft_ui_xaml!RenderTargetBitmapImplUsingSpriteVisuals::PreCommit+5d
MODULE_NAME: Microsoft_ui_xaml
IMAGE_NAME:  Microsoft.ui.xaml.dll
FAILURE_BUCKET_ID:  NULL_CLASS_PTR_READ_c0000005_Microsoft.ui.xaml.dll!RenderTargetBitmapImplUsingSpriteVisuals::PreCommit
OS_VERSION:  10.0.22621.1
BUILDLAB_STR:  ni_release
OSPLATFORM_TYPE:  x64
OSNAME:  Windows 10
IMAGE_VERSION:  3.1.5.0
FAILURE_ID_HASH:  {1542e470-224a-1226-3dd4-0c78074bee70}

Since we cannot reproduce the issue I do not have more information I can provide here, but it seems to be happening mainly when the user navigates between pages.

@park-jasper
Copy link

park-jasper commented Nov 21, 2024

Edit: after getting a crash dump and inspecting that, the observed crash is not the same, so this may not be related directly to the
WindowsAppSDK version as I described before, I apologize for the premature text before doing my due research

Edit2: I have sind my last update received more crashdumps, and the problem in RenderTargetBitmapImplUsingSpriteVisuals did also appear, so I think this is related and it might be relevant to investigate the changes in WindowsAppSDK.

I have a bit of an update to my information:

As I mentioned in the previous post, our app would only crash for some of the users. One user that did not experience any crashes had a special constellation that has now changed, and is now seeing crashes as well. I will try to describe the differences here:

Before, on that computer we had an issue with the version of MicrosoftCorporationII.WinAppRuntime.Singleton, because the Maui App used whatever was referenced as a default, and there was a newer version installed on the machine which gave an error during installation (this microsoft/WindowsAppSDK#3166 is the issue, if it is of interest). That is why we uninstalled the latest version and had the referenced version re-installed on that machine (and only that machine).
This was version https://www.nuget.org/packages/Microsoft.WindowsAppSDK/1.5.240802000

A recent windows update (or some other software update) installed a newer version, and resulted in another installation error. This time we opted to manually target a newer version of WindowsAppSDK (because of an unrelated issue with the msix installer).
We are now manually targeting version https://www.nuget.org/packages/Microsoft.WindowsAppSDK/1.6.241106002, which seems to have been unlisted on nuget at the time of writing this.

The observation is that the app was not crashing on a machine on version 1.5.240802000, when the other machines had been using implicitly whichever version was the latest installed on the computer, and now it crashes on all machines when explicitly using version 1.6.241106002, so the problem seems to have happened in between.

@Larhei can you say which version of WindowsAppSDK you are targeting?
Maybe this is also a topic for https://github.com/microsoft/WindowsAppSDK then?

@Larhei
Copy link
Author

Larhei commented Nov 22, 2024

@park-jasper, we faced the issue with 1.5.240802000 also. We removed DropShadows and have not seen the exception since than

@park-jasper
Copy link

Thanks @Larhei for the idea, we have now also removed the Shadows and I can report that we have not seen any crashes since.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Images Images, SVG bug Something isn't working team-Rendering Issue for the Rendering team
Projects
None yet
Development

No branches or pull requests

3 participants