Bug 4532 - Crash while trying to open a XIB file
Summary: Crash while trying to open a XIB file
Status: RESOLVED DUPLICATE of bug 4562
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: 2.9.x
Hardware: PC Mac OS
: Highest blocker
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2012-04-19 14:47 UTC by Miguel de Icaza [MSFT]
Modified: 2012-04-20 11:14 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:
RESOLVED DUPLICATE of bug 4562

Description Miguel de Icaza [MSFT] 2012-04-19 14:47:23 UTC
I get this when trying to open a XIB file:

System.ArgumentNullException: Argument cannot be null.
Parameter name: type
  at ICSharpCode.NRefactory.TypeSystem.ExtensionMethods.GetAllBaseTypeDefinitions (IType type) [0x00061] in /Users/builder/data/lanes/monodevelop-mac-2.9.4/9b3ec72c/source/monodevelop/main/contrib/ICSharpCode.NRefactory/TypeSystem/ExtensionMethods.cs:81 
  at MonoDevelop.MacDev.ObjCIntegration.NSObjectProjectInfo.ResolveCliToObjc (MonoDevelop.MacDev.ObjCIntegration.NSObjectTypeInfo type) [0x00081] in /Users/builder/data/lanes/monodevelop-mac-2.9.4/9b3ec72c/source/monodevelop/main/src/addins/MonoDevelop.MacDev/ObjCIntegration/NSObjectProjectInfo.cs:201 
  at MonoDevelop.MacDev.ObjCIntegration.NSObjectProjectInfo.Update () [0x0028a] in /Users/builder/data/lanes/monodevelop-mac-2.9.4/9b3ec72c/source/monodevelop/main/src/addins/MonoDevelop.MacDev/ObjCIntegration/NSObjectProjectInfo.cs:114 
  at MonoDevelop.MacDev.ObjCIntegration.NSObjectProjectInfo.Update (Boolean force) [0x0000c] in /Users/builder/data/lanes/monodevelop-mac-2.9.4/9b3ec72c/source/monodevelop/main/src/addins/MonoDevelop.MacDev/ObjCIntegration/NSObjectProjectInfo.cs:73 
  at MonoDevelop.MacDev.XcodeSyncing.XcodeProjectTracker.UpdateTypes (IProgressMonitor monitor) [0x00035] in /Users/builder/data/lanes/monodevelop-mac-2.9.4/9b3ec72c/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeProjectTracker.cs:386 

Assistly 10176 contains the project, it is called "ProAgMobileDashboardV2", try opening the "DashboardGraphViewController.xib"
Comment 1 Jeffrey Stedfast 2012-04-19 19:00:22 UTC
The following line of code appears to be returning null (which seems like it shouldn't happen)

var baseCliType = dom.Compilation.LookupType (type.BaseCliType);

Mike: can you take a look? It's in NSObjectProjectInfo.cs:200
Comment 2 Miguel de Icaza [MSFT] 2012-04-19 20:57:25 UTC
Could we also in addition to fix this particular case, warn the user "Could not generate the project because it is not possibel to resolve XXX"?

We dont want to regress the XIB support with 2.9.x
Comment 3 Miguel de Icaza [MSFT] 2012-04-19 20:59:03 UTC
Flaggin as blocker, since we cant ship MD while this bug persists.