microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.36k stars 678 forks source link

Windows.UI.Xaml.dll crash silently (ExceptionCode: c000027b) #2820

Closed chertpong closed 3 years ago

chertpong commented 4 years ago

The app is written using UWP but the exception is coming from Windows_UI_Xaml!HWCompTreeNodeWinRT::UpdatePrimaryVisualTransformMatrix (Please kindly let me know if I need to move this to https://github.com/microsoft/ProjectReunion). We are facing application crash silently from multiple Windows 10 desktop. It will randomly start crashing after we run the app for 2~8 hours (I attach the table below for the crash time) We've tried WinDbg to dig further but the crash seems to be incomplete

0:003> dps 0000024be3af46e0
0000024b`e3af46e0  ????????`????????
0000024b`e3af46e8  ????????`????????
0000024b`e3af46f0  ????????`????????
0000024b`e3af46f8  ????????`????????
0000024b`e3af4700  ????????`????????
0000024b`e3af4708  ????????`????????
0000024b`e3af4710  ????????`????????
0000024b`e3af4718  ????????`????????
0000024b`e3af4720  ????????`????????
0000024b`e3af4728  ????????`????????
0000024b`e3af4730  ????????`????????
0000024b`e3af4738  ????????`????????
0000024b`e3af4740  ????????`????????
0000024b`e3af4748  ????????`????????
0000024b`e3af4750  ????????`????????
0000024b`e3af4758  ????????`????????

Steps to reproduce the bug N/A (We're unable to reproduce, it happens randomly)

Expected behavior The app should not crash.

Screenshots N/A

Version Info

UWP target version 16299 Windows version: Windows 10 Version 17134

NuGet package version:

Windows 10 version Saw the problem?
Insider Build (xxxxx)
May 2020 Update (19041)
November 2019 Update (18363)
May 2019 Update (18362)
October 2018 Update (17763)
April 2018 Update (17134) Yes
Fall Creators Update (16299)
Creators Update (15063)
Device form factor Saw the problem?
Desktop Yes
Xbox
Surface Hub
IoT
Additional context Crash time
15:57:58
11:46:29
15:08:27
17:55:08
15:22:26
17:24:55
16:27:22
17:39:44
17:03:09
17:03:09
17:03:09
17:03:09
17:03:10
15:02:09
17:38:20
15:55:17
16:20:01
17:09:19
17:46:36
17:17:38
17:57:59
16:22:17
17:27:16
17:55:26
17:32:11
17:30:23
16:37:24
17:05:25
17:20:45
16:04:09
17:38:18

WinDBG analysis

*******************************************************************************
*                                                                             *
*                        Exception Analysis                                   *
*                                                                             *
*******************************************************************************

KEY_VALUES_STRING: 1

    Key  : Analysis.CPU.Sec
    Value: 46

    Key  : Analysis.DebugAnalysisProvider.CPP
    Value: Create: 8007007e on HUNGRY

    Key  : Analysis.DebugData
    Value: CreateObject

    Key  : Analysis.DebugModel
    Value: CreateObject

    Key  : Analysis.Elapsed.Sec
    Value: 59

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

    Key  : Analysis.System
    Value: CreateObject

    Key  : CLR.Engine
    Value: CORECLR

    Key  : CLR.Version
    Value: 4.6.25707.2

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

NTGLOBALFLAG:  0

PROCESS_BAM_CURRENT_THROTTLED: 0

PROCESS_BAM_PREVIOUS_THROTTLED: 0

APPLICATION_VERIFIER_FLAGS:  0

CONTEXT:  (.ecxr)
rax=0000009c388fdc40 rbx=0000009c388fe1f0 rcx=0000009c388fdc40
rdx=0000000000000000 rsi=0000000000000002 rdi=0000009c388fdc40
rip=00007ffc1b0fb60e rsp=0000009c388fdb60 rbp=0000009c388fe230
 r8=0000000000000000  r9=0000000000000000 r10=0000000000000000
r11=0000009c388fe1f0 r12=0000000000000004 r13=0000024be157ecc0
r14=0000000000000000 r15=0000024ba56afdf0
iopl=0         nv up ei pl zr na po nc
cs=0033  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00000244
KERNELBASE!RaiseFailFastException+0xae:
00007ffc`1b0fb60e 803d1b28150000  cmp     byte ptr [KERNELBASE!BasepIsSecureProcess (00007ffc`1b24de30)],0 ds:00007ffc`1b24de30=00
Resetting default scope

EXCEPTION_RECORD:  (.exr -1)
ExceptionAddress: 00007ffc0e34629c (Windows_UI_Xaml!HWCompTreeNodeWinRT::UpdatePrimaryVisualTransformMatrix+0x00000000000985bc)
   ExceptionCode: c000027b
  ExceptionFlags: 00000001
NumberParameters: 2
   Parameter[0]: 0000024be3af46e0
   Parameter[1]: 0000000000000005

PROCESS_NAME:  Client.exe

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

EXCEPTION_CODE_STR:  c000027b

EXCEPTION_PARAMETER1:  0000024be3af46e0

EXCEPTION_PARAMETER2:  0000000000000005

STACK_TEXT:  
0000009c`388fdb60 00007ffc`1c133930 : 00000000`00000000 00000000`00000005 00000000`00000000 00007ffc`1c234580 : KERNELBASE!RaiseFailFastException+0xae
0000009c`388fe130 00007ffc`0e34629c : 0000024b`e2ae15f0 00000000`00000005 0000024b`e3af46e0 00000000`00000000 : combase!RoFailFastWithErrorContextInternal2+0x480
0000009c`388fe410 00007ffc`0e1a5ce3 : 0000009c`388fe691 0000009c`388fe691 0000024b`e1735220 00000000`00000001 : Windows_UI_Xaml!HWCompTreeNodeWinRT::UpdatePrimaryVisualTransformMatrix+0x985bc
0000009c`388fe610 00007ffc`0e1a5a87 : 42180000`00000000 0000024b`a56afdf0 0000009c`388fed90 0000024b`a56afd01 : Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x473
0000009c`388fe6f0 00007ffc`0e1a5a87 : 00000000`00000000 0000024b`a56afdf0 0000009c`388fed90 0000024b`a56afd01 : Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217
0000009c`388fe7d0 00007ffc`0e1a5a87 : 00000000`00000000 0000024b`a56afdf0 0000009c`388fed90 0000024b`a56afd01 : Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217
0000009c`388fe8b0 00007ffc`0e1a5a87 : 00000000`00000000 0000024b`a56afdf0 0000009c`388fed90 0000024b`a56afd01 : Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217
0000009c`388fe990 00007ffc`0e1a5a87 : 00000000`00000000 0000024b`a56afdf0 0000009c`388fed90 0000024b`a56afd01 : Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217
0000009c`388fea70 00007ffc`0e1a5a87 : 00000000`00000000 0000024b`a56afdf0 0000009c`388fed90 0000024b`a56afd01 : Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217
0000009c`388feb50 00007ffc`0e1a5a87 : 00000000`00000000 0000024b`a56afdf0 0000009c`388fed90 0000024b`a56afd01 : Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217
0000009c`388fec30 00007ffc`0e28e3eb : 00000000`00000000 0000024b`a56afdf0 0000009c`388fed90 00000000`00000001 : Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217
0000009c`388fed10 00007ffc`0e28e387 : 0000024b`a56ca090 0000024b`a56aef01 0000024b`a56ca090 3f800000`00000000 : Windows_UI_Xaml!HWCompNode::UpdateTree+0x33
0000009c`388fed50 00007ffc`0e28d1fa : 0000024b`00000000 0000024b`a56ca090 0000024b`a56aef01 0000024b`a56afdf0 : Windows_UI_Xaml!HWCompTreeNode::UpdateTreeRoot+0x63
0000009c`388fed90 00007ffc`0e28c4c9 : 00000000`00000000 0000024b`a56aefc0 0000024b`a56b2800 0000024b`a56b1c10 : Windows_UI_Xaml!CCoreServices::SubmitRenderCommandsToCompositor+0x52
0000009c`388fedc0 00007ffc`0e29da2a : 0000024b`a567d980 0000024b`a5614e90 0000024b`a56b1c10 0000024b`cba63c20 : Windows_UI_Xaml!CCoreServices::SubmitPrimitiveCompositionCommands+0x109
0000009c`388fee40 00007ffc`0e29aa93 : 0000009c`00000001 0000009c`388ff0b0 0000024b`a56aefc0 00007ffc`0e29a40b : Windows_UI_Xaml!CCoreServices::NWDrawTree+0x9ea
0000009c`388feff0 00007ffc`0e29a8ff : 00000057`8aad7ade 0000024b`a56aee80 00000000`00000000 0000009c`388ff0b0 : Windows_UI_Xaml!CCoreServices::NWDrawMainTree+0xe3
0000009c`388ff040 00007ffc`0e29a224 : 0000024b`a56aee80 00007ffc`00000000 00000000`00000402 00007ffc`00000001 : Windows_UI_Xaml!CWindowRenderTarget::Draw+0x6f
0000009c`388ff080 00007ffc`0e29a0ec : 0000024b`a56aefc0 01d64f81`00000000 0000009c`37957800 00000000`000103f4 : Windows_UI_Xaml!CXcpBrowserHost::OnTick+0xc4
0000009c`388ff0d0 00007ffc`0e29a003 : 00000000`d59e11ca 00000000`00000000 0000024b`a5400000 0000024b`e39c5580 : Windows_UI_Xaml!CXcpDispatcher::Tick+0x8c
0000009c`388ff110 00007ffc`0e29a5dc : 0000024b`e4dfc320 0000024b`a56fcc01 0000024b`a56fcc30 00000000`00000000 : Windows_UI_Xaml!CXcpDispatcher::OnReentrancyProtectedWindowMessage+0x43
0000009c`388ff140 00007ffc`0e29a43c : 00000000`0000038c 00000000`00000000 00000000`00000001 00007ffc`17b3d1b0 : Windows_UI_Xaml!CDeferredInvoke::DispatchQueuedMessage+0x16c
0000009c`388ff1b0 00007ffc`17ac769f : 0000024b`a56b6d01 00007ffc`0e29a400 0000024b`a57080f8 00000000`00000000 : Windows_UI_Xaml!CXcpDispatcher::MessageTimerCallbackStatic+0x1c
0000009c`388ff1e0 00007ffc`17abaa4c : 0000024b`a56f8f50 00000000`00514ec3 0000024b`a56fbef0 00007ffc`17ac453b : CoreMessaging!Microsoft__CoreUI__Dispatch__TimeoutHandler$CallbackThunk+0x1cf
0000009c`388ff260 00007ffc`17ac288f : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000003 : CoreMessaging!Microsoft::CoreUI::Dispatch::TimeoutManager::Callback_OnDispatch+0x18c
0000009c`388ff2f0 00007ffc`17ac0d18 : 00000000`00000000 0000009c`388ff458 0000024b`a570d120 0000024b`a56fb530 : CoreMessaging!Microsoft::CoreUI::Dispatch::EventLoop::Callback_RunCoreLoop+0x60f
0000009c`388ff3e0 00007ffc`17abce09 : 0000024b`a56fb530 0000024b`a57131e0 00000001`00000000 00000000`00000000 : CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::OnUserDispatch+0x1e8
0000009c`388ff4b0 00007ffc`17abcc08 : 00000000`00000000 00000000`000203ee 00000000`00000000 00000000`40000c02 : CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter_DoWork+0xf9
0000009c`388ff590 00007ffc`1c3c6cc1 : 00000000`00000001 00000000`00000001 00000000`00000002 0000024b`00000000 : CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter_WindowProc+0x58
0000009c`388ff5c0 00007ffc`1c3c699c : 00000000`00000002 00007ffc`17abcbb0 00000000`000203ee 00000000`00000060 : user32!UserCallWinProcCheckWow+0x2c1
0000009c`388ff750 00007ffc`1c3d0453 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : user32!DispatchClientMessage+0x9c
0000009c`388ff7b0 00007ffc`1e28dca4 : 00000000`00000000 0000024b`a5bc5680 00000000`00000000 00007ffc`1c2a98bc : user32!_fnDWORD+0x33
0000009c`388ff810 00007ffc`1aff10a4 : 00007ffc`1c3c8633 00007ffc`17abcbb0 00000000`00000001 00000000`00000000 : ntdll!KiUserCallbackDispatcherContinue
0000009c`388ff898 00007ffc`1c3c8633 : 00007ffc`17abcbb0 00000000`00000001 00000000`00000000 0000009c`388ff9b0 : win32u!NtUserPeekMessage+0x14
0000009c`388ff8a0 00007ffc`1c3c85c5 : 00000000`00000000 0000024b`a5bc5680 00000000`00000000 0000009c`388ffa51 : user32!_PeekMessage+0x33
0000009c`388ff910 00007ffc`0f214976 : 0000024b`a5707be0 0000009c`388ff9e0 00000000`00000000 00000000`00000000 : user32!PeekMessageW+0x105
0000009c`388ff960 00007ffc`0f212d9e : 00000000`00000000 00007ffc`00000000 00000000`00000000 00007ffc`0f2e9000 : Windows_UI!Windows::UI::Core::CDispatcher::ProcessMessage+0xb6
0000009c`388ffa10 00007ffc`0f21485d : 0000024b`a56cdb20 0000024b`a5707be0 00000000`0000032c 00007ffc`0f2e9000 : Windows_UI!Windows::UI::Core::CDispatcher::WaitAndProcessMessagesInternal+0xae
0000009c`388ffb20 00007ffc`0e0d7054 : cb35df37`00000006 00000000`00000000 0000024b`a5706a80 0000024b`a56cdd60 : Windows_UI!Windows::UI::Core::CDispatcher::ProcessEvents+0x7d
0000009c`388ffbd0 00007ffc`0e0d6ff8 : 0000024b`a5707be0 00000000`00000000 0000d796`4e04b831 00000001`00000024 : Windows_UI_Xaml!CJupiterWindow::RunCoreWindowMessageLoop+0x4c
0000009c`388ffc00 00007ffc`18cf433a : 00000000`00000001 0000024b`a5706e90 0000009c`388ffcc0 0000024b`a5706a80 : Windows_UI_Xaml!DirectUI::DXamlCore::RunMessageLoop+0x44
0000009c`388ffc60 00007ffc`18d1c50d : 0000024b`a5705c80 0000024b`a5706a80 00000000`00000000 00000000`00000000 : twinapi_appcore!Windows::ApplicationModel::Core::CoreApplicationView::Run+0x3a
0000009c`388ffc90 00007ffc`1b7c3fb5 : 0000024b`a5706a80 00000000`00000000 0000024b`a5705c80 0000024b`a5706a80 : twinapi_appcore!<lambda_476a253d60a149be58fa202b506b2c7b>::operator()+0x1a5
0000009c`388ffcf0 00007ffc`1b853034 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : SHCore!_WrapperThreadProc+0xf5
0000009c`388ffdd0 00007ffc`1e261551 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : kernel32!BaseThreadInitThunk+0x14
0000009c`388ffe00 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x21

