Cocos2DXNA / cocos2d-xna

XNA Port of Cocos2d-X
www.cocos2dxna.com
227 stars 123 forks source link

Angry Ninjas sample does not start on iOs #397

Closed Krumelur closed 10 years ago

Krumelur commented 10 years ago

The Angry Ninjas sample crashes on iOS 7. The stack trace says:

System.TypeInitializationException: An exception was thrown by the type initializer for Microsoft.Xna.Framework.Graphics.GraphicsDevice

2014-02-12 21:15:36.343 AngryNinjas[16115:60b] Unhandled managed exception: An exception was thrown by the type initializer for Microsoft.Xna.Framework.Graphics.GraphicsDevice (System.TypeInitializationException)
  at Microsoft.Xna.Framework.GraphicsDeviceManager.Initialize () [0x00081] in c:\Users\rene\Source\Repos\MonoGame\MonoGame.Framework\GraphicsDeviceManager.cs:380 
  at Microsoft.Xna.Framework.GraphicsDeviceManager.CreateDevice () [0x00001] in c:\Users\rene\Source\Repos\MonoGame\MonoGame.Framework\GraphicsDeviceManager.cs:124 
  at Microsoft.Xna.Framework.GamePlatform.BeforeInitialize () [0x0003f] in c:\Users\rene\Source\Repos\MonoGame\MonoGame.Framework\GamePlatform.cs:268 
  at Microsoft.Xna.Framework.iOSGamePlatform.BeforeInitialize () [0x00001] in c:\Users\rene\Source\Repos\MonoGame\MonoGame.Framework\iOS\iOSGamePlatform.cs:188 
  at Microsoft.Xna.Framework.Game.DoInitialize () [0x00008] in c:\Users\rene\Source\Repos\MonoGame\MonoGame.Framework\Game.cs:739 
  at Microsoft.Xna.Framework.Game.Run (G
ameRunBehavior runBehavior) [0x00027] in c:\Users\rene\Source\Repos\MonoGame\MonoGame.Framework\Game.cs:466 
  at Microsoft.Xna.Framework.Game.Run () [0x00001] in c:\Users\rene\Source\Repos\MonoGame\MonoGame.Framework\Game.cs:456 
  at AngryNinjas.Program.FinishedLaunching (MonoTouch.UIKit.UIApplication app) [0x0000c] in c:\Users\rene\Source\Repos\AngryNinjas\AngryNinjas\Program.cs:36 
  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/.pmcs-compat.UIApplication.cs:38 
  at AngryNinjas.Program.Main (System.String[] args) [0x00001] in c:\Users\rene\Source\Repos\AngryNinjas\AngryNinjas\Program.cs:44 
Debugging session ended.
totallyeviljake commented 10 years ago

This should be posted at the Angry Ninjas repository:

https://github.com/Xamarin/AngryNinjas

Krumelur commented 10 years ago

Thanks! I wanted to do that. However I miss the "Issues" link there and thought, issues were turned off. Thanks for being my second pair of eyes. Closing it here.