
Hi Steve, with r440 you have changed NumberReader. I think you removed a check by accident, as the comment still relates to the old code. Please check the following patch, without it NetCheck often crashes. Gerd Index: NumberReader.java =================================================================== --- NumberReader.java (revision 444) +++ NumberReader.java (working copy) @@ -100,7 +100,7 @@ // To do this properly we need to know the number of nodes I think, this is the // best we can do: if there are more than 8 bits left, there must be another command // left. We could leave a short command at the end. - while (br.getBitPosition() < br.getNumberOfBits() && numbers.size() < numberOfNodes) + while (br.getBitPosition() < br.getNumberOfBits() - 8 && numbers.size() < numberOfNodes){ runCommand(numbers); return numbers; -- View this message in context: http://gis.19327.n5.nabble.com/display-tool-NetCheck-tp5830539.html Sent from the Mkgmap Development mailing list archive at Nabble.com.

Hi Gerd
with r440 you have changed NumberReader. I think you removed a check by accident, as the comment still relates to the old code. Please check the following patch, without it NetCheck often crashes.
I've decided to catch the error for now and making the test what I think it should be. Either my understanding of nblocks is wrong or the number reader fails in some particular case. I suspect the later. ..Steve

Hi Steve, thanks, that looks much better. Gerd
Date: Mon, 19 Jan 2015 14:12:27 +0000 From: steve@parabola.me.uk To: mkgmap-dev@lists.mkgmap.org.uk Subject: Re: [mkgmap-dev] display tool : NetCheck
Hi Gerd
with r440 you have changed NumberReader. I think you removed a check by accident, as the comment still relates to the old code. Please check the following patch, without it NetCheck often crashes.
I've decided to catch the error for now and making the test what I think it should be. Either my understanding of nblocks is wrong or the number reader fails in some particular case. I suspect the later.
..Steve _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (3)
-
Gerd Petermann
-
GerdP
-
Steve Ratcliffe