lock_layer timed out (is the CPU pegged?)

by Julius Spencer » Thu, 19 Nov 2009 11:55:06 GMT

Sponsored Links

I have a situation occurring intermittently with an application where  
I receive the following message. It's probably something to do with a  
Thread. The application seems to stop, but I get the following message  
and I'm not sure what it means:

WARN/SurfaceComposerClient(2106): lock_layer timed out (is the CPU  
pegged?) layer=1, lcblk=0x424800a0, state=00000043 (was 00000043)

I see others have had this issue, but I don't see a solution or  
explanation (that I can understand :-) ). Can anyone point me in the  
right direction?

Thanks for any help.



lock_layer timed out (is the CPU pegged?)

by Lance Nanek » Sun, 22 Nov 2009 17:13:47 GMT

 I see that message often when displaying a Toast or GestureOverlayView
on top of a GLSurfaceView. In my case GestureOverlayView is being
shown on top of the GLSurfaceView using a FrameLayout, though.
Wrapping like the developer blog recommends doesn't seem to work with

Avoiding using those things doesn't just get rid of the message for
me, it also seems to considerably improve the worst time between
ondraw calls frame rate statistic that I track for my game as well.


Sponsored Links

lock_layer timed out (is the CPU pegged?)

by rupy » Mon, 18 Jan 2010 04:25:36 GMT

 Think I solved this for my demo app, might give you a hint!




> - Show quoted text -

Other Threads

1. How to call the dialog of a DialogPreference withouth requiring the user to click on it?


I'm having a hard time how to open a preference dialog from code.

Let's say I have a ListPreference with the key "abc" defined in XML.
When the user navigates through the preferences and clicks on that
ListPreference, a dialog pops up and the user can select it. Is there
any way to open that dialog from code, e.g. simulating that the user
opens preferences and clicks on the item?

I've tried several ways, eg.

( (android.preference.DialogPreference)
prefMgr.findPreference( "abc" )).showDialog(null);

but with no result. (This does not work because it is a protected

Of course I gut build my own dialog which looks like the dialog of the
preference and does the same, but that would be building the same
thing again and I had to track the changes done to either dialog/
preference to update the other.

StackOverflow does not seem to have an answer, see eg [1] or [2],
maybe here's someone that can tell if it's possible (or at least say
it is not)?



2. phone to CAM FW Write (camera firmware)

Hi to all,
i'm a new guy and new android man...hehe!!
I do my compliments to the group, it's very great.
Please,  sorry for my bad english
I have a galaxy s and during the modding of my phone i have update the
camera firmware.
I'm went in the "secret" menu typing  *#*#34971539#*#* and i have
press "Phone to CAM FW Write".
After reboot the phone the camera doesn't work and when i start the
program appear a popup with the message "camera error".
I have istalled:
-Phone firmware 2.2.1
-base versionI9000xxjpy
-build number FROYO.XWJS3.

Please someone know if it's possible replace the camera firmware and
where i can find it?

Thx in advance.



3. Execute external application as root for 30 seconds and get output in a text file

4. Record media - exception : Prepare failder (IOexception)

5. In-App payment optionss

6. Content Values issues

7. Youtube Vidoeview