logo separator

[mkgmap-dev] How to solve/debug weird problem

From Johannes Formann johannes at formann.de on Sat Jan 22 13:22:29 GMT 2011

WanMil <wmgcnfg at web.de> wrote:

Hello WanMil,

> > The full output from the whole build process is copied to a logfile:
> > http://pastebin.com/jUQpzvYz

> ---
> line 3800ff: [javac] 
> /home/osm/build/mkgmap/trunk/src/uk/me/parabola/imgfmt/app/Writeable.java:5: 
> warning: unmappable character for encoding ASCII
> 
> You seem to compile with encoding ASCII. In case there are some non 
> ASCII characters in the code you will get problems.

How shall I change that? setting the LC enviroment variables to something
fitting?

> ---
> line 1101ff: [copy] trunk/.classpath added as trunk/.classpath doesn't 
> exist.
> 
> There are hundres of such messages in the logfile. Some parts of the 
> build script seem not to work. Maybe this causes that not the latest 
> mkgmap version is used?

I'm quite shure, this comes from copying betwen the persitent dir and the build
dir (so it has only to update the sources, no full re download every time)

> ---
> line 1051ff:
> There are several error message in the patching section.
> #patch_patches:
> #Skipped because property 'isWindows' not set.
> #patch_patches:  duration 0 seconds
> 
> Are you sure that your patches are applied?

Yes, the debug patch is applied the same way.

> I haven't read most of your other emails where you checked Markos 
> proposals. So I don't know if you have tried to run a clean mkgmap build 
> downloaded from the mkgmap website using your splitted files and your 
> arguments. If you haven't done right now please do so and check if the 
> error still occurs.


Here is a (I think) clean build):

# delete everything related to mkgmap
osm at kalium:~/build$ rm -r mkgmap*
# do a checkout
osm at kalium:~/build$ mkdir mkgmap
osm at kalium:~/build$ cd mkgmap/
osm at kalium:~/build/mkgmap$ svn co http://svn.parabola.me.uk/mkgmap/trunk
A    trunk/test
A    trunk/test/uk
A    trunk/test/uk/me
A    trunk/test/uk/me/parabola
A    trunk/test/uk/me/parabola/imgfmt
...
A    trunk/Makefile
 U   trunk
Checked out revision 1792.

# apply the debug patch
cd trunk/src/
osm at kalium:~/build/mkgmap/trunk/src$ patch -p1 </home/osm/radkarte/debug.patch 
patching file uk/me/parabola/imgfmt/app/trergn/Polyline.java

# build
osm at kalium:~/build/mkgmap/trunk/src$ cd ..
osm at kalium:~/build/mkgmap/trunk$ ant dist
Buildfile: build.xml

prepare:
    [mkdir] Created dir: /home/osm/build/mkgmap/trunk/build/classes

compile:
    [javac] Compiling 352 source files to
