2

I'm getting a weird error in my game.

EXC_BAD_ACCESS (code=1, address=0x1) in EAGLView.mm line 319

if(![context_ presentRenderbuffer:GL_RENDERBUFFER])  ***Error
{
//         CCLOG(@"cocos2d: Failed to swap renderbuffer in %s\n", __FUNCTION__);
}

Here's the stack trace

Stack Trace

The error seems to occur both randomly and after I resume from my pause menu. My pause system simply hides/shows the UI and pauses/resumes the action manager though so I don't know how this could affect it. My game is very simple and i'm not doing anything with view controllers. Other than basic sprites I'm doing just a few opengl renders myself and some custom particle systems. Why might this be occuring? I'd be happy to supply any more information. I'm using cocos2d-x v2.1

Thanks in advance!

CodeSmile
  • 64,284
  • 20
  • 132
  • 217
hOOks7
  • 71
  • 1
  • 8
  • were you able to solve this issue? I have the same. It randomly happens. Thanks. – cessmestreet Apr 12 '14 at 09:44
  • I was somewhat able to solve it, I determined that I was adding/removing childs when I apparently wasn't supposed to, causing this error. I could not really understand why. – hOOks7 May 15 '14 at 21:41

0 Answers0