Re: [mkgmap-dev] mkgmap error with austria.osm.bz2 of June 1 (all other contry extracts by gefabrik for Europe compiled except for Austria)

2009-06-02 Thread Mark Burton

Hi Felix, Thilo,

Is it possible to produce a small example OSM file that shows this
problem? If so, please zip it up and send it to me or put it on a
website I can access.

Cheers,

Mark
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] mkgmap error with austria.osm.bz2 of June 1 (all other contry extracts by gefabrik for Europe compiled except for Austria)

2009-06-02 Thread Thilo Hannemann

Hi Mark,

I tried to do so, but the small file was processed without error :(.  
The big one is available at a website though (http://osm.arndnet.de/problem.osm.zip 
). The problem to reproduce that error is that it occurs for me only  
if I merge contourlines that I generated on my own (not with  
srtm2osm). So this is quite a special case. I wouldn't have reported  
that error, but as I see that extremecarver sees a similar error I  
thought it might help.


Regards
Thilo

Am 02.06.2009 um 08:50 schrieb Mark Burton:



Hi Felix, Thilo,

Is it possible to produce a small example OSM file that shows this
problem? If so, please zip it up and send it to me or put it on a
website I can access.

Cheers,

Mark
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] mkgmap error with austria.osm.bz2 of June 1 (all other contry extracts by gefabrik for Europe compiled except for Austria)

2009-06-02 Thread Robert Vollmert


On Jun 2, 2009, at 07:50, Thilo Hannemann wrote:

The command line is
java -Xmx2048m -ea -Dlog.config=logging.properties -jar trunk/dist/ 
mkgmap.jar --net --route problem.osm


The log output is available at http://osm.arndnet.de/mkgmap.log.0  
(15 MB)
The input file problem.osm is available at http://osm.arndnet.de/problem.osm.zip 
 (16 MB)


Reduced (and slightly munged) extract that causes the same error here at
http://page.mi.fu-berlin.de/vollmert/tmp/neud.osm.gz

Cheers
Robert

___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] mkgmap error with austria.osm.bz2 of June 1 (all other contry extracts by gefabrik for Europe compiled except for Austria)

2009-06-02 Thread Ralf Kleineisel
Thilo Hannemann wrote:

 I tried to do so, but the small file was processed without error :(. The
 big one is available at a website though
 (http://osm.arndnet.de/problem.osm.zip). The problem to reproduce that
 error is that it occurs for me only if I merge contourlines that I
 generated on my own 

I suggest you create a separate overlay map with contours only and an second
map with OSM data only. The SRTM map gets --transparent but no --route, the
OSM map the other way round. This way you have to process the SRTM data only
once. SRTM data don't change so there's no need for an update. If you update
the OSM map you can easily merge the existing SRTM map into the gmapsupp.img.
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] mkgmap error with austria.osm.bz2 of June 1 (all other contry extracts by gefabrik for Europe compiled except for Austria)

2009-06-02 Thread Mark Burton

Hi Robert,

 http://page.mi.fu-berlin.de/vollmert/tmp/neud.osm.gz

Yes, that file contains lot's of duplicate ways/nodes sitting on top of
each other so it will never be able to be sub-divided (hence mkgmap
blows up). Personally, I don't think we need to fix mkgmap to handle
this because the data is obviously crap. What I can do is put in some
code to detect this situation and issue a more useful error message
before it bombs out.

BTW if you download the same area, all the crap has gone away.

Cheers,

Mark
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] mkgmap error with austria.osm.bz2 of June 1 (all other contry extracts by gefabrik for Europe compiled except for Austria)

2009-06-02 Thread Mark Burton

I fired up JOSM and deleted the myriad duplicate ways as no one else had
bothered to do it. With luck, the austria map will build now.

Cheers,

Mark
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


[mkgmap-dev] mkgmap error with austria.osm.bz2 of June 1 (all other contry extracts by gefabrik for Europe compiled except for Austria)

2009-06-01 Thread Felix Hartmann

