Problem with SurfaceComposerClient & SurfaceFlinger

Problems with Canvas, OpenGL, etc...

Problem with SurfaceComposerClient & SurfaceFlinger

Postby czyang » Tue Feb 15, 2011 6:46 pm

I making a Canvas game with the game template: 2d_tutorial-t3120.html . In some Time(Not every times) I got some warning like following, when these warning occurred, the game will lag a while but not stop. I searched some article about these warning, but I have no idea .
My phone is G1 with android 1.6.
Some one have some idea about this problem?

Code: Select all
02-15 22:57:03.630: WARN/SurfaceComposerClient(636): lock_layer timed out (is the CPU pegged?) layer=1, lcblk=0x424900a0, state=00000002 (was 00000043)
02-15 22:57:03.630: WARN/SurfaceComposerClient(636): lock_layer() timed out but didn't appear to need to be locked and we recovered (layer=1, lcblk=0x424900a0, state=00000002)

02-16 01:23:54.220: WARN/SurfaceFlinger(138): executeScheduledBroadcasts() skipped, contention on the client. We'll try again later...
02-16 01:23:54.230: WARN/SurfaceFlinger(138): executeScheduledBroadcasts() skipped, contention on the client. We'll try again later...
02-16 01:23:54.240: WARN/SurfaceFlinger(138): executeScheduledBroadcasts() skipped, contention on the client. We'll try again later...
02-16 01:23:54.250: WARN/SurfaceFlinger(138): executeScheduledBroadcasts() skipped, contention on the client. We'll try again later...


Best regards,
czYang
czyang
Freshman
Freshman
 
Posts: 3
Joined: Fri Dec 31, 2010 9:47 am

Top

Re: Problem with SurfaceComposerClient & SurfaceFlinger

Postby amitku » Fri Apr 01, 2011 12:42 pm

I am not sure but you can try this --getWindow().setFlags(WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY, WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA); in your activity.
amitku
Junior Developer
Junior Developer
 
Posts: 15
Joined: Wed Mar 02, 2011 9:10 am
Location: Bangladesh

Re: Problem with SurfaceComposerClient & SurfaceFlinger

Postby czyang » Fri Apr 01, 2011 2:31 pm

Hi amitku,
Thank you for your answer :)
I already use AndEngine to remake my game. These warning looks like regular(some game used canvas has same warning when it running ).
czyang
Freshman
Freshman
 
Posts: 3
Joined: Fri Dec 31, 2010 9:47 am

Top

Return to Android 2D/3D Graphics - OpenGL Problems

Who is online

Users browsing this forum: No registered users and 7 guests