{"action":"created","issue":{"url":"https://api.github.com/repos/mono/MonoGame/issues/4451","labels_url":"https://api.github.com/repos/mono/MonoGame/issues/4451/labels{/name}","comments_url":"https://api.github.com/repos/mono/MonoGame/issues/4451/comments","events_url":"https://api.github.com/repos/mono/MonoGame/issues/4451/events","html_url":"https://github.com/mono/MonoGame/issues/4451","id":128019470,"number":4451,"title":"MacGameNSWindow throwing exception at startup","user":{"login":"tanis2000","id":287841,"avatar_url":"https://avatars.githubusercontent.com/u/287841?v=3","gravatar_id":"","url":"https://api.github.com/users/tanis2000","html_url":"https://github.com/tanis2000","followers_url":"https://api.github.com/users/tanis2000/followers","following_url":"https://api.github.com/users/tanis2000/following{/other_user}","gists_url":"https://api.github.com/users/tanis2000/gists{/gist_id}","starred_url":"https://api.github.com/users/tanis2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanis2000/subscriptions","organizations_url":"https://api.github.com/users/tanis2000/orgs","repos_url":"https://api.github.com/users/tanis2000/repos","events_url":"https://api.github.com/users/tanis2000/events{/privacy}","received_events_url":"https://api.github.com/users/tanis2000/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":26,"created_at":"2016-01-21T21:06:31Z","updated_at":"2016-01-24T12:42:10Z","closed_at":null,"body":"I've just updated to the latest git version of MonoGame at the time I'm writing this. \r\n\r\nI created a new MonoGame (MonoMac) project and run it and it throws the following error:\r\n\r\n```\r\nUnhandled Exception:\r\nSystem.NullReferenceException: Object reference not set to an instance of an object\r\n  at ObjCRuntime.Class.Register (System.Type type) [0x00001] in <filename unknown>:0 \r\n  at ObjCRuntime.Class.GetHandle (System.Type type) [0x00001] in <filename unknown>:0 \r\n  at Foundation.NSObject.AllocIfNeeded () [0x0001e] in <filename unknown>:0 \r\n  at Foundation.NSObject..ctor (Foundation.NSObjectFlag x) [0x00007] in <filename unknown>:0 \r\n  at AppKit.NSResponder..ctor (Foundation.NSObjectFlag t) [0x00000] in <filename unknown>:0 \r\n  at AppKit.NSWindow..ctor (CGRect contentRect, NSWindowStyle aStyle, NSBackingStore bufferingType, Boolean deferCreation) [0x00000] in <filename unknown>:0 \r\n  at Microsoft.Xna.Framework.MacGameNSWindow..ctor (CGRect rect, NSWindowStyle style, NSBackingStore backing, Boolean defer) [0x00000] in /Users/tanis/Documents/MonoGame/MonoGame.Framework/MacOS/MacGameNSWindow.cs:64 \r\n  at Microsoft.Xna.Framework.MacGamePlatform.InitializeMainWindow () [0x0002f] in /Users/tanis/Documents/MonoGame/MonoGame.Framework/MacOS/MacGamePlatform.cs:133 \r\n  at Microsoft.Xna.Framework.MacGamePlatform..ctor (Microsoft.Xna.Framework.Game game) [0x00038] in /Users/tanis/Documents/MonoGame/MonoGame.Framework/MacOS/MacGamePlatform.cs:117 \r\n  at Microsoft.Xna.Framework.GamePlatform.PlatformCreate (Microsoft.Xna.Framework.Game game) [0x00002] in /Users/tanis/Documents/MonoGame/MonoGame.Framework/GamePlatform.Desktop.cs:18 \r\n  at Microsoft.Xna.Framework.Game..ctor () [0x0020d] in /Users/tanis/Documents/MonoGame/MonoGame.Framework/Game.cs:68 \r\n  at StencilBuffer.MacOS.Game1..ctor () [0x00000] in /Users/tanis/Documents/MonoGame/Test/Interactive/MacOS/StencilBuffer.MacOS/Game1.cs:19 \r\n  at StencilBuffer.MacOS.AppDelegate.FinishedLaunching (MonoMac.Foundation.NSObject notification) [0x00028] in /Users/tanis/Documents/MonoGame/Test/Interactive/MacOS/StencilBuffer.MacOS/Main.cs:39 \r\n  at (wrapper dynamic-method) System.Object:[StencilBuffer.MacOS.AppDelegate:Void FinishedLaunching(MonoMac.Foundation.NSObject)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.Foundation.NSObject)\r\n  at (wrapper native-to-managed) System.Object:[StencilBuffer.MacOS.AppDelegate:Void FinishedLaunching(MonoMac.Foundation.NSObject)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.Foundation.NSObject)\r\n  at (wrapper managed-to-native) MonoMac.AppKit.NSApplication:NSApplicationMain (int,string[])\r\n  at MonoMac.AppKit.NSApplication.Main (System.String[] args) [0x0003d] in <filename unknown>:0 \r\n  at StencilBuffer.MacOS.Program.Main (System.String[] args) [0x0001d] in /Users/tanis/Documents/MonoGame/Test/Interactive/MacOS/StencilBuffer.MacOS/Main.cs:22 \r\n[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object\r\n  at ObjCRuntime.Class.Register (System.Type type) [0x00001] in <filename unknown>:0 \r\n  at ObjCRuntime.Class.GetHandle (System.Type type) [0x00001] in <filename unknown>:0 \r\n  at Foundation.NSObject.AllocIfNeeded () [0x0001e] in <filename unknown>:0 \r\n  at Foundation.NSObject..ctor (Foundation.NSObjectFlag x) [0x00007] in <filename unknown>:0 \r\n  at AppKit.NSResponder..ctor (Foundation.NSObjectFlag t) [0x00000] in <filename unknown>:0 \r\n  at AppKit.NSWindow..ctor (CGRect contentRect, NSWindowStyle aStyle, NSBackingStore bufferingType, Boolean deferCreation) [0x00000] in <filename unknown>:0 \r\n  at Microsoft.Xna.Framework.MacGameNSWindow..ctor (CGRect rect, NSWindowStyle style, NSBackingStore backing, Boolean defer) [0x00000] in /Users/tanis/Documents/MonoGame/MonoGame.Framework/MacOS/MacGameNSWindow.cs:64 \r\n  at Microsoft.Xna.Framework.MacGamePlatform.InitializeMainWindow () [0x0002f] in /Users/tanis/Documents/MonoGame/MonoGame.Framework/MacOS/MacGamePlatform.cs:133 \r\n  at Microsoft.Xna.Framework.MacGamePlatform..ctor (Microsoft.Xna.Framework.Game game) [0x00038] in /Users/tanis/Documents/MonoGame/MonoGame.Framework/MacOS/MacGamePlatform.cs:117 \r\n  at Microsoft.Xna.Framework.GamePlatform.PlatformCreate (Microsoft.Xna.Framework.Game game) [0x00002] in /Users/tanis/Documents/MonoGame/MonoGame.Framework/GamePlatform.Desktop.cs:18 \r\n  at Microsoft.Xna.Framework.Game..ctor () [0x0020d] in /Users/tanis/Documents/MonoGame/MonoGame.Framework/Game.cs:68 \r\n  at StencilBuffer.MacOS.Game1..ctor () [0x00000] in /Users/tanis/Documents/MonoGame/Test/Interactive/MacOS/StencilBuffer.MacOS/Game1.cs:19 \r\n  at StencilBuffer.MacOS.AppDelegate.FinishedLaunching (MonoMac.Foundation.NSObject notification) [0x00028] in /Users/tanis/Documents/MonoGame/Test/Interactive/MacOS/StencilBuffer.MacOS/Main.cs:39 \r\n  at (wrapper dynamic-method) System.Object:[StencilBuffer.MacOS.AppDelegate:Void FinishedLaunching(MonoMac.Foundation.NSObject)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.Foundation.NSObject)\r\n  at (wrapper native-to-managed) System.Object:[StencilBuffer.MacOS.AppDelegate:Void FinishedLaunching(MonoMac.Foundation.NSObject)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.Foundation.NSObject)\r\n  at (wrapper managed-to-native) MonoMac.AppKit.NSApplication:NSApplicationMain (int,string[])\r\n  at MonoMac.AppKit.NSApplication.Main (System.String[] args) [0x0003d] in <filename unknown>:0 \r\n  at StencilBuffer.MacOS.Program.Main (System.String[] args) [0x0001d] in /Users/tanis/Documents/MonoGame/Test/Interactive/MacOS/StencilBuffer.MacOS/Main.cs:22 \r\n```\r\n\r\nIs there anything obvious that I could be missing?\r\n\r\nThanks!\r\n"},"comment":{"url":"https://api.github.com/repos/mono/MonoGame/issues/comments/174292903","html_url":"https://github.com/mono/MonoGame/issues/4451#issuecomment-174292903","issue_url":"https://api.github.com/repos/mono/MonoGame/issues/4451","id":174292903,"user":{"login":"tanis2000","id":287841,"avatar_url":"https://avatars.githubusercontent.com/u/287841?v=3","gravatar_id":"","url":"https://api.github.com/users/tanis2000","html_url":"https://github.com/tanis2000","followers_url":"https://api.github.com/users/tanis2000/followers","following_url":"https://api.github.com/users/tanis2000/following{/other_user}","gists_url":"https://api.github.com/users/tanis2000/gists{/gist_id}","starred_url":"https://api.github.com/users/tanis2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanis2000/subscriptions","organizations_url":"https://api.github.com/users/tanis2000/orgs","repos_url":"https://api.github.com/users/tanis2000/repos","events_url":"https://api.github.com/users/tanis2000/events{/privacy}","received_events_url":"https://api.github.com/users/tanis2000/received_events","type":"User","site_admin":false},"created_at":"2016-01-24T12:42:10Z","updated_at":"2016-01-24T12:42:10Z","body":"@dellis1972 :-? Linux port on Mac? Please explain, I'm definitely interested :)"}}