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

osrm-customize crash with bicycle profile on planet #6159

Closed
geoneutrino opened this issue Nov 25, 2021 · 5 comments
Closed

osrm-customize crash with bicycle profile on planet #6159

geoneutrino opened this issue Nov 25, 2021 · 5 comments
Labels

Comments

@geoneutrino
Copy link

I'm aware of Issue #6122 and complied 5.26 with
cmake .. -DCMAKE_BUILD_TYPE=Release

osrm-extract ... works
osrm-partition --max-cell-sizes=1024,16384,262144,4194304 ... works

but osrm-customize crashes with
[info] RAM: peak bytes used: 205588832256
[error] [exception] std::bad_alloc
#6122 mentions this should not happen with Release build

The server is a debian 11 with 256 GB Ram + 256 GB Swap, so no memory pressure

Doing a osrm-contract to switch to CH on the planet.osrm crashes with a Segmentation fault between 50 and 55 %

Any idea how to get more details on this ? Or is there a current problem/howto build the current planet net with bike ?

Thanks

@mjjbell
Copy link
Member

mjjbell commented Nov 28, 2021

I think you still need more memory.
#6122 mentions they had 512GB RAM and 200GB swap.

@geoneutrino
Copy link
Author

unfortunately not, i added lots of additional swap but got the same error, with similar ram peak usage of ~ 200GB. htop in parallel shows no exzessive ram usage

/usr/local/bin/osrm-customize ./planet-latest.osrm
[info] Loaded edge based graph: 3038031592 edges, 748175550 nodes
[info] Loading partition data took 828.337 seconds
[info] RAM: peak bytes used: 205587542016
[error] [exception] std::bad_alloc
[error] Please provide more memory or consider using a larger swapfile

hmm. memory errors with lots of ram free - maybe heap related ?
(or how to avoid/trace local issue ?)

@mjjbell
Copy link
Member

mjjbell commented Nov 29, 2021

Can you try building with -DCMAKE_BUILD_TYPE=RelWithDebInfo and see if we hit any assertions?

@geoneutrino
Copy link
Author

Its 9x slower but same effect and message, no more hints/output
I cross-checked with a smaller map (Germany) which works without problems. So installation seems ok and this somehow points to a problem with too few resources (but enough free) or some other effect with the planet data

compile only mentions some deprecations (system has boost libs 1.74) but this shouldnt affect the code
#pragma message: TBB Warning: tbb/atomic.h is deprecated
#pragma message: This header is deprecated. Use <boost/iterator/function_output_iterator.hpp> instead.
include/util/ieee754.hpp:91:18: warning: ISO C++ does not support '__int128' for 'p' [-Wpedantic]
#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.'

Copy link

github-actions bot commented Jul 8, 2024

This issue seems to be stale. It will be closed in 30 days if no further activity occurs.

@github-actions github-actions bot added the Stale label Jul 8, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants