Menu

#251 Error reading PNG image data

open
nobody
None
1
2014-02-06
2013-07-25
PietroCal
No

Version: Mobile Atlas Creator (MOBAC) 1.9.13 (2126)
Platform: Windows XP (5.1) (windows)
Java VM: Java HotSpot(TM) Client VM (1.7.0_25-b17)
Max heap size: 989,88 MiB
CPU cores: 1

Thread: AtlasThread 2
Map
name=FRIULI 15
mapSource=OpenStreetMap 4UMaps.eu
zoom=15
maxTileCoordinate=4513791/2985471
minTileCoordinate=4489472/2961664
parameters=null
Map type: MAPPACK
Map implementation: mp-openstreetmap.jar
Map revision: 2126

Error hierarchy:
MapCreationException: javax.imageio.IIOException: Error reading PNG image data
IIOException: Error reading PNG image data
ZipException: incorrect header check

mobac.exceptions.MapCreationException: javax.imageio.IIOException: Error reading PNG image data
at mobac.program.atlascreators.Ozi.createTiles(Ozi.java:238)
at mobac.program.atlascreators.Ozi.createMap(Ozi.java:72)
at mobac.program.AtlasThread.createMap(AtlasThread.java:355)
at mobac.program.AtlasThread.createAtlas(AtlasThread.java:202)
at mobac.program.AtlasThread.run(AtlasThread.java:120)
Caused by: javax.imageio.IIOException: Error reading PNG image data
at com.sun.imageio.plugins.png.PNGImageReader.readImage(Unknown Source)
at com.sun.imageio.plugins.png.PNGImageReader.read(Unknown Source)
at javax.imageio.ImageIO.read(Unknown Source)
at javax.imageio.ImageIO.read(Unknown Source)
at mobac.program.atlascreators.tileprovider.DownloadedTileProvider.getTileImage(DownloadedTileProvider.java:57)
at mobac.program.atlascreators.Ozi.createTiles(Ozi.java:226)
... 4 more
Caused by: java.util.zip.ZipException: incorrect header check
at java.util.zip.InflaterInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at java.io.FilterInputStream.read(Unknown Source)
at com.sun.imageio.plugins.png.PNGImageReader.decodePass(Unknown Source)
at com.sun.imageio.plugins.png.PNGImageReader.decodeImage(Unknown Source)
... 10 more

Discussion

  • PietroCal

    PietroCal - 2013-07-26

    This error reading PNG image data occurs only when you choose an atlas format that produces a single png file. It does not occurs when you choose an atlas format that produces a png image file for each tile.

     
  • Uselesshippy

    Uselesshippy - 2014-02-06

    I'm having the same problem creating an Ozi format map. Tried various single png formats and none seem to work.

    Version 1.9.15 revision 2153 on Windows 7

     
  • r_x

    r_x - 2014-02-06

    I am unable to reproduce this problem. I assume that 4UMaps.eu was just updating the map images when you performed the download and you got an incomplete image (truncated file).

    There is no way for MOBAC to detect this before loading the image.

    In case it happens again plase switch to a simple format like OSmTracker and re-create the atlas. Then check the output if you see a defect image (e.g. use thumb preview in Explorer).

     
  • Uselesshippy

    Uselesshippy - 2014-02-06

    Hi

    I've created a map as an osz format and that works, then extracted and checked the tiles and I can see no broken tiles.

    I've also deleted my tile cache to force it to re download and also changed version to 1.9.16 (2157).

    I still get the same problem, but only with certain areas of the map.

    Is there any way to easily convert the osz tiles to a single image, as ultimately I'm importing into Memory Map so I don't mind what format I have as long as I have a single image and a list of pixel locations to lat / long coordinates.

    Excellent program by the way. Thanks

     
  • Uselesshippy

    Uselesshippy - 2014-02-06

    Finally managed to narrow it down to a single missing tile in the map, but why isn't MOBAC just replacing that with a black tile like it does for other maps?

     

Log in to post a comment.