FAULTING_SOURCE_LINE:  onecoreuap\windows\dxaml\xcp\components\comptree\hwcompnodewinrt.cpp

FAULTING_SOURCE_FILE:  onecoreuap\windows\dxaml\xcp\components\comptree\hwcompnodewinrt.cpp

FAULTING_SOURCE_LINE_NUMBER:  1375

SYMBOL_NAME:  Windows_UI_Xaml!HWCompTreeNodeWinRT::UpdatePrimaryVisualTransformMatrix+985bc

MODULE_NAME: Windows_UI_Xaml

IMAGE_NAME:  Windows.UI.Xaml.dll

STACK_COMMAND:  ~3s ; .ecxr ; kb

FAILURE_BUCKET_ID:  STOWED_EXCEPTION_c000027b_Windows.UI.Xaml.dll!HWCompTreeNodeWinRT::UpdatePrimaryVisualTransformMatrix

OS_VERSION:  10.0.17134.1

BUILDLAB_STR:  rs4_release

OSPLATFORM_TYPE:  x64

OSNAME:  Windows 10

FAILURE_ID_HASH:  {8c0eadc0-39c5-f916-b11c-fb72c821d398}

Followup:     MachineOwner
---------
codendone commented 4 years ago

Like you said, that dump is incomplete, since it lacks the stowed exception data at the address you dumped. In this case, the callstack and filename/linenumber shown by !analyze are correct, but we can't see the real failure HRESULT. That real failure HRESULT might exist in the stack variables of the frame for the UpdatePrimaryVisualTransformMatrix function, but I'm not sure if you'll have the necessary symbols to see it (if the incomplete dump even contains that data).

