Skip to content

Instantly share code, notes, and snippets.

@GouriKumari
Created September 21, 2018 16:10
Show Gist options
  • Save GouriKumari/7fd46c3d48b5bb37036dd59054ea421d to your computer and use it in GitHub Desktop.
Save GouriKumari/7fd46c3d48b5bb37036dd59054ea421d to your computer and use it in GitHub Desktop.
Exception Log
System.Exception: Could not initialize an instance of the type 'AppKit.NSImage': the native 'initWithContentsOfFile:' method returned nil.
It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.
at Foundation.NSObject.InitializeHandle (System.IntPtr handle, System.String initSelector) [0x00095] in /Library/Frameworks/Xamarin.Mac.framework/Versions/4.99.3.741/src/Xamarin.Mac/Foundation/NSObject2.cs:498
at AppKit.NSImage..ctor (System.String fileName) [0x00032] in /Library/Frameworks/Xamarin.Mac.framework/Versions/4.99.3.741/src/Xamarin.Mac/AppKit/NSImage.g.cs:360
at VisualEffectPlayground.DemoFaceTimeWindowController.WindowDidLoad () [0x0005d] in /Users/xamarinqa/GitRepo/mac-samples/yosemite/VisualEffectPlayground/VisualEffectPlayground/DemoFaceTimeWindowController/DemoFaceTimeWindowController.cs:21
at at (wrapper managed-to-native) ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr(intptr,intptr,intptr)
at AppKit.NSWindowController.ShowWindow (Foundation.NSObject sender) [0x00037] in /Library/Frameworks/Xamarin.Mac.framework/Versions/4.99.3.741/src/Xamarin.Mac/AppKit/NSWindowController.g.cs:378
at VisualEffectPlayground.TestLauncherViewController.BtnDemoFacetimeClicked (AppKit.NSButton sender) [0x00007] in /Users/xamarinqa/GitRepo/mac-samples/yosemite/VisualEffectPlayground/VisualEffectPlayground/TestLauncherViewController/TestLauncherViewController.cs:75
at at (wrapper managed-to-native) AppKit.NSApplication.NSApplicationMain(int,string[])
at AppKit.NSApplication.Main (System.String[] args) [0x00040] in /Library/Frameworks/Xamarin.Mac.framework/Versions/4.99.3.741/src/Xamarin.Mac/AppKit/NSApplication.cs:100
at VisualEffectPlayground.MainClass.Main (System.String[] args) [0x00007] in /Users/xamarinqa/GitRepo/mac-samples/yosemite/VisualEffectPlayground/VisualEffectPlayground/Main.cs:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment