logo separator

[mkgmap-dev] java.lang.IllegalArgumentException and max-nodes size --- currently impossible for me to create Asia map without a) breaking or b) missing tiles

From Steve Ratcliffe steve at parabola.me.uk on Fri May 25 22:11:37 BST 2012

Hi

>
> Exception in thread "main" java.lang.IllegalArgumentException
>           at java.nio.Buffer.position(Unknown Source)
>           at uk.me.parabola.imgfmt.Utils.bytesToString(Utils.java:80)
>           at uk.me.parabola.imgfmt.sys.ImgHeader.setHeader(ImgHeader.java:255)

This happens when one of the input files is zero length (or otherwise
corrupt).

Attached is a patch which detects short files and gives a message
including the file name.

..Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: better_error_on_empty_file.patch
Type: text/x-patch
Size: 3509 bytes
Desc: not available
Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20120525/dd84f68e/attachment.bin 


More information about the mkgmap-dev mailing list