One possibility here might be an out-of-memory failure, which could happen on the failure line. This might be visible as the app using an excessive amount of memory, but it might also be critical Composition resources used by ScrollViewers being leaked and hitting their limit.

If you're able to repro this, you might be able to inspect a process which has been running for a long time to see if there are any signs of leaks (like too much memory use, or too many/leaked ScrollViewers). Alternatively, if you can repro you could use regkeys to ensure a full dump is saved, as described here: https://github.com/microsoft/microsoft-ui-xaml/blob/master/docs/debugging_crashes.md#other-options.

chertpong commented 4 years ago

Thank you! Your comment help us a lot, as we cannot reproduce this issue in any non-production environment. We think we will use regkeys as per the link you provided and see if we can find more clue.

chertpong commented 4 years ago

Hi team, Finally, I got the full crash dump. But I think I'm stuck here, I don't know how can I investigate further. Could you help, please?

0:005> !analyze -v
*******************************************************************************
*                                                                             *
*                        Exception Analysis                                   *
*                                                                             *
*******************************************************************************

DEBUG_FLR_EXCEPTION_CODE(8007000e) and the ".exr -1" ExceptionCode(c000027b) don't match

KEY_VALUES_STRING: 1

    Key  : Analysis.CPU.mSec
    Value: 12125

    Key  : Analysis.DebugAnalysisProvider.CPP
    Value: Create: 8007007e on CPX-XXXXXXXXX4A

    Key  : Analysis.DebugData
    Value: CreateObject

    Key  : Analysis.DebugModel
    Value: CreateObject

    Key  : Analysis.Elapsed.mSec
    Value: 102872

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

    Key  : Analysis.System
    Value: CreateObject

    Key  : CLR.BuiltBy
    Value: dlab-DDVSOWINAGE011. Commit Hash: 335271402622f3b4e914cf5f90fc1de0a08969dc

    Key  : CLR.Engine
    Value: CORECLR

    Key  : CLR.Version
    Value: 4.6.25707.2

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

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

    Key  : WER.OS.Branch
    Value: rs4_release

    Key  : WER.OS.Timestamp
    Value: 2018-04-10T18:04:00Z

    Key  : WER.OS.Version
    Value: 10.0.17134.1

    Key  : WER.Process.Version
    Value: 1.0.0.0

ADDITIONAL_XML: 1

OS_BUILD_LAYERS: 1

NTGLOBALFLAG:  0

PROCESS_BAM_CURRENT_THROTTLED: 0

PROCESS_BAM_PREVIOUS_THROTTLED: 0

APPLICATION_VERIFIER_FLAGS:  0

CONTEXT:  (.ecxr)
rax=000000cd6a87d860 rbx=000000cd6a87de10 rcx=000000cd6a87d860
rdx=0000000000000000 rsi=0000000000000002 rdi=000000cd6a87d860
rip=00007ff8ceb7b60e rsp=000000cd6a87d780 rbp=000000cd6a87de50
 r8=0000000000000000  r9=0000000000000000 r10=0000000000000000
