Newly created images displayed twice in the Gallery

REPRODUCIBILITY (% or how often): 100%
BUILD ID = OS VERSION (Settings > About product): 4.3.0.12
HARDWARE (XA2, X10, X10 II, …): XA2 Plus
UI LANGUAGE: English
REGRESSION: (compared to previous public release: Yes, No, ?): Yes

DESCRIPTION:

Images entries indexed twice when saved to filesystem. There are at least two cases when this happens:
Case 1. When I upload image files via SSHFS e.g. to
/media/sdcard/_____________/Pictures/Camera/. Every image created this way is doubled.
Case 2. When an image file are saved to /home/nemo/Downloads/ folder from by an app, e.g. Twitter. Every image created this way is doubled.

Compared to that:

Case 3. Images created by the default photo app are not indexed twice.
Case 4. Images created by the default email app (by saving attachment) are not indexed twice.
Case 5. Non-image files, e.g. documents, are not indexed twice.
Case 6. Newly created screen shots are not doubled.

PRECONDITIONS:

None

STEPS TO REPRODUCE:

  1. Perform image creation by following Case 1 or Case 2.

EXPECTED RESULT:

Single copy is visible in the Gallery app.

ACTUAL RESULT:

Double entries for these images.

ADDITIONAL INFORMATION:

I might be wrong in that the indexing is buggy, maybe the Gallery app displays some images twice.

When I delete the doubled entry in the Gallery, both are removed.

Tracker config:

$ gsettings list-recursively | grep Tracker

org.freedesktop.Tracker3.Extract text-allowlist ['*.txt', '*.md', '*.mdwn']
org.freedesktop.Tracker3.Extract max-bytes 1048576
org.freedesktop.Tracker3.Extract wait-for-miner-fs false
org.freedesktop.Tracker3.FTS ignore-numbers true
org.freedesktop.Tracker3.FTS ignore-stop-words true
org.freedesktop.Tracker3.FTS enable-unaccent true
org.freedesktop.Tracker3.FTS enable-stemmer false
org.freedesktop.Tracker3.Miner.Files index-optical-discs false
org.freedesktop.Tracker3.Miner.Files index-single-directories @as []
org.freedesktop.Tracker3.Miner.Files enable-monitors true
org.freedesktop.Tracker3.Miner.Files index-on-battery-first-time true
org.freedesktop.Tracker3.Miner.Files index-recursive-directories ['&DESKTOP', '&DOCUMENTS', '&DOWNLOAD', '&MUSIC', '&PICTURES', '&VIDEOS', '$HOME/android_storage/DCIM', '$HOME/android_storage/Download', '$HOME/android_storage/Pictures', '$HOME/android_storage/Podcasts', '$HOME/android_storage/Music']
org.freedesktop.Tracker3.Miner.Files removable-days-threshold 30
org.freedesktop.Tracker3.Miner.Files ignored-directories ['po', 'CVS', 'core-dumps', 'lost+found', '$HOME/android_storage/Android']
org.freedesktop.Tracker3.Miner.Files index-on-battery true
org.freedesktop.Tracker3.Miner.Files index-applications true
org.freedesktop.Tracker3.Miner.Files throttle 10
org.freedesktop.Tracker3.Miner.Files ignored-directories-with-content ['.trackerignore', 'backup.metadata', '.nomedia']
org.freedesktop.Tracker3.Miner.Files index-removable-devices true
org.freedesktop.Tracker3.Miner.Files ignored-files ['*~', '*.o', '*.la', '*.lo', '*.loT', '*.in', '*.csproj', '*.m4', '*.rej', '*.gmo', '*.orig', '*.pc', '*.omf', '*.aux', '*.tmp', '*.vmdk', '*.vm*', '*.nvram', '*.part', '*.rcore', '*.lzo', 'autom4te', 'conftest', 'confstat', 'Makefile', 'SCCS', 'ltmain.sh', 'libtool', 'config.status', 'confdefs.h', 'configure', '#*#', '~$*.doc?', '~$*.dot?', '~$*.xls?', '~$*.xlt?', '~$*.xlam', '~$*.ppt?', '~$*.pot?', '~$*.ppam', '~$*.ppsm', '~$*.ppsx', '~$*.vsd?', '~$*.vss?', '~$*.vst?', 'mimeapps.list', 'mimeinfo.cache', 'gnome-mimeapps.list', 'kde-mimeapps.list', '*.directory']
org.freedesktop.Tracker3.Miner.Files low-disk-space-limit -1
org.freedesktop.Tracker3.Miner.Files crawling-interval 0
org.freedesktop.Tracker3.Miner.Files initial-sleep 30
5 Likes

Yes I am aware that reindexing removed the duplications (note, not restarting but clearing the index). That’s why I’ve mentioned indexing in this report. But as soon as a new image is saved on the phone, it’s duplicated again.

Possibly related:

Possible fixes:

Sorry, don’t know how I didn’t see your report on Tracker, I wouldn’t have posted otherwise.

Here the same on Sony X Compact with newest Sailfish 4.3.0.15, but was also there on 4.3.0.X

Same problem on my XA2 Ultra, SFOS 4.3.0.12 and .15.

Thanks for the report and comments, have you still been seeing this issue?

Thank you @jwalden for checking.
I am on 4.5.0.18 and I can confirm there’s no issue anymore!
It works correct for images transferred via SSH, images downloaded from the native web browser, images downloaded from an Android app like Facebook.

Thank you for that fix!

1 Like