Closed Bug 932054 Opened 12 years ago Closed 12 years ago

GeckoTopSites aborts thumbnail load; decode failed - OOM on decodeByteArray in E/GeckoBitmapUtils(16259): at org.mozilla.gecko.home.TopSitesPage$ThumbnailsLoader.loadInBackground(TopSitesPage.java:694)

Categories

(Firefox for Android Graveyard :: Awesomescreen, defect)

26 Branch
ARM
Android
defect
Not set
normal

Tracking

(firefox25 unaffected, firefox26 affected, firefox27 affected, fennec26+)

RESOLVED WORKSFORME
Tracking Status
firefox25 --- unaffected
firefox26 --- affected
firefox27 --- affected
fennec 26+ ---

People

(Reporter: aaronmt, Assigned: rnewman)

References

Details

(Keywords: regression, reproducible)

Attachments

(1 file)

E/GeckoBitmapUtils(16259): decodeByteArray(bytes.length=428543, options= null) OOM! E/GeckoBitmapUtils(16259): java.lang.OutOfMemoryError E/GeckoBitmapUtils(16259): at android.graphics.BitmapFactory.nativeDecodeByteArray(Native Method) E/GeckoBitmapUtils(16259): at android.graphics.BitmapFactory.decodeByteArray(BitmapFactory.java:441) E/GeckoBitmapUtils(16259): at org.mozilla.gecko.gfx.BitmapUtils.decodeByteArray(BitmapUtils.java:122) E/GeckoBitmapUtils(16259): at org.mozilla.gecko.gfx.BitmapUtils.decodeByteArray(BitmapUtils.java:111) E/GeckoBitmapUtils(16259): at org.mozilla.gecko.home.TopSitesPage$ThumbnailsLoader.loadInBackground(TopSitesPage.java:694) E/GeckoBitmapUtils(16259): at org.mozilla.gecko.home.TopSitesPage$ThumbnailsLoader.loadInBackground(TopSitesPage.java:656) E/GeckoBitmapUtils(16259): at android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:242) E/GeckoBitmapUtils(16259): at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:51) E/GeckoBitmapUtils(16259): at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:40) E/GeckoBitmapUtils(16259): at android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:123) E/GeckoBitmapUtils(16259): at java.util.concurrent.FutureTask.run(FutureTask.java:234) E/GeckoBitmapUtils(16259): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) E/GeckoBitmapUtils(16259): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) E/GeckoBitmapUtils(16259): at java.lang.Thread.run(Thread.java:841) W/GeckoTopSitesPage(16259): Aborting thumbnail load; decode failed. Open 20 tabs; see no screenshots get decoded for the open sites when you visit about:home. Expected: Screenshots from the site as thumbnails Actual: Favicons only in the thumbnail spots -- Nightly (10/28), Samsung Galaxy SIV (Android 4.3)
Attached file logcat
This might just be that we're keeping too many large bitmaps in memory when you have many tabs open.
Is this a regression?
Flags: needinfo?(aaron.train)
Yes, starting in 26. I'm unable to reproduce on 25.
Flags: needinfo?(aaron.train)
Keywords: regression
Assignee: nobody → rnewman
tracking-fennec: ? → 26+
Given that Bug 919768 improved matters in 26, this sounds like it's a sibling of Bug 931843 -- simply, we don't have enough memory to do all the bitmap-intensive stuff that we're doing due to a leak or bloat elsewhere. That's probably still bitmap-related, but we'll have to do some heap profiling to figure this out.
Status: NEW → ASSIGNED
Flags: needinfo?(aaron.train)
Tried it out and its an improvement for me. I am not seeing the OutOfMemoryErrors on load. On a fresh profile, after 20 tabs open are open I get about 4/6 thumbnails shown whereas prior, I would get 0/6 shown - is this still a problem? For what it's worth, all I was doing is: https://gist.github.com/AaronMT/7271240 on a new profile and watching Gecko output and then after a run, checking about:home in a new tab
Flags: needinfo?(aaron.train)
Depends on: 933992
Gonna mark this as dependent on Bug 931843, because the fixes in that bug should solve this, too.
Depends on: 931843
Fixed via patches in marked dependancy (tested via Nightly 11/05).
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: