Bug 3784 - [CoreImage] Checkerboard Generator crashes with a SIGSEGV
Summary: [CoreImage] Checkerboard Generator crashes with a SIGSEGV
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 5.2
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Miguel de Icaza [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2012-03-07 11:38 UTC by Eric Beisecker
Modified: 2012-03-07 18:17 UTC (History)
1 user (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 FIXED

Description Eric Beisecker 2012-03-07 11:38:24 UTC
The Checkboard Generator crashes when used.

Sample Code:

public CIImage CheckerboardGenerator ()
{
	// Color 1 
	var c0 = new CIColor (new CGColor (0xFF, 0x0, 0x0, 0x0)); // Red
	var c1 = new CIColor (new CGColor (0x00, 0XFF, 0x0, 0x0)); // Green
	var checker = new CICheckerboardGenerator ()
	{
		Color0 = c0,
		Color1 = c1,
		Center = new CIVector (new float[] { 10 , 10 }), // Default [80 80]
		Sharpness = 1F // Default 1
	};
	
	return checker.OutputImage;
}


Stacktrace:

  at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend (intptr,intptr) <IL 0x00024, 0xffffffff>
  at MonoTouch.Foundation.NSObject.InitializeObject (bool) [0x00039] in /Developer/MonoTouch/Source/monotouch/src/Foundation/NSObject.cs:128
  at MonoTouch.Foundation.NSObject..ctor (intptr,bool) [0x0000d] in /Developer/MonoTouch/Source/monotouch/src/Foundation/NSObject.cs:63
  at MonoTouch.Foundation.NSObject..ctor (intptr) <IL 0x00003, 0x00017>
  at MonoTouch.CoreImage.CIVector..ctor (single[]) <IL 0x00000, 0x00023>
  at coreimage.AppDelegate.CheckerboardGenerator () [0x0003e] in /Users/ebeisecker/Git/monotouch-samples/CoreImage/AppDelegate.cs:953
  at coreimage.AppDelegate.Demo (coreimage.AppDelegate/ImageFilter) [0x00023] in /Users/ebeisecker/Git/monotouch-samples/CoreImage/AppDelegate.cs:130
  at coreimage.AppDelegate.<FinishedLaunching>m__5 (MonoTouch.Dialog.RootElement) [0x00000] in /Users/ebeisecker/Git/monotouch-samples/CoreImage/AppDelegate.cs:43
  at MonoTouch.Dialog.RootElement.MakeViewController () [0x0000b] in /Developer/MonoTouch/Source/MonoTouch.Dialog/MonoTouch.Dialog/Elements.cs:2716
  at MonoTouch.Dialog.RootElement.Selected (MonoTouch.Dialog.DialogViewController,MonoTouch.UIKit.UITableView,MonoTouch.Foundation.NSIndexPath) [0x00008] in /Developer/MonoTouch/Source/MonoTouch.Dialog/MonoTouch.Dialog/Elements.cs:2726
  at MonoTouch.Dialog.DialogViewController.Selected (MonoTouch.Foundation.NSIndexPath) [0x00029] in /Developer/MonoTouch/Source/MonoTouch.Dialog/MonoTouch.Dialog/DialogViewController.cs:518
  at MonoTouch.Dialog.DialogViewController/Source.RowSelected (MonoTouch.UIKit.UITableView,MonoTouch.Foundation.NSIndexPath) [0x00019] in /Developer/MonoTouch/Source/MonoTouch.Dialog/MonoTouch.Dialog/DialogViewController.cs:364
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object_object (object,intptr,intptr,intptr) <IL 0x0005a, 0xffffffff>
  at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <IL 0x0009f, 0xffffffff>
  at MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x00042] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:29
  at coreimage.Application.Main (string[]) [0x0000a] in /Users/ebeisecker/Git/monotouch-samples/CoreImage/Main.cs:18
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff>
Comment 1 Miguel de Icaza [MSFT] 2012-03-07 18:17:34 UTC
Fixed the crash