[Nightly] Filter (new) does not hide waypoints
See original GitHub issueBug description
When being in Live map with some Multis or Mysteries and their waypoints on display, add a filter for whatever, apply it β¦ Now have a look at the map: the WPs will still be displayed, although their βparentsβ are gone.
Reproduce
Steps to reproduce the problem
- set
Settings
=>Map
=>Waypoints
=>Show Waypoints
to 20 or more - open Live Map and set a filter for
Type = Multi
- scroll to a region with at least one Multi or Mystery with at least one WP
e. g. Isle Reichenau with zoom set to 1 km
Hint - easy way to go there:
- Search for
Address
= βReichenauβ - map found caches
- then go back to main page
- and re-open Live map; it will open up at Reichenau as if you scrolled to there manually
- Search for
- add a second filter with an βimpossibleβ criterion like e. g.
Name Contains xxxxxxx
- apply it and have a look at the map β¦
Actual result after these steps
Although not a single cache matches the filter, the WPs are still shown (while their parents are properly gone).
Expected result after these steps
WPs should be hidden along with their parents,
c:geo version
2021.07.01-NB-99d65ab
Reproducible
Yes
System information
c:geo version: 2021.07.01-NB-99d65ab
Device:
-------
- Device type: VOG-L29 (VOG-L29EEA, HUAWEI)
- Available processors: 8
- Android version: 10
- Android build: VOG-L29 10.1.0.150(C431E19R2P5)
- Screen resolution: 1080x2147px (423x841dp)
- Sailfish OS detected: false
- Google Play services: disabled - 21.21.16 (120400-378233385)
- 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/ offlinelog
- Hide waypoints: -
- Set language: en_DE (system default)
- System date format: dd/MM/y
- Debug mode active: no
- Live map mode: true
- OSM multi-threading: true / threads: 4
- Global filter: display all caches
- Last backup: 1 Jul, 01:06
- Routing mode: Bike
- Settings: v5, Count:270
- Map: Combined (Offline)
- Id: cgeo.geocaching.maps.mapsforge.MapsforgeMapProvider$OfflineMultiMapSource
- Atts: _ DE BaWΓΌ Vosges.map: / Maps: (c)Christian Kernbeis, Themes: (c)Tobias Kuehn, www.openandromaps.org 2012-2021 / / _ DE Bayern.map: / Maps: (c)Christian Kernbeis, Themes: (c)Tobias Kuehn, www.openandromaps.org 2012-2021 / / _ DE Hessen.map: / Maps: (c)Christian Kernbeis, Themes: (c)Tobias Kuehn, www.openandromaps.org 2012-2021 / / _ DE North.map: / Maps: (c)Christian Kernbeis, Themes: (c)Tobias Kuehn, www.openandromaps.org 2012-2021 / / _ DE NRW.map: / Maps: (c)Christian Kernbeis, Themes: (c)Tobias Kuehn, www.openandromaps.org 2012-2021 / / _ DE Rheinland-Pfalz.map: / Maps: (c)Christian Kernbeis, Themes: (c)Tobias Kuehn, www.openandromaps.org 2012-2021 / / _ DE Saarland Lux.map: / Maps: (c)Christian Kernbeis, Themes: (c)Tobias Kuehn, www.openandromaps.org 2012-2021 / / AT Austria.map: / Maps: (c)Christian Kernbeis, Themes: (c)Tobias Kuehn, www.openandromaps.org 2012-2021 / / AT CH FR Alps.map: / Maps: (c)Christian Kernbeis, Themes: (c)Tobias Kuehn, www.openandromaps.org 2012-2021 / / BE LUX Belgium Lux.map: / Maps: (c)Christian Kernbeis, Themes: (c)Tobias Kuehn, www.openandromaps.org 2012-2021 / / CH Switzerland.map: / Maps: (c)Christian Kernbeis, Themes: (c)Tobias Kuehn, www.openandromaps.org 2012-2021 / / CZ Czech Republic.map: / Maps: (c)Christian Kernbeis, Themes: (c)Tobias Kuehn, www.openandromaps.org 2012-2021 / / ES FR Pyrenees.map: / Maps: (c)Christian Kernbeis, Themes: (c)Tobias Kuehn, www.openandromaps.org 2012-2021 / / FR North.map: / Maps: (c)Christian Kernbeis, Themes: (c)Tobias Kuehn, www.openandromaps.org 2012-2021 / / FR South.map: / Maps: (c)Christian Kernbeis, Themes: (c)Tobias Kuehn, www.openandromaps.org 2012-2021 / / IT Italy.map: / Maps: (c)Christian Kernbeis, Themes: (c)Tobias Kuehn, www.openandromaps.org 2012-2021 / / NL Netherlands.map: / Maps: (c)Christian Kernbeis, Themes: (c)Tobias Kuehn, www.openandromaps.org 2012-2021 / / PL Poland.map: / Maps: (c)Christian Kernbeis, Themes: (c)Tobias Kuehn, www.openandromaps.org 2012-2021 / / World.map: / mapsforge-map-writer-dev-SNAPSHOT
- Theme: Elevate F140 L120 S110 EB.xml
Services:
-------
- Geocaching sites enabled:
geocaching.com: Logged in (Login OK) / PREMIUM
extremcaching.com: Logged in (Login OK)
- Geocaching.com date format: dd MMM yy
- Routing: external / BRouter installed: true
- Installed c:geo plugins: contacts
Permissions & paths:
-------
- Fine location permission: granted
- Write external storage permission: granted
- System internal c:geo dir: /data/user/0/cgeo.geocaching (57,6 GB free) v2 internal isDir(7 entries)
- Legacy User storage c:geo dir: /storage/emulated/0/cgeo (57,6 GB free) v2 external non-removable isDir(7 entries)
- Geocache data: /storage/emulated/0/Android/data/cgeo.geocaching/files/GeocacheData (57,6 GB free) v2 external non-removable isDir(129 entries)
- Internal theme sync (is turned ON): /data/user/0/cgeo.geocaching/MapThemeData (57,6 GB free) v2 internal isDir(8 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:>=11, dirs:>=14, totalFileSize:>=1,3 GB, free space: 57,6 GB, files on device: 13278715)
- OFFLINE_MAPS: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββSD cardββββββ/Locus/mapsVector (User-Defined)[ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββSD cardββββββ/Locus/mapsVector[DOCUMENT#0:p-content://com.android.externalstorage.documents/tree/0123-4567%3ALocus%2FmapsVector::]] (Uri: content://com.android.externalstorage.documents/tree/0123-4567%3ALocus%2FmapsVector/document/0123-4567%3ALocus%2FmapsVector, Av:true, files:449, dirs:4, totalFileSize:20,7 GB, free space: 154,5 GB, files on device: 0)
- OFFLINE_MAP_THEMES: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββSD cardββββββ/Locus/mapsVector/_themes/Elevate4 (User-Defined)[ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββSD cardββββββ/Locus/mapsVector/_themes/Elevate4[DOCUMENT#0:p-content://com.android.externalstorage.documents/tree/0123-4567%3ALocus%2FmapsVector%2F_themes%2FElevate4::]] (Uri: content://com.android.externalstorage.documents/tree/0123-4567%3ALocus%2FmapsVector%2F_themes%2FElevate4/document/0123-4567%3ALocus%2FmapsVector%2F_themes%2FElevate4, Av:true, files:418, dirs:1, totalFileSize:3,4 MB, free space: 154,5 GB, files on device: 0)
- 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:119 B, free space: 57,6 GB, files on device: 13278715)
- GPX: /Download/GPX (User-Defined)[/Download/GPX[DOCUMENT#0:p-content://com.android.externalstorage.documents/tree/primary%3ADownload%2FGPX::]] (Uri: content://com.android.externalstorage.documents/tree/primary%3ADownload%2FGPX/document/primary%3ADownload%2FGPX, Av:true, files:1, dirs:0, totalFileSize:3,2 KB, free space: 57,6 GB, files on device: 13278715)
- 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:>=16, dirs:>=7, totalFileSize:>=2,2 GB, free space: 57,6 GB, files on device: 13278715)
- 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:14, dirs:0, totalFileSize:60,6 KB, free space: 57,6 GB, files on device: 13278715)
- 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: 57,6 GB, files on device: 13278715)
- 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:15, dirs:1, totalFileSize:582,3 MB, free space: 57,6 GB, files on device: 13278715)
- 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:5, dirs:0, totalFileSize:582,2 MB, free space: 57,6 GB, files on device: 13278715)
- 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: 57,6 GB, files on device: -1)
- Map render theme path: Elevate F140 L120 S110 EB.xml
- PersistedDocumentUris: #1
- TRACK: null
- Persisted Uri Permissions: #4
- content://com.android.externalstorage.documents/tree/primary%3ADownload%2FGPX (24 May, 00:17):RW
- content://com.android.externalstorage.documents/tree/0123-4567%3ALocus%2FmapsVector%2F_themes%2FElevate4 (20 May, 23:38):RW
- content://com.android.externalstorage.documents/tree/primary%3Acgeo (20 May, 23:37):RW
- content://com.android.externalstorage.documents/tree/0123-4567%3ALocus%2FmapsVector (20 May, 23:37):RW
- Database: /data/user/0/cgeo.geocaching/databases/data (v95, Size:428,4 MB) on system internal storage
--- End of system information ---
Additional context
WPs will remain displayed until you leave and re-enter the map.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
[Nightly] c:geo crashes while filtering a list (Transaction too large ...
Describe the bug: c:geo crashes on filtering large lists To Reproduce: open ... rotation vector Hide caches: own/found Hide waypoints: - HW acceleration:Β ......
Read more >SkyTools 4 Update Information
Download latest SkyTools 4 update (35 MB) ... It is no longer possible to close an Imaging Project with no filters and exposure...
Read more >Ruleset Reference Nightly (OpenXcom) - UFOpaedia
Anything marked green does not work with OpenXcom (OXC). ... hidden, Defines whether this category should be hidden in the filter on the...
Read more >Get started with advanced formatting in ArcGIS Dashboards
Use Arcade and HTML to derive new information and display alerts in a dashboard. ... If clicking Map at the top of the...
Read more >Vrbo Common Issues & Questions - API Integrations - OwnerRez
How do I pause/hide a property listing on Vrbo using the API? ... For new bookings that came over the API connection, RDDs...
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
Guided by your analysis I have a likely culprit (can not test right away myself, perhaps later today) The onStop cascades the deletion of all the caches and waypoints through the CachesBundle.onDestroy() And there is an omission. I added the wpOverlay later on (to enable the display of waypoints of caches that are not on the map or even far away) and obviously forgot to add it to the clean-up procedure. So I assume that doing this might already help.
@rsudev That was the culprit! Thanks a lot! I created PR #11066 for it