As I was afraid, mkgmap.log doesn't show any relevant info:

Mkgmap version 4923M
Time started: Wed Feb 25 18:48:24 CET 2026
2026/02/25 18:48:24 WARNING (global): Setting max-jobs to 8
Number of MapFailedExceptions: 0
Number of ExitExceptions: 0
Time finished: Wed Feb 25 18:48:37 CET 2026
Total time taken: 12 seconds

Maybe I should tune logging.properties file:

# The default level FINE, WARNING, INFO, SEVERE
.level=WARNING

handlers: java.util.logging.FileHandler

# package or class name with .level appended and then the level
#uk.me.parabola.mkgmap.main.Main.level=FINE
#uk.me.parabola.mkgmap.general.RoadNetwork.level=WARNING
#uk.me.parabola.mkgmap.general.MapLine.level=INFO
#uk.me.parabola.mkgmap.main.Main.level=INFO
#uk.me.parabola.mkgmap.main.MapMaker.level=INFO
uk.me.parabola.mkgmap.osmstyle.StyledConverter.level=WARNING
#uk.me.parabola.mkgmap.reader.osm.xml.level=INFO
#uk.me.parabola.mkgmap.build.MapBuilder.level=SEVERE
#uk.me.parabola.mkgmap.build.level=WARNING
#uk.me.parabola.mkgmap.reader.osm.RestrictionRelation.level=WARNING
#uk.me.parabola.mkgmap.reader.osm.level=INFO
#uk.me.parabola.imgfmt.app.net.RouteArc.level=INFO
#uk.me.parabola.imgfmt.app.net.RoadNetwork.level=WARNING
#uk.me.parabola.imgfmt.app.net.NOD1Part.level=FINE
#uk.me.parabola.mkgmap.build.MapSplitter.level=INFO
#uk.me.parabola.mkgmap.reader.osm.LocationHook.level=FINE
uk.me.parabola.mkgmap.osmstyle.housenumber.level=WARNING

#uk.me.parabola.mkgmap.osmstyle.stats.level=INFO
#WARNING

# For ConsoleHandler
java.util.logging.ConsoleHandler.level=WARNING
java.util.logging.ConsoleHandler.formatter=uk.me.parabola.log.UsefulFormatter

# For FileHandler
java.util.logging.FileHandler.level=FINE
java.util.logging.FileHandler.encoding=UTF-8
java.util.logging.FileHandler.formatter=uk.me.parabola.log.UsefulFormatter
java.util.logging.FileHandler.limit=104857600 #100 MB
java.util.logging.FileHandler.count=4
java.util.logging.FileHandler.pattern=mkgmap.log
java.util.logging.FileHandler.append=false

uk.me.parabola.util.Profiler.level=INFO

I have done some tests generating gmapsupp files from different combinations of the same input img files. Original gmapsupp contains 664 tiles numbered 51172001-664. If I generate different gmapsupp with groups of tiles 001-099, 100-199, etc. all gmapsupp are correct. Also with groups 0-199, 200-399, ... or 100-499. It only fails with groups 001-599, 100-699 and 100-599. It seems there's not an individual tile that triggers the problem, but a combination of tiles. How to know which ones?

For all test I've used the simplest mkgmap command as possible to avoid $Var interference:

java -Xmx27G -ea -Dlog.config=logging.properties -jar mkgmap.jar --output-dir=$OUTPUTDIR --gmapsupp --route tmp/51172[1-5]*.img --no-tdbfile
Any help would be much appreciated

El 23/2/26 a las 15:48, Ticker Berkin via mkgmap-dev escribió:
Hi Carlos

The first 0x1b0000 bytes (1.68MiB) of your gmapsupp.img are zero! It should
start with something like:

00000000  00 00 00 00 00 00 00 00  01 00 01 7d 00 00 00 00  |...........}....|
00000010  44 53 4b 49 4d 47 00 02  04 00 10 00 00 01 00 00  |DSKIMG..........|
00000020  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000030  00 00 00 00 00 00 00 00  00 e9 07 01 1c 0f 27 20  |..............' |
00000040  02 47 41 52 4d 49 4e 00  00 52 57 42 20 48 61 6e  |.GARMIN..RWB Han|

You should check the expansion of your command, esp. all the $Vars and * to see
that the parameters are exactly as you expect and stray files are not getting
into the build.

Are you generating a mkgmap.log.#n? If not suggest you investigate this
(-Dlog.config=mkgmap_log.props option)

Regards
Ticker

On Fri, 2026-02-20 at 10:01 +0100, Carlos Dávila via mkgmap-dev wrote:
Hi all

I'm having problems with a gmapsupp.img file created with mkgmap. It's
not recognized by GPS and GMapTool reports header is wrong. I have
recreated it from scratch and it continues failing. I have not changed
my tool chain for a long time, so I don't know what may be causing the
problem.

Map is created with the following command:

java -Xmx27G -ea -jar mkgmap.jar --index --gmapsupp
--family-name="OpenStreetMap $MAPA" --family-id=${GRUPO}1${FID}
--country-name=$PAIS --country-abbr=${ABR} --area-name="$MAPA"
--product-version=$VERSION --series-name="OSM-$MAPA"
--road-name-config=roadNameConfig_suffixes.txt --route
tmp/${GRUPO}1${FID}*.img tmp/${ABR}${GRUPO}1${FID}.txt
--description="OpenStreetMap $MAPA" --no-tdbfile

Another gmapsupp created from the same *.o5m input files but with a
different style is correct, but many other maps created with the same
style are also correct, so I don't think style may be the origin of the
problem.

Problem file can be downloaded from
https://alternativaslibres.org/tmp/gmapsupp_Canada.zip


_______________________________________________
mkgmap-dev mailing list [email protected]
To unsubscribe send an email [email protected]
%(web_page_url)slistinfo/%(_internal_name)s
_______________________________________________
mkgmap-dev mailing list [email protected]
To unsubscribe send an email [email protected]
%(web_page_url)slistinfo/%(_internal_name)s
_______________________________________________
mkgmap-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo/%(_internal_name)s

Reply via email to