Open Bug 734815 Opened 8 years ago Updated 2 months ago

java.lang.OutOfMemoryError: at android.graphics.Bitmap.nativeCreate(Native Method)

Categories

(Firefox for Android :: General, defect, P5, critical)

All
Android
defect

Tracking

()

Tracking Status
firefox16 --- affected
firefox17 --- affected
blocking-fennec1.0 --- -
firefox-esr68 --- affected
firefox53 --- affected
firefox54 --- affected
firefox55 --- affected
firefox62 --- affected
firefox63 --- affected

People

(Reporter: scoobidiver, Unassigned)

Details

(Keywords: crash, Whiteboard: [native-crash][geckoview:p3])

Crash Data

There are five crashes from the same user: bp-38cecbd9-f7fc-45d5-9050-2960d2120312.

java.lang.OutOfMemoryError
	at android.graphics.Bitmap.nativeCreate(Native Method)
	at android.graphics.Bitmap.createBitmap(Bitmap.java:605)
	at android.graphics.Bitmap.createBitmap(Bitmap.java:585)
	at org.mozilla.gecko.GeckoAppShell$4.run(GeckoAppShell.java:500)
	at android.os.Handler.handleCallback(Handler.java:605)
	at android.os.Handler.dispatchMessage(Handler.java:92)
	at android.os.Looper.loop(Looper.java:137)
	at org.mozilla.gecko.GeckoBackgroundThread.run(GeckoBackgroundThread.java:31)

More reports at:
https://crash-stats.mozilla.com/report/list?signature=java.lang.OutOfMemoryError%3A%20at%20android.graphics.Bitmap.nativeCreate%28Native%20Method%29
It first appeared in 13.0a1/20120310.
I think this might be the same issue : 
java.lang.OutOfMemoryError: bitmap size exceeds VM budget
	at android.graphics.Bitmap.nativeCreate(Native Method)
	at android.graphics.Bitmap.createBitmap(Bitmap.java:507)
	at org.mozilla.gecko.GeckoAppShell$4.run(GeckoAppShell.java:500)
	at android.os.Handler.handleCallback(Handler.java:587)
	at android.os.Handler.dispatchMessage(Handler.java:92)
	at android.os.Looper.loop(Looper.java:130)
	at org.mozilla.gecko.GeckoBackgroundThread.run(GeckoBackgroundThread.java:31)

https://crash-stats.mozilla.com/report/index/2f4a820c-a3fb-4e6c-9b93-dfa032120311
Crash Signature: [@ java.lang.OutOfMemoryError: at android.graphics.Bitmap.nativeCreate(Native Method)] → [@ java.lang.OutOfMemoryError: at android.graphics.Bitmap.nativeCreate(Native Method)] [@ java.lang.OutOfMemoryError: bitmap size exceeds VM budget at android.graphics.Bitmap.nativeCreate(Native Method) ]
blocking-fennec1.0: --- → -
The latest crash for both signatures happened in 14.0a1/20120314081929 before the Maple merge.
Crash Signature: [@ java.lang.OutOfMemoryError: at android.graphics.Bitmap.nativeCreate(Native Method)] [@ java.lang.OutOfMemoryError: bitmap size exceeds VM budget at android.graphics.Bitmap.nativeCreate(Native Method) ] → [@ java.lang.OutOfMemoryError: at android.graphics.Bitmap.nativeCreate(Native Method) ]
There are 3 crashes in the trunk from 2 users. Here is the stack:
java.lang.OutOfMemoryError
	at android.graphics.Bitmap.nativeCreate(Native Method)
	at android.graphics.Bitmap.createBitmap(Bitmap.java:604)
	at android.graphics.Bitmap.createBitmap(Bitmap.java:584)
	at org.mozilla.gecko.GeckoAppShell$3.run(GeckoAppShell.java:548)
	at android.os.Handler.handleCallback(Handler.java:587)
	at android.os.Handler.dispatchMessage(Handler.java:92)
	at android.os.Looper.loop(Looper.java:132)
	at org.mozilla.gecko.GeckoBackgroundThread.run(GeckoBackgroundThread.java:31)

More reports at:
https://crash-stats.mozilla.com/report/list?signature=java.lang.OutOfMemoryError%3A+at+android.graphics.Bitmap.nativeCreate%28Native+Method%29
Version: Firefox 13 → Trunk
Crash Signature: [@ java.lang.OutOfMemoryError: at android.graphics.Bitmap.nativeCreate(Native Method) ] → [@ java.lang.OutOfMemoryError: at android.graphics.Bitmap.nativeCreate(Native Method) ] [@ java.lang.OutOfMemoryError: at android.graphics.Bitmap.nativeCreate ]
Hardware: ARM → All
bp-038e52e4-e1f9-4fb3-b6b2-f37cf0170427
	2017/04/27	06:22

java.lang.OutOfMemoryError at android.graphics.Bitmap.nativeCreate(Native Method) at android.graphics.Bitmap.createBitmap(Bitmap.java:791) at android.graphics.Bitmap.createBitmap(Bitmap.java:768) at android.graphics.Bitmap.createBitmap(Bitmap.java:735) at org.mozilla.gecko.BrowserApp.getBitmapOfToolbarChrome(BrowserApp.java:1640) at org.mozilla.gecko.gfx.DynamicToolbarAnimator.getBitmapOfToolbarChrome(DynamicToolbarAnimator.java:181) at org.mozilla.gecko.gfx.LayerView.handleToolbarAnimatorMessage(LayerView.java:207) at org.mozilla.gecko.gfx.LayerView$Compositor.recvToolbarAnimatorMessage(LayerView.java:145) at org.mozilla.gecko.GeckoThread.runUiThreadCallback(Native Method) at org.mozilla.gecko.GeckoThread$1.run(GeckoThread.java:96) at android.os.Handler.handleCallback(Handler.java:730) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5414) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:525) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1187) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003) at dalvik.system.NativeStart.main(Native Method)
This crash signature still shows up in Fennec 62 and 63.
Priority: -- → P3
Whiteboard: [native-crash] → [native-crash][geckoview:p3]
Re-triaging per https://bugzilla.mozilla.org/show_bug.cgi?id=1473195

Needinfo :susheel if you think this bug should be re-triaged.
Priority: P3 → P5

This is #9 overall in the 68 Fennec release. It wasn't seen in the 67 release, but has been seen in 66 as well as earlier releases. APIs range from 15-28.

(48.18% in signature vs 06.11% overall) adapter_device_id = Mali-400 MP [94.78% vs 19.67% if adapter_vendor_id = ARM]

You need to log in before you can comment on or make changes to this bug.