organicmaps / organicmaps

🍃 Organic Maps is a free Android & iOS offline maps app for travelers, tourists, hikers, and cyclists. It uses crowd-sourced OpenStreetMap data and is developed with love by MapsWithMe (MapsMe) founders and our community. No ads, no tracking, no data collection, no crapware. Please donate to support the development!
https://organicmaps.app
Apache License 2.0
10.05k stars 961 forks source link

GPS rapidly alternating between two positions #9079

Open penn5 opened 3 months ago

penn5 commented 3 months ago

⚠ Have you searched for similar, already existing issues? Yes

Describe the issue Please write a clear and concise description of the issue here. On the map, the "my location" marker alternates between two locations extremely rapidly (multiple times per second). This occurs outdoors and indoors, consistently.

Steps to reproduce

  1. Enable location
  2. Go to current location on map

Expected behaviour Only one location is displayed for my position.

Screenshots

https://github.com/user-attachments/assets/d4d8bf10-3058-42dd-8a4b-7ea7d729a285

System information:

Additional context Please add any other context or comments here that may be useful. GSF and GMS have been disabled so there is no Fused location provider. Location displays fine in other apps such as Trail Sense.

biodranik commented 3 months ago

Can you please enable logs in OM settings, reproduce the issue, and send us logs via Report a bug?

It looks similar to #6270

penn5 commented 3 months ago

logs.zip

RedAuburn commented 3 months ago

A fused location request is made, then a GPS request a few milliseconds later. They return different locations (around 1km apart):

08-25 11:06:24.877 (main) D/app.organicmaps.location: LocationHelper.java:174 onLocationChanged(): provider = AndroidNativeProvider location = Location[fused 50.774775,-0.883277 hAcc=2000.0 et=+13h8m7s35ms]
08-25 11:06:24.879 (main) D/app.organicmaps.location: LocationHelper.java:174 onLocationChanged(): provider = AndroidNativeProvider location = Location[gps 50.768212,-0.876140 hAcc=3.7900925 et=+13h8m7s23ms alt=50.0357666015625 vAcc=2.5 vel=0.5 sAcc=0.4420407 bear=111.4 bAcc=23.952719 {Bundle[{satellites=31, maxCn0=45, meanCn0=33}]}]
penn5 commented 3 months ago

So it is the same root cause as #6270 then. Given the hAcc of 2000 returned on the fused result I would consider this as a bug in Organic Maps, not my device ROM (which is stock)... Worth closing as dup?