logo separator

[mkgmap-dev] NullPointerExceptio

From Gerd Petermann gpetermann_muenchen at hotmail.com on Fri Dec 22 20:30:39 GMT 2017

Hi,

false alarm.
Not sure if this is an error in mkgmap:
When I create a map with options
--output-dir=e:/ld  --x-dem-dists="5520, 16560, 44176, 88368"  --x-dem=f:\osm\phyghtmap\hgt\SRTM1,f:\srtm3    --show-profiles=1 --gmapi  --max-jobs --route --index -c e:\osm_out_work\nepal\20171219_165254\template2.args
and copy the gmap folder I can create a gmapsupp in MapSource.
If I remove the option --route and do the same this no longer works. When I also remove the two dem options it works again.

@Steve: I think the problem is in DetailMapBlock.writeBody() which seems to expect that DEM is only written if also NET and NOD exist?

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Gerd Petermann <gpetermann_muenchen at hotmail.com>
Gesendet: Freitag, 22. Dezember 2017 20:49:37
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] NullPointerExceptio

Hi Andreas,

yep, please use r4017.
I've just noticed that with the latest versions MapSource doesn't create a gmapsupp for files with DEM.
I think that worked after I added the --x-dem-dists option. No idea what is wrong now.

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, 22. Dezember 2017 20:43:13
An: mkgmap-dev; Development list for mkgmap
Betreff: Re: [mkgmap-dev] NullPointerExceptio

Hi Gerd,

probably your fix for „POI without a name in overview map“ made it not into the new branch?

Regards

Andreas



Node 240109644 [cityxx=yes, is_in=Gänserndorf,Niederösterreich,Österreich,Europe, mkgmap:label:1=Groß-Enzersdorf, mkgmap:residential=yes, name=Groß-Enzersdorf, place=town, population=8532] points2
DEM file calculation for C:\Garmin\Austria\.\44000036.img took 125 ms
DEM file calculation for C:\Garmin\Austria\.\44000035.img took 250 ms
DEM file calculation for C:\Garmin\Austria\.\44000037.img took 297 ms
Number of MapFailedExceptions: 0
Exception in thread "main" java.lang.NullPointerException
        at uk.me.parabola.mkgmap.combiners.OverviewBuilder.readPoints(OverviewBuilder.java:294)
        at uk.me.parabola.mkgmap.combiners.OverviewBuilder.readFileIntoOverview(OverviewBuilder.java:260)
        at uk.me.parabola.mkgmap.combiners.OverviewBuilder.onMapEnd(OverviewBuilder.java:89)
        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)

C:\Garmin\Austria>del /F /Q "C:\Users\andreas\AppData\Local\Garmin\BaseCamp\TileCache\*.*"

C:\Garmin\Austria>pause
Drücken Sie eine beliebige Taste . . .

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

Von: Gerd Petermann<mailto:gpetermann_muenchen at hotmail.com>
Gesendet: Samstag, 9. Dezember 2017 10:39
An: Development list for mkgmap<mailto:mkgmap-dev at lists.mkgmap.org.uk>
Betreff: Re: [mkgmap-dev] NullPointerExceptio

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
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________
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