long app startup time
See original GitHub issueFrom support email, ticket #138732
Anything specific I should ask the user for / the user can test & log?
Bug description
major issue is very slow/long loading time when launching the app! It has increased slightly already few weeks ago, but now it takes way too long. I pay attention to this issue because fast start-up was one of key benefits of cgeo compared to other ‘massive’ apps.
c:geo version
current beta
System information
c:geo version: 2021.07.10-RC
Device:
-------
- Device type: MAR-LX1A (MAR-LX1AEEA, HUAWEI)
- Available processors: 8
- Android version: 10
- Android build: MAR-L21A 10.0.0.275(C431E8R2P7)
- Screen resolution: 1080x2107px (360x702dp)
- Sailfish OS detected: false
- Google Play services: enabled - 21.24.18 (120408-383468479)
- HW acceleration: enabled (default state)
Sensor and location:
-------
- Low power mode: inactive
- Compass capabilities: yes
- Rotation vector sensor: present
- Orientation sensor: present
- Magnetometer & Accelerometer sensor: present
- Direction sensor used: rotation vector
Program settings:
-------
- Hide caches: own/ found
- Hide waypoints: original visited
- Set language: lv_LV (system default)
- System date format: dd.MM.yy
- Debug mode active: no
- Live map mode: true
- OSM multi-threading: true / threads: 4
- Global filter: display all caches
- Last backup: 2019. gada 29. dec. 12:49
- Routing mode: Walk
- Settings: v5, Count:156
- Map: OpenStreetMap.org
- Id: cgeo.geocaching.maps.mapsforge.MapsforgeMapProvider$OsmMapSource
- Atts: OpenStreetMap DE, map data OpenStreetMap contributors
- Theme: none
Services:
-------
- Geocaching sites enabled:
geocaching.com: Logged in (Pieteikšanās izpildīta veiksmīgi) / PREMIUM
Geocaching.com Adventure Lab
- Geocaching.com date format: dd.MM.yyyy
- Routing: external / BRouter installed: false
- Installed c:geo plugins: none
Permissions & paths:
-------
- Fine location permission: granted
- Write external storage permission: granted
- System internal c:geo dir: /data/user/0/cgeo.geocaching (68,7 GB free) v2 internal isDir(9 entries)
- Legacy User storage c:geo dir: /storage/emulated/0/cgeo (68,7 GB free) v2 external non-removable isDir(7 entries)
- Geocache data: /storage/emulated/0/Android/data/cgeo.geocaching/files/GeocacheData (68,7 GB free) v2 external non-removable isDir(686 entries)
- Internal theme sync (is turned off): /data/user/0/cgeo.geocaching/MapThemeData (68,7 GB free) v2 internal isDir(0 entries)
- Public Folders: #11
- BASE: /cgeo (User-Defined)[/cgeo[DOCUMENT#0:p-content://com.android.externalstorage.documents/tree/primary%3Acgeo::]] (Uri: content://com.android.externalstorage.documents/tree/primary%3Acgeo/document/primary%3Acgeo, Av:true, files:>=19, dirs:>=9, totalFileSize:>=88,7 MB, free space: 68,7 GB, files on device: 13511675)
- OFFLINE_MAPS: /cgeo/maps (Default)[/cgeo/maps[PERSISTABLE_FOLDER(BASE)#1:p-content://com.android.externalstorage.documents/tree/primary%3Acgeo::/maps]] (Uri: content://com.android.externalstorage.documents/tree/primary%3Acgeo/document/primary%3Acgeo%2Fmaps, Av:true, files:2, dirs:1, totalFileSize:62,9 MB, free space: 68,7 GB, files on device: 13511675)
- OFFLINE_MAP_THEMES: /cgeo/maps/_themes (Default)[/cgeo/maps/_themes[PERSISTABLE_FOLDER(OFFLINE_MAPS)#1:p-content://com.android.externalstorage.documents/tree/primary%3Acgeo::/maps/_themes]] (Uri: content://com.android.externalstorage.documents/tree/primary%3Acgeo/document/primary%3Acgeo%2Fmaps%2F_themes, Av:true, files:0, dirs:0, totalFileSize:0 B, free space: 68,7 GB, files on device: 13511675)
- LOGFILES: /cgeo/logfiles (Default)[/cgeo/logfiles[PERSISTABLE_FOLDER(BASE)#1:p-content://com.android.externalstorage.documents/tree/primary%3Acgeo::/logfiles]] (Uri: content://com.android.externalstorage.documents/tree/primary%3Acgeo/document/primary%3Acgeo%2Flogfiles, Av:true, files:1, dirs:0, totalFileSize:10,4 KB, free space: 68,7 GB, files on device: 13511675)
- GPX: /cgeo/gpx (Default)[/cgeo/gpx[PERSISTABLE_FOLDER(BASE)#1:p-content://com.android.externalstorage.documents/tree/primary%3Acgeo::/gpx]] (Uri: content://com.android.externalstorage.documents/tree/primary%3Acgeo/document/primary%3Acgeo%2Fgpx, Av:true, files:16, dirs:0, totalFileSize:10,8 MB, free space: 68,7 GB, files on device: 13511675)
- BACKUP: /cgeo/backup (Default)[/cgeo/backup[PERSISTABLE_FOLDER(BASE)#1:p-content://com.android.externalstorage.documents/tree/primary%3Acgeo::/backup]] (Uri: content://com.android.externalstorage.documents/tree/primary%3Acgeo/document/primary%3Acgeo%2Fbackup, Av:true, files:1, dirs:1, totalFileSize:15,0 MB, free space: 68,7 GB, files on device: 13511675)
- FIELD_NOTES: /cgeo/field-notes (Default)[/cgeo/field-notes[PERSISTABLE_FOLDER(BASE)#1:p-content://com.android.externalstorage.documents/tree/primary%3Acgeo::/field-notes]] (Uri: content://com.android.externalstorage.documents/tree/primary%3Acgeo/document/primary%3Acgeo%2Ffield-notes, Av:true, files:0, dirs:0, totalFileSize:0 B, free space: 68,7 GB, files on device: 13511675)
- SPOILER_IMAGES: /cgeo/GeocachePhotos (Default)[/cgeo/GeocachePhotos[PERSISTABLE_FOLDER(BASE)#1:p-content://com.android.externalstorage.documents/tree/primary%3Acgeo::/GeocachePhotos]] (Uri: content://com.android.externalstorage.documents/tree/primary%3Acgeo/document/primary%3Acgeo%2FGeocachePhotos, Av:true, files:0, dirs:0, totalFileSize:0 B, free space: 68,7 GB, files on device: 13511675)
- ROUTING_BASE: /cgeo/routing (Default)[/cgeo/routing[PERSISTABLE_FOLDER(BASE)#1:p-content://com.android.externalstorage.documents/tree/primary%3Acgeo::/routing]] (Uri: content://com.android.externalstorage.documents/tree/primary%3Acgeo/document/primary%3Acgeo%2Frouting, Av:true, files:0, dirs:1, totalFileSize:0 B, free space: 68,7 GB, files on device: 13511675)
- ROUTING_TILES: /cgeo/routing/segments4 (Default)[/cgeo/routing/segments4[PERSISTABLE_FOLDER(ROUTING_BASE)#1:p-content://com.android.externalstorage.documents/tree/primary%3Acgeo::/routing/segments4]] (Uri: content://com.android.externalstorage.documents/tree/primary%3Acgeo/document/primary%3Acgeo%2Frouting%2Fsegments4, Av:true, files:0, dirs:0, totalFileSize:0 B, free space: 68,7 GB, files on device: 13511675)
- TEST_FOLDER: [Legacy]/data/user/0/cgeo.geocaching/files/unittest (Default)[/data/user/0/cgeo.geocaching/files/unittest[FILE#1:p-file:///data/user/0/cgeo.geocaching/files::/unittest]] (Uri: file:///data/user/0/cgeo.geocaching/files/unittest, Av:true, files:0, dirs:0, totalFileSize:0 B, free space: 68,7 GB, files on device: -1)
- Map render theme path:
- PersistedDocumentUris: #1
- TRACK: null
- Persisted Uri Permissions: #1
- content://com.android.externalstorage.documents/tree/primary%3Acgeo (23. marts 18:24):RW
- Database: /storage/emulated/0/Android/data/cgeo.geocaching/files/databases/data (v95, Size:15,4 MB) on user storage
--- End of system information ---
Issue Analytics
- State:
- Created 2 years ago
- Comments:105 (105 by maintainers)
Top Results From Across the Web
App startup time - Android Developers
Android vitals considers your app's startup times excessive when the app's: Cold startup takes 5 seconds or longer. Warm startup takes 2 ...
Read more >Reducing your app's launch time - Apple Developer
Typically, users launch an app many times in a day if it's part of their regular workflow, and a long launch time causes...
Read more >App Launch Optimization: How to Resolve Slow Startup Times
Based on an analysis of the top 100 apps, 39 apps cold launch in under or around 2 seconds, and 73 in under...
Read more >Why Should You Care About Your Mobile App's Startup Time?
That means, no matter how a user is launching your app, your startup time should be less than 2 seconds.
Read more >How to correctly measure the App Startup time on Android
If an app starts multiple times on the same day from the same system state, the day's maximum start-up time is recorded. This...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No, advanced logging is currently on master only…
@ztNFny I changed PR #12183 so it will only include the logging tweaks and no longer the core change (move getting cursor away from main thread), will merge this.
I look forward to your results on analyzing the DB queries. It is correct to analyze this. It would be desasterous if we have DB queries taking > 4 seconds in execution.