Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6653255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:14:48+00:00 2026-05-26T01:14:48+00:00

Ive been working on an app for a while that uses lots of Bitmaps

  • 0

Ive been working on an app for a while that uses lots of Bitmaps and Ive gotten it to the point where its working really well on most devices that Ive tested it on except for a newer droid bionic that runs 2.3.4

I get an out of memory error and I can see the heap growing in the logcat too. So far Ive tried re-sizing the bitmaps with different techniques which works great for every other device except the new droid bionic which is weird being that you would think a newer phone would handle vm better.

Ive looked at some other threads on here that talk about using various methods but the one Im interested in using involves using WeakReferenced to store images as. This is great but how can I convert the weakreference back to a normal bitmap to use on a canvas.

EDIT: heres a recent stack trace dumparoo :p

09-30 12:33:09.231  2867  2922 E AndroidRuntime: FATAL EXCEPTION: go
09-30 12:33:09.231  2867  2922 E AndroidRuntime: java.lang.OutOfMemoryError
09-30 12:33:09.231  2867  2922 E AndroidRuntime:    at org.apache.http.impl.io.AbstractSessionInputBuffer.init(AbstractSessionInputBuffer.java:79)
09-30 12:33:09.231  2867  2922 E AndroidRuntime:    at org.apache.http.impl.io.SocketInputBuffer.<init>(SocketInputBuffer.java:93)
09-30 12:33:09.231  2867  2922 E AndroidRuntime:    at org.apache.http.impl.SocketHttpClientConnection.createSessionInputBuffer(SocketHttpClientConnection.java:83)
09-30 12:33:09.231  2867  2922 E AndroidRuntime:    at org.apache.http.impl.conn.DefaultClientConnection.createSessionInputBuffer(DefaultClientConnection.java:170)
09-30 12:33:09.231  2867  2922 E AndroidRuntime:    at org.apache.http.impl.SocketHttpClientConnection.bind(SocketHttpClientConnection.java:106)
09-30 12:33:09.231  2867  2922 E AndroidRuntime:    at org.apache.http.impl.conn.DefaultClientConnection.openCompleted(DefaultClientConnection.java:129)
09-30 12:33:09.231  2867  2922 E AndroidRuntime:    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)
09-30 12:33:09.231  2867  2922 E AndroidRuntime:    at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
09-30 12:33:09.231  2867  2922 E AndroidRuntime:    at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
09-30 12:33:09.231  2867  2922 E AndroidRuntime:    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:363)
09-30 12:33:09.231  2867  2922 E AndroidRuntime:    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
09-30 12:33:09.231  2867  2922 E AndroidRuntime:    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
09-30 12:33:09.231  2867  2922 E AndroidRuntime:    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
09-30 12:33:09.231  2867  2922 E AndroidRuntime:    at graffit.data.ImageGrabber.imagegetter(ImageGrabber.java:164)
09-30 12:33:09.231  2867  2922 E AndroidRuntime:    at graffit.data.ImageGrabber.traverseIDS(ImageGrabber.java:118)
09-30 12:33:09.231  2867  2922 E AndroidRuntime:    at graffit.data.ImageGrabber$getMarkImageThread.run(ImageGrabber.java:238)
09-30 12:33:09.239   480   750 W ActivityManager:   Force finishing activity graffit.main/.GraffView
09-30 12:33:09.669   480   873 I ActivityManager: Process graffit.main (pid 2867) has died.
09-30 12:33:09.677   480   590 I WindowManager: WINDOW DIED Window{407c4100 graffit.main/graffit.main.GraffView paused=true}
09-30 12:33:09.677   480   590 I WindowManager: WINDOW DIED Window{408044e0 Toast paused=false}
09-30 12:33:09.684   480   759 I WindowManager: Setting rotation to 0, animFlags=1
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T01:14:48+00:00Added an answer on May 26, 2026 at 1:14 am

    Are you making http calls in your code using the Apache DefaultHttpClient?

    I’ve recently discovered a problem specific to the Droid Bionic which causes it to use a lot more VM memory than other Android devices while downloading files using the HttpClient. This may be the true cause of your memory leaks if your are not experiencing an OutOfMemoryError on other devices.

    Do you have any stack traces that indicate an OutOfMemoryError during a http call?

    I believe the work-around code starting at line 64 in the following source maybe missing on the Droid Bionic build:

    http://codesearch.google.com/codesearch#CskViEIa27Y/src/org/apache/http/impl/io/SocketInputBuffer.java&q=package:android.git.kernel.org%20file:org/apache/http/impl/io/SocketInputBuffer.java&l=1

    You can fix this by using HttpConnectionParams.setSocketBufferSize(params, 8192) when you create your http client.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been working on a rails app that uses the restful authentication plugin. It
I've been working on and off with a team that's developing an iPhone app.
I've got a flex/air app I've been working on, it uses a local sqlite
I've been working with node.js for a while on a chat app (I know,
I've been working on this iPhone app for a while now, and I had
I've been working at learning programming for a while now and I feel that
I've been working with a Django app for a while, and the Django admin
I have a project that I've been working on for a while. It is
So i am working in an app that uses de CGridView extensively but I
I've been working on a complex app with one main dashboard. I don't particularly

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.