/home/osm/build/mkgmap/trunk/build/classes
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/imgfmt/app/Writeable.java:5:
warning: unmappable character for encoding ASCII
    [javac]  * @author Thomas Lu??nig
    [javac]                     ^
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/imgfmt/app/Writeable.java:5:
warning: unmappable character for encoding ASCII
    [javac]  * @author Thomas Lu??nig
    [javac]                      ^
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/imgfmt/app/labelenc/Format6Encod
er.java:26: warning: unmappable character for encoding ASCII
    [javac]  * For example K??rnerstra??e would become KORNERSTRASSE,
    [javac]                 ^
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/imgfmt/app/labelenc/Format6Encod
er.java:26: warning: unmappable character for encoding ASCII
    [javac]  * For example K??rnerstra??e would become KORNERSTRASSE,
    [javac]                  ^
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/imgfmt/app/labelenc/Format6Encod
er.java:26: warning: unmappable character for encoding ASCII
    [javac]  * For example K??rnerstra??e would become KORNERSTRASSE,
    [javac]                           ^
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/imgfmt/app/labelenc/Format6Encod
er.java:26: warning: unmappable character for encoding ASCII
    [javac]  * For example K??rnerstra??e would become KORNERSTRASSE,
    [javac]                            ^
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/imgfmt/app/labelenc/Format6Encod
er.java:27: warning: unmappable character for encoding ASCII
    [javac]  * ????povsk?? would become RIPOVSKA etc.
    [javac]    ^
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/imgfmt/app/labelenc/Format6Encod
er.java:27: warning: unmappable character for encoding ASCII
    [javac]  * ????povsk?? would become RIPOVSKA etc.
    [javac]     ^
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/imgfmt/app/labelenc/Format6Encod
er.java:27: warning: unmappable character for encoding ASCII
    [javac]  * ????povsk?? would become RIPOVSKA etc.
    [javac]      ^
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/imgfmt/app/labelenc/Format6Encod
er.java:27: warning: unmappable character for encoding ASCII
    [javac]  * ????povsk?? would become RIPOVSKA etc.
    [javac]       ^
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/imgfmt/app/labelenc/Format6Encod
er.java:27: warning: unmappable character for encoding ASCII
    [javac]  * ????povsk?? would become RIPOVSKA etc.
    [javac]             ^
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/imgfmt/app/labelenc/Format6Encod
er.java:27: warning: unmappable character for encoding ASCII
    [javac]  * ????povsk?? would become RIPOVSKA etc.
    [javac]              ^
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/imgfmt/app/labelenc/TableCreator
.java:39: warning: unmappable character for encoding ASCII
    [javac]             out.println("# One or more characters can be used, for
example for a character ?? which");
    [javac]
^
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/imgfmt/app/labelenc/TableCreator
.java:39: warning: unmappable character for encoding ASCII
    [javac]             out.println("# One or more characters can be used, for
example for a character ?? which");
    [javac]
^
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/imgfmt/app/typ/TYPFile.java:16:
warning: unmappable character for encoding ASCII
    [javac]  * Change: Thomas Lu??nig <gps at suche.org>
    [javac]                     ^
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/imgfmt/app/typ/TYPFile.java:16:
warning: unmappable character for encoding ASCII
    [javac]  * Change: Thomas Lu??nig <gps at suche.org>
    [javac]                      ^
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/imgfmt/app/typ/TYPFile.java:39:
warning: unmappable character for encoding ASCII
    [javac]  * @author Thomas Lu??nig
    [javac]                     ^
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/imgfmt/app/typ/TYPFile.java:39:
warning: unmappable character for encoding ASCII
    [javac]  * @author Thomas Lu??nig
    [javac]                      ^
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/imgfmt/app/typ/TYPHeader.java:27
: warning: unmappable character for encoding ASCII
    [javac]  * @author Thomas Lu??nig
    [javac]                     ^
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/imgfmt/app/typ/TYPHeader.java:27
: warning: unmappable character for encoding ASCII
    [javac]  * @author Thomas Lu??nig
    [javac]                      ^
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/mkgmap/build/Locator.java:454:
warning: unmappable character for encoding ASCII
    [javac]             decodeString =
decodeString.replaceAll("??","AE").replaceAll("??","UE").replaceAll("??","OE");
    [javac]                                                     ^
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/mkgmap/build/Locator.java:454:
warning: unmappable character for encoding ASCII
    [javac]             decodeString =
decodeString.replaceAll("??","AE").replaceAll("??","UE").replaceAll("??","OE");
    [javac]                                                      ^
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/mkgmap/build/Locator.java:454:
warning: unmappable character for encoding ASCII
    [javac]             decodeString =
decodeString.replaceAll("??","AE").replaceAll("??","UE").replaceAll("??","OE");
    [javac]
^
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/mkgmap/build/Locator.java:454:
warning: unmappable character for encoding ASCII
    [javac]             decodeString =
decodeString.replaceAll("??","AE").replaceAll("??","UE").replaceAll("??","OE");
    [javac]
^
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/mkgmap/build/Locator.java:454:
warning: unmappable character for encoding ASCII
    [javac]             decodeString =
decodeString.replaceAll("??","AE").replaceAll("??","UE").replaceAll("??","OE");
    [javac]
^
    [javac]
/home/osm/build/mkgmap/trunk/src/uk/me/parabola/mkgmap/build/Locator.java:454:
warning: unmappable character for encoding ASCII
    [javac]             decodeString =
decodeString.replaceAll("??","AE").replaceAll("??","UE").replaceAll("??","OE");
    [javac]
^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 26 warnings

compile-pbf:
     [echo] Protobuf binary format support
    [javac] Compiling 3 source files to
/home/osm/build/mkgmap/trunk/build/classes

build:
     [copy] Copying 391 files to /home/osm/build/mkgmap/trunk/build/classes

dist:
    [mkdir] Created dir: /home/osm/build/mkgmap/trunk/dist
    [mkdir] Created dir: /home/osm/build/mkgmap/trunk/dist/doc/api
      [jar] Building jar: /home/osm/build/mkgmap/trunk/dist/mkgmap.jar
     [copy] Copying 18 files to /home/osm/build/mkgmap/trunk/dist/doc
     [copy] Copying 4 files to /home/osm/build/mkgmap/trunk/dist
    [mkdir] Created dir: /home/osm/build/mkgmap/trunk/dist/examples
     [copy] Copying 11 files to /home/osm/build/mkgmap/trunk/dist/examples

BUILD SUCCESSFUL
Total time: 6 seconds

# copy it
osm at kalium:~/build/mkgmap/trunk$ cp dist/mkgmap.jar ../../

#run it
osm at kalium:~/build/mkgmap/trunk$ cd ../../
osm at kalium:~/build$ java -Xms256m -Xmx2560m -ea -jar mkgmap.jar --max-jobs=1
--latin1 --code-page=1252 --add-pois-to-areas --adjust-turn-headings
--drive-on-right --check-roundabouts --remove-short-arcs=3.3 --gmapsupp
--tdbfile --index M0001736.TYP -c /home/osm/build/template.args
SEVERE (MapSplitter): /home/osm/build/59420002.osm.gz: Area too small to split
at http://www.openstreetmap.org/?mlat=51.83339&mlon=10.50572&zoom=17 (reduce the
density of points, length of lines, etc.)
SEVERE (MapSplitter): /home/osm/build/59420004.osm.gz: Area too small to split
at http://www.openstreetmap.org/?mlat=51.00671&mlon=14.58289&zoom=17 (reduce the
density of points, length of lines, etc.)
SEVERE (MapSplitter): /home/osm/build/59420050.osm.gz: Area too small to split
at http://www.openstreetmap.org/?mlat=50.33380&mlon=12.17277&zoom=17 (reduce the
density of points, length of lines, etc.)
SEVERE (MapSplitter): /home/osm/build/59420059.osm.gz: Area too small to split
at http://www.openstreetmap.org/?mlat=54.54720&mlon=9.61862&zoom=17 (reduce the
density of points, length of lines, etc.)
SEVERE (MapSplitter): /home/osm/build/59420059.osm.gz: Area too small to split
at http://www.openstreetmap.org/?mlat=54.63765&mlon=9.67061&zoom=17 (reduce the
density of points, length of lines, etc.)
java.lang.AssertionError: deltaLong = 36103
        at
