-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Describe the bug
I think this very much depends on the machine, but I was having issues with AttachedCardShadow on a kiosk (never encountered this before).
Faulting module name: KERNELBASE.dll, version: 10.0.19041.1706, time stamp: 0x458acb5b
Exception code: 0xc000027b
Fault offset: 0x000000000010fa32
Fault bucket 2297653008509727884, type 5
Event Name: MoAppCrash
Response: Not available
Cab Id: 0
Problem signature:
P1: **[REDACTED]**
P2: praid:App
P3: 2.0.0.0
P4: 62571213
P5: combase.dll
P6: 10.0.19041.1682
P7: 33a10505
P8: 80131604
P9: 000000000006d10a
P10:
When I run the application via VS Remote Debugging, the app simply throws an unhandled exception:
Exception Message: ".ctor"
Message: "Exception has been thrown by the target of an invocation."
Maybe has something to do with Win2D? (This is what I see before the crash).
'[REDACTED].exe' (Win32): Loaded 'Microsoft.Graphics.Canvas.Interop.dll'.
'[REDACTED].exe' (CoreCLR: clrhost): Loaded 'Microsoft.Graphics.Canvas.Interop.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Exception thrown at 0x00007FFBA8104FD9 in [REDACTED].exe: Microsoft C++ exception: EEMessageException at memory location 0x000000E5A5D7C370.
'[REDACTED].exe' (Win32): Loaded 'Microsoft.Graphics.Canvas.dll'.
'[REDACTED].exe' (Win32): Unloaded 'Microsoft.Graphics.Canvas.dll'
'[REDACTED].exe' (Win32): Loaded 'Microsoft.Graphics.Canvas.dll'.
'[REDACTED].exe' (Win32): Unloaded 'Microsoft.Graphics.Canvas.dll'
'[REDACTED].exe' (Win32): Loaded 'Microsoft.Graphics.Canvas.dll'.
'[REDACTED].exe' (Win32): Unloaded 'Microsoft.Graphics.Canvas.dll'
'[REDACTED].exe' (Win32): Loaded 'Microsoft.Graphics.Canvas.dll'.
'[REDACTED].exe' (Win32): Unloaded 'Microsoft.Graphics.Canvas.dll'
Exception thrown at 0x00007FFBA8104FD9 in [REDACTED].exe: Microsoft C++ exception: EEMessageException at memory location 0x000000E5A5D7C370.
Exception thrown at 0x00007FFBA8104FD9 in [REDACTED].exe: Microsoft C++ exception: EEMessageException at memory location 0x000000E5A5D7C370.
Exception thrown at 0x00007FFBA8104FD9 in [REDACTED].exe: Microsoft C++ exception: EEMessageException at memory location 0x000000E5A5D7C370.
Exception thrown at 0x00007FFBA8104FD9 (KernelBase.dll) in [REDACTED].exe: WinRT originate error - 0x80131604 : 'Exception has been thrown by the target of an invocation.'.
onecore\com\combase\winrt\error\restrictederror.cpp(1016)\combase.dll!00007FFBA9AB7243: (caller: 00007FFBA9A5CEAD) ReturnHr(2) tid(2234) 8007007E The specified module could not be found.
Exception thrown at 0x00007FFBA8104FD9 (KernelBase.dll) in [REDACTED].exe: WinRT originate error - 0x80131604 : 'Exception has been thrown by the target of an invocation.'.
onecore\com\combase\winrt\error\restrictederror.cpp(1016)\combase.dll!00007FFBA9AB7243: (caller: 00007FFBA9A5CEAD) ReturnHr(3) tid(2234) 8007007E The specified module could not be found.
If I hit continue and view the call stack:
> Microsoft.ui.xaml.dll!DirectUI::CFTMEventSource<struct ABI::Microsoft::UI::Xaml::IUnhandledExceptionEventHandler,struct ABI::Microsoft::UI::Xaml::IApplication,struct ABI::Microsoft::UI::Xaml::IUnhandledExceptionEventArgs>::Raise(struct ABI::Microsoft::UI::Xaml::IApplication *,struct ABI::Microsoft::UI::Xaml::IUnhandledExceptionEventArgs *) Unknown
Microsoft.ui.xaml.dll!DirectUI::FrameworkApplication::RaiseUnhandledExceptionEvent(long,struct HSTRING__ *,unsigned int *) Unknown
Microsoft.ui.xaml.dll!DirectUI::ErrorHelper::RaiseUnhandledExceptionEvent(long,class xstring_ptr const &,unsigned int *) Unknown
Microsoft.ui.xaml.dll!DirectUI::ErrorHelper::ProcessUnhandledError(class DirectUI::ErrorInfo &,unsigned int,unsigned int *) Unknown
Microsoft.ui.xaml.dll!DirectUI::ErrorHelper::ReportUnhandledError(long) Unknown
Microsoft.ui.xaml.dll!DirectUI::DXamlCore::FireEvent() Unknown
Microsoft.ui.xaml.dll!CCoreServices::CLR_FireEvent() Unknown
Microsoft.ui.xaml.dll!CommonBrowserHost::CLR_FireEvent() Unknown
Microsoft.ui.xaml.dll!CControlBase::ScriptCallback() Unknown
Microsoft.ui.xaml.dll!CXcpDispatcher::OnScriptCallback() Unknown
Microsoft.ui.xaml.dll!CXcpDispatcher::OnWindowMessage() Unknown
Microsoft.ui.xaml.dll!CXcpDispatcher::WindowProc() Unknown
user32.dll!00007ffba8b6e858() Unknown
user32.dll!00007ffba8b6de1b() Unknown
user32.dll!00007ffba8b6d68a() Unknown
Microsoft.ui.xaml.dll!CXcpBrowserHost::SyncScriptCallbackRequest() Unknown
Microsoft.ui.xaml.dll!CEventManager::RaiseHelper() Unknown
Microsoft.ui.xaml.dll!CEventManager::RaiseLoadedEventForObject() Unknown
Microsoft.ui.xaml.dll!CEventManager::RaiseLoadedEvent() Unknown
Microsoft.ui.xaml.dll!CCoreServices::NWDrawTree() Unknown
Microsoft.ui.xaml.dll!CCoreServices::NWDrawMainTree(class CWindowRenderTarget *,bool,bool *) Unknown
Microsoft.ui.xaml.dll!CWindowRenderTarget::Draw() Unknown
Microsoft.ui.xaml.dll!CXcpBrowserHost::OnTick() Unknown
Microsoft.ui.xaml.dll!CXcpDispatcher::Tick() Unknown
Microsoft.ui.xaml.dll!CXcpDispatcher::OnReentrancyProtectedWindowMessage() Unknown
Microsoft.ui.xaml.dll!CXcpDispatcher::WindowProc() Unknown
Microsoft.ui.xaml.dll!CDeferredInvoke::DispatchQueuedMessage() Unknown
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>,<lambda_e857fdb067b9ae81889f07225ce1ccec> &,1,ABI::Microsoft::UI::Dispatching::IDispatcherQueueTimer *,IInspectable *>::Invoke() Unknown
CoreMessagingXP.dll!00007ffb71318bd8() Unknown
CoreMessagingXP.dll!00007ffb71318daa() Unknown
CoreMessagingXP.dll!00007ffb713189ab() Unknown
CoreMessagingXP.dll!00007ffb712f3158() Unknown
CoreMessagingXP.dll!00007ffb712f302b() Unknown
CoreMessagingXP.dll!00007ffb712d07f2() Unknown
CoreMessagingXP.dll!00007ffb712a2e72() Unknown
CoreMessagingXP.dll!00007ffb7129bca2() Unknown
CoreMessagingXP.dll!00007ffb712a3edb() Unknown
CoreMessagingXP.dll!00007ffb712efaab() Unknown
CoreMessagingXP.dll!00007ffb712efb21() Unknown
CoreMessaging.dll!00007ffba4e65e1f() Unknown
CoreMessaging.dll!00007ffba4e97a77() Unknown
CoreMessaging.dll!00007ffba4e6996b() Unknown
CoreMessaging.dll!00007ffba4e68e26() Unknown
CoreMessaging.dll!00007ffba4e67061() Unknown
CoreMessaging.dll!00007ffba4e66e83() Unknown
user32.dll!00007ffba8b6e858() Unknown
user32.dll!00007ffba8b6e3dc() Unknown
user32.dll!00007ffba8b80bc3() Unknown
ntdll.dll!KiUserCallbackDispatcherContinue�() Unknown
win32u.dll!00007ffba7d11104() Unknown
user32.dll!00007ffba8b81b3e() Unknown
Microsoft.ui.xaml.dll!DirectUI::FrameworkApplication::RunDesktopWindowMessageLoop(void) Unknown
Microsoft.ui.xaml.dll!DirectUI::FrameworkApplication::StartDesktop() Unknown
Microsoft.ui.xaml.dll!DirectUI::FrameworkApplicationFactory::Start() Unknown
Using AttachedDropShadow or no shadow causes the application to run correctly.
I wonder if it's a GPU issue?
Regression
No response
Reproducible in sample app?
- This bug can be reproduced in the sample app.
Steps to reproduce
Using a `AttachedCardShadow` within the application with this specific machine (sorry that I can't help much more).
Version: 10.0.19043 Build 19043
System Manufacturer: Hewlett-Packard
System Model: HP RP7 Retail System Model 7800
System SKU: B0Z61AV
Processor: Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz, 3300 Mhz, 2 Core(s), 4 Logical Processor(s)
Expected behavior
The app does not crash
Screenshots
No response
Windows Build Number
- Windows 10 1809 (Build 17763)
- Windows 10 1903 (Build 18362)
- Windows 10 1909 (Build 18363)
- Windows 10 2004 (Build 19041)
- Windows 10 20H2 (Build 19042)
- Windows 10 21H1 (Build 19043)
- Windows 11 21H2 (Build 22000)
- Other (specify)
Other Windows Build number
No response
App minimum and target SDK version
- Windows 10, version 1809 (Build 17763)
- Windows 10, version 1903 (Build 18362)
- Windows 10, version 1909 (Build 18363)
- Windows 10, version 2004 (Build 19041)
- Other (specify)
Other SDK version
No response
Visual Studio Version
2022
Visual Studio Build Number
17.2.2
Device form factor
Desktop
Nuget packages
<PackageReference Include="CommunityToolkit.WinUI.UI.Controls.Core" Version="7.1.2" />
<PackageReference Include="CommunityToolkit.WinUI.UI.Media" Version="7.1.2" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.3" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22000.197" />
<PackageReference Include="Microsoft.AppCenter.Analytics" Version="4.5.1" />
<PackageReference Include="Microsoft.AppCenter.Crashes" Version="4.5.1" />
Additional context
This issue is a bit of a stub at the moment (due to the nature of the crash), but I'm hoping this may help people in the future trying to debug this native crash (via keywords and google search).
I've managed to work around the issue for this application (only runs on a small set of devices) by using the other type of shadow, only concern would be if this issue is more widespread amongst consumer machines, or if it's only these older POS Retail machines that have the issue.
Help us help you
No.