mkgmap creation problem

Hi, I try to compile europe maps but I receive the following error: mkgmap Exception in thread "main" java.lang.StringIndexOutOfBoundsException: I tested this procedure on laptop and my PC. Both has a powerful configuration (8GB) My PC has java version:java version "1.7.0_79" (Oracle) with Ubuntu OS on my laptop I use the newest 1.8.0_45 (Oracle) with Ubuntu OS I'm using the following command: java -jar -Xmx4096m mkgmap/mkgmap.jar --mapname=43000001 --route --add-pois-to-areas --tdbfile --index --bounds=dane/bounds_20150620.zip --remove-ovm-work-files=true --output-dir=/tmp/map_compiled --precomp-sea=dane/sea_20150630.zip --make-opposite-cycleways --style-file=mkgmap-style-sheets-read-only/styles/world --verbose --gmapsupp -c map_splitted/template.args Please suggest what else can I do with this problem Regards, Maciej Moczulski

Hi Maciej
I try to compile europe maps but I receive the following error:
mkgmap Exception in thread "main" java.lang.StringIndexOutOfBoundsException:
Thanks for reporting this. Could you please send the rest of the error message below that line (or at least the next 4 lines). That should help to solve the problem. Thanks, ..Steve

Hi, Thanks for the response. Today I'm downloading files again and will try with recent data. I'm getting the following error message: Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(String.java:646) at uk.me.parabola.imgfmt.app.mdr.Mdr7.addStreet(Mdr7.java:61) at uk.me.parabola.imgfmt.app.mdr.MDRFile.addStreet(MDRFile.java:229) at uk.me.parabola.mkgmap.combiners.MdrBuilder.addStreets(MdrBuilder.java:323) at uk.me.parabola.mkgmap.combiners.MdrBuilder.onMapEnd(MdrBuilder.java:180) at uk.me.parabola.mkgmap.combiners.GmapsuppBuilder.onMapEnd(GmapsuppBuilder.java:149) at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:567) at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:128) at uk.me.parabola.mkgmap.main.Main.mainStart(Main.java:134) at uk.me.parabola.mkgmap.main.Main.main(Main.java:105) The interesting part is that for test I pick up some small country and I manage to compile it without any problems. Best Regards, Maciej Moczulski On Tue, Jul 14, 2015 at 12:09 AM, Steve Ratcliffe <steve@parabola.me.uk> wrote:
Hi Maciej
I try to compile europe maps but I receive the following error:
mkgmap Exception in thread "main" java.lang.StringIndexOutOfBoundsException:
Thanks for reporting this. Could you please send the rest of the error message below that line (or at least the next 4 lines). That should help to solve the problem.
Thanks, ..Steve _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- Regards, Maciej Moczulski

Hi Maciej
I'm getting the following error message: Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(String.java:646) at uk.me.parabola.imgfmt.app.mdr.Mdr7.addStreet(Mdr7.java:61) at uk.me.parabola.imgfmt.app.mdr.MDRFile.addStreet(MDRFile.java:229)
Thanks, that helps a lot. Looks like a street with an empty name. If so it should be easy to solve, I will have a fix later today - unless it isn't that simple! ..Steve

Hi I made a trivial fix to ignore bad street names. Download version r3622 for the fixed version. Let me know if there is a further problem with that version. Patch attached for reference. ..Steve

Thanks a lot. After coming back form office I will check this out. Best Regards, Maciej On Wed, Jul 15, 2015 at 10:53 AM, Steve Ratcliffe <steve@parabola.me.uk> wrote:
Hi
I made a trivial fix to ignore bad street names. Download version r3622 for the fixed version. Let me know if there is a further problem with that version.
Patch attached for reference.
..Steve
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- Regards, Maciej Moczulski

Hi, The compilation went further but break with the following error: Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded at uk.me.parabola.imgfmt.app.mdr.Mdr11.addPoi(Mdr11.java:38) at uk.me.parabola.imgfmt.app.mdr.MDRFile.addPoint(MDRFile.java:206) at uk.me.parabola.mkgmap.combiners.MdrBuilder.addPoints(MdrBuilder.java:302) at uk.me.parabola.mkgmap.combiners.MdrBuilder.onMapEnd(MdrBuilder.java:178) at uk.me.parabola.mkgmap.combiners.GmapsuppBuilder.onMapEnd(GmapsuppBuilder.java:149) at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:567) at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:128) at uk.me.parabola.mkgmap.main.Main.mainStart(Main.java:134) at uk.me.parabola.mkgmap.main.Main.main(Main.java:105) Thanks, Maciej On Wed, Jul 15, 2015 at 11:40 AM, Maciej Moczulski < maciej.moczulski@gmail.com> wrote:
Thanks a lot.
After coming back form office I will check this out.
Best Regards, Maciej
On Wed, Jul 15, 2015 at 10:53 AM, Steve Ratcliffe <steve@parabola.me.uk> wrote:
Hi
I made a trivial fix to ignore bad street names. Download version r3622 for the fixed version. Let me know if there is a further problem with that version.
Patch attached for reference.
..Steve
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- Regards,
Maciej Moczulski
-- Regards, Maciej Moczulski

