8000 Track db sometimes updates, impacting performance · Issue #22506 · osmandapp/OsmAnd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Track db sometimes updates, impacting performance #22506

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

Open
sonora opened this issue May 4, 2025 · 3 comments
Open

Track db sometimes updates, impacting performance #22506

sonora opened this issue May 4, 2025 · 3 comments

Comments

@sonora
Copy link
Member
sonora commented May 4, 2025

See screenshot below, not sure what triggers it. Perhaps using 'Show all on map' on a folder containing a few dozen tracks (although displaying them itself works fine).

  • The spinner comes on on the Tracks screen, and stays on for about 10 min if staying on the screen, only then finally stopping.
  • Leaving the screen before that, or even re-starting the app will simply recreate the situation next time that screen is entered.
  • During the process and until it's finished, often one or several folder stats figures remain at 0m (often 'downhill' like in the screenshot below). Perhaps this indicates that the stats are re-calculated during this (though I have not recently changed, added or removed any track).
  • To resolve the entire situation, I need to stay on the Tracks screen with the app in the foreground for about 10 min.
  • Not entirely sure, but it seems app performance is overall negatively affected until this phenomenon finishes.

Image

@Rowin63
Copy link
Rowin63 commented May 7, 2025

Had some similar behavior (endless spinner) right now.
I added a track folder including three tracks (copied it into Osmands tracks folder by a file manager).
After this I could not rename this folder in "my places". So I started a refresh by swiping down. After five or more minutes the app crashed (sent a logfile at 12:14 to the support address).

@yuriiurshuliak
Copy link

When using the "Show all on map" feature for a folder with multiple tracks, the spinner stays active for about 10 minutes. This seems to impact performance and causes issues like folder stats showing zero values, even though no tracks have been added or changed.

I tried to reproduce the issue several times by following the steps you mentioned. Here’s what I did:

  1. Placed a folder with several GPX tracks (a few dozen) in OsmAnd's tracks folder.
  2. Opened OsmAnd and went to My Places → Tracks.
  3. Used "Show all on map" for the folder.
  4. Returned to the Tracks screen and tried pulling down to refresh the page.

Results:
I did not experience the spinner staying active endlessly. The statistics at the bottom of the page remained stable, and I didn’t observe any performance degradation. Everything worked as expected.

OsmAnd~ 5.1.0#5162m, released: 2025-05-09

video_2025-05-09_18-17-58.mp4

@sonora
Copy link
Member Author
sonora commented May 9, 2025

Thanks for trying to reproduce! At this point I would guess it is perhaps something not scaling well with large numbers of tracks on your device (i.e. with the size of the tracks db), while being hardly or not noticeable for small numbers.

Probably we would need a code check to see we perform no obsolete updates or other edits to the tracks db, and when needed we modify the tracks db in as performant a fashion as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
0