如果调试版本中没有互联网连接,VideoAdProvider会随机崩溃 [英] VideoAdProvider randomly crashes if no internet connection in debug build

查看:94
本文介绍了如果调试版本中没有互联网连接,VideoAdProvider会随机崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我们的游戏在没有互联网连接的情况下启动,VideoAdProvider会在90%的时间内崩溃(请参阅下面的callstack),另外10%的时间我们会收到一些错误消息来调试输出 我认为是由于调试版本/不在
商店(也粘贴在下面)。

If our game is started without an internet connection the VideoAdProvider crashes about 90% of the time (see callstack below), the other 10% of the time we get some error messages to debug output which I assume is due to debug build/not being on the store (also pasted below).

我们使用C#+ monogame。

We use C# + monogame.

重点即使在调试中它也不应该随机崩溃。

The point is that even in debug it shouldn't just crash randomly.

所以如果它随机崩溃:

'ErrorOccurred'回调并不总是被触发,因为有时它会在触发之前崩溃(有时它会在崩溃之前触发两次),它会报告这个 
$


ErrorCode:"NetworkConnectionFailure"
ErrorMessage:"无法发出http请求"
$




Callstack如果崩溃:

So in case when it crashes randomly:
The 'ErrorOccurred' callback is not always triggered, as sometimes it crashes before it can be triggered (sometimes it is triggered twice before it crashes), it reports this 

ErrorCode: "NetworkConnectionFailure"
ErrorMessage: "Failed to make http request"


Callstack if it crashes:

Microsoft.Advertising.dll!14425aa1()	Unknown
	[Frames below may be incorrect and/or missing, no symbols loaded for Microsoft.Advertising.dll]	
	Microsoft.Advertising.dll!1443fe12()	Unknown
	Microsoft.Advertising.dll!145ba331()	Unknown
	Microsoft.Advertising.dll!144ef93e()	Unknown
	msvcp140_app.dll!147ca25e()	Unknown
	msvcp140_app.dll!147c9fbe()	Unknown
	combase.dll!CRemoteUnknown::DoCallback(tagXAptCallback * pCallbackData) Line 1704	C++
	rpcrt4.dll!_Invoke@12()	Unknown
	rpcrt4.dll!NdrStubCall2()	Unknown
	combase.dll!CStdStubBuffer_Invoke(IRpcStubBuffer * This, tagRPCOLEMESSAGE * prpcmsg, IRpcChannelBuffer * pRpcChannelBuffer) Line 1530	C++
	combase.dll!ObjectMethodExceptionHandlingAction<<lambda_1ba7c1521bf8e7d0ebd8f0b3c0295667> >(InvokeStubWithExceptionPolicyAndTracing::__l6::<lambda_1ba7c1521bf8e7d0ebd8f0b3c0295667> action, ObjectMethodExceptionHandlingInfo * pExceptionHandlingInfo, ExceptionHandlingResult * pExceptionHandlingResult, void *) Line 91	C++
	combase.dll!DefaultStubInvoke(bool bIsAsyncBeginMethod, IServerCall * pServerCall, IRpcChannelBuffer * pChannel, IRpcStubBuffer * pStub, unsigned long * pdwFault) Line 1891	C++
	combase.dll!ServerCall::ContextInvoke(tagRPCOLEMESSAGE * pMessage, IRpcStubBuffer * pStub, CServerChannel * pChannel, tagIPIDEntry * pIPIDEntry, unsigned long * pdwFault) Line 1541	C++
	combase.dll!ASTAInvokeInApartment(tagRPCOLEMESSAGE * pMsg, unsigned long bIsTouchedASTACall, bool pStub, IRpcStubBuffer * pChnl, CServerChannel * pIPIDEntry, tagIPIDEntry * pdwFault, unsigned long *) Line 2910	C++
	combase.dll!AppInvoke(ServerCall * pServerCall, CServerChannel * pChannel, IRpcStubBuffer * pStub, void * pv, void * pStubBuffer, tagIPIDEntry * pIPIDEntry, WireLocalThis * pLocalb) Line 1610	C++
	combase.dll!ComInvokeWithLockAndIPID(ServerCall * pServerCall, tagIPIDEntry * pIPIDEntry, bool * pbCallerResponsibleForRequestMessageCleanup) Line 2722	C++
	combase.dll!ComInvoke(ServerCall * pServerCall, bool * pbCallerResponsibleForRequestMessageCleanup) Line 2242	C++
	combase.dll!ThreadDispatch(ServerCall * pServerCall) Line 421	C++
	combase.dll!CComApartment::ASTAHandleMessage(IMessageParam * pParam) Line 2651	C++
	combase.dll!ASTAWaitContext::HandlePriorityEventsFromMessagePump() Line 1159	C++
	Windows.UI.dll!Windows::UI::Core::CDispatcher::ProcessInvokeItem(int * pbInvokeItemProcessed) Line 1209	C++
	Windows.UI.dll!Windows::UI::Core::CDispatcher::ProcessMessage(int bDrainQueue, int * pbWindowMessagesProcessed, int * pbInvokeItemProcessed) Line 265	C++
	Windows.UI.dll!Windows::UI::Core::CDispatcher::WaitAndProcessMessagesInternal(int bRunAlwaysOnce, void * hEventWait) Line 1766	C++
	Windows.UI.dll!Windows::UI::Core::CDispatcher::ProcessEvents(Windows::UI::Core::CoreProcessEventsOption options) Line 569	C++
	Windows.UI.Xaml.dll!DirectUI::FrameworkView::Run() Line 100	C++
	twinapi.appcore.dll!Windows::ApplicationModel::Core::CoreApplicationView::Run()	Unknown
	twinapi.appcore.dll!<lambda>(void)()	Unknown
	SHCore.dll!_WrapperThreadProc()	Unknown
	kernel32.dll!@BaseThreadInitThunk@12()	Unknown
	ntdll.dll!__RtlUserThreadStart()	Unknown
	ntdll.dll!__RtlUserThreadStart@8()	Unknown