well - that one is not a bug - but you don't have enough memory. So switch of the address index I would say - you cannot compile it for such a big map. On 16 July 2015 at 07:38, Maciej Moczulski <maciej.moczulski@gmail.com> wrote:
Hi,
The compilation went further but break with the following error:
Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded at uk.me.parabola.imgfmt.app.mdr.Mdr11.addPoi(Mdr11.java:38) at uk.me.parabola.imgfmt.app.mdr.MDRFile.addPoint(MDRFile.java:206) at uk.me.parabola.mkgmap.combiners.MdrBuilder.addPoints(MdrBuilder.java:302) at uk.me.parabola.mkgmap.combiners.MdrBuilder.onMapEnd(MdrBuilder.java:178) at uk.me.parabola.mkgmap.combiners.GmapsuppBuilder.onMapEnd(GmapsuppBuilder.java:149) at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:567) at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:128) at uk.me.parabola.mkgmap.main.Main.mainStart(Main.java:134) at uk.me.parabola.mkgmap.main.Main.main(Main.java:105)
Thanks, Maciej
On Wed, Jul 15, 2015 at 11:40 AM, Maciej Moczulski < maciej.moczulski@gmail.com> wrote:
Thanks a lot.
After coming back form office I will check this out.
Best Regards, Maciej
On Wed, Jul 15, 2015 at 10:53 AM, Steve Ratcliffe <steve@parabola.me.uk> wrote:
Hi
I made a trivial fix to ignore bad street names. Download version r3622 for the fixed version. Let me know if there is a further problem with that version.
Patch attached for reference.
..Steve
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- Regards,
Maciej Moczulski
-- Regards,
Maciej Moczulski
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- Felix Hartman - Openmtbmap.org & VeloMap.org Floragasse 9/11 1040 Wien Austria - Österreich

Hi, I try also to compile the map on my office PC with the following configuration: 8GB Intel® Core™ i7-3770 CPU @ 3.40GHz × 8 488.1 GB with 400GB free space I also set a flag for java: -XX:+UseCompressedOops and I still have an problem with compilation with the following error. Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Unknown Source) at java.util.ArrayList.grow(Unknown Source) at java.util.ArrayList.ensureExplicitCapacity(Unknown Source) at java.util.ArrayList.ensureCapacityInternal(Unknown Source) at java.util.ArrayList.add(Unknown Source) at uk.me.parabola.imgfmt.app.mdr.Mdr11.addPoi(Mdr11.java:46) at uk.me.parabola.imgfmt.app.mdr.MDRFile.addPoint(MDRFile.java:206) at uk.me.parabola.mkgmap.combiners.MdrBuilder.addPoints(MdrBuilder.java:302) at uk.me.parabola.mkgmap.combiners.MdrBuilder.onMapEnd(MdrBuilder.java:178) at uk.me.parabola.mkgmap.combiners.GmapsuppBuilder.onMapEnd(GmapsuppBuilder.java:149) at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:567) at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:128) at uk.me.parabola.mkgmap.main.Main.mainStart(Main.java:134) at uk.me.parabola.mkgmap.main.Main.main(Main.java:105) Which very strange as I use a heap size like this -Xmx4096m If this is still related to the power of my PC then I'm giving up. Thanks, Maciej Moczulski On Thu, Jul 16, 2015 at 8:39 AM, Felix Hartmann <extremecarver@gmail.com> wrote:
well - that one is not a bug - but you don't have enough memory. So switch of the address index I would say - you cannot compile it for such a big map.
On 16 July 2015 at 07:38, Maciej Moczulski <maciej.moczulski@gmail.com> wrote:
Hi,
The compilation went further but break with the following error:
Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded at uk.me.parabola.imgfmt.app.mdr.Mdr11.addPoi(Mdr11.java:38) at uk.me.parabola.imgfmt.app.mdr.MDRFile.addPoint(MDRFile.java:206) at uk.me.parabola.mkgmap.combiners.MdrBuilder.addPoints(MdrBuilder.java:302) at uk.me.parabola.mkgmap.combiners.MdrBuilder.onMapEnd(MdrBuilder.java:178) at uk.me.parabola.mkgmap.combiners.GmapsuppBuilder.onMapEnd(GmapsuppBuilder.java:149) at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:567) at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:128) at uk.me.parabola.mkgmap.main.Main.mainStart(Main.java:134) at uk.me.parabola.mkgmap.main.Main.main(Main.java:105)
Thanks, Maciej
On Wed, Jul 15, 2015 at 11:40 AM, Maciej Moczulski < maciej.moczulski@gmail.com> wrote:
Thanks a lot.
After coming back form office I will check this out.
Best Regards, Maciej
On Wed, Jul 15, 2015 at 10:53 AM, Steve Ratcliffe <steve@parabola.me.uk> wrote:
Hi
I made a trivial fix to ignore bad street names. Download version r3622 for the fixed version. Let me know if there is a further problem with that version.
Patch attached for reference.
..Steve
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- Regards,
Maciej Moczulski
-- Regards,
Maciej Moczulski
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- Felix Hartman - Openmtbmap.org & VeloMap.org Floragasse 9/11 1040 Wien Austria - Österreich
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- Regards, Maciej Moczulski

