Bug 25877 - InvalidOperationException at System.Net.ServicePoint.RemoveConnectionGroup
Summary: InvalidOperationException at System.Net.ServicePoint.RemoveConnectionGroup
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: System ()
Version: 3.8.0
Hardware: Macintosh Mac OS
: High normal
Target Milestone: Untriaged
Assignee: Martin Baulig
URL:
Depends on:
Blocks:
 
Reported: 2015-01-09 10:40 UTC by Eugene Ignatov
Modified: 2016-11-11 10:07 UTC (History)
7 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Eugene Ignatov 2015-01-09 10:40:10 UTC
There is already same Bug#19823 - which is marked as fixed. But I still get same errors on latest (v3.10) Mono version

2015-01-06 16:54:28,860 FATAL [readpool worker] ThisApp              - AppDomain exception occured
System.InvalidOperationException: Operation is not valid due to the current state of the object
  at System.Net.ServicePoint.RemoveConnectionGroup (System.Net.WebConnectionGroup group) [0x0001b] in /private/tmp/source-mono-mac-3.10.0-branch/bockbuild-mono-3.10.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.10.0/mcs/class/System/System.Net/ServicePoint.cs:273 
  at System.Net.ServicePoint.CheckAvailableForRecycling (System.DateTime& outIdleSince) [0x0010b] in /private/tmp/source-mono-mac-3.10.0-branch/bockbuild-mono-3.10.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.10.0/mcs/class/System/System.Net/ServicePoint.cs:317 
  at System.Net.ServicePoint.IdleTimerCallback (System.Object obj) [0x00000] in /private/tmp/source-mono-mac-3.10.0-branch/bockbuild-mono-3.10.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.10.0/mcs/class/System/System.Net/ServicePoint.cs:338 
  at System.Threading.Timer+Scheduler.TimerCB (System.Object o) [0x00007] in /private/tmp/source-mono-mac-3.10.0-branch/bockbuild-mono-3.10.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.10.0/mcs/class/corlib/System.Threading/Timer.cs:317
Comment 1 Lukas Lipka 2015-01-28 05:09:59 UTC
Can confirm that we are also seeing this issue, only happens on iOS 7.1, 7.1.1 and 7.1.2 so far.

Terminating app due to uncaught exception 'System.InvalidOperationException: Operation is not valid due to the current state of the object', reason: 'System.InvalidOperationException: Operation is not valid due to the current state of the object at System.Net.ServicePoint.RemoveConnectionGroup (System.Net.WebConnectionGroup group) [0x00000] in <filename unknown>:0 at System.Net.ServicePoint.CheckAvailableForRecycling (System.DateTime& outIdleSince) [0x00000] in <filename unknown>:0 at System.Net.ServicePoint.IdleTimerCallback (System.Object obj) [0x00000] in <filename unknown>:0 at System.Threading.Timer+Scheduler.TimerCB (System.Object o) [0x00000] in <filename unknown>:0 '
Comment 2 alex 2015-03-01 15:30:11 UTC
Happens also on iOS 8.1
at System.Net.ServicePoint.RemoveConnectionGroup (System.Net.WebConnectionGroup group) [0x0001b] in ///Library/Frameworks/Xamarin.iOS.framework/Versions/8.6.1.26/src/mono/mcs/class/System/System.Net/ServicePoint.cs:273 
  at System.Net.ServicePoint.CheckAvailableForRecycling (System.DateTime& outIdleSince) [0x0010b] in ///Library/Frameworks/Xamarin.iOS.framework/Versions/8.6.1.26/src/mono/mcs/class/System/System.Net/ServicePoint.cs:317 
  at System.Net.ServicePoint.IdleTimerCallback (System.Object obj) [0x00000] in ///Library/Frameworks/Xamarin.iOS.framework/Versions/8.6.1.26/src/mono/mcs/class/System/System.Net/ServicePoint.cs:338 
  at System.Threading.Timer+Scheduler.TimerCB (System.Object o) [0x00007] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading/Timer.cs:317
Comment 3 Kent Green [MSFT] 2015-10-05 19:04:10 UTC
Per the description, that this bug is reported against Mono v3.10; however the most recent comment on Bug#19823 indicates that one was actually fixed in Mono v4.0:
https://bugzilla.xamarin.com/show_bug.cgi?id=19823#c16

That comment was made on 2015-03-24, and the current stable version is Mono v4.0.4
Neither of these bug reports has received an updated comment since after that fixed version was reported. Marking this bug as NEEDINFO pending some indication if it's reproducible in the current stable version.
Comment 4 Martin Baulig 2016-11-11 10:07:16 UTC
This has been fixed a long time ago.