mkgmap Exception in thread "main" java.lang.AssertionError

Hi there, i got the following error from mkgmap (mkgmap-r1914): Exception in thread "main" java.lang.AssertionError at uk.me.parabola.imgfmt.sys.Directory.sync(Directory.java:160) at uk.me.parabola.imgfmt.sys.ImgFS.sync(ImgFS.java:230) at uk.me.parabola.imgfmt.sys.ImgFS.close(ImgFS.java:240) at uk.me.parabola.mkgmap.combiners.GmapsuppBuilder.onFinish(GmapsuppBuilder.java:124) at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:419) at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:126) at uk.me.parabola.mkgmap.main.Main.main(Main.java:129) adding: germany.gmapsupp.img (deflated 27%) Is there anybody, who can help me to isolate this error? Here are the calling parameters: java -Xmx4000M -enableassertions -jar mkgmap.jar -c /osm/mkgmap.conf \ --style-file=/osm/styles \ --description="germany" \ --country-name=germany \ --country-abbr=D \ --family-id=59 \ --product-id=1 \ --area-name=D \ --overview-mapname=germany \ --mapname=59000000 \ --generate-sea=extend-sea-sectors,close-gaps=2000 \ --series-name=OSM \ --family-name=OSM \ --latin1 \ --lower-case \ --draw-priority=25 \ --add-pois-to-areas \ --net \ --route \ --max-jobs \ --make-opposite-cycleways \ --tdbfile \ --index \ --remove-short-arcs \ --add-pois-to-areas \ --adjust-turn-headings \ --report-similar-arcs \ --link-pois-to-ways \ --check-roundabouts \ --check-roundabout-flares \ --gmapsupp \ --make-poi-index \ --code-page=1252 \ --charset=windows-1252 \ --verbose \ ../*.osm.gz \ ../59000000.TYP cheers Michael

Hi
i got the following error from mkgmap (mkgmap-r1914):
Exception in thread "main" java.lang.AssertionError at uk.me.parabola.imgfmt.sys.Directory.sync(Directory.java:160) at uk.me.parabola.imgfmt.sys.ImgFS.sync(ImgFS.java:230) at uk.me.parabola.imgfmt.sys.ImgFS.close(ImgFS.java:240)
Could you try the attached patch on exactly the same input files and arguments. I've long suspected that there is a slight problem with the way the size of the gmapsupp is calculated, which leads to a problem with particular sized input files. Thanks, ..Steve

Hi Steve, i've done the job, but sorry, i got the same error again. Do you have any idea? The gmapsuppimg size is 1453588480. Michael Am 18.04.2011 15:15, schrieb Steve Ratcliffe:
Hi
i got the following error from mkgmap (mkgmap-r1914):
Exception in thread "main" java.lang.AssertionError at uk.me.parabola.imgfmt.sys.Directory.sync(Directory.java:160) at uk.me.parabola.imgfmt.sys.ImgFS.sync(ImgFS.java:230) at uk.me.parabola.imgfmt.sys.ImgFS.close(ImgFS.java:240)
Could you try the attached patch on exactly the same input files and arguments.
I've long suspected that there is a slight problem with the way the size of the gmapsupp is calculated, which leads to a problem with particular sized input files.
Thanks, ..Steve
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

On 19/04/11 11:19, Michael.TheBlackCat wrote:
Hi Steve,
i've done the job, but sorry, i got the same error again. Do you have any idea? The gmapsuppimg size is 1453588480.
OK. I have another idea, although I would expect to see the problem more often if it were right. It will take a bit of investigation. Cheers ..Steve

I have the same error since 2 week with the germany.pbf-files from ther geofabrik. mkgmap svn 1922 java -Xmx4000M -ea -Dlog.config=/osm/garmin/aio/bin/logging.properties -jar mkgmap-svn.jar --max-jobs=4 --style-file=basemap_style --remove-short-arcs=5 --description='aio-germany' --country-name='germany' --country-abbr='ger' --area-name='germany' --family-id=4 --product-id=45 --series-name='aio-germany' --family-name=basemap --latin1 --mapname=70013001 --draw-priority=10 --add-pois-to-areas --make-all-cycleways --generate-sea=multipolygon,extend-sea-sectors,close-gaps=6000,floodblocker --link-pois-to-ways --route --index --gmapsupp --report-dead-ends=2 --check-roundabouts --check-roundabout-flares --keep-going --tdbfile --nsis --verbose germany-raw/*.osm.gz basemap.TYP The ouput of gmaptool is : gmt v0.4.2.1891n (C) AP Wrong header (first FAT), file gmapsupp.img But now the strange thing : 1) running the africa.pbf-dump works well . Gmapsupp ist ok and work on the garmin-hardware. 2) java -jar /mkgmap.jar --gmapsupp 70013*.img basemap.TYP meake a working gmapsupp from the not-working data. 3) i tried to go back to svn1906 .. same error .. so i think there might be a problem with the data ? Perhaps i could help a little bit. Greeting Dirk

Hi ! Since i got the error from mkgmap no new NSI-file was generated. Perhaps this might give us an hint. Dirk

Hello
Exception in thread "main" java.lang.AssertionError at uk.me.parabola.imgfmt.sys.Directory.sync(Directory.java:160)
I have another patch. It may not fix your problem (although it does, at least, fix a different problem - one however that I don't believe has ever been reported). The patch prints out a lot of information to stdout, could you please send me the output if the patch doesn't work. This patch is instead of the previous one and includes its effect. ..Steve

dear Steve, here is the output from your debug messages. Please have a look to them. cheers Michael Am 25.04.2011 17:16, schrieb Steve Ratcliffe:
I have another patch. It may not fix your problem (although it does, at least, fix a different problem - one however that I don't believe has ever been reported).
And here it is attached...
..Steve
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hello Here is a new patch. I have reproduced the actual error you see on a gmapsupp of 1.2G. This patch fixes that and also the other cases I believe. The patch still has the debugging in. If it still fails, could you send me the output again. There is no need, for the purpose of testing the patch, to recompile everything. Just "mkgmap --gmapsupp 63*.img" or similar should do. Thanks, Best wishes ..Steve

done with the path and the last data. create header 512 dir: header blocks(slots) 4 dir: headerBlocks 7 header blocks needed 1 dir: end slot 7 file size in blocks 18 bs 512: tot blocks 1778759, tot header blocks 7766 bs 1024: tot blocks 889549, tot header blocks 2037 bs 2048: tot blocks 444934, tot header blocks 559 bs 4096: tot blocks 222633, tot header blocks 166 bs 8192: tot blocks 111473, tot header blocks 55 bs 16384: tot blocks 55890, tot header blocks 21 bs: 16384 reserve blocks 22 create header 16384 dir: header blocks(slots) 693 dir: headerBlocks 22 header blocks needed 1 dir: end slot 704 file size in blocks 55912 Looks like gmt thinks the gmpasupp.img file is ok now.

Hey Steve, i patched mkgmap-r1923 with your last 3rd patch. The mkgmap run was clean and the generated gmapsupp file seems ok. Many thanks for your efforts, great work at all! greetings Michael Am 27.04.2011 20:24, schrieb Steve Ratcliffe:
Hello
Here is a new patch. I have reproduced the actual error you see on a gmapsupp of 1.2G. This patch fixes that and also the other cases I believe.
The patch still has the debugging in. If it still fails, could you send me the output again.
There is no need, for the purpose of testing the patch, to recompile everything. Just "mkgmap --gmapsupp 63*.img" or similar should do.
Thanks, Best wishes
..Steve
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (3)
-
flabot@googlemail.com
-
Michael.TheBlackCat
-
Steve Ratcliffe