Navigation to next image inconsistently fails when some files (e.g. RAW images) cannot be loaded
Description
This is related to #92 (closed) and !212 (merged): When opening an image in a folder with JPG and corresponding RAW files (which Loupe should skip), navigating to the next image sometimes works, sometimes simply nothing happens, and at some point I end up at this screen when scrolling to fast:
It feels like this is related to whether Loupe has cached the next image already: If so, everything works, otherwise, either of the error cases occurs. The case where it goes to the "Open files" screen is particularly disrupting, since it's impossible to navigate back from there.
I guess this is exacerbated by #232 (closed).
Video
I'm navigating by two-finger scrolling on the touchpad here, first somewhat slowly, then flicking along fast before Loupe manages to render the next picture:
Screencast_from_2023-09-04_21-04-35
Logs
Sep 04 20:43:47 <hostname> flatpak[56735]: [2023-09-04T18:43:47.268Z ERROR loupe::file_model] URI not in model: file:///home/<user>/path/to/the/pictures/_1090003.RW2
Sep 04 20:43:50 <hostname> loupe[56735]: g_object_weak_unref: couldn't find weak ref 0x7f94c37518e0((nil))
Troubleshooting Information
- Version: 45.beta.1
- App ID: org.gnome.Loupe
- Sandboxed: true flatpak
OS Information
NAME="Fedora Linux"
VERSION="38 (Workstation Edition)"
ID=fedora
VERSION_ID=38
VERSION_CODENAME=""
PLATFORM_ID="platform:f38"
PRETTY_NAME="Fedora Linux 38 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:38"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f38/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=38
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=38
SUPPORT_END=2024-05-14
VARIANT="Workstation Edition"
VARIANT_ID=workstation