Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map of Netherlands on ftp.mapsforge.org/maps/europe/ is defective #158

Closed
mapsforge opened this issue Nov 6, 2014 · 22 comments
Closed

Map of Netherlands on ftp.mapsforge.org/maps/europe/ is defective #158

mapsforge opened this issue Nov 6, 2014 · 22 comments

Comments

@mapsforge
Copy link
Owner

From thijsrec...@gmail.com on July 18, 2011 00:01:08

What steps will reproduce the problem? 1. Go to ftp://ftp.mapsforge.org/maps/europe/ 2. The file "netherlands-0.2.4.map" has size 3.9kB
3. If downloaded, it does not work with mapsforge if loaded What is the expected output? What do you see instead? The expected output is a displayed map of the Netherlands on the screen of the mobile device. The application "AdvancedMapViewer" crashes when this mapfile is loaded. What version of the product are you using? On what operating system? Version 0.2.4 of mapsforge. On android 2.3.3. Please provide any additional information below.

Original issue: http://code.google.com/p/mapsforge/issues/detail?id=158

@mapsforge
Copy link
Owner Author

From jjbross@gmail.com on July 20, 2011 13:30:08

Hi,

thanks for reporting this problem.

Looking at the log output of the map generation routine shows that the process wants to produce a "map tile" that is larger than 10 MB. This leads to an overflow of an internal byte buffer in the map file writer as such large map tiles never should exist. I will investigate in the next few days why such a large tile is produced. Until then I will exclude the Netherlands from the map generation routine.

Status: Accepted
Labels: -Priority-Medium Priority-High

@mapsforge
Copy link
Owner Author

From thijsrec...@gmail.com on August 16, 2011 09:40:53

Hi,

Thanks for the quick response! I have tried generating the mapfile of the Netherlands myself (downloaded both netherlands.osm.pbf and netherlands.osm.bz2 from http://download.geofabrik.de/osm/europe/ and used osmosis to generate .map file). This did not work, giving the same overflow error.

I have an old .map file of the netherlands which was generated on 8 juli 2011. At that point there was already a problem with the map file, but it was working ok for higher zoomlevels (so zoomed in) -> when zooming out (trying to obtain an overview of the Netherlands) advancedmapviewer crashes. The old .map file can be downloaded from http://server.resea.nl/netherlands_08072011.map . Maybe you can use it for finding the problem.

@mapsforge
Copy link
Owner Author

From thilo.mu...@gmail.com on August 16, 2011 11:39:58

Whenever the AMV crashes, please try to capture the stacktrace from the LogCat output of your device. It really helps us to analyze the problem and fix the faulty code.

@mapsforge
Copy link
Owner Author

From thijsrec...@gmail.com on August 16, 2011 12:14:32

I performed the following steps:

  • Run AMV unchanged on Android 2.3.4 device.
  • Select map of the Netherlands of 8 july 2011 on SD-card (see post "2").
  • Zoom out a few times.
  • When AMV is building the last "zoomed out" view of the map, the application crashes.

LogCat says the following:

  1. FATAL EXCEPTION: CanvasRenderer
  2. java.lang.ArrayIndexOutOfBoundsException
  3. at org.mapsforge.android.maps.MapDatabase.readVariableByteEncodedUnsignedInt(MapDatabase.java:1340)
  4. at org.mapsforge.android.maps.MapDatabase.processBlock(MapDatabase.java:674)
  5. at org.mapsforge.android.maps.MapDatabase.executeQuery(MapDatabase.java:1605)
  6. at org.mapsforge.android.maps.DatabaseMapGenerator.executeJob(DatabaseMapGenerator.java:1710)
  7. at org.mapsforge.android.maps.MapGenerator.run(MapGenerator.java:91)

I also included a screenshot showing the last line of runned code, after which AMV crashes (and the stacktrace above is created).

Just let me know if i can help you by providing additional information.

Attachment: Eclipse_Last_Step_Before_Crash.png

@mapsforge
Copy link
Owner Author

From thijsrec...@gmail.com on August 23, 2011 15:06:21

Hereby the stacktrace of osmosis, crashing on generating the map file of the Netherlands. I used the latest mapfile-writer.jar via SVN.

Attachment: log.txt

@mapsforge
Copy link
Owner Author

From paragon2...@gmail.com on October 03, 2011 23:33:45

How can i create the map? Can you create for me the map in Ho Chi Minh City in Vietnam?

@mapsforge
Copy link
Owner Author

From max.doer...@googlemail.com on October 04, 2011 04:25:53

Here you can find a map of Vietnam: http://www.megaupload.com/?d=UIOY2WVI To create maps have a look at: https://code.google.com/p/mapsforge/wiki/MapFileWriterOsmosis and https://code.google.com/p/mapsforge/wiki/MapDataCompilation or this work in progress project to simplify the installation and usage of osmosis to create mapfiles: https://github.com/moep/easy-osmosis

@mapsforge
Copy link
Owner Author

From lordzden...@gmail.com on October 04, 2011 10:17:40

How can i create the map? Can you create for me the map in Negros Oriental Philippines?

@mapsforge
Copy link
Owner Author

From max.doer...@googlemail.com on October 04, 2011 14:04:09

Have a look at the links I posted above. And this is not really the right place to discuss this, so please refer to the mailing list for further questions.

@mapsforge
Copy link
Owner Author

From thijsrec...@gmail.com on December 06, 2011 14:38:50

Hello, just being curious: What is the current state of progress on this issue?

@mapsforge
Copy link
Owner Author

From GuustFla...@gmail.com on January 03, 2012 12:19:13

Any progress? Strange thing is I can create a .map file of the Netherlands, without errors, with the Osmosis 0.39 and Map-filewriter 0.2.4. I use the netherlands.osm.pbf file (I have tried several dates in november 2011) from http://download.geofabrik.de/osm/europe/ It would be great if the netherlands.map file is created on mapsforge again. Now it takes me a long night converting it...
Can you please try again?

@mapsforge
Copy link
Owner Author

From thijsrec...@gmail.com on January 04, 2012 09:49:59

is it possible for you to share your generated map of the Netherlands? :) Would make my day/week/month :), because i am still working with a partially broken one.

@mapsforge
Copy link
Owner Author

From GuustFla...@gmail.com on January 04, 2012 11:07:14

See http://www.megaupload.com/?d=OMUXT94W There is still a white square in this map on zoom level 11, but no crashes and I only use higher zoomlevels...
I use this map with OruxMaps, which is a great program on android!!
Enjoy it!

@mapsforge
Copy link
Owner Author

From thijsrec...@gmail.com on January 05, 2012 02:46:45

Thank you very very much!! Downloading it right now :)!

@mapsforge
Copy link
Owner Author

From GuustFla...@gmail.com on January 06, 2012 08:59:25

Did my file work for you?

@mapsforge
Copy link
Owner Author

From geert.ro...@gmail.com on January 29, 2012 06:16:02

There is still no map for the Netherlands, could someone compile and add a map to the mapsforge ftp server?

and MegaUpload is down :(

@mapsforge
Copy link
Owner Author

From ma...@vanendt.nl on January 29, 2012 13:48:02

@Geert: Give me a place where to dump and I'll upload. (can't find any accepting >200mb)

@mapsforge
Copy link
Owner Author

From thilo.mu...@gmail.com on March 09, 2012 09:43:21

Finally we had the necessary time to investigate the root cause of this problem. It boiled down to several limitations in the binary map file format (version 2) which in addition were not correctly handled by the map-writer and map-reader.

For the upcoming 0.3.0 version we have made several changes to overcome all these limitations. In our tests the Netherlands are now rendered correctly.

Status: Started
Owner: jjbross@gmail.com
Cc: thilo.mu...@gmail.com

@mapsforge
Copy link
Owner Author

From GuustFla...@gmail.com on March 09, 2012 14:42:07

This is good news! When can we expect the new 0.3.0 version? Estimation :) hours, days, weeks, months :(
Thanks anyway!

@mapsforge
Copy link
Owner Author

From jjbross@gmail.com on March 15, 2012 14:56:45

Status: Fixed

@mapsforge
Copy link
Owner Author

From valentijnscholten on September 15, 2012 01:15:34

There's still no map file for the Netherlands (0.2.4).
Anyone has a working map file to share with us?

@mapsforge
Copy link
Owner Author

From valentijnscholten on September 15, 2012 01:18:50

Note: see #304 for the reason the file is missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant