Hi,
I was not able to find any other POST with a possible "solution"
to this problem.
My application CRASH when RETURNING from an ACTIVITY to ANOTHER.
The message:
lock_layer timed out (is the CPU pegged?) layer=0,
lcblk=0x42480020 state=0000003 (was 0000042)
lock_layer() timed out but didn't appear to need to be locked and
we recovered (layer=0 lcblk=0x42480020 state=0000)
The problem not always happens, so its intermittent.
I made the code as simple as possible at onSTOP and onDESTROY. So
my code only goes at the BACK BUTTON handler.
My code:
public void onStop(){
super.onStop();
}
protected void onDestroy() {
super.onDestroy();
}
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount()
== 0) {
// do something on back.
Log.e("BACK PRESSED","BACK WAS PRESSED!");
this.ioManager.addRankPoints(this.spriteRenderer.points);
this.ioManager.saveRankData();
this.soundManager.stopAllMusics();
this.spriteRenderer.paused=true;
while (this.spriteRenderer.drawingState==true)
Log.e("OpenGLActivity","Waitting to UNLOCK AFTER END
DRAW..");
util.unLockScreen(myWakeLock);
this.finish();
return true;
}
return super.onKeyDown(keyCode, event);
}
The METHOD at UTIL class is:
static void unLockScreen(WakeLock wl) {
if (wl.isHeld())
wl.release();
}
I'm not ASKING your help to CODE the solution for me.
Just let me know WHY I HAVE THIS PROBLEM, and WHAT I SHOULD DO to
SOLVE IT.
(The ACTIVITY that CALLS this METHOD has a GLSurfaceView and I'm
using VBO to draw objects on screen)
Thanks for your attention.
Best regards,
Assis
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en