views:

145

answers:

0

Hi,

I have begun learning OpenGL ES under Android 1.5 (I use the emulator and an HTC Magic device). However, even for the simplest of their samples, the one that only renders a blank screen, if you switch the orientation several times (switching like ~5 times between portrait and landscape is usually enough), the app freezes and I need to force close it.

Does anyone know what the problem is? Can anyone else reproduce it? You should be able to, it's the same in the emulator too.

Thanks in advance, Cosmin

Update: The LogCat output differs when running with the debugger attached.

DEBUG/SurfaceFlinger(61): pid 3598 requesting gpu core (owner = -1)

versus

WARN/SurfaceFlinger(61): timeout expired mFreezeDisplay=1, mFreezeCount=1
WARN/WindowManager(61): App freeze timeout expired.
WARN/WindowManager(61): Force clearing freeze: AppWindowToken{43c7adb0 token=HistoryRecord{43c7a900 {ro.brite.android.nehe01/ro.brite.android.nehe01.GlApp}}}
WARN/SurfaceComposerClient(3598): lock_layer timed out (is the CPU pegged?) layer=1, lcblk=0x424340a0, state=00000042 (was 00000042)