mapsme / omim

🗺️ MAPS.ME — Offline OpenStreetMap maps for iOS and Android
Apache License 2.0
4.57k stars 1.15k forks source link

Random craches when doing car routing #6804

Open abforce opened 7 years ago

abforce commented 7 years ago

Using version 7.4.4, Android client randomly stops working when a car routing is in progress. I think off-road and near points have a higher chance to make the app to crash. Here's the logcat:

07-24 02:24:17.098 22553-22613/com.mapswithme.maps.pro E/MapsmeCore: routing/bicycle_directions.cpp:262 GetUniNodeIdAndAdjacentEdges()  CHECK(MercatorBounds::DistanceOnEarth(junctionPoint, edge.GetStartJunction().GetPoint()) < turns::kFeaturesNearTurnMeters) 47.5348 3 
07-24 02:24:17.098 22553-22613/com.mapswithme.maps.pro A/libc: jni/com/mapswithme/core/logging.cpp:57: void jni::AndroidAssertMessage(const my::SrcPoint &, const std::string &): assertion "false" failed

UPDATE Aug 8, 2017

The crash only appears on debug builds, no matter which version is being used. release builds work perfectly fine. If anyone's interested in reproducing the bug, I could send his/her two coordinates that causes app to crash while it's trying to create a route between them.

jalvesaq commented 6 years ago

It always crash after few minutes of car routing with online traffic data. It never crashes if completely offline. Version 8.0.7-Google Data version: 180126 Android 5.1.1