Alex
Alex

Reputation: 541

cocos2d CCDirectorMac - SIGABRT on self.view.openGLContext flushBuffer

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.

Upvotes: 0

Views: 134

Answers (1)

Alex
Alex

Reputation: 541

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.

Upvotes: 1

Related Questions