Bug 8928 - Choosing "Continue using MonoMac" shows a cryptic error dialog on Mono 2.10.10
Summary: Choosing "Continue using MonoMac" shows a cryptic error dialog on Mono 2.10.10
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Mac Add-in ()
Version: 4.0.8
Hardware: PC Mac OS
: --- blocker
Target Milestone: ---
Assignee: Aaron Bockover [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2012-12-13 18:47 UTC by PJ
Modified: 2013-06-24 09:53 UTC (History)
2 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 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:
Status:
VERIFIED FIXED

Description PJ 2012-12-13 18:47:25 UTC
Conditions:
No XamMac
Mono 2.10.10

Steps to reproduce:
1) Install the new MD
2) Uninstall XamMac if installed
3) Open MD
4) Create new XamMac project
5) Choose "Continue using MonoMac"

Expected behavior:

Project is loaded as a monomac project


Actual behavior:

http://screencast.com/t/h5cDftxsyrm

This does not occur with Mono 2.10.9_11


Severity reasoning: This is worse than the currently live behavior, because the dialog in the live release at least is more relevant (could not create project - makes sense). Hence,  regression/blocker.


MonoDevelop 3.1.1
Installation UUID: b5aed0d2-0f63-4725-91ca-eb558d43bdf2
Runtime:
	Mono 2.10.10 (mono-2-10/4d9ada6)
	GTK 2.24.11
	GTK# (2.12.0.0)
	Package version: 210100000
Apple Developer Tools:
	 Xcode 4.5 (1839)
	 Build 4G182
Xamarin.Mac: Not Installed
Monotouch: 6.0.7
Mono for Android: 4.4.41
Android SDK: /Users/xamarinqa/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.1 (API level 7)
		2.2 (API level 8)
		2.3 (API level 10)
		3.1 (API level 12)
		4.0 (API level 14)
		4.2 (API level 17)
Java SDK: /usr
Build information:
	Release ID: 30101000
	Git revision: e1ecbb260cb80e86985dcd492e60cce2ec39f12d
	Build date: 2012-12-13 22:42:38+0000
	Xamarin addins: a7277f5b6e17df64126b5b142420b4450825dfbb
Operating System:
	Mac OS X 10.7.4
	Darwin dynamic-086.bos.xamarin.com 11.4.0 Darwin Kernel Version 11.4.0
	    Mon Apr  9 19:32:15 PDT 2012
	    root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64
Comment 1 Aaron Bockover [MSFT] 2012-12-13 22:41:50 UTC
Full exception:

ERROR [2012-12-13 22:40:05Z]: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
  at System.Collections.Generic.List`1+Enumerator[MonoDevelop.Projects.SolutionItem].VerifyState () [0x00047] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.Collections.Generic/List.cs:788 
  at System.Collections.Generic.List`1+Enumerator[MonoDevelop.Projects.SolutionItem].MoveNext () [0x00000] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.Collections.Generic/List.cs:792 
  at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat.WriteProjects (MonoDevelop.Projects.SolutionFolder folder, System.String baseDirectory, System.IO.StreamWriter writer, Boolean saveProjects, IProgressMonitor monitor) [0x0024a] in /Users/aaron/src/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/SlnFileFormat.cs:214 
  at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat.WriteFileInternal (System.String file, MonoDevelop.Projects.Solution solution, System.String baseDir, MonoDevelop.Projects.Formats.MSBuild.MSBuildFileFormat format, Boolean saveProjects, IProgressMonitor monitor) [0x0008a] in /Users/aaron/src/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/SlnFileFormat.cs:132 
  at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat.WriteFile (System.String file, System.Object obj, MonoDevelop.Projects.Formats.MSBuild.MSBuildFileFormat format, Boolean saveProjects, IProgressMonitor monitor) [0x00053] in /Users/aaron/src/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/SlnFileFormat.cs:90 
ERROR [2012-12-13 22:40:05Z]: Could not save solution: /Users/aaron/Projects/xsfdsdf/xsfdsdf.sln
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
  at System.Collections.Generic.List`1+Enumerator[MonoDevelop.Projects.SolutionItem].VerifyState () [0x00047] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.Collections.Generic/List.cs:788 
  at System.Collections.Generic.List`1+Enumerator[MonoDevelop.Projects.SolutionItem].MoveNext () [0x00000] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.Collections.Generic/List.cs:792 
  at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat.WriteProjects (MonoDevelop.Projects.SolutionFolder folder, System.String baseDirectory, System.IO.StreamWriter writer, Boolean saveProjects, IProgressMonitor monitor) [0x0024a] in /Users/aaron/src/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/SlnFileFormat.cs:214 
  at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat.WriteFileInternal (System.String file, MonoDevelop.Projects.Solution solution, System.String baseDir, MonoDevelop.Projects.Formats.MSBuild.MSBuildFileFormat format, Boolean saveProjects, IProgressMonitor monitor) [0x0008a] in /Users/aaron/src/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/SlnFileFormat.cs:132 
  at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat.WriteFile (System.String file, System.Object obj, MonoDevelop.Projects.Formats.MSBuild.MSBuildFileFormat format, Boolean saveProjects, IProgressMonitor monitor) [0x00053] in /Users/aaron/src/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/SlnFileFormat.cs:90 
ERROR [2012-12-13 22:40:05Z]: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
  at System.Collections.Generic.List`1+Enumerator[MonoDevelop.Projects.SolutionItem].VerifyState () [0x00047] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.Collections.Generic/List.cs:788 
  at System.Collections.Generic.List`1+Enumerator[MonoDevelop.Projects.SolutionItem].MoveNext () [0x00000] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.Collections.Generic/List.cs:792 
  at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat.WriteProjects (MonoDevelop.Projects.SolutionFolder folder, System.String baseDirectory, System.IO.StreamWriter writer, Boolean saveProjects, IProgressMonitor monitor) [0x0024a] in /Users/aaron/src/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/SlnFileFormat.cs:214 
  at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat.WriteFileInternal (System.String file, MonoDevelop.Projects.Solution solution, System.String baseDir, MonoDevelop.Projects.Formats.MSBuild.MSBuildFileFormat format, Boolean saveProjects, IProgressMonitor monitor) [0x0008a] in /Users/aaron/src/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/SlnFileFormat.cs:132 
  at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat.WriteFile (System.String file, System.Object obj, MonoDevelop.Projects.Formats.MSBuild.MSBuildFileFormat format, Boolean saveProjects, IProgressMonitor monitor) [0x00053] in /Users/aaron/src/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/SlnFileFormat.cs:90
Comment 2 Aaron Bockover [MSFT] 2012-12-13 23:26:18 UTC
This should be fixed: https://github.com/xamarin/md-addins/commit/b4bbc0468429fedbf6220df8099a807249efc94e

However, it's pretty alarming to me that this worked fine in 2.10.9 but surfaced (probably as it rightly should) in 2.10.10. At least it wasn't the other way around?
Comment 3 narayanp 2013-06-24 09:53:36 UTC
Today we have checked this issue with following builds:

All Mac
X.S 4.0.9(build 9)
Xamarin.Mac 1.4.22
Mono 2.10.12

We are sucessfully able to continue with MonoMac after selecting 'Continue with MonoMac' for MonoMac application.

Changing the status to Verified.