uk.me.parabola.imgfmt.app.trergn.MapObject.setDeltaLong(MapObject.java:139)
        at
uk.me.parabola.imgfmt.app.trergn.MapObject.setLongitude(MapObject.java:128)
        at
uk.me.parabola.imgfmt.app.trergn.LinePreparer.calcLatLong(LinePreparer.java:176)
        at
uk.me.parabola.imgfmt.app.trergn.LinePreparer.<init>(LinePreparer.java:62)
        at uk.me.parabola.imgfmt.app.trergn.Polyline.write(Polyline.java:83)
        at
uk.me.parabola.imgfmt.app.trergn.RGNFile.addMapObject(RGNFile.java:140)
        at uk.me.parabola.imgfmt.app.map.Map.addMapObject(Map.java:241)
        at
uk.me.parabola.mkgmap.build.MapBuilder$LineAddFilter.doFilter(MapBuilder.java:10
44)
        at
uk.me.parabola.mkgmap.build.LayerFilterChain.doFilter(LayerFilterChain.java:57)
        at
uk.me.parabola.mkgmap.filters.RemoveEmpty.doFilter(RemoveEmpty.java:61)
        at
uk.me.parabola.mkgmap.build.LayerFilterChain.doFilter(LayerFilterChain.java:57)
        at
uk.me.parabola.mkgmap.filters.LineSplitterFilter.doFilter(LineSplitterFilter.jav
a:60)
        at
uk.me.parabola.mkgmap.build.LayerFilterChain.doFilter(LayerFilterChain.java:57)
        at
uk.me.parabola.mkgmap.build.LayerFilterChain.startFilter(LayerFilterChain.java:7
5)
        at
uk.me.parabola.mkgmap.build.MapBuilder.processLines(MapBuilder.java:902)
        at
uk.me.parabola.mkgmap.build.MapBuilder.makeSubdivision(MapBuilder.java:649)
        at
uk.me.parabola.mkgmap.build.MapBuilder.makeMapAreas(MapBuilder.java:584)
        at uk.me.parabola.mkgmap.build.MapBuilder.makeMap(MapBuilder.java:195)
        at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:97)
        at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:61)
        at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:220)
        at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:217)
        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:8
86)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Exiting - if you want to carry on regardless, use the --keep-going option


Got exception.

greetings

Johannes




More information about the mkgmap-dev mailing list