Can run out of resources for the graphic buffer by rotating phone continuously back and forth on a webgl page

NEW
Unassigned

Status

()

defect
P3
normal
7 years ago
7 months ago

People

(Reporter: nhirata, Unassigned)

Tracking

(Blocks 1 bug)

13 Branch
ARM
Android
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: oom [games:p?], )

1. go to https://developer.mozilla.org/samples/webgl/sample7/index.html
2. keep rotating the phone portrait to landscape and back
Expected : no crashing
Actual: OOM due to running out of resource; phone reboots

Note:
1. keeping the phone in either landscape or portrait will not cause an OOM to occur.
2. Samsung Galaxy S 2, Nightly 2/7/2012 build, Android OS 2.3

02-07 16:11:16.965: E/SurfaceFlinger(2711): Layer::requestBuffer(this=0x304ed8), index=0, w=800, h=404 failed (Operation not permitted)
02-07 16:11:16.965: E/Surface(2826): Surface (identity=4) requestBuffer(0, 0, 0, 0, 00000033) returned a buffer with a null handle
02-07 16:11:16.965: E/Surface(2826): getBufferLocked(0, 0, 0, 0, 00000033) failed (Out of memory)
02-07 16:11:16.965: E/Surface(2826): dequeueBuffer failed (Out of memory)
02-07 16:11:16.970: E/ViewRoot(2826): OutOfResourcesException locking surface
02-07 16:11:16.970: E/ViewRoot(2826): android.view.Surface$OutOfResourcesException
02-07 16:11:16.970: E/ViewRoot(2826): 	at android.view.Surface.lockCanvasNative(Native Method)
02-07 16:11:16.970: E/ViewRoot(2826): 	at android.view.Surface.lockCanvas(Surface.java:322)
02-07 16:11:16.970: E/ViewRoot(2826): 	at android.view.ViewRoot.draw(ViewRoot.java:1464)
02-07 16:11:16.970: E/ViewRoot(2826): 	at android.view.ViewRoot.performTraversals(ViewRoot.java:1266)
02-07 16:11:16.970: E/ViewRoot(2826): 	at android.view.ViewRoot.handleMessage(ViewRoot.java:1868)
02-07 16:11:16.970: E/ViewRoot(2826): 	at android.os.Handler.dispatchMessage(Handler.java:99)
02-07 16:11:16.970: E/ViewRoot(2826): 	at android.os.Looper.loop(Looper.java:123)
02-07 16:11:16.970: E/ViewRoot(2826): 	at android.app.ActivityThread.main(ActivityThread.java:3691)
02-07 16:11:16.970: E/ViewRoot(2826): 	at java.lang.reflect.Method.invokeNative(Native Method)
02-07 16:11:16.970: E/ViewRoot(2826): 	at java.lang.reflect.Method.invoke(Method.java:507)
02-07 16:11:16.970: E/ViewRoot(2826): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)
02-07 16:11:16.970: E/ViewRoot(2826): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
02-07 16:11:16.970: E/ViewRoot(2826): 	at dalvik.system.NativeStart.main(Native Method)
jpr, anyone available to take a look at this?
Priority: -- → P1
Blocks: 783559
Whiteboard: oom → oom [games:p?]
We need to wait until bug 716859 lands before looking at this, as it'll change the buffer allocation strategies quite a bit.  We might need some more aggressive cleanup (not waiting for GC) on things like rotation and stuff.
Whiteboard: oom [games:p?] → oom [games:p3]
Whiteboard: oom [games:p3] → oom [games:p1]
Whiteboard: oom [games:p1] → oom [games:p?]
Moving to p3 because no activity for at least 24 weeks.
Priority: P1 → P3
You need to log in before you can comment on or make changes to this bug.