logo separator

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

From Johannes Formann johannes at formann.de on Fri Jan 14 01:12:57 GMT 2011

Hello Steve,

Steve Ratcliffe <steve at parabola.me.uk> wrote:

> I kind of recognise the symptoms, but the cause could be just about 
> anything.
> 
> >      [apply] SEVERE (Polyline): /home/osm/build/59420066.osm.gz: Problem
> > writing line (class uk.me.parabola.imgfmt.app.trergn.Polyline) of type
> > 0x10a0c containing 2 points and starting at
> > http://www.openstreetmap.org/?mlat=49.18023&mlon=12.08496&zoom=17
> 
> 
> I think this error is appropriate, except that the real error has been 
> caught in order to print the error message, so hiding the real error.
> 
> If you could apply the attached patch and run the same thing you should
> get a better error to send me.


Here is the stacktrace:

    [echo] Executing mkgmap...
   [apply] SEVERE (MapSplitter): /home/osm/build/59420004.osm.gz: Area too small to split at
http://www.openstreetmap.org/?mlat=50.97661&mlon=14.58289&zoom=17 (reduce the density of points, length of lines, etc.)
   [apply] SEVERE (MapSplitter): /home/osm/build/59420004.osm.gz: Area too small to split at
http://www.openstreetmap.org/?mlat=51.03692&mlon=14.54871&zoom=17 (reduce the density of points, length of lines, etc.)
   [apply] SEVERE (MapSplitter): /home/osm/build/59420004.osm.gz: Area too small to split at
http://www.openstreetmap.org/?mlat=51.03692&mlon=14.58289&zoom=17 (reduce the density of points, length of lines, etc.)
   [apply] SEVERE (MapSplitter): /home/osm/build/59420030.osm.gz: Area too small to split at
http://www.openstreetmap.org/?mlat=48.67113&mlon=10.70727&zoom=17 (reduce the density of points, length of lines, etc.)
   [apply] SEVERE (MapSplitter): /home/osm/build/59420030.osm.gz: Area too small to split at
http://www.openstreetmap.org/?mlat=48.73409&mlon=11.11031&zoom=17 (reduce the density of points, length of lines, etc.)
   [apply] SEVERE (MapSplitter): /home/osm/build/59420059.osm.gz: Area too small to split at
http://www.openstreetmap.org/?mlat=54.54720&mlon=9.61862&zoom=17 (reduce the density of points, length of lines, etc.)
   [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] SEVERE (MapSplitter): /home/osm/build/59420066.osm.gz: Area too small to split at
http://www.openstreetmap.org/?mlat=48.99465&mlon=12.29662&zoom=17 (reduce the density of points, length of lines, etc.)
   [apply] SEVERE (Polyline): /home/osm/build/59420066.osm.gz: Problem writing line (class
uk.me.parabola.imgfmt.app.trergn.Polyline) of type 0x10a0c containing 2 points and starting at
http://www.openstreetmap.org/?mlat=49.18392&mlon=12.08496&zoom=17
   [apply] SEVERE (Polyline): /home/osm/build/59420066.osm.gz:   Subdivision shift is 0 and its centre is at
http://www.openstreetmap.org/?mlat=49.03790&mlon=12.78916&zoom=17
   [apply] SEVERE (Polyline): /home/osm/build/59420066.osm.gz:   deltaLong = -32818
   [apply] SEVERE (Polyline): /home/osm/build/59420066.osm.gz: Problem writing line (class
uk.me.parabola.imgfmt.app.trergn.Polyline) of type 0x10a0c containing 2 points and starting at
http://www.openstreetmap.org/?mlat=49.18654&mlon=12.08496&zoom=17
   [apply] SEVERE (Polyline): /home/osm/build/59420066.osm.gz:   Subdivision shift is 0 and its centre is at
http://www.openstreetmap.org/?mlat=49.03790&mlon=12.78916&zoom=17
   [apply] SEVERE (Polyline): /home/osm/build/59420066.osm.gz:   deltaLong = -32818
   [apply] SEVERE (Polyline): /home/osm/build/59420066.osm.gz: Problem writing line (class
uk.me.parabola.imgfmt.app.trergn.Polyline) of type 0x10a0c containing 2 points and starting at
http://www.openstreetmap.org/?mlat=49.18025&mlon=12.08496&zoom=17
   [apply] SEVERE (Polyline): /home/osm/build/59420066.osm.gz:   Subdivision shift is 0 and its centre is at
http://www.openstreetmap.org/?mlat=49.03790&mlon=12.78916&zoom=17
   [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: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

greetings

Johannes




More information about the mkgmap-dev mailing list