What steps will reproduce the problem?
1. create a simple Map Activity
2. Use custom tiles stored at osmdroid folder on sdcard
3. start the app and map with custom tiles is loaded
4. zoom in and zoom out sever times
What is the expected output? What do you see instead?
map should render without any error. Map renders tiles with
OutOfMemoryError loading bitmap: error
What version of the product are you using? On what operating system?
osmdroid-android-3.0.7 on android 2.2 and above
Please provide any additional information below.
the app consists of number of fragments in which one of the fragment is map
fragment. But this issue is seen even when map fragment is opened directly
following is are the logs from logcat
09-09 15:10:00.375: E/dalvikvm-heap(15592): 262144-byte external allocation too
large for this process.
09-09 15:10:00.375: E/dalvikvm(15592): Out of memory: Heap Size=6791KB,
Allocated=4408KB, Bitmap Size=17740KB
09-09 15:10:00.375: E/GraphicsJNI(15592): VM won't let us allocate 262144 bytes
09-09 15:10:00.375: D/skia(15592): --- decoder->decode returned false
09-09 15:10:00.375: E/o*.o*.t*.t*.BitmapTile*(15592): OutOfMemoryError loading
bitmap: /mnt/sdcard/osmdroid/tiles/Fiets/17/65426/43599.png.tile
09-09 15:10:00.425: D/dalvikvm(15592): GC_EXPLICIT freed 363 objects / 19304
bytes in 49ms
09-09 15:10:00.425: E/dalvikvm-heap(15592): 262144-byte external allocation too
large for this process.
09-09 15:10:00.425: E/dalvikvm(15592): Out of memory: Heap Size=6791KB,
Allocated=4423KB, Bitmap Size=17740KB
09-09 15:10:00.425: E/GraphicsJNI(15592): VM won't let us allocate 262144 bytes
09-09 15:10:00.425: D/skia(15592): --- decoder->decode returned false
09-09 15:10:00.425: E/dalvikvm-heap(15592): 262144-byte external allocation too
large for this process.
09-09 15:10:00.435: E/dalvikvm(15592): Out of memory: Heap Size=6791KB,
Allocated=4426KB, Bitmap Size=17740KB
09-09 15:10:00.435: E/dalvikvm-heap(15592): 131072-byte external allocation too
large for this process.
09-09 15:10:00.435: E/GraphicsJNI(15592): VM won't let us allocate 262144 bytes
09-09 15:10:00.435: D/skia(15592): --- decoder->decode returned false
09-09 15:10:00.435: E/o*.o*.t*.t*.BitmapTile*(15592): OutOfMemoryError loading
bitmap: /mnt/sdcard/osmdroid/tiles/Fiets/17/65426/43600.png.tile
09-09 15:10:00.435: E/dalvikvm(15592): Out of memory: Heap Size=6791KB,
Allocated=4429KB, Bitmap Size=17740KB
09-09 15:10:00.485: E/GraphicsJNI(15592): VM won't let us allocate 131072 bytes
09-09 15:10:00.485: D/dalvikvm(15592): GC_EXPLICIT freed 214 objects / 10280
bytes in 52ms
09-09 15:10:00.485: E/o*.o*.t*.t*.BitmapTile*(15592): OutOfMemoryError loading
bitmap: /mnt/sdcard/osmdroid/tiles/Fiets/17/65427/43599.png.tile
09-09 15:10:00.545: D/dalvikvm(15592): GC_EXPLICIT freed 49 objects / 3144
bytes in 55ms
09-09 15:10:00.545: D/skia(15592): --- decoder->decode returned false
09-09 15:10:00.545: E/o*.o*.t*.t*.BitmapTile*(15592): OutOfMemoryError loading
bitmap: /mnt/sdcard/osmdroid/tiles/Fiets/17/65427/43600.png.tile
09-09 15:10:00.615: D/dalvikvm(15592): GC_EXPLICIT freed 100 objects / 4888
bytes in 63ms
09-09 15:10:00.615: E/dalvikvm-heap(15592): 131072-byte external allocation too
large for this process.
09-09 15:10:00.615: E/dalvikvm-heap(15592): 262144-byte external allocation too
large for this process.
09-09 15:10:00.615: E/dalvikvm(15592): Out of memory: Heap Size=6791KB,
Allocated=4421KB, Bitmap Size=17740KB
09-09 15:10:00.615: E/dalvikvm-heap(15592): 131072-byte external allocation too
large for this process.
09-09 15:10:00.615: E/GraphicsJNI(15592): VM won't let us allocate 262144 bytes
09-09 15:10:00.615: D/skia(15592): --- decoder->decode returned false
09-09 15:10:00.615: E/o*.o*.t*.t*.BitmapTile*(15592): OutOfMemoryError loading
bitmap: /mnt/sdcard/osmdroid/tiles/Fiets/17/65425/43601.png.tile
09-09 15:10:00.615: E/dalvikvm(15592): Out of memory: Heap Size=6791KB,
Allocated=4425KB, Bitmap Size=17740KB
09-09 15:10:00.615: E/dalvikvm(15592): Out of memory: Heap Size=6791KB,
Allocated=4425KB, Bitmap Size=17740KB
09-09 15:10:00.665: E/GraphicsJNI(15592): VM won't let us allocate 131072 bytes
09-09 15:10:00.665: E/GraphicsJNI(15592): VM won't let us allocate 131072 bytes
09-09 15:10:00.665: D/dalvikvm(15592): GC_EXPLICIT freed 93 objects / 4544
bytes in 50ms
09-09 15:10:00.665: D/skia(15592): --- decoder->decode returned false
09-09 15:10:00.665: E/o*.o*.t*.t*.BitmapTile*(15592): OutOfMemoryError loading
bitmap: /mnt/sdcard/osmdroid/tiles/Fiets/17/65426/43601.png.tile
09-09 15:10:00.715: D/dalvikvm(15592): GC_EXPLICIT freed 22 objects / 1272
bytes in 50ms
09-09 15:10:00.715: D/skia(15592): --- decoder->decode returned false
09-09 15:10:00.715: E/o*.o*.t*.t*.BitmapTile*(15592): OutOfMemoryError loading
bitmap: /mnt/sdcard/osmdroid/tiles/Fiets/17/65427/43601.png.tile
09-09 15:10:00.765: D/dalvikvm(15592): GC_EXPLICIT freed 19 objects / 1120
bytes in 47ms
09-09 15:10:00.765: E/dalvikvm-heap(15592): 262144-byte external allocation too
large for this process.
09-09 15:10:00.775: E/dalvikvm-heap(15592): 262144-byte external allocation too
large for this process.
09-09 15:10:00.775: E/dalvikvm(15592): Out of memory: Heap Size=6791KB,
Allocated=4435KB, Bitmap Size=17740KB
09-09 15:10:00.775: E/dalvikvm(15592): Out of memory: Heap Size=6791KB,
Allocated=4435KB, Bitmap Size=17740KB
09-09 15:10:00.775: E/dalvikvm-heap(15592): 131072-byte external allocation too
large for this process.
09-09 15:10:00.775: E/GraphicsJNI(15592): VM won't let us allocate 262144 bytes
09-09 15:10:00.775: E/GraphicsJNI(15592): VM won't let us allocate 262144 bytes
09-09 15:10:00.775: D/skia(15592): --- decoder->decode returned false
09-09 15:10:00.775: D/skia(15592): --- decoder->decode returned false
09-09 15:10:00.785: E/o*.o*.t*.t*.BitmapTile*(15592): OutOfMemoryError loading
bitmap: /mnt/sdcard/osmdroid/tiles/Fiets/17/65426/43600.png.tile
09-09 15:10:00.785: E/dalvikvm(15592): Out of memory: Heap Size=6791KB,
Allocated=4439KB, Bitmap Size=17740KB
09-09 15:10:00.835: E/o*.o*.t*.t*.BitmapTile*(15592): OutOfMemoryError loading
bitmap: /mnt/sdcard/osmdroid/tiles/Fiets/17/65426/43599.png.tile
09-09 15:10:00.835: E/GraphicsJNI(15592): VM won't let us allocate 131072 bytes
09-09 15:10:00.835: D/dalvikvm(15592): GC_EXPLICIT freed 381 objects / 19248
bytes in 54ms
09-09 15:10:00.885: D/dalvikvm(15592): GC_EXPLICIT freed 43 objects / 3016
bytes in 51ms
09-09 15:10:00.885: D/skia(15592): --- decoder->decode returned false
09-09 15:10:00.885: E/o*.o*.t*.t*.BitmapTile*(15592): OutOfMemoryError loading
bitmap: /mnt/sdcard/osmdroid/tiles/Fiets/17/65426/43601.png.tile
09-09 15:10:00.945: D/dalvikvm(15592): GC_EXPLICIT freed 16 objects / 1032
bytes in 55ms
09-09 15:10:00.965: E/dalvikvm-heap(15592): 262144-byte external allocation too
large for this process.
09-09 15:10:00.965: E/dalvikvm(15592): Out of memory: Heap Size=6791KB,
Allocated=4468KB, Bitmap Size=17740KB
09-09 15:10:00.975: E/dalvikvm-heap(15592): 262144-byte external allocation too
large for this process.
09-09 15:10:00.975: E/GraphicsJNI(15592): VM won't let us allocate 262144 bytes
09-09 15:10:00.975: D/skia(15592): --- decoder->decode returned false
09-09 15:10:00.975: E/o*.o*.t*.t*.BitmapTile*(15592): OutOfMemoryError loading
bitmap: /mnt/sdcard/osmdroid/tiles/Fiets/17/65426/43599.png.tile
09-09 15:10:00.975: E/dalvikvm(15592): Out of memory: Heap Size=6791KB,
Allocated=4473KB, Bitmap Size=17740KB
09-09 15:10:01.025: E/GraphicsJNI(15592): VM won't let us allocate 262144 bytes
09-09 15:10:01.025: D/dalvikvm(15592): GC_EXPLICIT freed 565 objects / 57624
bytes in 48ms
09-09 15:10:01.025: D/skia(15592): --- decoder->decode returned false
09-09 15:10:01.025: E/o*.o*.t*.t*.BitmapTile*(15592): OutOfMemoryError loading
bitmap: /mnt/sdcard/osmdroid/tiles/Fiets/17/65427/43599.png.tile
09-09 15:10:01.075: D/dalvikvm(15592): GC_EXPLICIT freed 47 objects / 2416
bytes in 51ms
09-09 15:10:01.085: E/dalvikvm-heap(15592): 262144-byte external allocation too
large for this process.
09-09 15:10:01.085: E/dalvikvm(15592): Out of memory: Heap Size=6791KB,
Allocated=4426KB, Bitmap Size=17772KB
09-09 15:10:01.085: E/dalvikvm-heap(15592): 131072-byte external allocation too
large for this process.
09-09 15:10:01.095: E/GraphicsJNI(15592): VM won't let us allocate 262144 bytes
09-09 15:10:01.095: D/skia(15592): --- decoder->decode returned false
09-09 15:10:01.095: E/dalvikvm(15592): Out of memory: Heap Size=6791KB,
Allocated=4429KB, Bitmap Size=17772KB
09-09 15:10:01.095: E/o*.o*.t*.t*.BitmapTile*(15592): OutOfMemoryError loading
bitmap: /mnt/sdcard/osmdroid/tiles/Fiets/17/65426/43600.png.tile
09-09 15:10:01.095: E/GraphicsJNI(15592): VM won't let us allocate 131072 bytes
09-09 15:10:01.095: D/skia(15592): --- decoder->decode returned false
09-09 15:10:01.155: D/dalvikvm(15592): GC_EXPLICIT freed 246 objects / 12056
bytes in 58ms
09-09 15:10:01.155: E/o*.o*.t*.t*.BitmapTile*(15592): OutOfMemoryError loading
bitmap: /mnt/sdcard/osmdroid/tiles/Fiets/17/65426/43601.png.tile
09-09 15:10:01.205: D/dalvikvm(15592): GC_EXPLICIT freed 41 objects / 2776
bytes in 49ms
09-09 15:10:01.205: E/dalvikvm-heap(15592): 131072-byte external allocation too
large for this process.
09-09 15:10:01.205: E/dalvikvm(15592): Out of memory: Heap Size=6791KB,
Allocated=4425KB, Bitmap Size=17644KB
09-09 15:10:01.215: E/GraphicsJNI(15592): VM won't let us allocate 131072 bytes
09-09 15:10:01.215: E/dalvikvm-heap(15592): 262144-byte external allocation too
large for this process.
09-09 15:10:01.215: E/dalvikvm(15592): Out of memory: Heap Size=6791KB,
Allocated=4428KB, Bitmap Size=17644KB
09-09 15:10:01.215: D/skia(15592): --- decoder->decode returned false
09-09 15:10:01.215: E/GraphicsJNI(15592): VM won't let us allocate 262144 bytes
09-09 15:10:01.215: D/skia(15592): --- decoder->decode returned false
09-09 15:10:01.215: E/o*.o*.t*.t*.BitmapTile*(15592): OutOfMemoryError loading
bitmap: /mnt/sdcard/osmdroid/tiles/Fiets/17/65427/43601.png.tile
09-09 15:10:01.215: E/o*.o*.t*.t*.BitmapTile*(15592): OutOfMemoryError loading
bitmap: /mnt/sdcard/osmdroid/tiles/Fiets/17/65427/43599.png.tile
09-09 15:10:01.265: D/dalvikvm(15592): GC_EXPLICIT freed 267 objects / 12144
bytes in 45ms
09-09 15:10:01.315: D/dalvikvm(15592): GC_EXPLICIT freed 77 objects / 4688
bytes in 48ms
09-09 15:10:01.315: E/dalvikvm-heap(15592): 262144-byte external allocation too
large for this process.
09-09 15:10:01.315: E/dalvikvm(15592): Out of memory: Heap Size=6791KB,
Allocated=4422KB, Bitmap Size=17516KB
09-09 15:10:01.315: E/GraphicsJNI(15592): VM won't let us allocate 262144 bytes
09-09 15:10:01.315: D/skia(15592): --- decoder->decode returned false
09-09 15:10:01.315: E/o*.o*.t*.t*.BitmapTile*(15592): OutOfMemoryError loading
bitmap: /mnt/sdcard/osmdroid/tiles/Fiets/17/65426/43600.png.tile
09-09 15:10:01.375: D/dalvikvm(15592): GC_EXPLICIT freed 214 objects / 9528
bytes in 49ms
09-09 15:10:01.415: E/dalvikvm-heap(15592): 32768-byte external allocation too
large for this process.
09-09 15:10:01.415: E/dalvikvm(15592): Out of memory: Heap Size=6791KB,
Allocated=4422KB, Bitmap Size=17772KB
09-09 15:10:01.415: E/GraphicsJNI(15592): VM won't let us allocate 32768 bytes
Original issue reported on code.google.com by nikhilps...@gmail.com on 5 Sep 2012 at 2:19
Original issue reported on code.google.com by
nikhilps...@gmail.com
on 5 Sep 2012 at 2:19