r11=000000cd6a87de10 r12=0000000000000004 r13=00000242804d8440
r14=0000000000000000 r15=0000024243accc80
iopl=0         nv up ei pl zr na po nc
cs=0033  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00000244
KERNELBASE!RaiseFailFastException+0xae:
00007ff8`ceb7b60e 803d1b28150000  cmp     byte ptr [KERNELBASE!BasepIsSecureProcess (00007ff8`ceccde30)],0 ds:00007ff8`ceccde30=00
Resetting default scope

EXCEPTION_RECORD:  (.exr -1)
ExceptionAddress: 00007ff8c1a3629c (Windows_UI_Xaml!HWCompTreeNodeWinRT::UpdatePrimaryVisualTransformMatrix+0x00000000000985bc)
   ExceptionCode: c000027b
  ExceptionFlags: 00000001
NumberParameters: 2
   Parameter[0]: 0000024277ef3770
   Parameter[1]: 0000000000000005

PROCESS_NAME:  Client.exe

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

EXCEPTION_CODE_STR:  8007000e

EXCEPTION_PARAMETER1:  0000024277ef3770

EXCEPTION_PARAMETER2:  0000000000000005

FAULTING_THREAD:  ffffffff

STACK_TEXT:  
00000242`6fbb9918 00007ff8`c19472c5 Windows_UI_Xaml!CDirectManipulationService::CreateSharedContentTransformForContent+0xf9
00000242`6fbb9920 00007ff8`c1947402 Windows_UI_Xaml!CDirectManipulationService::EnsureSharedContentTransform+0xa2
00000242`6fbb9928 00007ff8`c199ed19 Windows_UI_Xaml!HWCompTreeNodeWinRT::UpdatePrimaryVisualTransformMatrix+0x1039
00000242`6fbb9930 00007ff8`c1895ce3 Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x473
00000242`6fbb9938 00007ff8`c1895a87 Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217
00000242`6fbb9940 00007ff8`c1895a87 Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217
00000242`6fbb9948 00007ff8`c1895a87 Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217
00000242`6fbb9950 00007ff8`c1895a87 Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217
00000242`6fbb9958 00007ff8`c1895a87 Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217
00000242`6fbb9960 00007ff8`c197e3eb Windows_UI_Xaml!HWCompNode::UpdateTree+0x33
00000242`6fbb9968 00007ff8`c197e387 Windows_UI_Xaml!HWCompTreeNode::UpdateTreeRoot+0x63
00000242`6fbb9970 00007ff8`c197d1fa Windows_UI_Xaml!CCoreServices::SubmitRenderCommandsToCompositor+0x52
00000242`6fbb9978 00007ff8`c197c4c9 Windows_UI_Xaml!CCoreServices::SubmitPrimitiveCompositionCommands+0x109
00000242`6fbb9980 00007ff8`c198da2a Windows_UI_Xaml!CCoreServices::NWDrawTree+0x9ea
00000242`6fbb9988 00007ff8`c198aa93 Windows_UI_Xaml!CCoreServices::NWDrawMainTree+0xe3
00000242`6fbb9990 00007ff8`c198a8ff Windows_UI_Xaml!CWindowRenderTarget::Draw+0x6f
00000242`6fbb9998 00007ff8`c198a224 Windows_UI_Xaml!CXcpBrowserHost::OnTick+0xc4
00000242`6fbb99a0 00007ff8`c198a0ec Windows_UI_Xaml!CXcpDispatcher::Tick+0x8c
00000242`6fbb99a8 00007ff8`c198a003 Windows_UI_Xaml!CXcpDispatcher::OnReentrancyProtectedWindowMessage+0x43
00000242`6fbb99b0 00007ff8`c198a5dc Windows_UI_Xaml!CDeferredInvoke::DispatchQueuedMessage+0x16c
00000242`6fbb99b8 00007ff8`c198a43c Windows_UI_Xaml!CXcpDispatcher::MessageTimerCallbackStatic+0x1c
00000242`6fbb99c0 00007ff8`cb60769f CoreMessaging!Microsoft__CoreUI__Dispatch__TimeoutHandler$CallbackThunk+0x1cf
00000242`6fbb99c8 00007ff8`cb5faa4c CoreMessaging!Microsoft::CoreUI::Dispatch::TimeoutManager::Callback_OnDispatch+0x18c
00000242`6fbb99d0 00007ff8`cb60288f CoreMessaging!Microsoft::CoreUI::Dispatch::EventLoop::Callback_RunCoreLoop+0x60f
00000242`6fbb99d8 00007ff8`cb600d18 CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::OnUserDispatch+0x1e8
00000242`6fbb99e0 00007ff8`cb5fce09 CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter_DoWork+0xf9
00000242`6fbb99e8 00007ff8`cb5fcc08 CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter_WindowProc+0x58
00000242`6fbb99f0 00007ff8`d07e6cc1 user32!UserCallWinProcCheckWow+0x2c1
00000242`6fbb99f8 00007ff8`d07e699c user32!DispatchClientMessage+0x9c
00000242`6fbb9a00 00007ff8`d07f0453 user32!_fnDWORD+0x33
00000242`6fbb9a08 00007ff8`d196dca4 ntdll!KiUserCallbackDispatcherContinue+0x0
00000242`6fbb9a10 00007ff8`ce8810a4 win32u!NtUserPeekMessage+0x14
00000242`6fbb9a18 00007ff8`d07e8633 user32!_PeekMessage+0x33
00000242`6fbb9a20 00007ff8`d07e85c5 user32!PeekMessageW+0x105
00000242`6fbb9a28 00007ff8`c65f300f Windows_UI!Windows::UI::Core::CDispatcher::ProcessInvokeItem+0x5f
00000242`6fbb9a30 00007ff8`c65f4a9d Windows_UI!Windows::UI::Core::CDispatcher::ProcessMessage+0x1dd
00000242`6fbb9a38 00007ff8`c65f2d9e Windows_UI!Windows::UI::Core::CDispatcher::WaitAndProcessMessagesInternal+0xae
00000242`6fbb9a40 00007ff8`c65f485d Windows_UI!Windows::UI::Core::CDispatcher::ProcessEvents+0x7d
00000242`6fbb9a48 00007ff8`c17c7054 Windows_UI_Xaml!CJupiterWindow::RunCoreWindowMessageLoop+0x4c
00000242`6fbb9a50 00007ff8`c17c6ff8 Windows_UI_Xaml!DirectUI::DXamlCore::RunMessageLoop+0x44
00000242`6fbb9a58 00007ff8`cc40433a twinapi_appcore!Windows::ApplicationModel::Core::CoreApplicationView::Run+0x3a
00000242`6fbb9a60 00007ff8`cc42c50d twinapi_appcore!<lambda_476a253d60a149be58fa202b506b2c7b>::operator+0x1a5
00000242`6fbb9a68 00007ff8`d0993fb5 SHCore!_WrapperThreadProc+0xf5
00000242`6fbb9a70 00007ff8`d1273034 kernel32!BaseThreadInitThunk+0x14
00000242`6fbb9a78 00007ff8`d1941551 ntdll!RtlUserThreadStart+0x21

FAULTING_SOURCE_LINE:  onecoreuap\windows\dxaml\xcp\plat\win\browserdesktop\directmanipulationservice.cpp

FAULTING_SOURCE_FILE:  onecoreuap\windows\dxaml\xcp\plat\win\browserdesktop\directmanipulationservice.cpp

FAULTING_SOURCE_LINE_NUMBER:  3284

FAULTING_SOURCE_CODE:  
No source found for 'onecoreuap\windows\dxaml\xcp\plat\win\browserdesktop\directmanipulationservice.cpp'

SYMBOL_NAME:  Windows_UI_Xaml!CDirectManipulationService::CreateSharedContentTransformForContent+f9

MODULE_NAME: Windows_UI_Xaml

IMAGE_NAME:  Windows.UI.Xaml.dll

STACK_COMMAND:  *** Stowed Exception v2 ***; .exr -1; dpp 0x24277ef3770 L0x5; dt 0x2426fbbb600 combase!STOWED_EXCEPTION_INFORMATION_V2 -r; dps 0x2426fbb9918 L0x2d ; ** Pseudo Context ** StowedPseudo ** Value: 1b8396f1fd0 ** ; kb

FAILURE_BUCKET_ID:  STOWED_EXCEPTION_8007000e_Windows.UI.Xaml.dll!CDirectManipulationService::CreateSharedContentTransformForContent

OS_VERSION:  10.0.17134.1

BUILDLAB_STR:  rs4_release

OSPLATFORM_TYPE:  x64

OSNAME:  Windows 10

IMAGE_VERSION:  10.0.17134.1

FAILURE_ID_HASH:  {af52426f-9b79-b1cf-fa8f-c7f3bee35e9f}

Followup:     MachineOwner
---------
0:005> .exr -1
ExceptionAddress: 00007ff8c1a3629c (Windows_UI_Xaml!HWCompTreeNodeWinRT::UpdatePrimaryVisualTransformMatrix+0x00000000000985bc)
   ExceptionCode: c000027b
  ExceptionFlags: 00000001
NumberParameters: 2
   Parameter[0]: 0000024277ef3770
   Parameter[1]: 0000000000000005

0:005> dpp 0x24277ef3770 L0x5
00000242`77ef3770  00000242`6fbbb600 53453032`00000038
00000242`77ef3778  00000242`6b943100 53453032`00000038
00000242`77ef3780  00000242`6fb99aa0 53453032`00000038
00000242`77ef3788  00000242`72b3fbf0 53453032`00000038
00000242`77ef3790  00000242`6ad5ade0 53453032`00000038