$



  错误消息在10%的时间内没有崩溃:

  Error message in the 10% of the time it doesn't crash:

The thread 0x3a74 has exited with code 0 (0x0).
The thread 0x588 has exited with code 0 (0x0).
Exception thrown at 0x7732B802 (KernelBase.dll) in BlackjackProfessional.UWP.exe: 0x40080201: WinRT originate error (parameters: 0x80072EE7, 0x00000032, 0x1631F4C8).
Exception thrown at 0x7732B802 in BlackjackProfessional.UWP.exe: Microsoft C++ exception: Platform::COMException ^ at memory location 0x1631F8F0. HRESULT:0x80072EE7 The text associated with this error code could not be found.
WinRT information: The server name or address could not be resolved

 info:get_AppId() invoked.	[Windows::ApplicationModel::Store::CurrentAppFactory::get_AppId]
Exception thrown at 0x7732B802 (KernelBase.dll) in BlackjackProfessional.UWP.exe: 0x40080201: WinRT originate error (parameters: 0x80072EE7, 0x00000032, 0x090DEDB0).
Exception thrown at 0x7732B802 (KernelBase.dll) in BlackjackProfessional.UWP.exe: 0x40080201: WinRT originate error (parameters: 0x80072EE7, 0x00000032, 0x15CCF2E0).
WLID Error: 80070525Exception thrown at 0x7732B802 in BlackjackProfessional.UWP.exe: Microsoft C++ exception: Concurrency::task_canceled at memory location 0x017FF7C4.
Exception thrown at 0x7732B802 in BlackjackProfessional.UWP.exe: Microsoft C++ exception: Platform::COMException ^ at memory location 0x15CCF700. HRESULT:0x80072EE7 The text associated with this error code could not be found.
WinRT information: The server name or address could not be resolved

 info:GetAppReceiptAsync() invoked.	[Windows::ApplicationModel::Store::CurrentAppFactory::GetAppReceiptAsync]
Exception thrown at 0x7732B802 in BlackjackProfessional.UWP.exe: Microsoft C++ exception: Platform::COMException ^ at memory location 0x16B3F2C0. HRESULT:0x80072EE7 The text associated with this error code could not be found.
WinRT information: The server name or address could not be resolved

推荐答案

您好ropo_slo,

Hi ropo_slo,

您能分享吗?您的应用链接在这里,以便我们可以尝试重现?这将有助于分析这个问题。

Could you please share your app link here so that we can try to reproduce ? It would help analyze this issue.

谢谢。

最好的问候,

Annievia


这篇关于如果调试版本中没有互联网连接,VideoAdProvider会随机崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