The issue should be caused by too many surface exist at one time,you
can dump service info to check it.Then you can check if so much
surface is really needed,if yes I guess you should increase it.

On 7月8日, 上午7时20分, ysadhu <sadhu.yog...@gmail.com> wrote:
> Hi All,
>
> I am Getting out of Memory for Surfaces, while running Monkey on
> 800x480 resolution, while the same works fine on smaller resolution
> 320x480. in memorydealer.cpp after some time in alloc it returns
> NO_MEMORY and this generates an exception "Out of memory" which leads
> to killing applications.
> My current allocation of pmem for SF is 8MB and increasing the memory
> to 16 making things better, But is this required?
> Any pointers will be of great Help.
>
> Logcat Messages.
>
> E/SurfaceFlinger(  985): resizing buffer 0 to (800,353) failed
> [00000000] Unknown error: 0
> E/SurfaceFlinger(  985): not enough memory for layer bitmap
> size=1130496
> E/SurfaceFlinger(  985): resizing buffer 1 to (800,353) failed
> [fffffff4] Unknown error: -12
> E/SurfaceComposerClient(  985): surface (id=2, identity=26) is
> invalid, err=-12 (Out of memory)
> W/WindowManager(  985): Failure showing surface Surface(native-
> token=2057232) in Window{438f9fb8 PopupWindow:43851350 paused=false}
> I/WindowManager(  985): Out of memory for surface!  Looking for
> leaks...
> W/WindowManager(  985): No leaked surfaces; killing applicatons!
> W/ActivityManager(  985): Killing processes for memory at adjustment 1
> W/ActivityManager(  985): Killing for memory: ProcessRecord{438e32e8
> 1173:com.android.inputmethod.latin/10001} (adj 1)
> W/WindowManager(  985): Looks like we have reclaimed some memory,
> clearing surface for retry.
> W/SurfaceComposerClient(  985): Destroying surface while a transaction
> is open. Client 0x28d390: destroying surface 2, mTransactionOpen=1
> W/WindowManager(  985): Due to memory failure, waiting a bit for next
> layout
> I/ActivityManager(  985): Process com.android.inputmethod.latin (pid
> 1173) has died.
>
> Regards,
> YSadhu
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to