I am receiving this error, and have no idea what may be causing it. This is happening in iOS 8.2 on both iPhone and iPad.
Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_PROTECTION_FAILURE at 0x00554ff4 raw
0 libobjc.A.dylib lookUpImpOrForward + 3
4 libobjc.A.dylib -[NSObject respondsToSelector:] + 38
5 UIKit -[UIWindow _supportedInterfaceOrientationsForRootViewController] + 56
6 UIKit -[_UIFallbackPresentationViewController supportedInterfaceOrientations] + 60
7 UIKit -[_UIFallbackPresentationViewController supportedInterfaceOrientations] + 60
...
510 UIKit -[_UIFallbackPresentationViewController supportedInterfaceOrientations] + 60
I read somewere that this should solve these kind of issues, but it did not work.
-(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
{
if ( IDIOM == IPAD ) {
return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown;
} else {
return UIInterfaceOrientationMaskPortrait;
}
}
I ended up contacting apple about this issue. According to them is related with Game Center. Apple changed some things on it and the old way the Game Center was initialised would generate random crashes. Added a Game Center Manger to my game and these random crashes stopped.