3

HockeyApp 在提示应用启动并要求发送/删除崩溃日志时,在按下返回按钮时崩溃。ANullReferenceException发生在 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
}
4

1 回答 1

3

这是HockeyApp sdk 中的错误。两个月前用这个 commit修复了它。但是最新版本的 sdk (2.2.2) 是 8 个月前构建的。

所以你应该包装SendCrashesAsync调用try { //... } catch (NullReferenceException) { }并等待sdk的新版本。

于 2015-09-07T18:43:48.743 回答