Menu

#145 IndexOutOfBoundsException with bigger maps for Glopus

latest_beta_version
open
r_x
5
2014-08-25
2011-02-06
stm03549
No

Exception occures wir new beta an also stable release 1.8.

After 898 processed maps the app throws the exception.

Version: Mobile Atlas Creator 1.9 preview 7 (1557)
Platform: Linux (2.6.32-8.slh.3-sidux-686)
Java VM: Java HotSpot(TM) Server VM (1.6.0_18-b07)

Thread: AtlasThread 1
Map
name=CyclemapPy 15 (0427)
mapSource=SIGPAC Mercator (Spain only)
zoom=15
maxTileCoordinate=4159999/3085567
minTileCoordinate=4158976/3084544
parameters=Tile size: (1024/1024) PNG)
Map type: MAPPACK
Map implementation: mp-region_europe_south.jar
Map revision: 1557

Error hierarchy:
MapCreationException: java.lang.IndexOutOfBoundsException: pos < flushedPos!
IndexOutOfBoundsException: pos < flushedPos!

mobac.exceptions.MapCreationException: java.lang.IndexOutOfBoundsException: pos < flushedPos!
at mobac.program.atlascreators.GlopusMapFile.createMap(GlopusMapFile.java:88)
at mobac.program.AtlasThread.createMap(AtlasThread.java:312)
at mobac.program.AtlasThread.createAtlas(AtlasThread.java:169)
at mobac.program.AtlasThread.run(AtlasThread.java:106)
Caused by: java.lang.IndexOutOfBoundsException: pos < flushedPos!
at javax.imageio.stream.ImageInputStreamImpl.seek(ImageInputStreamImpl.java:754)
at com.sun.imageio.plugins.png.IDATOutputStream.finishChunk(PNGImageWriter.java:173)
at com.sun.imageio.plugins.png.IDATOutputStream.deflate(PNGImageWriter.java:208)
at com.sun.imageio.plugins.png.IDATOutputStream.finish(PNGImageWriter.java:233)
at com.sun.imageio.plugins.png.PNGImageWriter.write_IDAT(PNGImageWriter.java:933)
at com.sun.imageio.plugins.png.PNGImageWriter.write(PNGImageWriter.java:1146)
at javax.imageio.ImageWriter.write(ImageWriter.java:580)
at mobac.program.tiledatawriter.TileImagePngDataWriter.processImage(TileImagePngDataWriter.java:61)
at mobac.program.atlascreators.impl.MapTileBuilder.createTiles(MapTileBuilder.java:171)
at mobac.program.atlascreators.TrekBuddyCustom.createCustomTiles(TrekBuddyCustom.java:99)
at mobac.program.atlascreators.GlopusMapFile.createMap(GlopusMapFile.java:80)
... 3 more

Discussion

  • stm03549

    stm03549 - 2011-02-06

    MapCreatingProfile

     
  • r_x

    r_x - 2011-02-27

    Just a stupid question: Why do you set the custom tile size to 1024 and the map size, too?
    Especially the large number of maps resulting in this small map size slow down MOBAC a lot.

    One map per zoom level would create exactly the same atlas (or better the same three layer files).

     
  • stm03549

    stm03549 - 2011-03-14

    I set the map size to 1024, because of Glopus. I disabled recreating map tiles and made the area a bit smaller. Now it is possible to create the maps. Great tool!

     

Log in to post a comment.

MongoDB Logo MongoDB