juangaav / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

Low memory exception #535

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I dont know how to reproduce the problem yet. But it has happened many time. 
Sorry.
2. I think it happened while i was shifting between horizontal and vertical 
directions - fast to test my own app, if it crashed or not.
3.

What is the expected output? What do you see instead?
Sometime when my app is going to fetch the tiles the app get extreme slow. 
Today I connected the debugger in Eclipse and could see that Dalvik was 
complaining about "Out of memeory" and it looks like it has something todo with 
Omsdroid?

04-13 08:23:36.914: W/o*.o*.t*.m*.MapTileDow*(4316): LowMemoryException 
downloading MapTile: /17/69813/41304 : 
org.osmdroid.tileprovider.tilesource.BitmapTileSourceBase$LowMemoryException: 
java.lang.OutOfMemoryError
04-13 08:23:36.924: I/o*.o*.t*.m*.MapTileMod*(4316): 
org.osmdroid.tileprovider.modules.MapTileModuleProviderBase$CantContinueExceptio
n: 
org.osmdroid.tileprovider.tilesource.BitmapTileSourceBase$LowMemoryException: 
java.lang.OutOfMemoryError
04-13 08:23:36.924: I/o*.o*.t*.m*.MapTileMod*(4316):    at 
org.osmdroid.tileprovider.modules.MapTileDownloader$TileLoader.loadTile(MapTileD
ownloader.java:223)
04-13 08:23:36.924: I/o*.o*.t*.m*.MapTileMod*(4316):    at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
04-13 08:23:36.924: I/o*.o*.t*.m*.MapTileMod*(4316):    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
04-13 08:23:36.924: I/o*.o*.t*.m*.MapTileMod*(4316): Caused by: 
org.osmdroid.tileprovider.tilesource.BitmapTileSourceBase$LowMemoryException: 
java.lang.OutOfMemoryError
04-13 08:23:36.924: I/o*.o*.t*.m*.MapTileMod*(4316):    at 
org.osmdroid.tileprovider.tilesource.BitmapTileSourceBase.getDrawable(BitmapTile
SourceBase.java:151)
04-13 08:23:36.924: I/o*.o*.t*.m*.MapTileMod*(4316):    at 
org.osmdroid.tileprovider.modules.MapTileDownloader$TileLoader.loadTile(MapTileD
ownloader.java:213)
04-13 08:23:36.924: I/o*.o*.t*.m*.MapTileMod*(4316):    at 
org.osmdroid.tileprovider.tilesource.BitmapTileSourceBase.getDrawable(BitmapTile
SourceBase.java:144)

What version of the product are you using? On what operating system?
Im using OsmDroid 4.1 for android :-)

Please provide any additional information below.

Original issue reported on code.google.com by Christia...@gmail.com on 13 Apr 2014 at 6:37