Comments (4)
The program works for me. What machine are you using? SparseTable doesn't work on 32bit machines, but it should fail when compiling on 32bit.
from libosmium.
I'm using 64-bit Ubuntu. Interestingly, using the attached code the segfault happens only in a VM (on VMware Player 6.0.1) running a quite out-of-the-box installation of Ubuntu 13.10 Desktop 64-bit. When I copy the binary to the host system (Ubuntu 64-bit as well), the segfault doesn't happen. (I encountered a segfault on the host system though using another, more complex program and the Germany extract.)
The Andorra file ( http://download.geofabrik.de/europe/andorra-latest.osm.pbf ) seems to be affected as well. It is much smaller than the Switzerland file and may therefore be more convenient to use.
What can I do to shed more light on this issue?
from libosmium.
This is probably just an out-of-memory condition. See joto/osmium#70 for the same issue with the old Osmium. Unfortunately the Sparsetable implementation doesn't tell us when it is running out of memory, so I can't detect that. Looking at the Sparsetable code there are a few checks and asserts, but not everywhere where it might do some memory allocation.
The Sparsetable development seems to have stopped, the code abandonned. Maybe we have to switch to a different default index for our examples.
You can try using osmium::index::map::VectorBasedSparseMap instead of osmium::index::map::SparseTable. It is also quite space efficient for small datasets.
from libosmium.
It seems, it was indeed a problem of having not enough memory. I didn't recognize it, because the System Monitor still showed a lot of free memory. Adding swap space fixed the issue.
from libosmium.
Related Issues (20)
- o5m parser issue HOT 2
- o5m parser issue, part 2 HOT 3
- Anychance to have a C interface ? HOT 1
- ctest failing on newly compiled code HOT 1
- Please reconsider the fadvise() usage HOT 3
- Increase maximimum integers in opl_parser_functions.hpp HOT 4
- Lots of warnings after #5d50405 in VS2019 HOT 5
- Unable to compile with c++20 when using precompiled binaries HOT 8
- Failing to compile libosmium: 'protozero/types.hpp' file not found HOT 5
- Incorrect proj usage HOT 1
- libosmium no longer successfully builds after `v2.17.1` on CentOS 7 HOT 2
- Need help, how to add altitude to libosmium HOT 2
- Missing prepare_for_lookup in test_members_database.cpp HOT 1
- heads-up: PROJ_LIB is now deprecated (use PROJ_DATA instead)
- io_test_bzip2 fails on Alpine Linux HOT 3
- AppVeyor builds fail due to missing LZ4 HOT 5
- Print offending string in PBF-Decoder
- installation make error HOT 2
- Does libosmium work with MacOS (M series chip)
- Performance Issues with `timegm` called from `parse_timestamp` on iOS 16.2 HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libosmium.