logo separator

[mkgmap-dev] NullPointerExceptio

From Gerd Petermann gpetermann_muenchen at hotmail.com on Sat Dec 9 09:39:37 GMT 2017

Hi Andreas,

thanks, I've fixed this in r4000. I wonder why this did not show up before. Seems that nobody else has POI without a name in his overview map?

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von andreas.schmidt.hetschbach at t-online.de <andreas.schmidt.hetschbach at t-online.de>
Gesendet: Samstag, 9. Dezember 2017 10:00:33
An: mkgmap-dev; Development list for mkgmap
Betreff: Re: [mkgmap-dev] NullPointerExceptio

Hi Gerd,

http://files.mkgmap.org.uk/detail/369

includes a zip-file including

  *   Mkgmap-call
  *   Style and typ – file
  *   2 out of 37 pbf-files covering Austria

If I build a map only with *001.osm.pbf everything works fine (also with some others). If I do so with *0036.osm.pbf (also with some others), it doesn´t.

Regards

Andreas


Gesendet von Mail<https://go.microsoft.com/fwlink/?LinkId=550986> für Windows 10

Von: Gerd Petermann<mailto:gpetermann_muenchen at hotmail.com>
Gesendet: Freitag, 8. Dezember 2017 14:34
An: Development list for mkgmap<mailto:mkgmap-dev at lists.mkgmap.org.uk>
Betreff: Re: [mkgmap-dev] NullPointerExceptio

Hi Andreas,

the problem occurs while reading the ovm*.img files for the overview map. It seems that mkgmap reads a POI without a label, thus the NullPointerException.
The code contains no check for this, so I guess it normally never happens, so maybe it is an I/O problem. If you can reproduce the problem and there is no simple
explanation like a full disk please post the style and describe how you create the pbf files so that I can reproduce the problem.

ciao,
Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von andreas.schmidt.hetschbach at t-online.de <andreas.schmidt.hetschbach at t-online.de>
Gesendet: Freitag, 8. Dezember 2017 14:02:07
An: Development list for mkgmap
Betreff: [mkgmap-dev] NullPointerExceptio

Way 341306282 [highway=path, mkgmap:label:1=Path[?], mkgmap:unpaved=1, radweg=?] nach
Way 341306281 [highway=path, mkgmap:residential=yes, mkgmap:unpaved=1, radweg=?] vor
Way 341306281 [highway=path, mkgmap:label:1=Path[?], mkgmap:residential=yes, mkgmap:unpaved=1, radweg=?] nach
Number of MapFailedExceptions: 0
Exception in thread "main" java.lang.NullPointerException
at uk.me.parabola.mkgmap.combiners.OverviewBuilder.readPoints(OverviewBuilder.java:284)
at uk.me.parabola.mkgmap.combiners.OverviewBuilder.readFileIntoOverview(OverviewBuilder.java:250)
at uk.me.parabola.mkgmap.combiners.OverviewBuilder.onMapEnd(OverviewBuilder.java:84)
at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:588)
at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:128)
at uk.me.parabola.mkgmap.main.Main.mainStart(Main.java:136)
at uk.me.parabola.mkgmap.main.Main.main(Main.java:107)

I built many maps so far – never got this error. What do I have to obtain for further analysis?

java -Xmx1024m -jar ..\bin\mkgmap.jar --tdbfile --gmapi --max-jobs --generate-sea=extend-sea-sectors --add-pois-to-areas --route --latin1 --family-id=7012 --mapname=44000000 --product-id=1 --family-name=Andreas-Austria --index --order-by-decreasing-area --draw-priority=25 --style-file=".\style" .\typ\M07012.typ 6*.pbf

C:\Garmin\bin\mkgmap-r3997

Regards

Andreas

Gesendet von Mail<https://go.microsoft.com/fwlink/?LinkId=550986> für Windows 10

_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


More information about the mkgmap-dev mailing list