0:005> dt 0x2426fbbb600 combase!STOWED_EXCEPTION_INFORMATION_V2 -r
   +0x000 Header           : _STOWED_EXCEPTION_INFORMATION_HEADER
      +0x000 Size             : 0x38
      +0x004 Signature        : 0x53453032
   +0x008 ResultCode       : 8007000e
   +0x00c ExceptionForm    : 0y01
   +0x00c ThreadId         : 0y000000000000000000100110100001 (0x9a1)
   +0x010 ExceptionAddress : (null) 
   +0x018 StackTraceWordSize : 8
   +0x01c StackTraceWords  : 0x2d
   +0x020 StackTrace       : 0x00000242`6fbb9918 Void
   +0x010 ErrorText        : (null) 
   +0x028 NestedExceptionType : 0x4c4d4158
   +0x030 NestedException  : 0x00000242`6fbb9900 Void

0:005> dt -a 0000024277ef3770 combase!_STOWED_EXCEPTION_INFORMATION_V2*
[0] @ 00000242`77ef3770 
---------------------------------------------
0x00000242`6fbbb600
   +0x000 Header           : _STOWED_EXCEPTION_INFORMATION_HEADER
   +0x008 ResultCode       : 8007000e
   +0x00c ExceptionForm    : 0y01
   +0x00c ThreadId         : 0y000000000000000000100110100001 (0x9a1)
   +0x010 ExceptionAddress : (null) 
   +0x018 StackTraceWordSize : 8
   +0x01c StackTraceWords  : 0x2d
   +0x020 StackTrace       : 0x00000242`6fbb9918 Void
   +0x010 ErrorText        : (null) 
   +0x028 NestedExceptionType : 0x4c4d4158
   +0x030 NestedException  : 0x00000242`6fbb9900 Void

[1] @ 00000242`77ef3778 
---------------------------------------------
0x00000242`6b943100
   +0x000 Header           : _STOWED_EXCEPTION_INFORMATION_HEADER
   +0x008 ResultCode       : 80000019
   +0x00c ExceptionForm    : 0y01
   +0x00c ThreadId         : 0y000000000000000000100110100001 (0x9a1)
   +0x010 ExceptionAddress : (null) 
   +0x018 StackTraceWordSize : 8
   +0x01c StackTraceWords  : 3
   +0x020 StackTrace       : 0x00000242`6b941418 Void
   +0x010 ErrorText        : (null) 
   +0x028 NestedExceptionType : 0x4c4d4158
   +0x030 NestedException  : 0x00000242`6b941400 Void

[2] @ 00000242`77ef3780 
---------------------------------------------
0x00000242`6fb99aa0
   +0x000 Header           : _STOWED_EXCEPTION_INFORMATION_HEADER
   +0x008 ResultCode       : 8000ffff
   +0x00c ExceptionForm    : 0y01
   +0x00c ThreadId         : 0y000000000000000000100110100001 (0x9a1)
   +0x010 ExceptionAddress : (null) 
   +0x018 StackTraceWordSize : 8
   +0x01c StackTraceWords  : 0x1b
   +0x020 StackTrace       : 0x00000242`6fb97db8 Void
   +0x010 ErrorText        : (null) 
   +0x028 NestedExceptionType : 0x4c4d4158
   +0x030 NestedException  : 0x00000242`6fb97da0 Void

[3] @ 00000242`77ef3788 
---------------------------------------------
0x00000242`72b3fbf0
   +0x000 Header           : _STOWED_EXCEPTION_INFORMATION_HEADER
   +0x008 ResultCode       : 8000ffff
   +0x00c ExceptionForm    : 0y01
   +0x00c ThreadId         : 0y000000000000000000100110100001 (0x9a1)
   +0x010 ExceptionAddress : (null) 
   +0x018 StackTraceWordSize : 8
   +0x01c StackTraceWords  : 0x1c
   +0x020 StackTrace       : 0x00000242`72b3df08 Void
   +0x010 ErrorText        : (null) 
   +0x028 NestedExceptionType : 0x4c4d4158
   +0x030 NestedException  : 0x00000242`72b3def0 Void

[4] @ 00000242`77ef3790 
---------------------------------------------
0x00000242`6ad5ade0
   +0x000 Header           : _STOWED_EXCEPTION_INFORMATION_HEADER
   +0x008 ResultCode       : 8000ffff
   +0x00c ExceptionForm    : 0y01
   +0x00c ThreadId         : 0y000000000000000000100110100001 (0x9a1)
   +0x010 ExceptionAddress : (null) 
   +0x018 StackTraceWordSize : 8
   +0x01c StackTraceWords  : 0x1b
   +0x020 StackTrace       : 0x00000242`6ad590f8 Void
   +0x010 ErrorText        : (null) 
   +0x028 NestedExceptionType : 0x4c4d4158
   +0x030 NestedException  : 0x00000242`6ad590e0 Void

0:005> !error 8000ffff
Error code: (HRESULT) 0x8000ffff (2147549183) - Catastrophic failure
StephenLPeters commented 4 years ago

@codendone fyi

codendone commented 4 years ago

Thanks for the additional information, which narrows down the problem significantly. Does this app use InkCanvas? This error can happen if an app leaks InkCanvas elements, or if an app tries to have over 100 InkCanvas elements at the same time.

chertpong commented 4 years ago

Hi @codendone thank you for looking into this. We don't use InkCanvas in our project. Does this kind of issue occur for other elements?

codendone commented 4 years ago

Does the app use lots of WebView elements, or create multiple CoreApplicationViews? The error here is too many Compositor instances in the process, so directly creating many of those could also lead to this error.

If none of these apply, can you share a full dump?

chertpong commented 4 years ago

Hi @codendone, that's helping us a lot! Thank you for pointing this out for us, we do have method that creating CoreApplicationView(s). I will close this ticket first and will re-open if the crash is still happening.

chertpong commented 4 years ago

Hi team, We got another crashdump which is different from the previous one. Could you help us, please?

*******************************************************************************
*                                                                             *
*                        Exception Analysis                                   *
*                                                                             *
*******************************************************************************

DEBUG_FLR_EXCEPTION_CODE(8007000e) and the ".exr -1" ExceptionCode(c000027b) don't match

KEY_VALUES_STRING: 1

    Key  : Analysis.CPU.mSec
    Value: 6984

    Key  : Analysis.DebugAnalysisProvider.CPP
    Value: Create: 8007007e on CPX-XXXXXXXXXXX

    Key  : Analysis.DebugData
    Value: CreateObject

    Key  : Analysis.DebugModel
    Value: CreateObject

    Key  : Analysis.Elapsed.mSec
    Value: 42160

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

    Key  : Analysis.System
    Value: CreateObject

    Key  : CLR.BuiltBy
    Value: dlab-DDVSOWINAGE011. Commit Hash: 335271402622f3b4e914cf5f90fc1de0a08969dc

    Key  : CLR.Engine
    Value: CORECLR

    Key  : CLR.Version
    Value: 4.6.25707.2

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

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

    Key  : WER.OS.Branch
    Value: rs4_release

    Key  : WER.OS.Timestamp
    Value: 2018-04-10T18:04:00Z

    Key  : WER.OS.Version
    Value: 10.0.17134.1

    Key  : WER.Process.Version
    Value: 1.0.0.0

