Closed Bug 827248 Opened 12 years ago Closed 11 years ago

java.lang.OutOfMemoryError: at android.graphics.BitmapFactory.nativeDecodeByteArray(Native Method) at org.mozilla.gecko.AboutHomeContent.getThumbnailsFromCursor or getTopSitesThumbnails(AboutHomeContent.java)

Categories

(Firefox for Android Graveyard :: General, defect)

20 Branch
ARM
Android
defect
Not set
critical

Tracking

(firefox19 affected, firefox20 affected, firefox21 wontfix, firefox22 fixed, firefox23 fixed)

RESOLVED FIXED
Firefox 23
Tracking Status
firefox19 --- affected
firefox20 --- affected
firefox21 --- wontfix
firefox22 --- fixed
firefox23 --- fixed

People

(Reporter: scoobidiver, Assigned: cpeterson)

References

Details

(Keywords: crash, reproducible, Whiteboard: [native-crash])

Crash Data

There are two crashes in 20.0a1, bp-e8874b27-cd56-45e5-ba18-968ae2130107 and bp-08a43bee-0bd9-4953-bd8b-bfecf2121223, with similar stack traces. It's different from bug 778459. java.lang.OutOfMemoryError at android.graphics.BitmapFactory.nativeDecodeByteArray(Native Method) at android.graphics.BitmapFactory.decodeByteArray(BitmapFactory.java:424) at android.graphics.BitmapFactory.decodeByteArray(BitmapFactory.java:441) at org.mozilla.gecko.AboutHomeContent.getThumbnailsFromCursor(AboutHomeContent.java:418) at org.mozilla.gecko.AboutHomeContent$9.onPostExecute(AboutHomeContent.java:445) at org.mozilla.gecko.AboutHomeContent$9.onPostExecute(AboutHomeContent.java:437) at org.mozilla.gecko.util.GeckoAsyncTask$BackgroundTaskRunnable$1.run(GeckoAsyncTask.java:37) 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 android.app.ActivityThread.main(ActivityThread.java:4487) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) at dalvik.system.NativeStart.main(Native Method) More reports at: https://crash-stats.mozilla.com/report/list?signature=java.lang.OutOfMemoryError%3A+at+android.graphics.BitmapFactory.nativeDecodeByteArray%28Native+Method%29
I can consistently reproduce this if I just rotate about:home repeatedly between vertical and landscape orientations. After the 6th or 7th rotation, it crashes.
Yeah I can too E/dalvikvm-heap( 4484): Out of memory on a 749584-byte allocation. I/dalvikvm( 4484): "main" prio=5 tid=1 RUNNABLE I/dalvikvm( 4484): | group="main" sCount=0 dsCount=0 obj=0x40aed9a0 self=0x400b0010 I/dalvikvm( 4484): | sysTid=4484 nice=0 sched=0/0 cgrp=apps handle=1074156508 I/dalvikvm( 4484): | state=R schedstat=( 0 0 0 ) utm=4075 stm=1141 core=1 I/dalvikvm( 4484): at android.graphics.BitmapFactory.nativeDecodeByteArray(Native Method) I/dalvikvm( 4484): at android.graphics.BitmapFactory.decodeByteArray(BitmapFactory.java:428)
Keywords: reproducible
Depends on: 838398
I filed bug 838398 for the rotation memory leak. That was introduced in Fx21, so there must be something else causing the crash here.
Version: Trunk → Firefox 20
This OOM will probably be fixed by bug 863288.
Depends on: 863288
Assignee: nobody → cpeterson
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 23
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.