iOS OpenGL glClear crash when starting app

1

In our game we use OpenGL for rendering. Sometimes app randomly crashes just after starting when calling this method first time:

glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

We are making call of this method before rendering the game scene. Here's the stack trace of crash:

0 Crashed: com.apple.main-thread EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x000000a4

0 IMGSGX543GLDriver sgxTextureGetImageRowBytes(GLDTextureRec*, unsigned int, unsigned int) + 7
1 IMGSGX543GLDriver CalculateChunkPlaneSizes(GLDTextureRec*, int, unsigned int*, unsigned int*, unsigned int*, unsigned int*) + 108
2 IMGSGX543GLDriver CalculateChunkPlaneSizes(GLDTextureRec*, int, unsigned int*, unsigned int*, unsigned int*, unsigned int*) + 108
3 IMGSGX543GLDriver sgxConfigureTexturePrivate(GLDTextureRec*) + 82
4 IMGSGX543GLDriver glrUpdateTexture + 952
5 libGPUSupportMercury.dylib gldLoadFramebuffer + 110
6 GLEngine gleUpdateDrawFramebufferState
7 GLEngine glClear_Exec + 164

We don't have any idea why this crash may appear. Does anybody encounter similar issue? Thanks for the help.

c++
ios
opengl-es
asked on Stack Overflow Jun 16, 2014 by Sergei • edited Jun 30, 2014 by Sergei

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0