CCDirector drawScene导致崩溃

时间:2014-02-28 10:22:50

标签: ios iphone objective-c ipad cocos2d-iphone

我正在使用Cocos2d开发游戏,我遇到了这个错误,我很难理解为什么会发生这种情况或者发生了什么。这是堆栈跟踪:

-[_UIAppearanceCustomizableClassInfo swapBuffers]: unrecognized selector sent to instance 0x167dc160
BrainPlus-[CCDirectorIOS drawScene]

0   CoreFoundation  0x2ecf5f4b  __exceptionPreprocess
1   libobjc.A.dylib 0x390856af  objc_exception_throw
2   CoreFoundation  0x2ecf98e7  -[NSObject(NSObject) doesNotRecognizeSelector:]
3   CoreFoundation  0x2ecf81cb  ___forwarding___
4   CoreFoundation  0x2ec474d8  _CF_forwarding_prep_0
5   AppName 0x002bde53  -[CCDirectorIOS drawScene]
6   QuartzCore  0x3113f9cf  _ZN2CA7Display15DisplayLinkItem8dispatchEv
7   QuartzCore  0x3113f779  _ZN2CA7Display11DisplayLink14dispatch_itemsEyyy
8   IOMobileFramebuffer 0x33d2476d  IOMobileFramebufferVsyncNotifyFunc
9   IOKit   0x2f9d7a75  IODispatchCalloutFromCFMessage
10  CoreFoundation  0x2ecb5e21  __CFMachPortPerform
11  CoreFoundation  0x2ecc09df  __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__
12  CoreFoundation  0x2ecc097b  __CFRunLoopDoSource1
13  CoreFoundation  0x2ecbf14f  __CFRunLoopRun
14  CoreFoundation  0x2ec29c27  CFRunLoopRunSpecific
15  CoreFoundation  0x2ec29a0b  CFRunLoopRunInMode
16  GraphicsServices    0x33908283  GSEventRunModal
17  UIKit   0x314cd049  UIApplicationMain
18  AppName 0x00098191  main in main.m on Line 15
19  libdyld.dylib   0x3958dab7  start

我正在使用精灵表进行动画制作,测试人员说动画发生时发生了崩溃,但我发现这个错误已经出现了。我想知道是否有人之前有这样的错误以及导致这次崩溃的原因。任何帮助都是极好的。谢谢!

0 个答案:

没有答案