Closed Bug 725145 Opened 12 years ago Closed 3 years ago

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

Categories

(Firefox for Android Graveyard :: General, defect, P3)

13 Branch
ARM
Android
defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: nhirata, Unassigned)

References

(Blocks 1 open bug, )

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]
Blocks: gecko-games
Whiteboard: oom [games:p1] → oom [games:p?]
Moving to p3 because no activity for at least 24 weeks.
Priority: P1 → P3
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.