-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
possible regression in the export
branch
#62
Comments
Yep, rev 2511be9 works. |
The code where this fails was only introduced recently. This looks like a bug in libosmium. Problem is that the place where this bug occurs is really dependent on the input data and will likely not happen with small test files. What are you using as input? Can you give me that file somehow? |
@emilburzo Could you try something for me: Find the function |
@joto I changed the
(is that correct?) and recompiled osmium-tool, but it still crashes unfortunately:
Although it did progress a lot further (~16GB geojsonseq file) than before (~4GB geojsonseq file) My workflow is:
I don't have where to host that huge file, but I can send you the list of tags (where?) if it helps. |
I think I found the problem. Can you recompile with newest libosmium master and try again? |
(And just btw: Why are you writing the file into the osm format and not using pbf? That would make steps 2 and 3 much faster.) |
It went a lot further this time, the geojsonseq output file has ~30 GB (the complete one has ~38 GB)
Just an assumption I never actually tested (I assumed plaintext would need less processing/be faster). Thanks for the tip! |
Okay, that doesn't look good. Can you tell me the exact input data you used, libosmium and osmium-tool software versions involved and the exact commands you used so that i can try to reproduce the problem? Oh, and how much memory do you have? |
Exact steps for a vanilla Ubuntu 16.04 install:
I'm using the latest From osmium's output:
30.5 GB (AWS r4.xlarge) |
I think I have found the problem. It is in libosmium. Can you try with current master? (And btw: Instead of |
Spot on! it worked:
Thanks for your help (and the very useful tips!). |
Hi!
I'm trying to convert a ~130 GB osm file to geojsonseq using the code from the
export
branch.The exact command I'm using is:
osmium export -vi sparse_file_array -u type_id -r filtered.osm -o filtered.geojsonseq
But I'm getting the following error:
This worked previously (the file did have about 10 GB less data though), so I'm not sure if it's a regression in the
export
branch, inlibosmium
or if I just need more RAM?I'm going to try to use the code from rev 2511be9 to try and identify the regression, but if you have any ideas please let me know :)
PS: Amazing tool!
The text was updated successfully, but these errors were encountered: