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)
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)
|
43.48 KB,
text/plain
|
Details |
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)
| Reporter | ||
Comment 1•12 years ago
|
||
Comment 2•12 years ago
|
||
This might just be that we're keeping too many large bitmaps in memory when you have many tabs open.
| Reporter | ||
Comment 4•12 years ago
|
||
Yes, starting in 26. I'm unable to reproduce on 25.
Updated•12 years ago
|
Assignee: nobody → rnewman
tracking-fennec: ? → 26+
| Assignee | ||
Comment 5•12 years ago
|
||
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.
| Assignee | ||
Comment 6•12 years ago
|
||
Aaron, give this a shot?
http://people.mozilla.org/~rnewman/thumbnails.apk
Status: NEW → ASSIGNED
Flags: needinfo?(aaron.train)
| Reporter | ||
Comment 7•12 years ago
|
||
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)
| Assignee | ||
Comment 8•12 years ago
|
||
Gonna mark this as dependent on Bug 931843, because the fixes in that bug should solve this, too.
Depends on: 931843
| Reporter | ||
Comment 9•12 years ago
|
||
Fixed via patches in marked dependancy (tested via Nightly 11/05).
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•