logo separator

[mkgmap-dev] Unable to build unicode map with index

From Gerd Petermann gpetermann_muenchen at hotmail.com on Tue Sep 22 11:14:15 BST 2020

Hi Carlos,

no idea why this didn't pop up before..
The program tries to write an index section (MDR12) which cannot work with unicode characters.
In fact I doubt that this section is of any use but mkgmap still writes it because it requires almost no space and maybe some old devices need it.

With r4584 this should be fixed.

Gerd





________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Carlos Dávila <carlos at alternativaslibres.org>
Gesendet: Dienstag, 22. September 2020 10:45
An: Development list for mkgmap
Betreff: [mkgmap-dev] Unable to build unicode map with index

Hello all

I am trying to build an unicode map of Israel or Greece but they always
fail with java.lang.AssertionError as soon as I add --index to command
line. I have tried both my own style and default one. Only if I use an
small osm file as input it succeeds. The simplest command line that
throws the error is:

java -Xmx3G -ea -jar mkgmap_trunk.jar --bounds=bounds.zip --route
--unicode --family-name="Test" --family-id=190 --product-id=1
--description="Test" --series-name="Test" --overview-mapname=55190000
--mapname=55190000 --index --style=default --remove-ovm-work-files=true
51178007.o5m
Time started: Tue Sep 22 10:37:47 CEST 2020
Number of MapFailedExceptions: 0
Exception in thread "main" java.lang.AssertionError: 914
         at
uk.me.parabola.imgfmt.app.FileBackedImgFileWriter.put1u(FileBackedImgFileWriter.java:166)
         at uk.me.parabola.imgfmt.app.mdr.Mdr8.writeSectData(Mdr8.java:45)
         at
uk.me.parabola.imgfmt.app.mdr.MDRFile.writeSection(MDRFile.java:421)
         at
uk.me.parabola.imgfmt.app.mdr.MDRFile.writeSections(MDRFile.java:373)
         at uk.me.parabola.imgfmt.app.mdr.MDRFile.write(MDRFile.java:269)
         at
uk.me.parabola.mkgmap.combiners.MdrBuilder.onFinish(MdrBuilder.java:334)
         at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:675)
         at
uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:125)
         at uk.me.parabola.mkgmap.main.Main.mainStart(Main.java:144)
         at uk.me.parabola.mkgmap.main.Main.main(Main.java:115)

Test files can be found are 51178007.o5m
<https://alternativaslibres.org/tmp/51178007.o5m> and jerusalem.o5m
<https://alternativaslibres.org/tmp/jerusalem.o5m>

_______________________________________________
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