首页 > 解决方案 > 当一天的第一次打开时,Xamarin 形成 iOS 应用程序有时会崩溃

问题描述

我已经使用 Xamarin Forms 构建了一个 iOS 应用程序。它已集成到 firebase crashlatins 中。所以我从几个 ios 用户那里得到了一个错误。

Non-fatal Exception: Unable to read data from the transport connection: The socket is not connected.

在 System.Net.Sockets.Socket+AwaitableSocketAsyncEventArgs.ThrowException (System.Net.Sockets.SocketError 错误) <0x105528640 + 0x0001c> 在 <11ade8ccf21d4e088feeebdfa82d9e3b#d1ce4374a462223982a60b97d03a2ef1>:0 在 System.Net.Sockets.Sockets.Socket.Result Int16 token) <0x1055284b0 + 0x00073> in <11ade8ccf21d4e088feeebdfa82d9e3b#d1ce4374a462223982a60b97d03a2ef1>:0 at System.Threading.Tasks.ValueTask`1+ValueTaskSourceAsTask+<>c[TResult].<.cctor>b__4_0 (System.Object state) <0x104d714f0 + 0x00173 > 在 <d7378003255d47168c07c9b138461e80#d1ce4374a462223982a60b97d03a2ef1>:0 --- 堆栈跟踪从上一个引发异常的位置结束---在 Mono.Net.Security.MobileAuthenticatedStream.InnerRead (System.Boolean sync, System.Int32 requestedSize, System.Threading .CancellationToken cancellationToken) <0x10544c170 + 0x0039b> in <11ade8ccf21d4e088feeebdfa82d9e3b#d1ce4374a462223982a60b97d03a2ef1>:0 at Mono.Net.Security.AsyncProtocolRequest.InnerRead (System.Threading.CancellationToken cancellationToken) <0x1054467a0 + 0x0024b> in <11ade8ccf21d4e088feeebdfa82d9e3b#d1ce4374a462223982a60b97d03a2ef1>:0 at Mono. Net.Security.AsyncProtocolRequest.ProcessOperation (System.Threading.CancellationToken cancellationToken) <0x105446120 + 0x00227> in <11ade8ccf21d4e088feeebdfa82d9e3b#d1ce4374a462223982a60b97d03a2ef1>:0 at Mono.Net.Security.AsyncProtocolRequest.StartOperation (System.Threading.CancellationToken cancellationToken) <0x105445cd0 + 0x00273 > 在 Mono.Net.Security.MobileAuthenticatedStream 的 <11ade8ccf21d4e088feeebdfa82d9e3b#d1ce4374a462223982a60b97d03a2ef1>:0 中。CheckThrow (System.Boolean authSuccessCheck, System.Boolean shutdownCheck) <0x1054484a0 + 0x0002f> in <11ade8ccf21d4e088feeebdfa82d9e3b#d1ce4374a462223982a60b97d03a2ef1>:0 at Mono.Net.Security.MobileAuthenticatedStream.StartOperation (Mono.Net.Security.MobileAuthenticatedStream+OperationType type, Mono.Net .Security.AsyncProtocolRequest asyncRequest, System.Threading.CancellationToken cancelToken) <0x1

但是,我仍然不知道问题发生在哪里以及为什么发生。任何有想法的人

标签: iosfirebasexamarin.formsxamarin.ioscrashlytics

解决方案


此错误通常表示目标计算机正在运行,但您尝试连接的服务不可用。(它停止、崩溃或正忙于另一个请求。)因此,您可能想要检查您的网络或做类似的事情,您可以检查这个问题,它很好地解释了问题Unable to read data from the transport connection :现有连接被远程主机强行关闭


推荐阅读