Not logged in. · Lost password · Register
Forum: MatriX RSS
pcharlton@carbonlabs.co.uk #1
Member since Nov 2019 · 9 posts
Group memberships: Members
Show profile · Link to this post
Subject: iOS Crash in when sleep
Hi,
I'm getting a DotNetty exception (DotNetty.Transport.Channels.ClosedChannelException) being thrown that's causing a crash in iOS devices (not the simulator) and seems to be when the device/app wakes from (or possibly goes into) sleep.


I don't know if this is an issue in DotNetty or Matrix.

I've pasted the stack trace from App Centre in the hope that it can help?

DotNetty.Transport.Channels.ClosedChannelException: I/O error occurred.
  at Matrix.Network.Handlers.KeepAliveHandler+<>c__DisplayClass4_0.<ChannelActive>b__0 (System.Object state) <0x10a6ab320 + 0x001bf> in <2b86b82b658d4c92bfd52eb72504d791#e8cc3261e5c46375b4637f546f2e9a9c>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_1 (System.Object state) <0x10537dfec + 0x00067> in <26af7b5f4340497eaece2479b9ba2eee#e8cc3261e5c46375b4637f546f2e9a9c>:0
  at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) <0x10531321c + 0x0005b> in <26af7b5f4340497eaece2479b9ba2eee#e8cc3261e5c46375b4637f546f2e9a9c>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) <0x10530c784 + 0x0015f> in <26af7b5f4340497eaece2479b9ba2eee#e8cc3261e5c46375b4637f546f2e9a9c>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) <0x10530c6c8 + 0x00043> in <26af7b5f4340497eaece2479b9ba2eee#e8cc3261e5c46375b4637f546f2e9a9c>:0
  at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () <0x10531317c + 0x00047> in <26af7b5f4340497eaece2479b9ba2eee#e8cc3261e5c46375b4637f546f2e9a9c>:0
  at System.Threading.ThreadPoolWorkQueue.Dispatch () <0x1050ec530 + 0x001e7> in <26af7b5f4340497eaece2479b9ba2eee#e8cc3261e5c46375b4637f546f2e9a9c>:0
  at ObjCRuntime.Runtime.ThreadPoolDispatcher (System.Func`1[TResult] callback) <0x1062902a8 + 0x00053> in <11cf1cb643154f5dbbfae722322b4d57#e8cc3261e5c46375b4637f546f2e9a9c>:0
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () <0x105313014 + 0x00077> in <26af7b5f4340497eaece2479b9ba2eee#e8cc3261e5c46375b4637f546f2e9a9c>:0

All the best,
Paul.
Avatar
Alex #2
Member since Feb 2003 · 4407 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello Paul,

there is not that much info in the stacktrace.

Is it possible that it causes an exception here when the connection was lost?
https://github.com/matrix-xmpp/matrix-vnext/blob/9d7407d41…

I am also getting away from dotNetty in the current developer branch which you can browse here:
https://github.com/matrix-xmpp/matrix-vnext/tree/net5

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS