Skip to content

Instantly share code, notes, and snippets.

@SammysHP
Created August 17, 2012 10:17
Show Gist options
  • Save SammysHP/3377742 to your computer and use it in GitHub Desktop.
Save SammysHP/3377742 to your computer and use it in GitHub Desktop.
c:geo OutOfMemoryError with OSM and large images in listings
...
I/ActivityManager( 234): Starting: Intent { cmp=cgeo.geocaching/.CachePopup (has extras) } from pid 4429
...
I/ActivityManager( 234): Displayed cgeo.geocaching/.CachePopup: +1s116ms
...
I/ActivityManager( 234): Starting: Intent { cmp=cgeo.geocaching/.CacheDetailActivity (has extras) } from pid 4429
...
I/ActivityManager( 234): Displayed cgeo.geocaching/.CacheDetailActivity: +840ms
...
E/cgeo ( 4429): cgData.loadCaches([GC296RQ]) failed
...
D/dalvikvm( 4429): GC_EXTERNAL_ALLOC freed 297K, 49% free 7042K/13639K, external 19078K/20105K, paused 63ms
E/dalvikvm-heap( 4429): 472320-byte external allocation too large for this process.
E/GraphicsJNI( 4429): VM won't let us allocate 472320 bytes
D/dalvikvm( 4429): GC_FOR_MALLOC freed 600K, 53% free 6442K/13639K, external 18924K/20105K, paused 53ms
D/skia ( 4429): --- decoder->decode returned false
W/dalvikvm( 4429): threadid=20: thread exiting with uncaught exception (group=0x2aac8578)
E/AndroidRuntime( 4429): FATAL EXCEPTION: AsyncTask #2
E/AndroidRuntime( 4429): java.lang.RuntimeException: An error occured while executing doInBackground()
E/AndroidRuntime( 4429): at android.os.AsyncTask$3.done(AsyncTask.java:200)
E/AndroidRuntime( 4429): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:274)
E/AndroidRuntime( 4429): at java.util.concurrent.FutureTask.setException(FutureTask.java:125)
E/AndroidRuntime( 4429): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:308)
E/AndroidRuntime( 4429): at java.util.concurrent.FutureTask.run(FutureTask.java:138)
E/AndroidRuntime( 4429): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
E/AndroidRuntime( 4429): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
E/AndroidRuntime( 4429): at java.lang.Thread.run(Thread.java:1019)
E/AndroidRuntime( 4429): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget
E/AndroidRuntime( 4429): at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
E/AndroidRuntime( 4429): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:504)
E/AndroidRuntime( 4429): at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:291)
E/AndroidRuntime( 4429): at cgeo.geocaching.network.HtmlImage.loadCachedImage(HtmlImage.java:195)
E/AndroidRuntime( 4429): at cgeo.geocaching.network.HtmlImage.loadImageFromStorage(HtmlImage.java:156)
E/AndroidRuntime( 4429): at cgeo.geocaching.network.HtmlImage.getDrawable(HtmlImage.java:116)
E/AndroidRuntime( 4429): at cgeo.geocaching.network.HtmlImage.getDrawable(HtmlImage.java:31)
E/AndroidRuntime( 4429): at android.text.HtmlToSpannedConverter.startImg(Html.java:605)
E/AndroidRuntime( 4429): at android.text.HtmlToSpannedConverter.handleStartTag(Html.java:489)
E/AndroidRuntime( 4429): at android.text.HtmlToSpannedConverter.startElement(Html.java:732)
E/AndroidRuntime( 4429): at org.ccil.cowan.tagsoup.Parser.push(Parser.java:794)
E/AndroidRuntime( 4429): at org.ccil.cowan.tagsoup.Parser.rectify(Parser.java:1061)
E/AndroidRuntime( 4429): at org.ccil.cowan.tagsoup.Parser.stage(Parser.java:1026)
E/AndroidRuntime( 4429): at org.ccil.cowan.tagsoup.HTMLScanner.scan(HTMLScanner.java:573)
E/AndroidRuntime( 4429): at org.ccil.cowan.tagsoup.Parser.parse(Parser.java:449)
E/AndroidRuntime( 4429): at android.text.HtmlToSpannedConverter.convert(Html.java:411)
E/AndroidRuntime( 4429): at android.text.Html.fromHtml(Html.java:139)
E/AndroidRuntime( 4429): at cgeo.geocaching.CacheDetailActivity$DescriptionViewCreator$LoadDescriptionTask.doInBackground(CacheDetailActivity.java:2017)
E/AndroidRuntime( 4429): at cgeo.geocaching.CacheDetailActivity$DescriptionViewCreator$LoadDescriptionTask.doInBackground(CacheDetailActivity.java:1980)
E/AndroidRuntime( 4429): at android.os.AsyncTask$2.call(AsyncTask.java:185)
E/AndroidRuntime( 4429): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
E/AndroidRuntime( 4429): ... 4 more
W/ActivityManager( 234): Force finishing activity cgeo.geocaching/.maps.mapsforge.MapsforgeMapActivity
...
I/ActivityManager( 234): Starting: Intent { cmp=cgeo.geocaching/.CachePopup (has extras) } from pid 4429
...
I/ActivityManager( 234): Displayed cgeo.geocaching/.CachePopup: +657ms
I/Process ( 4429): Sending signal. PID: 4429 SIG: 9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment