【发布时间】:2018-06-13 10:10:00
【问题描述】:
我在 Microsoft Store 中发布了一个应用,MS 应用中心向我报告了以下异常:
stowed_exception 802B000A.我看到其他人面临相同类型或问题 (Windows 10 UWP XAML stowed_exception_802b000a_my_app.dll!windows::ui::xaml::iapplicationstatics__impl::stubclass.loadcomponent),但我的堆栈跟踪有点不同:我的应用程序中没有代码出现,只有 XAML 框架组件。
如何处理这种类型的异常? 完整的堆栈跟踪如下。 提前感谢您的帮助。
1 unknown.dll [StowedException]() +0x0000000000000000
2 combase.dll RoOriginateErrorW() error.cpp:542
3 Windows.UI.Xaml.dll DirectUI::ErrorHelper OriginateError() errorhelper.cpp:680
4 Windows.UI.Xaml.dll CJupiterErrorServiceListener NotifyErrorAdded() jupitercontrol.cpp:1069
5 Windows.UI.Xaml.dll CErrorService AddError() errorservice.cpp:657
6 Windows.UI.Xaml.dll CErrorService ReportParserError() errorservice.cpp:818
7 Windows.UI.Xaml.dll ParserErrorService ReportError() parsererrorservice.cpp:198
8 Windows.UI.Xaml.dll ObjectWriterErrorService WrapErrorWithParserErrorAndRethrow() objectwritererrorservice.cpp:131
9 Windows.UI.Xaml.dll BinaryFormatObjectWriter SetValueOnCurrentInstance() binaryformatobjectwriter.cpp:654
10 Windows.UI.Xaml.dll BinaryFormatObjectWriter WriteNode() binaryformatobjectwriter.cpp:178
11 Windows.UI.Xaml.dll CTemplateContent LoadXbfVersion2() templatecontent.cpp:668
12 Windows.UI.Xaml.dll CTemplateContent Load() templatecontent.cpp:463
13 Windows.UI.Xaml.dll CFrameworkTemplate LoadContent() template.cpp:103
14 Windows.UI.Xaml.dll CControlTemplate LoadContent() template.cpp:226
15 Windows.UI.Xaml.dll CFrameworkElement ApplyTemplate() framework.cpp:1314
16 Windows.UI.Xaml.dll CContentPresenter ApplyTemplate() contentpresenter.cpp:600
17 Windows.UI.Xaml.dll CFrameworkElement InvokeApplyTemplate() framework.cpp:1167
18 Windows.UI.Xaml.dll CFrameworkElement MeasureCore() framework.cpp:1454
19 Windows.UI.Xaml.dll CUIElement MeasureInternal() uielement.cpp:3984
20 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3810
21 Windows.UI.Xaml.dll DirectUI::UIElement MeasureImpl() uielement_partial.cpp:384
22 Windows.UI.Xaml.dll DirectUI::UIElementGenerated Measure() uielement.g.cpp:2794
23 Windows.UI.Xaml.dll DirectUI::ModernCollectionBasePanel Generate() moderncollectionbasepanel_partial.cpp:1368
24 Windows.UI.Xaml.dll DirectUI::ModernCollectionBasePanel RunGenerate() moderncollectionbasepanel_partial.cpp:888
25 Windows.UI.Xaml.dll DirectUI::ModernCollectionBasePanel RunVirtualization() moderncollectionbasepanel_partial.cpp:615
26 Windows.UI.Xaml.dll DirectUI::ModernCollectionBasePanel MeasureOverride() moderncollectionbasepanel_partial.cpp:516
27 Windows.UI.Xaml.dll DirectUI::FrameworkElementGenerated MeasureOverrideProtected() frameworkelement.g.cpp:864
28 Windows.UI.Xaml.dll DirectUI::FrameworkElement MeasureOverrideFromCore() frameworkelement_partial.cpp:260
29 Windows.UI.Xaml.dll CFrameworkElement MeasureCore() framework.cpp:1490
30 Windows.UI.Xaml.dll CUIElement MeasureInternal() uielement.cpp:3984
31 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3810
32 Windows.UI.Xaml.dll DirectUI::UIElement MeasureImpl() uielement_partial.cpp:384
33 Windows.UI.Xaml.dll DirectUI::UIElementGenerated Measure() uielement.g.cpp:2794
34 Windows.UI.Xaml.dll DirectUI::ItemsPresenter MeasureOverride() itemspresenter_partial.cpp:587
35 Windows.UI.Xaml.dll DirectUI::FrameworkElementGenerated MeasureOverrideProtected() frameworkelement.g.cpp:864
36 Windows.UI.Xaml.dll DirectUI::FrameworkElement MeasureOverrideFromCore() frameworkelement_partial.cpp:260
37 Windows.UI.Xaml.dll CFrameworkElement MeasureCore() framework.cpp:1490
38 Windows.UI.Xaml.dll CUIElement MeasureInternal() uielement.cpp:3984
39 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3810
40 Windows.UI.Xaml.dll CControl MeasureOverride() control.cpp:389
41 Windows.UI.Xaml.dll CItemsControl MeasureOverride() itemscontrol.cpp:313
42 Windows.UI.Xaml.dll CFrameworkElement MeasureCore() framework.cpp:1507
43 Windows.UI.Xaml.dll CUIElement MeasureInternal() uielement.cpp:3984
44 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3810
45 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
46 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
47 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
48 Windows.UI.Xaml.dll CGrid MeasureOverride() grid.cpp:1134
49 Windows.UI.Xaml.dll CFrameworkElement MeasureCore() framework.cpp:1507
50 Windows.UI.Xaml.dll CUIElement MeasureInternal() uielement.cpp:3984
51 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3810
52 Windows.UI.Xaml.dll CGrid MeasureCellsGroup() grid.cpp:426
53 Windows.UI.Xaml.dll CGrid MeasureOverride() grid.cpp:1355
54 Windows.UI.Xaml.dll CFrameworkElement MeasureCore() framework.cpp:1507
55 Windows.UI.Xaml.dll CUIElement MeasureInternal() uielement.cpp:3984
56 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3810
57 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
58 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
59 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
60 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
61 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
62 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
63 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
64 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
65 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
66 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
67 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
68 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
69 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
70 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
71 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
72 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
73 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
74 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
75 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
76 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
77 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
78 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
79 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
80 Windows.UI.Xaml.dll CUIElement Measure() uielement.cpp:3891
81 Windows.UI.Xaml.dll CLayoutManager UpdateLayout() layoutmanager.cpp:251
82 Windows.UI.Xaml.dll CCoreServices NWDrawTree() xcpcore.cpp:7107
83 Windows.UI.Xaml.dll CCoreServices NWDrawMainTree() xcpcore.cpp:6900
84 Windows.UI.Xaml.dll CWindowRenderTarget Draw() windowrendertarget.cpp:138
85 Windows.UI.Xaml.dll CXcpBrowserHost OnTick() winbrowserhost.cpp:530
86 Windows.UI.Xaml.dll CXcpDispatcher Tick() xcpwindow.cpp:1350
87 Windows.UI.Xaml.dll CXcpDispatcher OnReentrancyProtectedWindowMessage() xcpwindow.cpp:910
88 Windows.UI.Xaml.dll CXcpDispatcher WindowProc() xcpwindow.cpp:746
89 user32.dll UserCallWinProcCheckWow() clmsg.c:233
90 user32.dll DispatchMessageWorker() clmsg.c:3094
91 Windows.UI.dll Windows::UI::Core::CDispatcher ProcessMessage() dispatcher.cpp:315
92 Windows.UI.dll Windows::UI::Core::CDispatcher WaitAndProcessMessagesInternal() dispatcher.cpp:1766
93 Windows.UI.dll Windows::UI::Core::CDispatcher ProcessEvents() dispatcher.cpp:569
94 Windows.UI.Xaml.dll CJupiterWindow RunCoreWindowMessageLoop() jupiterwindow.cpp:1234
95 Windows.UI.Xaml.dll DirectUI::DXamlCore RunMessageLoop() dxamlcore.cpp:2062
96 twinapi.appcore.dll Windows::ApplicationModel::Core::CoreApplicationView Run() coreapplicationview.cpp:1695
97 twinapi.appcore.dll _lambda_fffaad44dee747f80f4a19ad58cc9ca3_ operator() coreapplicationview.cpp:1149
98 SHCore.dll _WrapperThreadProc() thread.cpp:321
99 kernel32.dll BaseThreadInitThunk() thread.c:64
100 ntdll.dll RtlUserThreadStart() rtlstrt.c:997
【问题讨论】:
-
您的应用在调试和发布模式下运行良好吗?
-
感谢您的回复,是的,它出现在 DEBUG 或 RELEASE 的开发设备上。但是我不能轻易地复制它,VS确实无法处理它。这很令人困惑。你知道如何找到起源异常的详细信息吗?
-
您会尝试创建一个简单的可重现样本,以便我们对其进行调查和排除故障吗?
-
我的应用程序很大,我不知道哪个页面导致问题......这就是为什么我试图找到真正的错误来确定来源。你知道引发异常的方法吗? (BinaryFormatObjectWriter SetValueOnCurrentInstance() binaryformatobjectwriter.cpp:654)
-
很难找到为什么会出现这个问题,最简单但很繁重的方法是一步一步创建一个新项目,看看问题发生在哪里,将VS调试器应用程序类型配置为Mixed(Managed和本地)。
标签: c# xaml uwp visual-studio-app-center