Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ATIRadeon::submit_buffer: Overflowed block waiting for FIFO space




OK. Some progress and some results and a fix.

I used sample (as Chris Hanson suggested) while ssh'd into my machine when it was in its frozen state and that got me a stack trace so I could see what the app was doing.

The app has a number of threads and the sound threads were still in operation so things were not entirely frozen, just the screen.

Using that I dug into the code and removed sections of rendering code until the crash stopped happenning. Then I put things back until I found the bit of code which was causing the problem.

At first I thought I was a vertex program or something like that (as it was in some custom shader code in the app) but that is not what it turned out to be.

The culprit is this block of safe looking (psuedo) code here:

static bool usingTextureMatrixIdentity = true;

if (animatingTextureCoords) {
glMatrixMode(GL_TEXTURE);
glLoadIdentity();
loop for each thing that modifies the texture matrix {
some code here which modified the texture matrix
}
glMatrixMode(GL_MODELVIEW);
usingTextureMatrixIdentity = false;
} else {
if (usingTextureMatrixIdentity == false) {
glMatrixMode(GL_TEXTURE);
glLoadIdentity();
glMatrixMode(GL_MODELVIEW);
}

}

This code gets called for each object being drawn each frame. I have no idea why this would cause a crash, but it was. The fixed code has just one new line:

static bool usingTextureMatrixIdentity = true;

if (animatingTextureCoords) {
glMatrixMode(GL_TEXTURE);
glLoadIdentity();
loop for each thing that modifies the texture matrix {
some code here which modified the texture matrix
}
usingTextureMatrixIdentity = false;
glMatrixMode(GL_MODELVIEW);
} else {
if (usingTextureMatrixIdentity == false) {
glMatrixMode(GL_TEXTURE);
glLoadIdentity();
usingTextureMatrixIdentity = true; // HMS - keep this code for crashing the machine
glMatrixMode(GL_MODELVIEW);
}

}

I can't explain why this was causing the crash, but it was and it is fixed now. On to more coding...

bug report filed. 3935936

Howard Shere
http://blogs.greendragon.com/index.php/gdc
Altair 8800a to Mac OS X so far...
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden

References: 
 >Re: ATIRadeon::submit_buffer: Overflowed block waiting for FIFO space (From: Chris Hanson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.