Menu

#204 Error writing tile image: Invalid argument to native writeIm

closed
r_x
5
2012-09-18
2012-02-12
tv-arnd
No

Hi,

looks similar to ID: 3465530
Happens, if JPEG is created (no problem with PNG). I require JPEG for TwoNav (*.rmap)

Version: Mobile Atlas Creator (MOBAC) 1.9.4
Platform: Linux (2.6.32-38-generic)
Distribution name: Ubuntu 10.04.3 LT
Java VM: OpenJDK 64-Bit Server VM (1.6.0_20-b20)
CPU cores: 2

Thread: AtlasThread 1
Map
name=DE-NUR-OSM-MapQuest 14
mapSource=OpenStreetMap MapQuest
zoom=14
maxTileCoordinate=2226687/1432831
minTileCoordinate=2225664/1431808
parameters=null
Map type: MAPPACK
Map implementation: mp-openstreetmap.jar
Map revision: null

Error hierarchy:
MapCreationException: Error writing tile image: Invalid argument to native writeImage
IIOException: Invalid argument to native writeImage

mobac.exceptions.MapCreationException: Error writing tile image: Invalid argument to native writeImage
at mobac.program.atlascreators.TwoNavRMAP.createMap(TwoNavRMAP.java:495)
at mobac.program.AtlasThread.createMap(AtlasThread.java:351)
at mobac.program.AtlasThread.createAtlas(AtlasThread.java:206)
at mobac.program.AtlasThread.run(AtlasThread.java:131)
Caused by: javax.imageio.IIOException: Invalid argument to native writeImage
at com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeImage(Native Method)
at com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeOnThread(JPEGImageWriter.java:1055)
at com.sun.imageio.plugins.jpeg.JPEGImageWriter.write(JPEGImageWriter.java:357)
at mobac.program.tiledatawriter.TileImageJpegDataWriter.processImage(TileImageJpegDataWriter.java:92)
at mobac.program.atlascreators.tileprovider.ConvertedRawTileProvider.getTileData(ConvertedRawTileProvider.java:48)
at mobac.program.atlascreators.TwoNavRMAP.createMap(TwoNavRMAP.java:482)
... 3 more

Discussion

  • tv-arnd

    tv-arnd - 2012-02-12

    FYI: No Problem in MOBAC V1.9preview2

     
  • r_x

    r_x - 2012-02-12

    From what I found out by the old sources in 1.9 preview 2 MOBAC did not support JPEG output for TwoNav, therefore this parameter is simply ignored.

    And regarding the exception according to this Stackoverflow entry the reason is that JPEG is not supported by OpenJDK:
    http://stackoverflow.com/questions/3432388/imageio-not-able-to-write-a-jpeg-file

     

Log in to post a comment.