For Europe you will need arount 8-10GB of memory (rule of thumb - a bit more than the amount of map data compiled as .img). 4GB is clearly insufficient. On 16 July 2015 at 20:28, Carlos Dávila <cdavilam@orangecorreo.es> wrote:
El 16/07/15 a las 12:45, Maciej Moczulski escribió:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
You must increase available memory with -Xmx parameter
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- Felix Hartman - Openmtbmap.org & VeloMap.org Floragasse 9/11 1040 Wien Austria - Österreich

Oh - if you have a SSD - you could try to put your Swap disk onto it - and it should be fast enough... (6GB main memory plus 6GB from SSD Swap). On 16 July 2015 at 22:06, Felix Hartmann <extremecarver@gmail.com> wrote:
For Europe you will need arount 8-10GB of memory (rule of thumb - a bit more than the amount of map data compiled as .img). 4GB is clearly insufficient.
On 16 July 2015 at 20:28, Carlos Dávila <cdavilam@orangecorreo.es> wrote:
El 16/07/15 a las 12:45, Maciej Moczulski escribió:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
You must increase available memory with -Xmx parameter
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- Felix Hartman - Openmtbmap.org & VeloMap.org Floragasse 9/11 1040 Wien Austria - Österreich
-- Felix Hartman - Openmtbmap.org & VeloMap.org Floragasse 9/11 1040 Wien Austria - Österreich

Thanks a lot Felix. I will use yours suggestion and compile map with a way bigger memory size. Best Regards, Maciej Moczulski On Thu, Jul 16, 2015 at 10:07 PM, Felix Hartmann <extremecarver@gmail.com> wrote:
Oh - if you have a SSD - you could try to put your Swap disk onto it - and it should be fast enough... (6GB main memory plus 6GB from SSD Swap).
On 16 July 2015 at 22:06, Felix Hartmann <extremecarver@gmail.com> wrote:
For Europe you will need arount 8-10GB of memory (rule of thumb - a bit more than the amount of map data compiled as .img). 4GB is clearly insufficient.
On 16 July 2015 at 20:28, Carlos Dávila <cdavilam@orangecorreo.es> wrote:
El 16/07/15 a las 12:45, Maciej Moczulski escribió:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
You must increase available memory with -Xmx parameter
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- Felix Hartman - Openmtbmap.org & VeloMap.org Floragasse 9/11 1040 Wien Austria - Österreich
-- Felix Hartman - Openmtbmap.org & VeloMap.org Floragasse 9/11 1040 Wien Austria - Österreich
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- Regards, Maciej Moczulski

The compilation of Europe was successful :) Thanks a lot for support and fast response. Best Regards, Maciej Moczulski On Thu, Jul 16, 2015 at 10:58 PM, Maciej Moczulski < maciej.moczulski@gmail.com> wrote:
Thanks a lot Felix.
I will use yours suggestion and compile map with a way bigger memory size.
Best Regards, Maciej Moczulski
On Thu, Jul 16, 2015 at 10:07 PM, Felix Hartmann <extremecarver@gmail.com> wrote:
Oh - if you have a SSD - you could try to put your Swap disk onto it - and it should be fast enough... (6GB main memory plus 6GB from SSD Swap).
On 16 July 2015 at 22:06, Felix Hartmann <extremecarver@gmail.com> wrote:
For Europe you will need arount 8-10GB of memory (rule of thumb - a bit more than the amount of map data compiled as .img). 4GB is clearly insufficient.
On 16 July 2015 at 20:28, Carlos Dávila <cdavilam@orangecorreo.es> wrote:
El 16/07/15 a las 12:45, Maciej Moczulski escribió:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
You must increase available memory with -Xmx parameter
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- Felix Hartman - Openmtbmap.org & VeloMap.org Floragasse 9/11 1040 Wien Austria - Österreich
-- Felix Hartman - Openmtbmap.org & VeloMap.org Floragasse 9/11 1040 Wien Austria - Österreich
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- Regards,
Maciej Moczulski
-- Regards, Maciej Moczulski
participants (4)
-
Carlos Dávila
-
Felix Hartmann
-
Maciej Moczulski
-
Steve Ratcliffe