andreynovikov / trekarta

Simple, responsive map for your trek. You decide how to journey today, not the application!
https://trekarta.info
GNU General Public License v3.0
180 stars 25 forks source link

Installing maps is extremely slow, trakarta somtimes crashes during install #108

Open WDGroll opened 4 years ago

WDGroll commented 4 years ago

Hi,

I've installed trekarta using F-Droid on an Samsung S4 mini running Android 7.1.2.

Installing maps is very slow, currently the trekarta map installer phone is working on Area 66-42. Now since more then 24 hours, stuck at 99% since the last few hours. During the last night the progress was from 1% up to 48% in the morning. This is the 2nd attempt with this area, nevertheless i could install four other areas in the past. Each of them took several hours (overnight), an there has also been a crash with one of them. Is there a chance to precompile the areas before on the PC and download them to the phone?

Beside of this I'm very satisfied with trekarta. Thank you for this nice peace of work.

rstruminski commented 4 years ago

I'm having the same problem (on Samsung Galaxy S5 Neo with LineageOS 17.1). After downloading a map, it keeps "processing" for about an hour or so - which would be okay with me, if it worked afterwards. But it never, ever reaches 100%. It always gets stuck at 99% for a very long time and eventually crashes.

It may have something to do with the fact that I am using an SD card as additional "internal" memory in Android. (I mean the feature that makes the SD card seem like additional internal memory.)

ghost commented 4 years ago

Hi, same problem here (Samsung Galaxy S5 KLTE with LineageOS 17.1). The Android Downloadmanager shows a speed of ~13 KB/s for about 10 minutes, than the download stops without any notice. Sometimes there is a notification for a very short time that Trekarta is downloading. Everything elese works fine (e.g. GPS location, tracking, GPX import, ...).

Note: On my friends phone (Samsung Galaxy S10e, Stock Android with Gapps) the app installed trough FDroid works as expected. Perhaps this is an issue related to missing Gapps or LineageOS - assuming that @WDGroll is also using some custom rom, since there is no official Android 7 update for Galaxy S4.

andreynovikov commented 4 years ago

These are two different issues.

  1. Maps are downloaded by device download manager (written by Google or somebody else in case of LineageOS) and there is no way to influence speed and priority of download.

  2. After map is downloaded it is merged in main map database. This process can be extremely slow if it is stored on a slow SD card or it contains too many map squares. This is why I recommend to keep only maps of current interest.