Bug 40440 - IPhoneDeviceManager.cs continuously has System.IndexOutOfRangeException: Index was outside the bounds of the array.
Summary: IPhoneDeviceManager.cs continuously has System.IndexOutOfRangeException: Inde...
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: 6.0.0 (C7)
Hardware: PC Mac OS
: High normal
Target Milestone: (C7)
Assignee: Jeffrey Stedfast
Depends on:
Reported: 2016-04-15 15:16 UTC by Kyle White
Modified: 2016-04-20 17:38 UTC (History)
1 user (show)

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 Developer Community or GitHub 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:

Description Kyle White 2016-04-15 15:16:27 UTC
1) Connect iOS device to your Mac
2) Open XS
3) Create/Open an iOS project
4) Wait a while
5) Look at the log, it's flooded with IndexOutOfRangeExceptions like this:

ERROR [2016-04-15 11:11:30Z]: An unhandled exception has occured. Terminating Xamarin Studio? False
System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at (wrapper stelemref) System.Object:virt_stelemref_class (intptr,object)
  at Xamarin.MacDev.IPhoneDeviceManager+<HandleNotification>c__async0.MoveNext () [0x0070b] in /Users/builder/data/lanes/2920/2d5d7f99/source/md-addins/external/maciostools/Xamarin.MacDev/Encrypted/IPhoneDeviceManager.cs:213 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /private/tmp/source-mono-4.4.0/bockbuild-mono-4.4.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/external/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143 
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>m__0 (System.Object state) [0x00000] in /private/tmp/source-mono-4.4.0/bockbuild-mono-4.4.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/external/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1018 
  at MonoDevelop.Ide.DispatchService+GtkSynchronizationContext+<Post>c__AnonStorey0.<>m__0 (System.Object , System.EventArgs ) [0x00000] in /Users/builder/data/lanes/2920/2d5d7f99/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/DispatchService.cs:52 
  at Gtk.Application+InvokeCB.Invoke () <0x11bc7f190 + 0x00021> in <filename unknown>:0 
  at GLib.Timeout+TimeoutProxy.Handler () <0x11bc7c9a0 + 0x0004a> in <filename unknown>:0 

Ide log: https://gist.github.com/kdubau/2bdc0ec35aa67a2eabaad6f15d76fbaa
About: https://gist.github.com/kdubau/e4e704611fbe7b843aa291603a774fe9
Comment 1 Jeffrey Stedfast 2016-04-15 15:41:39 UTC
Comment 2 Kyle White 2016-04-20 17:38:57 UTC
Verified fixed in C7.