Exception & Crash on disconnect
See original GitHub issueIn both iOS and Android now, we’re getting a crash when calling Client.DisconnectAsync
has anyone else seen this?
[mono] Unhandled Exception:
[mono] System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---> System.ObjectDisposedException: Cannot access a disposed object.
[mono] Object name: 'MobileAuthenticatedStream'.
[mono] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <fcbf47a04b2e4d90beafbae627e1fca4>:0
[mono] at Mono.Net.Security.MobileAuthenticatedStream+<StartOperation>d__58.MoveNext () [0x001bf] in <bcdc1df2b3724ab69797f3819a126346>:0
[mono] --- End of inner exception stack trace ---
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Unhandled Exception / Crash when disconnecting controller
Sometimes it gracefully disconnects, but occasionally when my bluetooth controller disconnects this crashes. I can reproduce by taking the batteries out. This ...
Read more >New Update Plaguing Players with Crash/Disconnect ...
New Update Plaguing Players with Crash/Disconnect, Possible Cause ... Looking closer at the error log, looks like it's getting an error when ...
Read more >c# - Socket exception when disconnecting
The Socket will throw an exception if you are trying to disconnect a not connected socket... Try something like: if (sckCommunication.Connected) ...
Read more >RDM Crashing/Hanging on Log off or Disconnect
The program RemoteDesktopManager.exe version 12.0.8.0 stopped interacting with Windows and was closed. To see if more information about the problem is available ...
Read more >⚓ T172728 Server crash when player disconnects ...
The server crashes from time to time if a player is disconnecting. Turning off Battleye does have no effect.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi @acrabb , thanks for reporting this issue. I already fixed this for the next version (2.7.2). Best regards Christian
hm, looks like this is happening again for iOS. Both in 2.7.3-rc3 and after upgrading to 2.7.4 Not sure if @Flo1987 (https://github.com/chkr1011/MQTTnet/issues/210) is seeing it too?