mkgmap 2098 (not previous versions): java.lang.NullPointerException

When compiling a map with mkgmap 2098 I get the following error (austria.pbf from geofabrik, my style). 2097 still compiles without problems/error messages. Also 2098 is not faster than 2097 for me (actually in 2 out of 3 tries even very slightly (could be measuring error) slower). It seems however that even though this error is thrown, the map is compiled more or less correctly. Here is the full description: java.lang.NullPointerException at uk.me.parabola.imgfmt.app.net.RoadDef.getStartSubdivNumber(RoadDef.java:341) at uk.me.parabola.imgfmt.app.net.NETFile.sortRoads(NETFile.java:140) at uk.me.parabola.imgfmt.app.net.NETFile.writePost(NETFile.java:86) at uk.me.parabola.mkgmap.build.MapBuilder.makeMap(MapBuilder.java:206) at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:97) at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:61) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:220) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:217) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

On 17/11/11 14:34, Felix Hartmann wrote:
When compiling a map with mkgmap 2098 I get the following error (austria.pbf from geofabrik, my style). 2097 still compiles without problems/error messages.
OK thanks, fixed, assuming you were compiling a map without a level 0.
Also 2098 is not faster than 2097 for me (actually in 2 out of 3 tries even very slightly (could be measuring error) slower).
In spite of all the discussion around this, the bug was very rare :) If your map compiled before without appearing to hang, then it didn't suffer the problem, and the new version will not be any quicker. ..Steve

Nope I did compile with options as follows: levels = 0:24, 1:22, 2:21, 3:20, 4:19, 5:18, 6:16, 7:14 However one tile had crashed on compilation and hence I had a hole in my map (one with many plain highway=track). 2100 fixes it however and map builds fine again. On 17.11.2011 15:47, Steve Ratcliffe wrote:
On 17/11/11 14:34, Felix Hartmann wrote:
When compiling a map with mkgmap 2098 I get the following error (austria.pbf from geofabrik, my style). 2097 still compiles without problems/error messages.
OK thanks, fixed, assuming you were compiling a map without a level 0.
Also 2098 is not faster than 2097 for me (actually in 2 out of 3 tries even very slightly (could be measuring error) slower).
In spite of all the discussion around this, the bug was very rare :) If your map compiled before without appearing to hang, then it didn't suffer the problem, and the new version will not be any quicker.
..Steve
participants (2)
-
Felix Hartmann
-
Steve Ratcliffe