osmandmapcreator keeps crashing

227 views
Skip to first unread message

methodus

unread,
Jan 30, 2013, 3:43:38 PM1/30/13
to osm...@googlegroups.com
Hi,

I tried to create offline map of Mauritius for my vacations. The offline maps in osmand+ do not have all routes and streets. So, I downloaded the latest african maps from GeoFabrik.de. When I try to convert it to *.obf, Java keeps crashing every time it passes [ 70 / 100 ]. I increasing the heapsize to 2GB. Sometimes, I get an IndexArrayOutOfBoundsException, sometimes it crashes without any exeption, sometimes it crashed with a log (I attached one of them).

Could anyone pleae help me?
hs_err_pid1372.log.txt

Victor Shcherb

unread,
Jan 30, 2013, 6:44:06 PM1/30/13
to osmand
Hello,

If it crashes with that log file then unfortunately nothing could be fixed easily. Looks like sqlite database version we used is buggy on your environment. If you can attach IndexArrayOutOfBoundsException message, this one could be fixed in Java at least. 


Victor


--
You received this message because you are subscribed to the Google Groups "Osmand" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osmand+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

methodus

unread,
Jan 31, 2013, 12:19:10 PM1/31/13
to osm...@googlegroups.com
Hi,

I downloaded the app again. This time I used Ubuntu 12.04., however it crashed again at the same step. I attached a screenshot of the message shown. On a second try, it crashed in libsqlitejdbc.so (or similar).

Is there another version of the program I could use or is there anybody who could create a map of Mauritius for me?
message.png

methodus

unread,
Jan 31, 2013, 1:03:26 PM1/31/13
to osm...@googlegroups.com
Hi,

some more information about the crashes. I hope it helps solving the issue.

Ubuntu said, the crash occured in /tmp/sqlite-3.7.6.3-libsqlitejdbc.so

I got the following error messages on the cli:

...
WARNUNG: Not using boundary: null alevel:-1 type: has opened polygons:false no. of outer polygons:1
28.01.2013 21:27:33 net.osmand.data.preparation.address.IndexAddressCreator indexBoundariesRelation
WARNUNG: Not using boundary: null alevel:-1 type: has opened polygons:false no. of outer polygons:1
28.01.2013 21:27:33 net.osmand.data.preparation.address.IndexAddressCreator indexBoundariesRelation
WARNUNG: Not using boundary: Bir Anzarane alevel:-1 type: has opened polygons:false no. of outer polygons:1
28.01.2013 21:27:33 net.osmand.swing.ProgressDialog startTask
FEIN: Memory before task exec: 100335616 free : 42710608
28.01.2013 21:27:33 net.osmand.swing.ProgressDialog startTask
FEIN: Zusammenführen von Orten und Grenzen … started after 89713 ms
28.01.2013 21:27:34 net.osmand.swing.ProgressDialog startTask
FEIN: Memory before task exec: 100335616 free : 42648664
28.01.2013 21:27:34 net.osmand.swing.ProgressDialog startTask
FEIN: Zusammenstellen von Wegen mit Adress- und Kartendaten … started after 175 ms
28.01.2013 21:27:42 net.osmand.swing.ProgressDialog startTask
FEIN: Memory before task exec: 97779712 free : 71814760
28.01.2013 21:27:42 net.osmand.swing.ProgressDialog startTask
FEIN: Verarbeite OSM Knoten … started after 8918 ms
28.01.2013 21:27:44 net.osmand.swing.ProgressDialog startTask
FEIN: Memory before task exec: 97779712 free : 56465064
28.01.2013 21:27:44 net.osmand.swing.ProgressDialog startTask
FEIN: Verarbeite OSM Wege … started after 1219 ms
28.01.2013 21:27:44 net.osmand.data.preparation.IndexCreator generateIndexes
SCHWERWIEGEND: Log exception
java.lang.IndexOutOfBoundsException: Index: 0
    at java.util.Collections$EmptyList.get(Collections.java:3164)
    at net.osmand.data.preparation.IndexRouteCreator$RouteBorderLines.addWay(IndexRouteCreator.java:1172)
    at net.osmand.data.preparation.IndexRouteCreator.iterateMainEntity(IndexRouteCreator.java:117)
    at net.osmand.data.preparation.IndexCreator.iterateMainEntity(IndexCreator.java:237)
    at net.osmand.data.preparation.IndexCreator.access$800(IndexCreator.java:47)
    at net.osmand.data.preparation.IndexCreator$9.iterateEntity(IndexCreator.java:597)
    at net.osmand.data.preparation.OsmDbAccessor.iterateOverEntities(OsmDbAccessor.java:236)
    at net.osmand.data.preparation.IndexCreator.generateIndexes(IndexCreator.java:594)
    at net.osmand.swing.OsmExtractionUI$12.run(OsmExtractionUI.java:519)
    at net.osmand.swing.ProgressDialog$WorkerThread.run(ProgressDialog.java:87)
[thread 140008001287936 also had an error]#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV
 (0xb) at pc=0x00007f561c286f41, pid=9341, tid=140007878653696
#
# JRE version: 6.0_24-b24
# Java VM: OpenJDK 64-Bit Server VM (20.0-b12 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea6 1.11.4
# Distribution: Ubuntu 12.04 LTS, package 6b24-1.11.4-1ubuntu0.12.04.1
# Problematic frame:
# C  [sqlite-3.7.6.3-libsqlitejdbc.so+0x12f41]  sqlite3_backup_pagecount+0x241
#
# An error report file with more information is saved as:
# /home/savop/Downloads/OsmAndMapCreator-development/hs_err_pid9341.log
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
#   https://bugs.launchpad.net/ubuntu/+source/openjdk-6/
#
Aborted (core dumped)

Victor Shcherb

unread,
Jan 31, 2013, 4:28:05 PM1/31/13
to osmand
Thanks, 
Fixed that exception. Please try the latest version.

Victor

methodus

unread,
Feb 1, 2013, 7:57:23 AM2/1/13
to osm...@googlegroups.com
Hi,

thank you for that fix. It worked for me now. However, the resulting *.obj is quite small and when I try to view it in OsmAnd+, I can't see any differences between the map from Africa and the one, I created with the map creator. When I load the tiles from Mapnik on my device, the missing parts of the map show up. Is there a way to check, which parts of the map have been generated?

You may also check it for yourself: Mahebourg is located at the east coast of Mauritius. It is missing on the Africa offline map, but exists on Mapnik. What can I do here?

Victor Shcherb

unread,
Feb 1, 2013, 7:03:03 PM2/1/13
to osmand
Probably it is missing in the input *.osm file. To fix it try to export directly from osm.org site this location.

Victor

Max

unread,
Feb 1, 2013, 8:32:23 PM2/1/13
to Osmand
> You may also check it for yourself: Mahebourg is located at the east coast
> of Mauritius. It is missing on the Africa offline map, but exists on
> Mapnik. What can I do here?

You could inform Geofabrik.

Have a look at BBBike extract:
http://extract.bbbike.org/?sw_lng=57.057&sw_lat=-20.783&ne_lng=58.085&ne_lat=-19.585&format=obf.zip&layers=0B00000T&coords=57.507,-20.783|57.943,-20.638|58.085,-20.325|58.078,-20.001|58.004,-19.598|57.531,-19.585|57.057,-20.269|57.072,-20.64

Regards,
Max

methodus

unread,
Feb 2, 2013, 7:02:06 AM2/2/13
to osm...@googlegroups.com
Thank you very much for the hint with BBBike.

I'll inform geofabrik about the missing data.

Reply all
Reply to author
Forward
0 new messages