[4.5.0] Gallery app can't show some pictures

REPRODUCIBILITY: 50%
OS VERSION: 4.5.0.19
HARDWARE: Xperia 10 II
UI LANGUAGE: Finnish
REGRESSION: Yes, no similar issues with 4.4 for instance

DESCRIPTION:

After updating to Sailfish 4.5 I started to notice that sometimes when I took a picture, it couldn’t be shown in the gallery application. These pictures are shown in the gallery application with something like “Thumbnail can’t be shown” and they have very weird filepaths seeming to contain actually two different paths (see the example screenshot). These pictures can still be viewed in the camera application by swiping to right.

It seems that hard reboot can solve this issue, but then again after some time this may occur again. I was also able to solve this issue at least partially by first switching camera storage to internal and then back to SD, however I can’t tell how long this might work.

Seems that restarting /refreshing media database in Sailfish Utilities brings the non-displayable images back in gallery application as well.

PRECONDITIONS:

Issue might be related to having SD card, but I’m not sure. Thus it’s recommended to try SD card and make sure camera storage uses it as well.

STEPS TO REPRODUCE:

  1. Open Jolla camera application
  2. Take a picture
  3. Open Jolla gallery application

EXPECTED RESULT:

All the taken pictures should be displayed normally.

ACTUAL RESULT:

Sometimes some pictures can’t be displayed and have no thumbnail. Also, they have this weird filepath (see the screenshot). These pictures can be viewed on the camera application though.

MODIFICATIONS:

None

ADDITIONAL INFORMATION:

Unfortunately the sceenshot is in Finnish, but take a look at the filepath containing two different imagepaths.

Here are some relevant parts in journal log that I tried to look up. There’s especially this [W] unknown:0 - Could not change owner/group of resulting photo capture file: "/run/media/defaultuser/0123-4567/Pictures/Camera/20230404_110937.jpg" Toiminto ei ole sallittu that seems weird.

huhti 04 11:09:06 Xperia10II-DualSIM dbus-daemon[5405]: dbus-daemon[5405]: [session uid=100000 pid=5405] Activating service name='com.jolla.gallery' requested by ':1.120' (uid=100000 pid=21157 comm="/usr/libexec/mliteremoteaction com.jolla.gallery /" label="u:r:kernel:s0")
huhti 04 11:09:06 Xperia10II-DualSIM sailjail[20947]: ignoring argument: -prestart
huhti 04 11:09:06 Xperia10II-DualSIM dbus-daemon[5405]: constructing /run/firejail/mnt/privileged: Images,Ambienced,msyncd,Accounts,Keys ...
huhti 04 11:09:06 Xperia10II-DualSIM dbus-daemon[5405]: mounting /run/firejail/mnt/privileged @ /home/defaultuser/.local/share/system/privileged
huhti 04 11:09:06 Xperia10II-DualSIM dbus-daemon[5405]: hiding /run/firejail/mnt/privileged
huhti 04 11:09:06 Xperia10II-DualSIM jolla-gallery[21197]: [D] unknown:0 - Using Wayland-EGL
huhti 04 11:09:06 Xperia10II-DualSIM dbus-daemon[5405]: library "libGLESv2_adreno.so" not found
huhti 04 11:09:06 Xperia10II-DualSIM dbus-daemon[5405]: library "eglSubDriverAndroid.so" not found
huhti 04 11:09:07 Xperia10II-DualSIM dbus-daemon[5405]: dbus-daemon[5405]: [session uid=100000 pid=5405] Successfully activated service 'com.jolla.gallery'
huhti 04 11:09:08 Xperia10II-DualSIM invoker[6031]: WARNING: An inactive plugin is misbehaving - tried to show a window!
huhti 04 11:09:08 Xperia10II-DualSIM invoker[6031]: WARNING: requestActivate() called for  QQuickView(0x6b4c60)  which has Qt::WindowDoesNotAcceptFocus set.
huhti 04 11:09:09 Xperia10II-DualSIM kernel: i2c_geni 4a88000.i2c: i2c error :-107
huhti 04 11:09:13 Xperia10II-DualSIM jolla-gallery[21197]: [W] unknown:52 - file:///usr/lib64/qt5/qml/Sailfish/Gallery/ImageViewer.qml:52:5: QML Image: Cannot open: file:///run/media/defaultuser/0123-4567/WhatsApp/Media/WhatsApp Images/IMG-20141211-WA0001.jpg,file:///run/media/defaultuser/0123-4567/Pictures/Camera/20230404_110143.jpg
huhti 04 11:09:19 Xperia10II-DualSIM kernel: i2c_geni 4a88000.i2c: i2c error :-107
huhti 04 11:09:24 Xperia10II-DualSIM invoker[6031]: WARNING: An inactive plugin is misbehaving - tried to show a window!
huhti 04 11:09:24 Xperia10II-DualSIM invoker[6031]: WARNING: requestActivate() called for  QQuickView(0x6b4c60)  which has Qt::WindowDoesNotAcceptFocus set.
huhti 04 11:09:25 Xperia10II-DualSIM kernel: HTB: quantum of class 10010 is big. Consider r2q change.
huhti 04 11:09:25 Xperia10II-DualSIM kernel: BUG: Bad rss-counter state mm:ffffffc0c0fafa80 idx:4 val:15092
huhti 04 11:09:25 Xperia10II-DualSIM booster-generic[5404]: *** signal=17 pid=5404
huhti 04 11:09:25 Xperia10II-DualSIM /usr/libexec/mapplauncherd/booster-generic[5404]: warning: Daemon: sending exit(0) to invoker(21160)
huhti 04 11:09:30 Xperia10II-DualSIM kernel: msm_csid_init: CSID_VERSION = 0x30050000
huhti 04 11:09:30 Xperia10II-DualSIM kernel: msm_csid_irq CSID0_IRQ_STATUS_ADDR = 0x800
huhti 04 11:09:30 Xperia10II-DualSIM kernel: MSM-CPP cpp_init_hardware:1135 CPP HW Version: 0x60010004
huhti 04 11:09:30 Xperia10II-DualSIM kernel: MSM-CPP cpp_init_hardware:1153 stream_cnt:0
huhti 04 11:09:31 Xperia10II-DualSIM kernel: msm_cci_init:1446: hw_version = 0x10060000
huhti 04 11:09:31 Xperia10II-DualSIM kernel: MSM-CPP cpp_release_hardware:1216 cpp hw release done
huhti 04 11:09:31 Xperia10II-DualSIM [19047]: ssusysinfo_load_ssu_config: expected ssu config version 14, found 0
huhti 04 11:09:31 Xperia10II-DualSIM [19047]: ssusysinfo_load_ssu_config: expected ssu config version 14, found 0
huhti 04 11:09:31 Xperia10II-DualSIM [19047]: ssusysinfo_load_ssu_config: expected ssu config version 14, found 0
huhti 04 11:09:31 Xperia10II-DualSIM booster-silica-media[21286]: [D] unknown:0 - Using Wayland-EGL
huhti 04 11:09:31 Xperia10II-DualSIM autologind[5324]: library "libGLESv2_adreno.so" not found
huhti 04 11:09:31 Xperia10II-DualSIM autologind[5324]: library "eglSubDriverAndroid.so" not found
huhti 04 11:09:32 Xperia10II-DualSIM invoker[6031]: WARNING: An inactive plugin is misbehaving - tried to show a window!
huhti 04 11:09:32 Xperia10II-DualSIM invoker[6031]: WARNING: requestActivate() called for  QQuickView(0x6b4c60)  which has Qt::WindowDoesNotAcceptFocus set.
huhti 04 11:09:32 Xperia10II-DualSIM mce[1642]: tklock.c: tklock_dbus_notification_beg_cb(): notification begin from name=:1.60 owner=:1.60 pid=5569 uid=100000 gid=996 priv=1 cmd=/usr/bin/lipstick -plugin evdevtouch -plugin evdevmouse -plugin
huhti 04 11:09:32 Xperia10II-DualSIM mce[1642]: tklock.c: tklock_datapipe_uiexception_type_cb(): uiexception_type = none -> notif
huhti 04 11:09:32 Xperia10II-DualSIM sensorfwd[2780]: virtual bool HybrisAdaptor::setInterval(unsigned int, int) setInterval not ok
huhti 04 11:09:32 Xperia10II-DualSIM [19047]: [W] unknown:20 - file:///usr/lib64/qt5/qml/com/jolla/camera/settings/CameraDeviceToggle.qml:20: TypeError: Cannot read property 'length' of undefined
huhti 04 11:09:32 Xperia10II-DualSIM mce[1642]: modules/proximity.c: mp_datapipe_set_proximity_sensor_actual(): state: UNDEF -> OPEN
huhti 04 11:09:32 Xperia10II-DualSIM lipstick[5569]: [W] unknown:0 - WindowPixmapItem does not have a source texture, cover will be dropped..
huhti 04 11:09:33 Xperia10II-DualSIM kernel: msm_csid_init: CSID_VERSION = 0x30050000
huhti 04 11:09:33 Xperia10II-DualSIM kernel: msm_csid_irq CSID0_IRQ_STATUS_ADDR = 0x800
huhti 04 11:09:33 Xperia10II-DualSIM kernel: MSM-CPP cpp_init_hardware:1135 CPP HW Version: 0x60010004
huhti 04 11:09:33 Xperia10II-DualSIM kernel: MSM-CPP cpp_init_hardware:1153 stream_cnt:0
huhti 04 11:09:33 Xperia10II-DualSIM kernel: msm_cci_init:1446: hw_version = 0x10060000
huhti 04 11:09:33 Xperia10II-DualSIM kernel: MSM-CPP cpp_release_hardware:1216 cpp hw release done
huhti 04 11:09:33 Xperia10II-DualSIM kernel: msm_csid_init: CSID_VERSION = 0x30050000
huhti 04 11:09:33 Xperia10II-DualSIM kernel: msm_csid_irq CSID0_IRQ_STATUS_ADDR = 0x800
huhti 04 11:09:33 Xperia10II-DualSIM kernel: MSM-CPP cpp_init_hardware:1135 CPP HW Version: 0x60010004
huhti 04 11:09:33 Xperia10II-DualSIM kernel: MSM-CPP cpp_init_hardware:1153 stream_cnt:0
huhti 04 11:09:33 Xperia10II-DualSIM kernel: msm_cci_init:1446: hw_version = 0x10060000
huhti 04 11:09:33 Xperia10II-DualSIM kernel: MSM-CPP cpp_release_hardware:1216 cpp hw release done
huhti 04 11:09:33 Xperia10II-DualSIM kernel: msm_csid_init: CSID_VERSION = 0x30050000
huhti 04 11:09:33 Xperia10II-DualSIM kernel: msm_csid_irq CSID0_IRQ_STATUS_ADDR = 0x800
huhti 04 11:09:33 Xperia10II-DualSIM kernel: MSM-CPP cpp_init_hardware:1135 CPP HW Version: 0x60010004
huhti 04 11:09:33 Xperia10II-DualSIM kernel: MSM-CPP cpp_init_hardware:1153 stream_cnt:0
huhti 04 11:09:33 Xperia10II-DualSIM kernel: msm_cci_init:1446: hw_version = 0x10060000
huhti 04 11:09:34 Xperia10II-DualSIM kernel: msm_csid_irq CSID0_IRQ_STATUS_ADDR = 0x800
huhti 04 11:09:34 Xperia10II-DualSIM [19047]: [D] onCompleted:105 - ViewPlaceholder requires a SilicaFlickable parent
huhti 04 11:09:34 Xperia10II-DualSIM dbus-daemon[5405]: dbus-daemon[5405]: [session uid=100000 pid=5405] Activating service name='org.amberapi.zxing' requested by ':1.95' (uid=100000 pid=6077 comm="/usr/bin/xdg-dbus-proxy --fd=4 --args=9" label="u:r:kernel:s0")
huhti 04 11:09:34 Xperia10II-DualSIM dbus-daemon[5405]: dbus-daemon[5405]: [session uid=100000 pid=5405] Successfully activated service 'org.amberapi.zxing'
huhti 04 11:09:34 Xperia10II-DualSIM zxing-daemon[21481]: [W] unknown:0 - map(): 8
huhti 04 11:09:37 Xperia10II-DualSIM kernel: msm_isp_buf_enqueue: Invalid bufq, handle 0x1000207, stream id 10002 num_plane 2
huhti 04 11:09:37 Xperia10II-DualSIM kernel: msm_isp_buf_enqueue: Invalid bufq, handle 0x1000308, stream id 10003 num_plane 1
huhti 04 11:09:38 Xperia10II-DualSIM kernel: i2c_geni 4a8c000.i2c: i2c error :-107
huhti 04 11:09:38 Xperia10II-DualSIM booster-qt5[5397]: *** signal=17 pid=5397
huhti 04 11:09:38 Xperia10II-DualSIM [19047]: [W] unknown:0 - Could not change owner/group of resulting photo capture file: "/run/media/defaultuser/0123-4567/Pictures/Camera/20230404_110937.jpg" Toiminto ei ole sallittu
huhti 04 11:09:38 Xperia10II-DualSIM dbus-daemon[5405]: dbus-daemon[5405]: [session uid=100000 pid=5405] Activating via systemd: service name='org.freedesktop.Tracker3.Miner.Extract' unit='tracker-extract-3.service' requested by ':1.72' (uid=100000 pid=6608 comm="/usr/libexec/tracker-miner-fs-3" label="u:r:kernel:s0")
huhti 04 11:09:38 Xperia10II-DualSIM systemd[5372]: Starting Tracker metadata extractor...
huhti 04 11:09:38 Xperia10II-DualSIM dbus-daemon[5405]: dbus-daemon[5405]: [session uid=100000 pid=5405] Successfully activated service 'org.freedesktop.Tracker3.Miner.Extract'
huhti 04 11:09:38 Xperia10II-DualSIM systemd[5372]: Started Tracker metadata extractor.
huhti 04 11:09:39 Xperia10II-DualSIM mce[1642]: tklock.c: tklock_datapipe_uiexception_type_cb(): uiexception_type = notif -> none
huhti 04 11:09:40 Xperia10II-DualSIM lipstick[5569]: [W] unknown:0 - QQmlExpression: Attempted to evaluate an expression in an invalid context
huhti 04 11:09:40 Xperia10II-DualSIM kernel: MSM-CPP cpp_release_hardware:1216 cpp hw release done
huhti 04 11:09:40 Xperia10II-DualSIM sensorfwd[2780]: virtual bool HybrisAdaptor::setInterval(unsigned int, int) setInterval not ok
huhti 04 11:09:40 Xperia10II-DualSIM dbus-daemon[5405]: dbus-daemon[5405]: [session uid=100000 pid=5405] Activating service name='com.jolla.gallery' requested by ':1.127' (uid=100000 pid=21577 comm="/usr/libexec/mliteremoteaction com.jolla.gallery /" label="u:r:kernel:s0")
huhti 04 11:09:40 Xperia10II-DualSIM sensorfwd[2780]: virtual bool HybrisAdaptor::setInterval(unsigned int, int) setInterval not ok
huhti 04 11:09:40 Xperia10II-DualSIM sailjail[21161]: ignoring argument: -prestart
huhti 04 11:09:40 Xperia10II-DualSIM dbus-daemon[5405]: constructing /run/firejail/mnt/privileged: Images,Ambienced,msyncd,Accounts,Keys ...
huhti 04 11:09:40 Xperia10II-DualSIM dbus-daemon[5405]: mounting /run/firejail/mnt/privileged @ /home/defaultuser/.local/share/system/privileged
huhti 04 11:09:40 Xperia10II-DualSIM dbus-daemon[5405]: hiding /run/firejail/mnt/privileged
huhti 04 11:09:40 Xperia10II-DualSIM autologind[5324]: *** signal=17 pid=32
huhti 04 11:09:40 Xperia10II-DualSIM /usr/libexec/mapplauncherd/booster-silica-media[6338]: warning: Daemon: sending exit(0) to invoker(-1)
huhti 04 11:09:41 Xperia10II-DualSIM jolla-gallery[21617]: [D] unknown:0 - Using Wayland-EGL
huhti 04 11:09:41 Xperia10II-DualSIM dbus-daemon[5405]: library "libGLESv2_adreno.so" not found
huhti 04 11:09:41 Xperia10II-DualSIM dbus-daemon[5405]: library "eglSubDriverAndroid.so" not found
huhti 04 11:09:41 Xperia10II-DualSIM kernel: BUG: Bad rss-counter state mm:ffffffc0a289cd00 idx:4 val:26945

Is your card formatted as FAT filesystem? In that case that message is understandable, as FAT does not have a concept of owner/group.

1 Like

These two files:

file:///run/media/defaultuser/0123-4567/WhatsApp/Media/WhatsApp Images/IMG-20141211-WA0001.jpg
file:///run/media/defaultuser/0123-4567/Pictures/Camera/20230404_110143.jpg

  1. Do they both exist?
  2. Are they readable by the user?
  3. Are they different, or maybe the same image (e.g. one is a copy of the other?)

Thank you for the reply!

The SD card is exfat. These two images both exist and they are completely different located in separate folders. I am able to open the images through file browser. For some reason it’s always those random old WhatsApp images located in SD card that get drawn into the path of those images taken by camera.

I haven’t been successful at finding a way to reproduce this issue other than it happens when it happens. I first suspected that maybe sharing or taking picture through Android apps could potentially cause this or so on, but this didn’t seem to be the case.

Seems that by running “Refresh media database” or something like that in Sailfish Utilities, I can get the non-displayable images back.

If you don’t need the WA images, you can create a .nomedia file in that dir.
That would exclude them from indexing, and probably hide the issue.

3 Likes