ADDITIONAL_XML: 1

OS_BUILD_LAYERS: 1

NTGLOBALFLAG:  0

PROCESS_BAM_CURRENT_THROTTLED: 0

PROCESS_BAM_PREVIOUS_THROTTLED: 0

APPLICATION_VERIFIER_FLAGS:  0

CONTEXT:  (.ecxr)
rax=000000f5c7efde20 rbx=000000f5c7efe3d0 rcx=000000f5c7efde20
rdx=0000000000000000 rsi=0000000000000002 rdi=000000f5c7efde20
rip=00007ff9c68db60e rsp=000000f5c7efdd40 rbp=000000f5c7efe410
 r8=0000000000000000  r9=0000000000000000 r10=0000000000000000
r11=000000f5c7efe3d0 r12=0000000000000004 r13=000002abde8fce20
r14=0000000000000000 r15=000002abe03f4c30
iopl=0         nv up ei pl zr na po nc
cs=0033  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00000244
KERNELBASE!RaiseFailFastException+0xae:
00007ff9`c68db60e 803d1b28150000  cmp     byte ptr [KERNELBASE!BasepIsSecureProcess (00007ff9`c6a2de30)],0 ds:00007ff9`c6a2de30=00
Resetting default scope

EXCEPTION_RECORD:  (.exr -1)
ExceptionAddress: 00007ff9ba2a4410 (Windows_UI_Xaml!CInputManager::CreateViewportInteractionForManipulatableElement+0x000000000015c8d4)
   ExceptionCode: c000027b
  ExceptionFlags: 00000001
NumberParameters: 2
   Parameter[0]: 000002ab8d5efb50
   Parameter[1]: 0000000000000005

PROCESS_NAME:  Client.exe

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

EXCEPTION_CODE_STR:  8007000e

EXCEPTION_PARAMETER1:  000002ab8d5efb50

EXCEPTION_PARAMETER2:  0000000000000005

FAULTING_THREAD:  ffffffff

STACK_TEXT:  
000002ab`8590f808 00007ff9`ba2a436d Windows_UI_Xaml!CDirectManipulationService::CreateViewportInteraction+0x15c8fd
000002ab`8590f810 00007ff9`ba147bda Windows_UI_Xaml!CInputManager::CreateViewportInteractionForManipulatableElement+0x9e
000002ab`8590f818 00007ff9`ba147c74 Windows_UI_Xaml!CUIElement::GetViewportInteraction+0x60
000002ab`8590f820 00007ff9`ba0964e6 Windows_UI_Xaml!HWCompTreeNodeWinRT::UpdatePrimaryVisualViewportInteraction+0xe6
000002ab`8590f828 00007ff9`ba095d14 Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x4a4
000002ab`8590f830 00007ff9`ba095a87 Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217
000002ab`8590f838 00007ff9`ba095a87 Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217
000002ab`8590f840 00007ff9`ba095a87 Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217
000002ab`8590f848 00007ff9`ba095a87 Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217
000002ab`8590f850 00007ff9`ba095a87 Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217
000002ab`8590f858 00007ff9`ba095a87 Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217
000002ab`8590f860 00007ff9`ba095a87 Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217
000002ab`8590f868 00007ff9`ba17e3eb Windows_UI_Xaml!HWCompNode::UpdateTree+0x33
000002ab`8590f870 00007ff9`ba17e387 Windows_UI_Xaml!HWCompTreeNode::UpdateTreeRoot+0x63
000002ab`8590f878 00007ff9`ba17d1fa Windows_UI_Xaml!CCoreServices::SubmitRenderCommandsToCompositor+0x52
000002ab`8590f880 00007ff9`ba17c4c9 Windows_UI_Xaml!CCoreServices::SubmitPrimitiveCompositionCommands+0x109
000002ab`8590f888 00007ff9`ba18da2a Windows_UI_Xaml!CCoreServices::NWDrawTree+0x9ea
000002ab`8590f890 00007ff9`ba18aa93 Windows_UI_Xaml!CCoreServices::NWDrawMainTree+0xe3
000002ab`8590f898 00007ff9`ba18a8ff Windows_UI_Xaml!CWindowRenderTarget::Draw+0x6f
000002ab`8590f8a0 00007ff9`ba18a224 Windows_UI_Xaml!CXcpBrowserHost::OnTick+0xc4
000002ab`8590f8a8 00007ff9`ba18a0ec Windows_UI_Xaml!CXcpDispatcher::Tick+0x8c
000002ab`8590f8b0 00007ff9`ba18a003 Windows_UI_Xaml!CXcpDispatcher::OnReentrancyProtectedWindowMessage+0x43
000002ab`8590f8b8 00007ff9`ba18a5dc Windows_UI_Xaml!CDeferredInvoke::DispatchQueuedMessage+0x16c
000002ab`8590f8c0 00007ff9`ba18a43c Windows_UI_Xaml!CXcpDispatcher::MessageTimerCallbackStatic+0x1c
000002ab`8590f8c8 00007ff9`c2ec769f CoreMessaging!Microsoft__CoreUI__Dispatch__TimeoutHandler$CallbackThunk+0x1cf
000002ab`8590f8d0 00007ff9`c2ebaa4c CoreMessaging!Microsoft::CoreUI::Dispatch::TimeoutManager::Callback_OnDispatch+0x18c
000002ab`8590f8d8 00007ff9`c2ec288f CoreMessaging!Microsoft::CoreUI::Dispatch::EventLoop::Callback_RunCoreLoop+0x60f
000002ab`8590f8e0 00007ff9`c2ec0d18 CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::OnUserDispatch+0x1e8
000002ab`8590f8e8 00007ff9`c2ebce09 CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter_DoWork+0xf9
000002ab`8590f8f0 00007ff9`c2ebcc08 CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter_WindowProc+0x58
000002ab`8590f8f8 00007ff9`c7406cc1 user32!UserCallWinProcCheckWow+0x2c1
000002ab`8590f900 00007ff9`c740699c user32!DispatchClientMessage+0x9c
000002ab`8590f908 00007ff9`c7410453 user32!_fnDWORD+0x33
000002ab`8590f910 00007ff9`c9eddca4 ntdll!KiUserCallbackDispatcherContinue+0x0
000002ab`8590f918 00007ff9`c72310a4 win32u!NtUserPeekMessage+0x14
000002ab`8590f920 00007ff9`c7408633 user32!_PeekMessage+0x33
000002ab`8590f928 00007ff9`c74085c5 user32!PeekMessageW+0x105
000002ab`8590f930 00007ff9`be374976 Windows_UI!Windows::UI::Core::CDispatcher::ProcessMessage+0xb6
000002ab`8590f938 00007ff9`be372d9e Windows_UI!Windows::UI::Core::CDispatcher::WaitAndProcessMessagesInternal+0xae
000002ab`8590f940 00007ff9`be37485d Windows_UI!Windows::UI::Core::CDispatcher::ProcessEvents+0x7d
000002ab`8590f948 00007ff9`b9fc7054 Windows_UI_Xaml!CJupiterWindow::RunCoreWindowMessageLoop+0x4c
000002ab`8590f950 00007ff9`b9fc6ff8 Windows_UI_Xaml!DirectUI::DXamlCore::RunMessageLoop+0x44
000002ab`8590f958 00007ff9`c465433a twinapi_appcore!Windows::ApplicationModel::Core::CoreApplicationView::Run+0x3a
000002ab`8590f960 00007ff9`c467c50d twinapi_appcore!<lambda_476a253d60a149be58fa202b506b2c7b>::operator+0x1a5
000002ab`8590f968 00007ff9`c7613fb5 SHCore!_WrapperThreadProc+0xf5
000002ab`8590f970 00007ff9`c9bb3034 kernel32!BaseThreadInitThunk+0x14
000002ab`8590f978 00007ff9`c9eb1551 ntdll!RtlUserThreadStart+0x21

FAULTING_SOURCE_LINE:  onecoreuap\windows\dxaml\xcp\plat\win\browserdesktop\directmanipulationservice.cpp

FAULTING_SOURCE_FILE:  onecoreuap\windows\dxaml\xcp\plat\win\browserdesktop\directmanipulationservice.cpp

FAULTING_SOURCE_LINE_NUMBER:  6288

FAULTING_SOURCE_CODE:  
No source found for 'onecoreuap\windows\dxaml\xcp\plat\win\browserdesktop\directmanipulationservice.cpp'

SYMBOL_NAME:  Windows_UI_Xaml!CDirectManipulationService::CreateViewportInteraction+15c8fd

MODULE_NAME: Windows_UI_Xaml

IMAGE_NAME:  Windows.UI.Xaml.dll

STACK_COMMAND:  *** Stowed Exception v2 ***; .exr -1; dpp 0x2ab8d5efb50 L0x5; dt 0x2ab859114f0 combase!STOWED_EXCEPTION_INFORMATION_V2 -r; dps 0x2ab8590f808 L0x2f ; ** Pseudo Context ** StowedPseudo ** Value: 1c32b7fc3f0 ** ; kb

FAILURE_BUCKET_ID:  STOWED_EXCEPTION_8007000e_Windows.UI.Xaml.dll!CDirectManipulationService::CreateViewportInteraction

OS_VERSION:  10.0.17134.1

BUILDLAB_STR:  rs4_release

OSPLATFORM_TYPE:  x64

OSNAME:  Windows 10

IMAGE_VERSION:  10.0.17134.1

FAILURE_ID_HASH:  {ae27dfbd-21f7-07bc-e1f7-ad59197863be}

Followup:     MachineOwner
---------
0:003> .exr -1
ExceptionAddress: 00007ff9ba2a4410 (Windows_UI_Xaml!CInputManager::CreateViewportInteractionForManipulatableElement+0x000000000015c8d4)
   ExceptionCode: c000027b
  ExceptionFlags: 00000001
NumberParameters: 2
   Parameter[0]: 000002ab8d5efb50
   Parameter[1]: 0000000000000005
0:003> dpp 0x2ab8d5efb50 L0x5
000002ab`8d5efb50  000002ab`859114f0 53453032`00000038
000002ab`8d5efb58  000002ab`8582af00 53453032`00000038
000002ab`8d5efb60  000002ab`889a3d10 53453032`00000038
000002ab`8d5efb68  000002ab`8591c180 53453032`00000038
000002ab`8d5efb70  000002ab`8591a430 53453032`00000038
0:003> dt 0x2ab859114f0 combase!STOWED_EXCEPTION_INFORMATION_V2 -r
   +0x000 Header           : _STOWED_EXCEPTION_INFORMATION_HEADER
      +0x000 Size             : 0x38
      +0x004 Signature        : 0x53453032
   +0x008 ResultCode       : 8007000e
   +0x00c ExceptionForm    : 0y01
   +0x00c ThreadId         : 0y000000000000000000100000010000 (0x810)
   +0x010 ExceptionAddress : (null) 
   +0x018 StackTraceWordSize : 8
   +0x01c StackTraceWords  : 0x2f
   +0x020 StackTrace       : 0x000002ab`8590f808 Void
   +0x010 ErrorText        : (null) 
   +0x028 NestedExceptionType : 0x4c4d4158
   +0x030 NestedException  : 0x000002ab`8590f7f0 Void
