logo separator

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

From Marko Mäkelä marko.makela at iki.fi on Wed Jan 19 20:41:54 GMT 2011

Hallo Johannes,

while I cannot help with the actual bug, I can give you some advice to 
narrow it down. Once you have a minimal test case, your bug should be 

On Tue, Jan 18, 2011 at 09:52:13PM +0100, Johannes Formann wrote:
>rerun with a reduced option set (an the debug-patch still active):
>    [apply] Executing 'java' with arguments:

Does the problem disappear if you remove --style-file (i.e., use the 
default style)?

>'--family-name=OSM Radkarte 18.01.2011'

My educated guess is that these should not matter at all (please confirm 
by trying to removing these).


What is in template.args? Any options before the file name 

>But got an Exception again.
>    [apply] SEVERE (MapSplitter): /home/osm/build/59420059.osm.gz: ...

What if you replace these last bits


with just /home/osm/build/59420059.osm.gz

That should speed up the crash, shouldn't it? Please save that 
problematic tile file somewhere, so that you can test patches with the 
exact same input.

The faster the command runs, the easier you can test different options 
until you find the minimal options that are needed to trigger the bug.

You might also want to drop definitions from your style file until the 
crash goes away. But I would first try to reduce the other command line 
options before touching the --style-file option or the style 

Another way of reducing would be to load the tile file in a powerful 
text editor and drop half the relations (or all of them if the crash 
persists), then drop half the ways, and so on, until the crash goes 
away. That would lead to a minimal test case. But I guess that Steve or 
WanMil can do that sort of processing if you make the file available to 
them. But, first try to narrow down the options and the style definition.

Best regards,


More information about the mkgmap-dev mailing list