logo separator

[mkgmap-dev] immediate crash due to library issue??

From Greg Troxel gdt at ir.bbn.com on Sat Nov 10 14:08:11 GMT 2012

I've been running mkgmap fairly regularly for several years.  I have a
script that runs splitter and then mkgmap, and routinely 'svn up' to the
latest (trunk) and 'ant build'.  Usually this works fine.

Today, I updated to:

  Path: .
  URL: http://svn.parabola.me.uk/mkgmap/trunk
  Repository Root: http://svn.parabola.me.uk/mkgmap
  Repository UUID: 25d90789-57f7-4ee0-8453-03a3dfeeeb22
  Revision: 2371
  Node Kind: directory
  Schedule: normal
  Last Changed Author: wanmil
  Last Changed Rev: 2370
  Last Changed Date: 2012-11-01 07:07:58 -0400 (Thu, 01 Nov 2012)

From a version probably in early October ("svn reflog" doesn't seem to
work :-).

Running mkgmap, I got:

Time started: Sat Nov 10 08:50:17 EST 2012
java.lang.NoSuchMethodError: uk.me.parabola.mkgmap.reader.osm.Tags.get(Ljava/lang/Object;)Ljava/lang/String;
	at uk.me.parabola.mkgmap.reader.osm.Element.getTag(Element.java:50)
	at uk.me.parabola.mkgmap.reader.osm.HighwayHooks.onAddNode(HighwayHooks.java:97)
	at uk.me.parabola.mkgmap.reader.osm.OsmReadingHooksChain.onAddNode(OsmReadingHooksChain.java:64)
	at uk.me.parabola.mkgmap.reader.osm.bin.OsmBinHandler$BinParser.parseDense(OsmBinHandler.java:122)
	at crosby.binary.BinaryParser.parse(BinaryParser.java:124)
	at crosby.binary.BinaryParser.handleBlock(BinaryParser.java:68)
	at crosby.binary.file.FileBlock.process(FileBlock.java:135)
	at crosby.binary.file.BlockInputStream.process(BlockInputStream.java:34)
	at uk.me.parabola.mkgmap.reader.osm.bin.OsmBinMapDataSource.load(OsmBinMapDataSource.java:63)
	at uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:144)
	at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:56)
	at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:210)
	at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:207)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:680)
Exiting - if you want to carry on regardless, use the --keep-going option
Time finished: Sat Nov 10 08:50:18 EST 2012
Total time taken: 903ms

I tried 'ant clean' followed by 'ant build' again, but that didn't help.

I looked at
  https://wiki.openstreetmap.org/wiki/Mkgmap/dev
and it references protobuf.jar and osmprotobuf.jar; I suspect the
problem may be that I had an old version.  I dimly recall a tool 'ivy'
that is supposed to deal with getting up-to-date versions, but I can't
find any reference to it in the sources or the wiki page.

So I wondered if the protobuf versions I had (fall 2010) were old.  I
removed all files in my working directory that weren't versioned (except
for a few text files of notes to myself), and rebuilt.  Now it seems
ok.  So there seems to be a bug in dependency tracking.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20121110/a9b3aa2f/attachment.bin 


More information about the mkgmap-dev mailing list