logo separator

[mkgmap-dev] How to solve/debug weird problem

From Marko Mäkelä marko.makela at iki.fi on Thu Jan 20 19:44:01 GMT 2011

Hi Johannes,

>>Does the problem disappear if you remove --style-file (i.e., use the 
>>default style)?
>A run with the same options, except the "--style-file" options results 
>again in a exception:

OK, it might be best to use the default style in your experiments from 
now on.

>> What is in template.args? Any options before the file name
>> 59420059.osm.gz?
>Don't know what matters, but here is the beginnig till "59420059.osm.gz

It should not matter. You only specify mapname, description, input-file 
for each tile.

>mapname: 59420059
>description: DE-Flensburg
>input-file: 59420059.osm.gz

>This won't crash:
>osm at kalium:~/build$ java -Xms256m -Xmx2560m -ea -jar mkgmap.jar --max-jobs=1 --latin1
>--code-page=1252 --add-pois-to-areas --adjust-turn-headings --drive-on-right --check-roundabouts
>--remove-short-arcs=3.3 --net --route /home/osm/build/59420059.osm.gz
>If I run a "full" build again:
>osm at kalium:~/build$ java -Xms256m -Xmx2560m -ea -jar mkgmap.jar --max-jobs=1 --latin1
>--code-page=1252 --add-pois-to-areas --adjust-turn-headings --drive-on-right --check-roundabouts
>--remove-short-arcs=3.3 --net --route --gmapsupp --tdbfile --index M0001736.TYP -c

What about this, does it crash?

java -Xms256m -Xmx2560m -ea -jar mkgmap.jar --max-jobs=1 \
--latin1 --code-page=1252 --add-pois-to-areas --adjust-turn-headings \
--drive-on-right --check-roundabouts --remove-short-arcs=3.3 \
--net --route --tdbfile \
--mapname=59420059 --description=DE-Flensburg --input-file=59420059.osm.gz

My reasoning is that the options
--gmapsupp --index M0001736.TYP
should not matter, because the error should occur when writing the 
59420059.img. The gmapsupp.img would be composed from the 5942*.img 
files, which would be generated first, one by one. I am not entirely 
sure about --index and --tdbfile.

If you can't get the single-tile command to crash, then I suggest that 
you try to remove options from the full build until it succeeds. Try 
removing all these, either one by one, or several at a time, whichever 
you prefer:

--add-pois-to-areas --adjust-turn-headings --drive-on-right 
--check-roundabouts --remove-short-arcs=3.3 --net --route --gmapsupp 
--tdbfile --index M0001736.TYP

You might try removing all of them first. If it does not crash, add 
--route (which should imply --net).

One more thing that you could do is adding 
-Dlog.config=logging.properties before -jar in the command line. Get the 
file from http://www.polkupyoraily.net/osm/. Then read the mkgmap.log.0 
backwards and see if you can find any clues there.

Best regards,


More information about the mkgmap-dev mailing list