HockeyApp 在按下后退按钮时崩溃 Windows Phone
HockeyApp crashes on back button press on Windows Phone
HockeyApp 在应用程序启动时提示按下后退按钮并要求 sending/deleting 崩溃日志时崩溃。 NullReferenceException
发生在 HockeyApp 内部;附加了堆栈跟踪。
平台是WindowsPhone8.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. It was fixed two month ago with this commit。但是最新版本的 sdk (2.2.2) 是在 8 个月前构建的。
所以你应该用 try { //... } catch (NullReferenceException) { }
包装 SendCrashesAsync
调用并等待 sdk 的新构建。
HockeyApp 在应用程序启动时提示按下后退按钮并要求 sending/deleting 崩溃日志时崩溃。 NullReferenceException
发生在 HockeyApp 内部;附加了堆栈跟踪。
平台是WindowsPhone8.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. It was fixed two month ago with this commit。但是最新版本的 sdk (2.2.2) 是在 8 个月前构建的。
所以你应该用 try { //... } catch (NullReferenceException) { }
包装 SendCrashesAsync
调用并等待 sdk 的新构建。