osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.68k stars 1.02k forks source link

Car icon orientation sometimes get stuck during navigation with screen timeout enabled #20858

Open Guylby opened 1 month ago

Guylby commented 1 month ago

Description

Hi,

During a long car trip recently I've noticed on three occasions that after the screen waking up to give directions, the car orientation cursor was stuck and not following the correct heading anymore. The phone was plugged in so no battery optimization were on. One time the issue fixed itself after a few screen wake ups, other times it needed to restart navigation.

This did not happen in previous versions of Osmand on my phone

Steps to reproduce

Take a car trip with navigation with this screen control settings: Use system screen timeout > OFF Timeout after wake-up > 30 seconds Proximity sensor > ON Navigation instructions > ON Power button > OFF

Actual result

Here is a screen recording of the issue. Notice that panning the map so that it is not centered anymore on position fixes the issue momentarily. But the map centered to the position again gets the cursor stuck again. The itinerary line was also not starting on the cursor anymore:

yuriiurshuliak commented 1 month ago

The bug couldn't be reproduced. To reproduce, configure Screen control with system screen timeout off, timeout after wake-up at 30 seconds, proximity sensor on, navigation instructions on, and power button off. After waking up the screen, the location cursor continued to move along the route as expected.

OsmAnd~ 4.9.0#3203m, released: 2024-09-17

https://github.com/user-attachments/assets/4fd5c114-f908-4710-b297-8ff2e2b833ac

efi99 commented 1 month ago

I have a somewhat similar problem. During navigation, the icon gets stuck about every 1-2 minute, it stops, as if I had stopped the car suddenly. After 5-6 seconds, it suddenly jumps forward to the correct position and continues to move normally. It is as if there is suddenly no GPS signal, even though there is, the widget also indicates it, and other navigation applications also run normally on the same route. The screen is always on.

yuriiurshuliak commented 1 week ago

The bug was reproduced during actual navigation. To reproduce it, switch the location source to Google services, set the map orientation mode to "North is Up," and select "Use system screen timeout" for the screen timeout option.

Begin navigating as the car starts moving, manually turn off the phone’s screen, and wait for a bit. Then, turn the screen back on with navigation active.

As a result, is that the arrow icon moves in a slow, jerky way, while the position icon stays locked in one orientation and keeps moving in that fixed direction.

Note: This behavior does not occur in simulation mode, only during real navigation. Here are the profile settings under which this was reproduced: Driving (2).zip

OsmAnd~ 5.0.0#3623m, released: 2024-11-01