Exception in mkgmap r1328

Hi! While trying to build a routable map from the planetfile for Germany with a slightly modified default style, I receive the following exception: Exception in thread "main" java.lang.NullPointerException at uk.me.parabola.tdbfmt.OverviewMapBlock.setArea(OverviewMapBlock.java:100) at uk.me.parabola.mkgmap.combiners.TdbBuilder.addToTdb(TdbBuilder.java:114) at uk.me.parabola.mkgmap.combiners.TdbBuilder.onMapEnd(TdbBuilder.java:103) at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:358) at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:124) at uk.me.parabola.mkgmap.main.Main.main(Main.java:121) What does this mean? What can i do about it? bye Nop

Hi! Nop schrieb:
While trying to build a routable map from the planetfile for Germany with a slightly modified default style, I receive the following exception:
Exception in thread "main" java.lang.NullPointerException at uk.me.parabola.tdbfmt.OverviewMapBlock.setArea(OverviewMapBlock.java:100) at uk.me.parabola.mkgmap.combiners.TdbBuilder.addToTdb(TdbBuilder.java:114) at uk.me.parabola.mkgmap.combiners.TdbBuilder.onMapEnd(TdbBuilder.java:103) at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:358) at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:124) at uk.me.parabola.mkgmap.main.Main.main(Main.java:121)
Same problem occurs in 1188. What could be the cause? bye Nop

On 29/10/09 00:19, Nop wrote:
While trying to build a routable map from the planetfile for Germany with a slightly modified default style, I receive the following exception:
Exception in thread "main" java.lang.NullPointerException at uk.me.parabola.tdbfmt.OverviewMapBlock.setArea(OverviewMapBlock.java:100) at uk.me.parabola.mkgmap.combiners.TdbBuilder.addToTdb(TdbBuilder.java:114) at uk.me.parabola.mkgmap.combiners.TdbBuilder.onMapEnd(TdbBuilder.java:103) at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:358) at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:124) at uk.me.parabola.mkgmap.main.Main.main(Main.java:121)
What does this mean? What can i do about it?
Are you doing *.img and including a osmmap_mdr.img ? That would cause the problem, as would an incomplete ordinary .img file. ..Steve

Hi! Steve Ratcliffe schrieb:
On 29/10/09 00:19, Nop wrote:
While trying to build a routable map from the planetfile for Germany with a slightly modified default style, I receive the following exception:
Exception in thread "main" java.lang.NullPointerException at uk.me.parabola.tdbfmt.OverviewMapBlock.setArea(OverviewMapBlock.java:100) at uk.me.parabola.mkgmap.combiners.TdbBuilder.addToTdb(TdbBuilder.java:114)
What does this mean? What can i do about it?
Are you doing *.img and including a osmmap_mdr.img ? That would cause the problem, as would an incomplete ordinary .img file.
No, there is no osmmap_mdr.img. There are 24 .img that were created from as many splitter output files in the same session. So I guess one of them must be incomplete. But there were no other exceptions or warnings. Is there a way to increase the warning level? Is there a simple way to check the validity/completeness of the individual .img output files? bye Nop

On 29/10/09 15:45, Nop wrote:
No, there is no osmmap_mdr.img. There are 24 .img that were created from as many splitter output files in the same session. So I guess one of them must be incomplete. But there were no other exceptions or warnings.
Is there a way to increase the warning level?
If you follow the instructions in: http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2009q1/000675.html But add the line: uk.me.parabola.mkgmap.combiners.level=INFO You can delete or comment out any line beginning uk.me.parabola if you like. You should see lines like this: 2009/10/29 16:05:55 INFO (FileInfo): Desc OSM street map 2009/10/29 16:05:55 INFO (FileInfo): Blocksize 512 2009/10/29 16:05:55 INFO (FileInfo): file 63240001.RGN 2009/10/29 16:05:55 INFO (FileInfo): file 63240001.TRE 2009/10/29 16:05:55 INFO (FileInfo): file 63240001.LBL Report back the results if it isn't immediately obvious what is wrong from that. ..Steve

Hi! Steve Ratcliffe schrieb:
Report back the results if it isn't immediately obvious what is wrong from that.
Ok, I was able to identify the damaged .img file. But I still cannot tell, what the problem is. I compared it with a good file at the finest log level and basically it appears that a lot of stuff is read from the other file, but in this case the attempt to read data fails silently. This seems to be the critical part of the log: 2009/10/29 17:37:42 INFO (Main): Combining maps 2009/10/29 17:37:42 INFO (Main): m:\Routable\66220017.img 2009/10/29 17:37:42 FEIN (ImgHeader): header exponent 9 0 2009/10/29 17:37:42 FEIN (Dirent): ext len 3 2009/10/29 17:37:42 FEIN (Dirent): gpb (not setup) 2009/10/29 17:37:42 FEIN (Dirent): gpb (not setup) 2009/10/29 17:37:42 FEIN (Dirent): gpb (not setup) 2009/10/29 17:37:42 FEIN (FileNode): read ret 512 2009/10/29 17:37:42 FEIN (Directory): readinit name 2009/10/29 17:37:42 FEIN (Dirent): gpb (ok) 2009/10/29 17:37:42 FEIN (FileNode): read ret 512 2009/10/29 17:37:42 FEIN (Directory): readinit name 2009/10/29 17:37:42 FEIN (Dirent): gpb (ok) 2009/10/29 17:37:42 FEIN (FileNode): read ret 512 2009/10/29 17:37:42 FEIN (Directory): readinit name 66220017 RGN 2009/10/29 17:37:42 FEIN (Dirent): gpb (ok) 2009/10/29 17:37:42 FEIN (FileNode): read ret 512 2009/10/29 17:37:42 FEIN (Directory): readinit name 66220017 RGN 2009/10/29 17:37:42 FEIN (Dirent): gpb (ok) 2009/10/29 17:37:42 FEIN (FileNode): read ret 512 2009/10/29 17:37:42 FEIN (Directory): readinit name 66220017 RGN 2009/10/29 17:37:42 INFO (FileInfo): Desc Stra?enkarte 2009/10/29 17:37:42 INFO (FileInfo): Blocksize 512 2009/10/29 17:37:42 INFO (GmapsuppBuilder): adding 0 slots for m:\Routable\66220017.img 2009/10/29 17:37:42 INFO (GmapsuppBuilder): total blocks for 512 is 2 based on slots= 2 I have tried re-generating the .img with loglevel WARNING, but still there are many warnings about turn restrictins and access tags, but nothing that would indicate an invalid or prematureley terminated file. bye Nop
participants (2)
-
Nop
-
Steve Ratcliffe