Note that there are some explanatory texts on larger screens.

plurals
  1. PODebugging SIGKILL on glDrawArrays(). iPhone iOS
    primarykey
    data
    text
    <p>I hope someone can help me to figure out what is going on.</p> <p>I’m developing an iPhone game using <code>cocos2d framework</code>. From time to time I’m getting my code stopped because of <code>SIGKIL</code> signal. If I press “continue” button, the game continues without any issues. The console log is clear (no error or warning messages) I get it on my custom class that draws a texturized rectangle using <code>OpenGL</code>. This code executes about 300 times per second and I get <code>SIGKILL</code> only about one time per 1-2 hours.</p> <p>Here is a piece of code:</p> <pre><code>glColor4f(1.f, 1.f, 1.f, 1.f); i = 1; glBindTexture(GL_TEXTURE_2D, curText); glVertexPointer(2, GL_FLOAT, 0, screenCoord [i]); glTexCoordPointer(2, GL_FLOAT, 0, textureCoord [i]); SIGKIL --&gt; glDrawArrays(GL_TRIANGLE_STRIP, 0, 4); </code></pre> <p>Here is the content of arrays on that moment:</p> <pre><code>(gdb) p *screenCoord[1]@8 $8 = {0, 296, 249.827072, 296, 0, -0, 249.827072, -0} (gdb) p *textureCoord[1]@8 $12 = {0.456224144, 0.29296875, 0.700195312, 0.29296875, 0.456224144, 0.58203125, 0.700195312, 0.58203125} </code></pre> <p>Stack trace:</p> <pre><code>#0 0x123028a7 in &lt;????&gt; () #1 0x12301528 in &lt;????&gt; () #2 0x0a767092 in gldRenderFillPolygonPtr () #3 0x12300185 in &lt;????&gt; () #4 0x0a55c3e1 in gleDrawArraysOrElements_ExecCore () #5 0x0a555280 in glDrawArrays_IMM_Exec () #6 0x01522c7c in glDrawArrays () #7 0x0007e6bd in -[CLScrollingBack draw] at /MyProjects/_ROBOTS/RobotsAttack/AbductedAliens game template/CLScrollingBack.m:430 #8 0x001bfdaa in -[CCNode visit] () #9 0x001bfd7d in -[CCNode visit] () #10 0x001bfd7d in -[CCNode visit] () #11 0x0020f708 in -[CCDirectorIOS drawScene] () #12 0x00211bb4 in -[CCDirectorDisplayLink mainLoop:] () </code></pre> <p>The last lines in the log are:</p> <pre><code>2012-06-20 13:05:27.368 RobotsAttack![9487:207] cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from [2] to [4]. 2012-06-20 13:05:27.368 RobotsAttack![9487:207] cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from [4] to [6]. Current language: auto; currently objective-c </code></pre> <p>I would be grateful if somebody can tell me how to debug this situation and determine what is going on. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload