mantlik / osm2garmin

Convert OpenStreetMap data to Garmin-compatible format.
http://osm2garmin.mantlik.org/
GNU General Public License v2.0
9 stars 1 forks source link

Error when trying to create more then 1 region map. #126

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When i have enabled 2 or more regions to make maps of them, osm2garmin stops 
everytime with a error processing regions.

When making map from only 1 region enabled, there's no problem at all.

So running every region one by one takes a lot of time.

Theres problem even if i have "Skip planet update" enabled or disabled.

Original issue reported on code.google.com by mit...@gmail.com on 16 Oct 2013 at 5:42

GoogleCodeExporter commented 9 years ago
Or maybe there is a problem when having "Skip planet update" enabled.

http://pastie.org/private/7popbesshonzvqejtpcisa

Original comment by mit...@gmail.com on 16 Oct 2013 at 5:46

GoogleCodeExporter commented 9 years ago
Dear user, according to the provided log, your region definition is incorrect. 
The Osmosis utility complies that the top coordinate is lower than bottom one.

Original comment by mantl...@gmail.com on 16 Oct 2013 at 6:10

GoogleCodeExporter commented 9 years ago
Well ok, still having problem with the other stuff i started this issue with. :)

Original comment by mit...@gmail.com on 16 Oct 2013 at 6:24

GoogleCodeExporter commented 9 years ago
What do you mean by "other stuff"? Please upload both logs in order to assess 
the problem.

Original comment by mantl...@gmail.com on 16 Oct 2013 at 7:23

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Ok, seems like that was the problem. Maybe some notes about how the regions 
should be defined, like lat1 lon1 never should be higher than lat2 lon2 ? 

Original comment by mit...@gmail.com on 16 Oct 2013 at 8:46

GoogleCodeExporter commented 9 years ago
This is the problem of Osmosis. Please report it upstream if you think that it 
should be changed.

Btw. the description at the Page 8 of the manual clearly states that lat1<lat2 
and lon1<lon2.

Original comment by mantl...@gmail.com on 16 Oct 2013 at 9:42

GoogleCodeExporter commented 9 years ago
Is this also some osmosis problem? 
http://pastie.org/private/kjzb4mowewgey99izgjyta

This happens when trying to create more than 1 map (region) without the "Skip 
planet update" checked.

And when looking in the directory where the maps should be created, the 
directory for Denmark isn't even created.

Original comment by mit...@gmail.com on 18 Oct 2013 at 7:56

GoogleCodeExporter commented 9 years ago
Dear user, most probably Osm2Garmin is not able to create the "Denmark" 
directory, possibly because of the permissions problem. The exact error message 
and stack trace should be located in the other log, not the log provided in 
your link. The error message produced by Osmosis is the consequence of 
non-existent directory and missing regional pbf file.

Possible workaround could be to create the "Denamrk" directory manually and 
re-run the software.

Btw. if possible, next time attach your logs here instead of providing link to 
external source. If you do so, the attached logs are permanently available to 
other users for reverence independently of the external service.

Original comment by mantl...@gmail.com on 18 Oct 2013 at 10:49

GoogleCodeExporter commented 9 years ago
There is no problem with permission in the directory. osm2garmin removes 
Denmark, or whatever name it is on the region. It couldn't have something with 
the "Delete old maps when processing starts"? Because when i start the 
processing, i have i.e. Denmark, Sweden, Finland, but when planet update is 
finished and the pbf's for the regions are going to be created, i get this 
error because the directories are gone.

Where is the other log?

Original comment by mit...@gmail.com on 18 Oct 2013 at 11:05

GoogleCodeExporter commented 9 years ago
This happens even if i just tries to process 1 region i see now.

Original comment by mit...@gmail.com on 18 Oct 2013 at 11:05

GoogleCodeExporter commented 9 years ago
"Delete old maps when processing starts" clears the content of each region 
directory but not the directory itself.

Location of the other log depends on your operating system. On Windows 
Vista/7/8 it is located somewhere here:

c:\Users\<your-user-name>\AppData\Roaming\osm2garmin\dev\var\log\messages.log

Original comment by mantl...@gmail.com on 18 Oct 2013 at 11:49

GoogleCodeExporter commented 9 years ago
Ok, here are 2 logs from different runs.

Original comment by mit...@gmail.com on 18 Oct 2013 at 11:54

Attachments:

GoogleCodeExporter commented 9 years ago
According to the provided logs, you are most probably facing known problem with 
deletion/creation files in some Java versions. Your map directory is deleted 
but not referred to be deleted (directory cache is not updated) which prevents 
it's re-creation.

You can try the following to fix the problem:

- upgrade your Java installation to the newest version and/or
- delete individual directories manually before starting the software and 
uncheck "Delete old maps when processing starts".

Original comment by mantl...@gmail.com on 18 Oct 2013 at 12:39

GoogleCodeExporter commented 9 years ago
It didn't help with upgrade of Java (both x86 and x64).

Original comment by mit...@gmail.com on 19 Oct 2013 at 1:09

GoogleCodeExporter commented 9 years ago
When i manually deleted every region directory it worked without any problem. 
Also unchecked the "Delete old maps.....".

Original comment by mit...@gmail.com on 19 Oct 2013 at 5:28

GoogleCodeExporter commented 9 years ago
Dear user, thank you for your feedback.

Original comment by mantl...@gmail.com on 19 Oct 2013 at 10:01