cocos2d CCDirectorMac - SIGABRT on self.view.openGLContext flushBuffer

135 views Asked by At

I have a cocos2d Mac application. I get random crashes when creating and adding Sprites.

Bascially i get SIGABRT on

// flush buffer
[self.view.openGLContext flushBuffer];

in CCDirectorMac.

Screenshot here: http://www.zentralnorden.com/temp/crash0220.png

Any advice on how to approach this is helpfull.

1

There are 1 answers

0
Alex On

The reason was..

I am building a Level-Editor and the Sprites were created in a different Thread as the CCDirectorMac runs on. I now add notifications into a queue and then on the CCLayer i check if somethings is in this queue and if yes, create the needed Sprites from there. Since i do this i have no more problems.