Closed chertpong closed 3 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.
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.
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
@codendone fyi
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.
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?
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?
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.
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
This looks the same as the previous dump, with just a different function hitting the same issue.
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.
@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.
@codendone Thank you.
https://1drv.ms/u/s!Aju2_sr9Rue0rXsSzaxrVOU5zrSc?e=bDDcnO
You can get the crash dump from the above link.
Really appreciated.
@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.
Noted and thank you, @codendone
Closing this issue. The leak fix I mentioned above should be rolling out to 1809+ machines which will hopefully fix this for most users.
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 incompleteSteps 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:
WinDBG analysis