osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.65k stars 1.01k forks source link

Speed, location and compass jumping around, intensified by using OpenGL #20984

Open FFMbyBicycle opened 2 weeks ago

FFMbyBicycle commented 2 weeks ago

Description

I'm using OsmAnd for ~5-10 years and multiple devices and now I got a strange behavior I cannot explain or debug. Please see the attached short video clips.

Steps to reproduce

Just start OsmAnd and ride i.e. a bicycle. It does not matter if navigation is used or not or which profile is used. It does not matter if "Kalman filter" and/or "magnetic sensor" are enabled or disabled.

Actual result

Here you can see the jumping direction/speed using OpenGL rendering:

https://github.com/user-attachments/assets/5b3e8789-ccc4-40dd-be88-4fcf9285faf4

I tried it again using the old Version 1 rendering engine, which reduces the jumps a lot:

https://github.com/user-attachments/assets/07838a50-e0aa-4280-95a3-7019000d3fae

This is strange because I used OsmAnd on this device for months without problems using OpenGL. However I'm not sure if the behavior started after an OsmAnd update or after switching my OS from /e/ OS to LineageOS.

I also recorded the GPS status a day after that (the larger speed increase in the middle of the clip was on purpose), which does not show those extreme jumps:

https://github.com/user-attachments/assets/2d82cf79-80a4-4be8-9c6b-91d0dde7dfc9

Expected result

The speed and direction should be more or less steady and not jumping around.

Your Environment (required)

OsmAnd Version: 4.8.6 and Nightly 4.9.0#3347m (2024-10-03), same behavior
Android/iOS version: Android 14 (LineageOS 21)
Device model: Fairphone 5
Crash-Logs: No crash detected, but can supply i.e. logcat if required
yuriiurshuliak commented 1 week ago

The bug could not be reproduced. To reproduce the issue, navigate to coordinates 50.13968527663238, 8.669951027921593 and start bicycle navigation and try changing the settings for this profile.

As a result, there were no location jumps or icon jerking were observed during testing; navigation ran smoothly and without issues.

You can also try to disable the "Animate Own Position" option under Menu → Configure profile → General settings → Other → Animate own position. Additionally, please check if the issue persists on our nightly build: https://osmand.net/docs/versions/nightly_versions#nightly-builds.

OsmAnd~ 4.9.0#3416m, released: 2024-10-11