I assume there is a serious bug in the austria.osm.bz2 currently.
See here the error output. It compiles 3 out of 7 tiles correctly, and 
then chokes on the 4. tile.
I'm sure there is an error in the country extract (with the same command 
all other country extracts of europe compiled fine - the overflow is not 
related to split size (I reduced it drastically just to test, and 
yesterdays osm.bz2 extract compiled just fine).
If someone wants to have a look at it, I could upload the broken file 
(only the splitted part that breaks mapbuilding - it's 12.1 MB) to my 
server.


Maybe it's useful for bugtracking for you, I don't know (happens on rev 
1053 and/or 1052 I did not testrun with older revisions)...




D:\Garmin\mkgmap_680start /b /wait java -jar -Xmx4800M mkgmap.jar 
--latin1 --lower-case --no-sorted-roads --ignore-maxspeeds 
--ignore-turn-restrictions --remove-short-arcs
--add-pois-to-areas --location-autofill=1 --route --net  
--country-abbr=at --country-name=austria --gmapsupp --mapname=6366 
636600*.osm.gz

Exception in thread main java.lang.StackOverflowError
   at java.util.regex.Pattern$BmpCharProperty.match(Unknown Source)
   at java.util.regex.Pattern$GroupHead.match(Unknown Source)
   at java.util.regex.Pattern$Branch.match(Unknown Source)
   at java.util.regex.Pattern$BranchConn.match(Unknown Source)
   at java.util.regex.Pattern$GroupTail.match(Unknown Source)
   at java.util.regex.Pattern$Curly.match0(Unknown Source)
   at java.util.regex.Pattern$Curly.match(Unknown Source)
   at java.util.regex.Pattern$BmpCharProperty.match(Unknown Source)
   at java.util.regex.Pattern$GroupHead.match(Unknown Source)
   at java.util.regex.Pattern$Branch.match(Unknown Source)
   at java.util.regex.Pattern$Branch.match(Unknown Source)
   at java.util.regex.Pattern$BranchConn.match(Unknown Source)
   at java.util.regex.Pattern$GroupTail.match(Unknown Source)
   at java.util.regex.Pattern$Curly.match0(Unknown Source)
   at java.util.regex.Pattern$Curly.match(Unknown Source)
   at java.util.regex.Pattern$GroupHead.match(Unknown Source)
   at java.util.regex.Pattern$Branch.match(Unknown Source)
   at java.util.regex.Pattern$Branch.match(Unknown Source)
   at java.util.regex.Pattern$BmpCharProperty.match(Unknown Source)
   at java.util.regex.Pattern$Start.match(Unknown Source)
   at java.util.regex.Matcher.search(Unknown Source)
   at java.util.regex.Matcher.find(Unknown Source)
   at java.util.Formatter.parse(Unknown Source)
   at java.util.Formatter.format(Unknown Source)
   at java.util.Formatter.format(Unknown Source)
   at uk.me.parabola.imgfmt.app.Coord.toDegreeString(Coord.java:191)
   at 
uk.me.parabola.imgfmt.app.net.RouteCenter.init(RouteCenter.java:42)
   at 
uk.me.parabola.imgfmt.app.net.NOD1Part.toRouteCenter(NOD1Part.java:286)
   at 
uk.me.parabola.imgfmt.app.net.NOD1Part.subdivide(NOD1Part.java:242)
   at 
uk.me.parabola.imgfmt.app.net.NOD1Part.subdivide(NOD1Part.java:266)
   at 
uk.me.parabola.imgfmt.app.net.NOD1Part.subdivide(NOD1Part.java:266)
   at 
uk.me.parabola.imgfmt.app.net.NOD1Part.subdivide(NOD1Part.java:266)
   at 
uk.me.parabola.imgfmt.app.net.NOD1Part.subdivide(NOD1Part.java:266)

.
This continues for around 200 lines, then breaks operation.

Different output with -ea:
D:\Garmin\mkgmap_680start /b /wait java -jar -ea -Xmx4800M mkgmap.jar 
--latin1 --lower-case --no-sorted-roads --ignore-maxspeeds 
--ignore-turn-restrictions --remove-short-arcs --add-pois-to-area
s --location-autofill=1 --description=main1_openmtbmap_at --route --net 
--country-abbr=at --country-name=austria --gmapsupp --mapname=6366 
636600*.osm.gz
Exception in thread main java.lang.AssertionError: trying to get 
center of empty BBox
   at 
uk.me.parabola.imgfmt.app.net.NOD1Part$BBox.center(NOD1Part.java:141)
   at 
uk.me.parabola.imgfmt.app.net.NOD1Part.toRouteCenter(NOD1Part.java:286)
   at 
uk.me.parabola.imgfmt.app.net.NOD1Part.subdivide(NOD1Part.java:242)
   at 
uk.me.parabola.imgfmt.app.net.NOD1Part.subdivide(NOD1Part.java:266)
   at 
uk.me.parabola.imgfmt.app.net.NOD1Part.subdivide(NOD1Part.java:266)
   at 
uk.me.parabola.imgfmt.app.net.NOD1Part.subdivide(NOD1Part.java:266)
   at 
uk.me.parabola.imgfmt.app.net.NOD1Part.subdivide(NOD1Part.java:266)
   at 
uk.me.parabola.imgfmt.app.net.NOD1Part.subdivide(NOD1Part.java:266)
   at 
uk.me.parabola.imgfmt.app.net.NOD1Part.subdivide(NOD1Part.java:266)
   at 
uk.me.parabola.imgfmt.app.net.NOD1Part.subdivide(NOD1Part.java:266)
   at 
uk.me.parabola.imgfmt.app.net.NOD1Part.subdivide(NOD1Part.java:266)
   at 
uk.me.parabola.imgfmt.app.net.NOD1Part.subdivide(NOD1Part.java:266)
   at 
uk.me.parabola.imgfmt.app.net.NOD1Part.subdivide(NOD1Part.java:266)
   at 
uk.me.parabola.imgfmt.app.net.NOD1Part.subdivide(NOD1Part.java:266)
   at