QField icon indicating copy to clipboard operation
QField copied to clipboard

app data is too large, preventing backup, in large part due to sample projects

Open gdt opened this issue 1 year ago • 3 comments

Describe the issue

The android backup system (as used by SeedVault) fails to back up QField, because the amount of data in sample projects.

Reproduction steps

Install QField on Android. Long press, app info, storage. Observe something quite large, 61.39 MB in my case with one project loaded, where the project as staged for import was 2.5 MB.

Expected behavior

There is no data used in storage, except app configuration and imported project/data. In particular, sample projects are not in storage.

Arguably, "copy" layers should probably be in cache, not storage, but that's less important.

Observed behavior

There is a large amount of "storage", which is a) not expected and b) breaks backups. (Apps that are too big, are not backed up.)

QField (please complete the following information)

  • Device: Pixel
  • CalyxOS, Android 15 version
  • QField version: 3.4.7 dfab7b (apk from github)

gdt avatar Dec 28 '24 20:12 gdt

@gdt , QField 3.5 has slashes the size of the sample projects by quite a lot (from 17.3MB to 7.3MB); hope it helps a bit.

nirvn avatar Feb 11 '25 11:02 nirvn

I'll have a look, thanks. Resolving #5923 would of course help here.

gdt avatar Feb 11 '25 12:02 gdt

It's improved, but still much more than expected. After updating, I see 41.58 MB in storage, when my project is under 3 MB.

gdt avatar Feb 17 '25 17:02 gdt