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 Speed up Animation

I have a static background image, and a foreground that needs to be
animated. I tried a couple different approaches but the animation
seemed choppy.

One thing I did was having 2 different views, constantly calling
invalidate() on the foreground view. Another was to have only 1
surfaceview, redrawing the background image and the foreground on each
step of the animation. While a surfaceview offers an optimal way to do
heavy-duty animation, having to redraw the background every time kills
the performance. Neither produced a smooth animation.

What is the best way to perform this kind of animation--static
background and animated foreground?

Many thanks.

2. Mounting two separate partitions of an SD card

I am compiling android from source and wish to have the following
functionality in it.

1. The SD card inserted in the device will have two partitions. I
that the android device be able to mount both these partitions
separately as SD card storage (for eg: /sdcard1 and /sdcard2).
Can someone please guide me on how I might be able to achieve that
( which files need to be modified or where to look)?

2. If this is achieved (the two partitions are mounted as /sdcard1
and /sdcard2), I want that when an application tries to write a file
on the SD card, the device decides whether to put it in /sdcard1 or /
sdcard2. Can someone tell me where the writing to the SD card is
implemented so that I can modify it to be able to achieve this?

Thanks for your time and patience
Akhilesh Gupta

unsubscribe: android-porting+unsubscr...@googlegroups.com

3. How to use custom control ?

4. compiling problem on g_ether.

5. Maps liberary as application liberary insted of shared lib

6. AMR Renderring

7. IllegalAccessError - any clues when this may come..