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

Slow/impossible routing since update 4.8.6 #21386

Open
Cwpute opened this issue Nov 19, 2024 · 6 comments
Open

Slow/impossible routing since update 4.8.6 #21386

Cwpute opened this issue Nov 19, 2024 · 6 comments
Labels
Observed Needs more clarification, feedback, or research

Comments

@Cwpute
Copy link

Cwpute commented Nov 19, 2024

Description

Routing between two points that are a kilometer apart from each other in a big city can take up to 20 seconds. Routing between two point sin a rural area that are 2 kilometers away takes up to 15 seconds.
Some bigger routes (starting at points being 25km apart) cannot be processed as the process seems to get stuck at about 15% of the way to completion.
Using the bike profile lowers the distance starting with the process gets stuck, but this issue affects all profiles.
The issue started after updating to 4.8.6, prior to this the routing process could take time for long routes (500kms and more), but it wouldn't get stuck at the same place over and over again. At least OSM would tell me to try and place waypoints in between the startpoint and destination so as to help it calculate. I tried using the Nightly build but the issue was the same.
Here is a link to my exported preferences file in case it might be of any use. It has been limited to a handful of downloads so download only if you intend to help fix this issue: https://nuage.girofle.cloud/s/8zgqtNmpEQ6yS5c

May be related to issue #20221 in some way.

Steps to reproduce

  1. Select a starting point and destination that are more than 25km away from each other
  2. Wait for the routing process to end

Actual result

The routing process gets stuck at about 15%
Screenshot_20241119-145158 (1)

Expected result

Routing should process at the same speed it was before the update.
At least warn the user the process is taking an unprecedent amount of time and something might be wrong.

Your Environment (required)

OsmAnd Version: 4.8.6
Android/iOS version: Android 11
Device model: Nokia TA-1157
Crash-Logs: non
@vmicho
Copy link

vmicho commented Nov 19, 2024

Have similar issues.
I think the problem is on some device the default routing algorithm is the superslow HHxC++ (my main phone whe I updated osmand since long time).
On my other device with pretty fresh install everything is working...

Activate development plugin, then go to Navigation settings / Route parameters / Development : Routing type
There select HHxJava or A*any if you have the HHxC++ selected. You will also need to update maps as some algo do not work with very old maps (like 1y old)
HHxJava is like 10 seconds VS 5 minutes calculation.

@yuriiurshuliak
Copy link

Additionally, please ensure you update to the latest version of OsmAnd. The current version is 4.9.7.

@Cwpute
Copy link
Author

Cwpute commented Nov 20, 2024

Activate development plugin, then go to Navigation settings / Route parameters / Development : Routing type

This was NOT easy to find ! haha. My interface not being in english didn't help.
OSMand could really use reorganizing its options and settings at some point.

But it worked ! Thanks a whole lot.
So in the end it was indeed the same problem as the issue i linked. I had tried to find the correct options but i couldn't manage it, and the issue went into such details and specifics that i wasn't sure it was the same problem.

I'll close this issue in favor of #20221 and continue the discussion there.

@Cwpute Cwpute closed this as completed Nov 20, 2024
@Cwpute Cwpute reopened this Nov 20, 2024
@Cwpute
Copy link
Author

Cwpute commented Nov 20, 2024

Or maybe i'll keep this one open since it's more specific about the issue at hand.
Maintainers, feel free to close the issue if i'm wrong.

@Cwpute
Copy link
Author

Cwpute commented Nov 20, 2024

I think the problem is on some device the default routing algorithm is the superslow HHxC++ (my main phone whe I updated osmand since long time).
On my other device with pretty fresh install everything is working...

@vmicho what i understand here is that, old devices on which OSMand has been installed since a an undefinite time, the routing algorythm either stood as or was changed to HHxC++, which lately turned out really slow at its job or was modified and became slow afterwards.
Is that correct ?

In that case, an update to change the routing algorythm on these old phones is warranted.

@vshcherb
Copy link
Member

Yes it was changed to HHxC++. However it shouldn't be slow, it should be same speed as fresh installation.

@vshcherb vshcherb added the Observed Needs more clarification, feedback, or research label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Observed Needs more clarification, feedback, or research
Projects
None yet
Development

No branches or pull requests

4 participants