0:003> dps 0x2ab8590f808 L0x2f
000002ab`8590f808  00007ff9`ba2a436d Windows_UI_Xaml!CDirectManipulationService::CreateViewportInteraction+0x15c8fd [onecoreuap\windows\dxaml\xcp\plat\win\browserdesktop\directmanipulationservice.cpp @ 6288]
000002ab`8590f810  00007ff9`ba147bda Windows_UI_Xaml!CInputManager::CreateViewportInteractionForManipulatableElement+0x9e [onecoreuap\windows\dxaml\xcp\core\input\inputmanager.cpp @ 19462]
000002ab`8590f818  00007ff9`ba147c74 Windows_UI_Xaml!CUIElement::GetViewportInteraction+0x60 [onecoreuap\windows\dxaml\xcp\core\core\elements\uielement.cpp @ 17084]
000002ab`8590f820  00007ff9`ba0964e6 Windows_UI_Xaml!HWCompTreeNodeWinRT::UpdatePrimaryVisualViewportInteraction+0xe6 [onecoreuap\windows\dxaml\xcp\components\comptree\hwcompnodewinrt.cpp @ 1530]
000002ab`8590f828  00007ff9`ba095d14 Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x4a4 [onecoreuap\windows\dxaml\xcp\core\hw\hwcompnode.cpp @ 804]
000002ab`8590f830  00007ff9`ba095a87 Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217 [onecoreuap\windows\dxaml\xcp\core\hw\hwcompnode.cpp @ 813]
000002ab`8590f838  00007ff9`ba095a87 Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217 [onecoreuap\windows\dxaml\xcp\core\hw\hwcompnode.cpp @ 813]
000002ab`8590f840  00007ff9`ba095a87 Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217 [onecoreuap\windows\dxaml\xcp\core\hw\hwcompnode.cpp @ 813]
000002ab`8590f848  00007ff9`ba095a87 Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217 [onecoreuap\windows\dxaml\xcp\core\hw\hwcompnode.cpp @ 813]
000002ab`8590f850  00007ff9`ba095a87 Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217 [onecoreuap\windows\dxaml\xcp\core\hw\hwcompnode.cpp @ 813]
000002ab`8590f858  00007ff9`ba095a87 Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217 [onecoreuap\windows\dxaml\xcp\core\hw\hwcompnode.cpp @ 813]
000002ab`8590f860  00007ff9`ba095a87 Windows_UI_Xaml!HWCompTreeNode::UpdateTreeVirtual+0x217 [onecoreuap\windows\dxaml\xcp\core\hw\hwcompnode.cpp @ 813]
000002ab`8590f868  00007ff9`ba17e3eb Windows_UI_Xaml!HWCompNode::UpdateTree+0x33 [onecoreuap\windows\dxaml\xcp\core\hw\hwcompnode.cpp @ 189]
000002ab`8590f870  00007ff9`ba17e387 Windows_UI_Xaml!HWCompTreeNode::UpdateTreeRoot+0x63 [onecoreuap\windows\dxaml\xcp\core\hw\hwcompnode.cpp @ 766]
000002ab`8590f878  00007ff9`ba17d1fa Windows_UI_Xaml!CCoreServices::SubmitRenderCommandsToCompositor+0x52 [onecoreuap\windows\dxaml\xcp\core\dll\xcpcore.cpp @ 7870]
000002ab`8590f880  00007ff9`ba17c4c9 Windows_UI_Xaml!CCoreServices::SubmitPrimitiveCompositionCommands+0x109 [onecoreuap\windows\dxaml\xcp\core\dll\xcpcore.cpp @ 7677]
000002ab`8590f888  00007ff9`ba18da2a Windows_UI_Xaml!CCoreServices::NWDrawTree+0x9ea [onecoreuap\windows\dxaml\xcp\core\dll\xcpcore.cpp @ 7281]
000002ab`8590f890  00007ff9`ba18aa93 Windows_UI_Xaml!CCoreServices::NWDrawMainTree+0xe3 [onecoreuap\windows\dxaml\xcp\core\dll\xcpcore.cpp @ 6718]
000002ab`8590f898  00007ff9`ba18a8ff Windows_UI_Xaml!CWindowRenderTarget::Draw+0x6f [onecoreuap\windows\dxaml\xcp\core\compositor\windowrendertarget.cpp @ 137]
000002ab`8590f8a0  00007ff9`ba18a224 Windows_UI_Xaml!CXcpBrowserHost::OnTick+0xc4 [onecoreuap\windows\dxaml\xcp\host\win\browserdesktop\winbrowserhost.cpp @ 538]
000002ab`8590f8a8  00007ff9`ba18a0ec Windows_UI_Xaml!CXcpDispatcher::Tick+0x8c [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 1450]
000002ab`8590f8b0  00007ff9`ba18a003 Windows_UI_Xaml!CXcpDispatcher::OnReentrancyProtectedWindowMessage+0x43 [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 1048]
000002ab`8590f8b8  00007ff9`ba18a5dc Windows_UI_Xaml!CDeferredInvoke::DispatchQueuedMessage+0x16c [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 293]
000002ab`8590f8c0  00007ff9`ba18a43c Windows_UI_Xaml!CXcpDispatcher::MessageTimerCallbackStatic+0x1c [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 1527]
000002ab`8590f8c8  00007ff9`c2ec769f CoreMessaging!Microsoft__CoreUI__Dispatch__TimeoutHandler$CallbackThunk+0x1cf
000002ab`8590f8d0  00007ff9`c2ebaa4c CoreMessaging!Microsoft::CoreUI::Dispatch::TimeoutManager::Callback_OnDispatch+0x18c
000002ab`8590f8d8  00007ff9`c2ec288f CoreMessaging!Microsoft::CoreUI::Dispatch::EventLoop::Callback_RunCoreLoop+0x60f
000002ab`8590f8e0  00007ff9`c2ec0d18 CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::OnUserDispatch+0x1e8
000002ab`8590f8e8  00007ff9`c2ebce09 CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter_DoWork+0xf9
000002ab`8590f8f0  00007ff9`c2ebcc08 CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter_WindowProc+0x58
000002ab`8590f8f8  00007ff9`c7406cc1 user32!UserCallWinProcCheckWow+0x2c1
000002ab`8590f900  00007ff9`c740699c user32!DispatchClientMessage+0x9c
000002ab`8590f908  00007ff9`c7410453 user32!_fnDWORD+0x33
000002ab`8590f910  00007ff9`c9eddca4 ntdll!KiUserCallbackDispatcherContinue
000002ab`8590f918  00007ff9`c72310a4 win32u!NtUserPeekMessage+0x14
000002ab`8590f920  00007ff9`c7408633 user32!_PeekMessage+0x33
000002ab`8590f928  00007ff9`c74085c5 user32!PeekMessageW+0x105
000002ab`8590f930  00007ff9`be374976 Windows_UI!Windows::UI::Core::CDispatcher::ProcessMessage+0xb6 [onecoreuap\windows\advcore\winrt\onecoreiwindow\corewindow\common\dispatcher.cpp @ 284]
000002ab`8590f938  00007ff9`be372d9e Windows_UI!Windows::UI::Core::CDispatcher::WaitAndProcessMessagesInternal+0xae [onecoreuap\windows\advcore\winrt\onecoreiwindow\corewindow\common\dispatcher.cpp @ 1959]
000002ab`8590f940  00007ff9`be37485d Windows_UI!Windows::UI::Core::CDispatcher::ProcessEvents+0x7d [onecoreuap\windows\advcore\winrt\onecoreiwindow\corewindow\common\dispatcher.cpp @ 581]
000002ab`8590f948  00007ff9`b9fc7054 Windows_UI_Xaml!CJupiterWindow::RunCoreWindowMessageLoop+0x4c [onecoreuap\windows\dxaml\xcp\dxaml\lib\jupiterwindow.cpp @ 1244]
000002ab`8590f950  00007ff9`b9fc6ff8 Windows_UI_Xaml!DirectUI::DXamlCore::RunMessageLoop+0x44 [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 2217]
000002ab`8590f958  00007ff9`c465433a twinapi_appcore!Windows::ApplicationModel::Core::CoreApplicationView::Run+0x3a
000002ab`8590f960  00007ff9`c467c50d twinapi_appcore!<lambda_476a253d60a149be58fa202b506b2c7b>::operator()+0x1a5
000002ab`8590f968  00007ff9`c7613fb5 SHCore!_WrapperThreadProc+0xf5
000002ab`8590f970  00007ff9`c9bb3034 kernel32!BaseThreadInitThunk+0x14
000002ab`8590f978  00007ff9`c9eb1551 ntdll!RtlUserThreadStart+0x21
codendone commented 4 years ago

This looks the same as the previous dump, with just a different function hitting the same issue.

okkarkp commented 4 years ago

Thank you @codendone for your reply. I am working together with @chertpong in the same project. With your advices, we checked thru our codes "create multiple CoreApplicationViews" but we didn't use it much. But We are using CoreWindow.Dispatcher.RunAsync method a lot in our codes. So, not sure it is related to it. Can you please advise on this? Thanks.

codendone commented 4 years ago

@okkarkp Dispatcher.RunAsync won't affect this issue.

If you can share a full memory dump for a crash hitting this issue (the regkey option is good for capturing such a dump), I can look at that to see where this is coming from.

okkarkp commented 4 years ago

@codendone Thank you.

https://1drv.ms/u/s!Aju2_sr9Rue0rXsSzaxrVOU5zrSc?e=bDDcnO

You can get the crash dump from the above link.

Really appreciated.

codendone commented 4 years ago

@okkarkp Thanks for the dump! I spent a while looking at that with another dev, and it looks like you're hitting a leak bug in XAML (internal link). It turns out this bug was just fixed and the fix should go out in Windows Update for versions 1809+ in the next couple months.

It is worth noting that the dump is from 1803, which is not planned to get the fix.

okkarkp commented 4 years ago

Noted and thank you, @codendone

codendone commented 3 years ago

Closing this issue. The leak fix I mentioned above should be rolling out to 1809+ machines which will hopefully fix this for most users.