question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception & Crash on disconnect

See original GitHub issue

In 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:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
chkr1011commented, Mar 15, 2018

Hi @acrabb , thanks for reporting this issue. I already fixed this for the next version (2.7.2). Best regards Christian

0reactions
acrabbcommented, Apr 27, 2018

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?

2018-04-27 10:51:40.775 Wolf.iOS[4764:86068] (Workout) IMqttPipe: disconnected
2018-04-27 10:51:40.792 Wolf.iOS[4764:83576] (Error) UnobservedTaskException: 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.
Object name: 'MobileAuthenticatedStream'.
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.8.0.20/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:152 
  at Mono.Net.Security.MobileAuthenticatedStream+<StartOperation>d__58.MoveNext () [0x001b9] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.8.0.20/src/Xamarin.iOS/mcs/class/System/Mono.Net.Security/MobileAuthenticatedStream.cs:380 
   --- End of inner exception stack trace ---
---> (Inner Exception #0) System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'MobileAuthenticatedStream'.
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.8.0.20/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:152 
  at Mono.Net.Security.MobileAuthenticatedStream+<StartOperation>d__58.MoveNext () [0x001b9] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.8.0.20/src/Xamarin.iOS/mcs/class/System/Mono.Net.Security/MobileAuthenticatedStream.cs:380 <---
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found