Skip to content

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

Description

@chertpong

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
---------

Metadata

Metadata

Assignees

No one assigned

    Labels

    team-RenderingIssue for the Rendering team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions