Bug 20701 - Xamarin Studio crashes when changing desktop resolution
Summary: Xamarin Studio crashes when changing desktop resolution
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS Designer ()
Version: 5.0.1
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: master
Assignee: Bugzilla
URL:
: 20919 ()
Depends on:
Blocks:
 
Reported: 2014-06-18 22:21 UTC by William Rodriguez
Modified: 2014-07-25 15:55 UTC (History)
5 users (show)

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


Attachments
Crash log (91.64 KB, text/plain)
2014-06-18 22:22 UTC, William Rodriguez
Details
IDE Log files (96.89 KB, application/zip)
2014-06-19 18:33 UTC, William Rodriguez
Details


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:
RESOLVED NOT_REPRODUCIBLE

Description William Rodriguez 2014-06-18 22:21:26 UTC
Xamarin Studio crashes when changing the resolution of a Mac with a 'retina' display. These are the steps required to reproduce the error:

1) Make sure your are using a Macbook with a retina display and the option 'Best (Retina)' is selected in 'Displays'.
2) Open Xamarin Studio
3) Open a project
4) Change the resolution to any of the 'More Space' options
5) The crash happens very frequently, but I don't have a specific number.

See attached file for a complete crash log.
Comment 1 William Rodriguez 2014-06-18 22:22:26 UTC
Created attachment 7114 [details]
Crash log
Comment 2 Mikayla Hutchinson [MSFT] 2014-06-19 18:19:34 UTC
This looks like it's crashing in native code when we try to show the managed exception dialog, but it doesn't show what the exception was that caused the dialog to be shown. Could you please attach the corresponding log file  (Help->Open Log Directory)?
Comment 3 William Rodriguez 2014-06-19 18:33:55 UTC
Created attachment 7124 [details]
IDE Log files

I have attached two recent logs that have a crash in them. I think these are the ones related to the issue I'm reporting.
Comment 4 Mikayla Hutchinson [MSFT] 2014-06-20 01:55:54 UTC
Thanks for the logs. In both cases, the error appears to be in the iOS designer:

System.ArgumentNullException: Argument cannot be null.
Parameter name: project
at MonoDevelop.Ide.TypeSystem.TypeSystemService.GetProjectContentWrapper (MonoDevelop.Projects.Project) [0x00037] in /Users/builder/data/lanes/886/f94ee866/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/TypeSystemService.cs:2537
at MonoDevelop.IPhone.Designer.XamarinStudioIdeService.GetCompilation () [0x00007] in /Users/builder/data/lanes/886/f94ee866/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/Designer/IPhoneIdeService.cs:178
at MonoTouch.Design.Client.ModelExtensions.GetTypeInfo (MonoTouch.Design.ModelObject,MonoTouch.Design.Client.IPhoneDesignerSession) [0x0001b] in /Users/builder/data/lanes/886/f94ee866/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/ModelExtensions.cs:20
at MonoTouch.Design.Client.IPhoneDesignerItem.GetTypeInfo () [0x0000d] in /Users/builder/data/lanes/886/f94ee866/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/DesignerItems/IPhoneDesignerItem.cs:166
at MonoTouch.Design.Client.IPhoneDesignerItem.GetPropertyValue (string) [0x00232] in /Users/builder/data/lanes/886/f94ee866/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/DesignerItems/IPhoneDesignerItem.cs:356
at Xamarin.Designer.PropertyEditing.PropertyEditorContext.GetPropertyValue (string) [0x00008] in /Users/builder/data/lanes/886/f94ee866/source/md-addins/Xamarin.Designer/Xamarin.Designer.PropertyEditing/PropertyEditorContext.cs:121
at Xamarin.Designer.PropertyEditing.DynamicProperty/<GetValues>c__AnonStorey0.<>m__0 (string) [0x0000c] in /Users/builder/data/lanes/886/f94ee866/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/PropertyEditing/DynamicEnumPropertyEntry.cs:111
at System.Linq.Enumerable/<CreateSelectIterator>c__Iterator10`2<string, string>.MoveNext () <0x00126>
at System.Linq.Enumerable/<CreateWhereIterator>c__Iterator1E`1<string>.MoveNext () <0x001a1>
at System.Linq.Enumerable/<CreateSelectIterator>c__Iterator10`2<string, string[]>.MoveNext () <0x00192>
at System.Linq.Enumerable/<CreateWhereIterator>c__Iterator1E`1<string[]>.MoveNext () <0x001a1>
at System.Linq.Enumerable.ToArray<string[]> (System.Collections.Generic.IEnumerable`1<string[]>) <0x00244>
at Xamarin.Designer.PropertyEditing.DynamicProperty.GetValues (Xamarin.Designer.PropertyEditing.IPropertyEntry) [0x000c4] in /Users/builder/data/lanes/886/f94ee866/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/PropertyEditing/DynamicEnumPropertyEntry.cs:116
at MonoTouch.Design.Client.Mac.EditableDynamicEnumPropertyEntry.GetAttributeValueDescriptors () [0x00009] in /Users/builder/data/lanes/886/f94ee866/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client.Mac/NativePropertyEditing/EnumPropertyEntry.cs:74
at MonoTouch.Design.Client.Mac.EnumPropertyEntry/ClassDataSource.ObjectValueForItem (MonoMac.AppKit.NSComboBox,int) [0x00007] in /Users/builder/data/lanes/886/f94ee866/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client.Mac/NativePropertyEditing/EnumPropertyEntry.cs:50
at (wrapper dynamic-method) object.[MonoTouch.Design.Client.Mac.EnumPropertyEntry+ClassDataSource.MonoMac.Foundation.NSObject ObjectValueForItem(MonoMac.AppKit.NSComboBox, Int32)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.AppKit.NSComboBox,int) <IL 0x00017, 0x00036>
at (wrapper native-to-managed) object.[MonoTouch.Design.Client.Mac.EnumPropertyEntry+ClassDataSource.MonoMac.Foundation.NSObject ObjectValueForItem(MonoMac.AppKit.NSComboBox, Int32)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.AppKit.NSComboBox,int) <IL 0x00070, 0x00123>
at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00012>
at Gtk.Application.Run () [0x00001] in /Volumes/build-root-ramdisk/gtk-sharp-2.12.21/gtk/Application.cs:135
at MonoDevelop.Ide.IdeApp.Run () [0x00000] in /Users/builder/data/lanes/886/f94ee866/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/Ide.cs:383
at MonoDevelop.Ide.IdeStartup.Run (MonoDevelop.Ide.MonoDevelopOptions) [0x007f9] in /Users/builder/data/lanes/886/f94ee866/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:300
at MonoDevelop.Ide.IdeStartup.Main (string[],MonoDevelop.Ide.Extensions.IdeCustomizer) [0x0008d] in /Users/builder/data/lanes/886/f94ee866/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:620
Comment 5 Alan McGovern 2014-07-10 10:13:11 UTC
*** Bug 20919 has been marked as a duplicate of this bug. ***
Comment 6 Alan McGovern 2014-07-25 15:55:22 UTC
The stacktrace makes it look like the designer has been disposed by Xamarin Studio even though it's already in use. We can't reproduce it so I can only assume that it was fixed at some stage over the last few months.

If this can still be reproduced, could you reopen the bug and attach a screencast showing us the steps you follow to trigger the issue?