Closed Bug 736972 Opened 8 years ago Closed 8 years ago

java.lang.OutOfMemoryError: at java.io.BufferedReader.<init>(BufferedReader.java)

Categories

(Firefox for Android :: Android Sync, defect, P1)

ARM
Android
defect

Tracking

()

RESOLVED FIXED
mozilla14
Tracking Status
firefox13 --- fixed
firefox14 --- fixed

People

(Reporter: scoobidiver, Assigned: rnewman)

References

(Depends on 1 open bug)

Details

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

Crash Data

There's one crash in 14.0a1/20120318: bp-44bc58b4-400d-4c59-ad4b-02e8c2120319.

java.lang.OutOfMemoryError
	at java.io.BufferedReader.<init>(BufferedReader.java:95)
	at org.mozilla.gecko.sync.net.SyncStorageCollectionRequest$SyncCollectionResourceDelegate.handleHttpResponse(SyncStorageCollectionRequest.java:80)
	at org.mozilla.gecko.sync.net.BaseResource.execute(BaseResource.java:232)
	at org.mozilla.gecko.sync.net.BaseResource.go(BaseResource.java:254)
	at org.mozilla.gecko.sync.net.BaseResource.get(BaseResource.java:260)
	at org.mozilla.gecko.sync.net.SyncStorageRequest.get(SyncStorageRequest.java:163)
	at org.mozilla.gecko.sync.repositories.Server11RepositorySession.fetchWithParameters(Server11RepositorySession.java:226)
	at org.mozilla.gecko.sync.repositories.Server11RepositorySession.fetchSince(Server11RepositorySession.java:243)
	at org.mozilla.gecko.sync.middleware.Crypto5MiddlewareRepositorySession.fetchSince(Crypto5MiddlewareRepositorySession.java:147)
	at org.mozilla.gecko.sync.synchronizer.RecordsChannel.flow(RecordsChannel.java:132)
	at org.mozilla.gecko.sync.synchronizer.RecordsChannel.onBeginSucceeded(RecordsChannel.java:232)
	at org.mozilla.gecko.sync.repositories.delegates.DeferredRepositorySessionBeginDelegate$1.run(DeferredRepositorySessionBeginDelegate.java:57)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
	at java.lang.Thread.run(Thread.java:1019)

More reports at:
https://crash-stats.mozilla.com/report/list?signature=java.lang.OutOfMemoryError%3A+at+java.io.BufferedReader.%3Cinit%3E%28BufferedReader.java%29
Whiteboard: [native-crash] → [native-crash], sync
sync related crash?
This is allocating a big buffer. Perhaps the Sharp Infobar A01 is more resource-constrained than most devices?

We can shrink that for sure.
Severity: critical → normal
Component: General → Android Sync
Product: Fennec Native → Mozilla Services
QA Contact: general → android-sync
Version: Firefox 14 → unspecified
blocking-fennec1.0: --- → ?
I will be committing a change for this as soon as my interminable build finishes.
blocking-fennec1.0: ? → ---
https://hg.mozilla.org/integration/mozilla-inbound/rev/c1e32cb0678e

This drops the buffer size substantially.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla14
Assignee: nobody → rnewman
https://hg.mozilla.org/mozilla-central/rev/c1e32cb0678e
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Depends on: 749729
Product: Mozilla Services → Android Background Services
Product: Android Background Services → Firefox for Android
You need to log in before you can comment on or make changes to this bug.