【发布时间】:2018-02-09 18:15:00
【问题描述】:
我的应用在 11.2 iOS 版本的发布模式下崩溃了。但应用程序适用于 10.3。 我用谷歌搜索了它,但无法做到。 我无法弄清楚问题的原因是什么。我已经写了日志,这是我在错误文件中得到的。
System.NullReferenceException:对象引用未设置为对象的实例 在 System.Threading.Tasks.Task.AddTaskContinuationComplex (System.Object tc, System.Boolean addBeforeOthers) in :0 在 System.Threading.Tasks.Task.AddTaskContinuation (System.Object tc, System.Boolean addBeforeOthers) in :0 在 System.Threading.Tasks.Task.SetContinuationForAwait (System.Action continuationAction, System.Boolean continueOnCapturedContext, System.Boolean flowExecutionContext, System.Threading.StackCrawlMark& stackMark) in :0 在 System.Runtime.CompilerServices.TaskAwaiter.OnCompletedInternal(System.Threading.Tasks.Task 任务,System.Action 继续,System.Boolean continueOnCapturedContext,System.Boolean flowExecutionContext) 在:0 在 System.Runtime.CompilerServices.TaskAwaiter.UnsafeOnCompleted (System.Action 继续) 在:0 在(包装器托管到本机)System.Object:__icall_wrapper_mono_gsharedvt_constrained_call(intptr,intptr,intptr,intptr,intptr) 在 System.Runtime.CompilerServices.AsyncVoidMethodBuilder.AwaitUnsafeOnCompleted[TAwaiter,TStateMachine] (TAwaiter & awaiter, TStateMachine& stateMachine) in :0 --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () 在:0 在 System.Runtime.CompilerServices.AsyncMethodBuilderCore+c.b__6_1 (System.Object 状态) in :0 在 System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object 状态) in :0 在 System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback 回调, System.Object 状态, System.Boolean preserveSyncCtx) in :0 在 System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback 回调, System.Object 状态, System.Boolean preserveSyncCtx) in :0 在 System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () 在:0 在 System.Threading.ThreadPoolWorkQueue.Dispatch () 在 :0 在 ObjCRuntime.Runtime.ThreadPoolDispatcher (System.Func`1[TResult] 回调) in :0 在 System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () in :0
【问题讨论】:
-
我使用 xamarin auth 进行谷歌登录。应用程序启动成功,登录谷歌帐户后返回应用程序然后应用程序关闭。
-
请编辑您的帖子,而不是在 cmets 中添加详细信息。
-
stackstrace 没有多大用处。您能否将日志记录添加到您的应用中,以便找到发生异常的确切位置?
-
你在
OpenUrl()写了一些代码吗?也许是你的代码的问题,发布更多关于哪一行抛出异常的详细信息。 -
感谢您的及时回复