Bug 14702 - Crash in Xamarin.iOS 6.4.5 - Could not load type 'MaskType'
Summary: Crash in Xamarin.iOS 6.4.5 - Could not load type 'MaskType'
Status: VERIFIED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: 6.9.5.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-09-12 16:39 UTC by Ian
Modified: 2015-11-18 07:55 UTC (History)
4 users (show)

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


Attachments
Error (176.63 KB, image/png)
2013-09-12 16:39 UTC, Ian
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:
VERIFIED FIXED

Description Ian 2013-09-12 16:39:00 UTC
Created attachment 4861 [details]
Error

A MT.Dialog opens up a UINaviagation Controller and I get this after upgrading to 6.4.5 . My code is old and has run well for months on the older code base.


Error:

System.TypeLoadException: Could not load type 'MaskType'.
  at at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging:void_objc_msgSendSuper_IntPtr_bool (intptr,intptr,intptr,bool)
  at MonoTouch.UIKit.UINavigationController.PushViewController (MonoTouch.UIKit.UIViewController viewController, Boolean animated) [0x00042] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UINavigationController.g.cs:181
  at Common.DictionaryItemBaseViewController.<CreateRoot>m__B5 () [0x0001e] in /Users/ivink/DropBox_ios/Common/UI/Dictionary/DictionaryItemBaseViewController.cs:98
  at MonoTouch.Dialog.StringElement.Selected (MonoTouch.Dialog.DialogViewController dvc, MonoTouch.UIKit.UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath) [0x0000b] in /Developer/MonoTouch/Source/MonoTouch.Dialog/MonoTouch.Dialog/Elements.cs:692
  at MonoTouch.Dialog.DialogViewController.Selected (MonoTouch.Foundation.NSIndexPath indexPath) [0x00029] in /Developer/MonoTouch/Source/MonoTouch.Dialog/MonoTouch.Dialog/DialogViewController.cs:519
  at MonoTouch.Dialog.DialogViewController+Source.RowSelected (MonoTouch.UIKit.UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath) [0x00019] in /Developer/MonoTouch/Source/MonoTouch.Dialog/MonoTouch.Dialog/DialogViewController.cs:365
  at at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
  at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0004c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:38
  at General.Application.Main (System.String[] args) [0x00008] in /Users/ivink/DropBox_ios/UNIVERSAL/Medical/Pigs/Pigs/Main.cs:14


My Source code:


	var eBingPhotos = new StyledStringElementTall ("Public Photos".t (), "Common appearances".t (), UITableViewCellStyle.Subtitle);
	eBingPhotos.Accessory = UITableViewCellAccessory.DisclosureIndicator;

	eBingPhotos.Tapped += () => this.NavigationController.PushViewController (new BingImageSearchViewController(ItemTitle,Background,tableStyle:this.Style), true);

My IDE:

=== Xamarin Studio ===

Version 4.0.12 (build 3)
Installation UUID: f19657bf-2763-4f2b-998c-c48d47a88352
Runtime:
	Mono 3.2.0 ((no/7c7fcc7)
	GTK 2.24.20
	GTK# (2.12.0.0)
	Package version: 302000000

=== Apple Developer Tools ===

Xcode 4.6.3 (2068)
Build 4H1503

=== Xamarin.Mac ===

Xamarin.Mac: Not Installed

=== Xamarin.Android ===

Not Installed

=== Xamarin.iOS ===

Version: 6.4.5.0 (Enterprise Edition)
Hash: 1336a36
Branch: 
Build date: 2013-10-09 11:14:45-0400

=== Build Information ===

Release ID: 400120003
Git revision: 593d7acb1cb78ceeeb482d5133cf1fe514467e39
Build date: 2013-08-07 20:30:53+0000
Xamarin addins: 25a0858b281923e666b09259ad4746b774e0a873

=== Operating System ===

Mac OS X 10.8.4
Darwin CGITMAC1.local 12.4.0 Darwin Kernel Version 12.4.0
    Wed May  1 17:57:12 PDT 2013
    root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64
Comment 1 Sebastien Pouliot 2013-09-12 18:01:03 UTC
There's no type named `MaskType` in monotouch.dll or MonoTouch.Dialog-1.dll

Any idea where it comes from ? the InnerException might give you a clue.
Comment 2 Ian 2013-09-12 23:15:26 UTC
The problem turns out to be a corrupted Component store item after an update. Now it's fine.
Comment 3 Akhilesh kumar 2014-01-22 08:21:34 UTC
As per Ian's comment 2, Now its working fine.

Hence closing this issue.