gpt4 book ai didi

windows-runtime - HockeyApp 在 Windows Phone 上按下后退按钮时崩溃

转载 作者:行者123 更新时间:2023-12-04 06:59:55 26 4
gpt4 key购买 nike

HockeyApp 在应用程序启动时提示按下后退按钮并要求发送/删除崩溃日志时崩溃。 NullReferenceException 发生在 HockeyApp 内部;附加了堆栈跟踪。

平台为Windows Phone 8.1 RT,HockeyApp版本为2.2.2

如何解决我的应用中的这个问题?

堆栈跟踪:

{
"contact": null,
"description": null,
"log": "Package: BuggyApp\nVersion: 1.1.0.0\nOS: Windows Phone\nWindows Phone: 8.1\nManufacturer: Microsoft\nModel: Virtual\nDate: 2015-09-07T10:29:41.6261178Z\nProduct-ID: 00000000-0000-0000-0000-000000000000
System.NullReferenceException: Object reference not set to an instance of an object.
at HockeyApp.CrashHandler.<AskUserForAgreementAsync>d__c.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at HockeyApp.CrashHandler.<HandleCrashesAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at HockeyApp.HockeyClientExtensionsWinUniversal.<SendCrashesAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at BuggyApp.App.<OnLaunched>d__e.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__3(Object state)
at System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore()",
"sdk": "HockeySDKWP81",
"sdk_version": "2.2.2",
"userID": null
}

最佳答案

bug in the HockeyApp sdk .它是两个月前用 this commit 修复的.但是最新版本的 sdk (2.2.2) 是在 8 个月前构建的。

因此,您应该使用 try {//... } catch (NullReferenceException) { } 包装 SendCrashesAsync 调用并等待 sdk 的新构建。

关于windows-runtime - HockeyApp 在 Windows Phone 上按下后退按钮时崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32436976/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com