logo separator

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

From Johannes Formann johannes at formann.de on Mon Jan 17 20:01:38 GMT 2011

Hi,

> >     [apply] SEVERE (Polyline): /home/osm/build/59420066.osm.gz:   
>>                          deltaLong = -32818
> >     [apply] java.lang.AssertionError: deltaLong = 36103
> >     [apply]      at
uk.me.parabola.imgfmt.app.trergn.MapObject.setDeltaLong(MapObject.java:1
39)
> 
> Thanks.  It is saying that there is a very large distance between two 
> points.
> 
> So it is either in the data like that, or the stray line is caused by
> a bug in mkgmap or the patch you are using.
> 
> If it is in the data (and the fact that the problem suddenly appeared
> points that way) it would be best to fix the data.

Just downloaded new data from geofabrik
http://download.geofabrik.de/osm/europe/germany.osm.bz2 and run mkgmap only with
your debug patch, got an exception again.
   [apply] SEVERE (MapSplitter): /home/osm/build/59420059.osm.gz: Area too small to split at
http://www.openstreetmap.org/?mlat=54.63765&mlon=9.72279&zoom=17 (reduce the density of points, length of lines, etc.)
   [apply] java.lang.AssertionError: deltaLong = 36103
   [apply]      at uk.me.parabola.imgfmt.app.trergn.MapObject.setDeltaLong(MapObject.java:139)
   [apply]      at uk.me.parabola.imgfmt.app.trergn.MapObject.setLongitude(MapObject.java:128)
   [apply]      at uk.me.parabola.imgfmt.app.trergn.LinePreparer.calcLatLong(LinePreparer.java:176)
   [apply]      at uk.me.parabola.imgfmt.app.trergn.LinePreparer.<init>(LinePreparer.java:62)
   [apply]      at uk.me.parabola.imgfmt.app.trergn.Polyline.write(Polyline.java:83)
   [apply]      at uk.me.parabola.imgfmt.app.trergn.RGNFile.addMapObject(RGNFile.java:140)
   [apply]      at uk.me.parabola.imgfmt.app.map.Map.addMapObject(Map.java:241)
   [apply]      at uk.me.parabola.mkgmap.build.MapBuilder$LineAddFilter.doFilter(MapBuilder.java:1044)
   [apply]      at uk.me.parabola.mkgmap.build.LayerFilterChain.doFilter(LayerFilterChain.java:57)
   [apply]      at uk.me.parabola.mkgmap.filters.RemoveEmpty.doFilter(RemoveEmpty.java:61)
   [apply]      at uk.me.parabola.mkgmap.build.LayerFilterChain.doFilter(LayerFilterChain.java:57)
   [apply]      at uk.me.parabola.mkgmap.filters.LineSplitterFilter.doFilter(LineSplitterFilter.java:60)
   [apply]      at uk.me.parabola.mkgmap.build.LayerFilterChain.doFilter(LayerFilterChain.java:57)
   [apply]      at uk.me.parabola.mkgmap.build.LayerFilterChain.startFilter(LayerFilterChain.java:75)
   [apply]      at uk.me.parabola.mkgmap.build.MapBuilder.processLines(MapBuilder.java:902)
   [apply]      at uk.me.parabola.mkgmap.build.MapBuilder.makeSubdivision(MapBuilder.java:649)
   [apply]      at uk.me.parabola.mkgmap.build.MapBuilder.makeMapAreas(MapBuilder.java:584)
   [apply]      at uk.me.parabola.mkgmap.build.MapBuilder.makeMap(MapBuilder.java:195)
   [apply]      at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:97)
   [apply]      at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:61)
   [apply]      at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:220)
   [apply]      at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:217)
   [apply]      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
   [apply]      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
   [apply]      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
   [apply]      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
   [apply]      at java.lang.Thread.run(Thread.java:662)
   [apply] Exiting - if you want to carry on regardless, use the --keep-going option


> If it is a mkgmap bug then we will need more information.  Does it
> happen with unpatched mkgmap? With just the basic options?

What are "basic" options?

regards

Johannes





More information about the mkgmap-dev mailing list