Bug 2010178 - Unable to import photos/videos from memory cards
Summary: Unable to import photos/videos from memory cards
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: shotwell
Version: 35
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-04 06:32 UTC by Luya Tshimbalanga
Modified: 2022-02-22 03:56 UTC (History)
8 users (show)

Fixed In Version: shotwell-0.31.3-8.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-22 03:56:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Screenshot showing the bug (192.07 KB, image/png)
2021-10-04 06:32 UTC, Luya Tshimbalanga
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNOME Gitlab GNOME shotwell issues 4926#note_1281877 0 None None None 2021-10-05 04:48:22 UTC
GNOME Gitlab GNOME shotwell issues 4927 0 None None None 2021-10-05 04:48:22 UTC

Description Luya Tshimbalanga 2021-10-04 06:32:35 UTC
Created attachment 1828815 [details]
Screenshot showing the bug

Description of problem:
A regression occurred when Shotwell false claimed empty memory card despite the presence of image files.

Version-Release number of selected component (if applicable):
0.31.3

How reproducible:
Always

Steps to Reproduce:
1. Attempt to import photos from memory cards
2.
3.

Actual results:
"The camera seems empty. No photos/video found to import"

Expected results:
Shotwell should see photos/videos in the memory

Additional info:

Comment 1 Luya Tshimbalanga 2021-10-05 04:48:23 UTC
The upstream maintainer mentioned the issue was caused by the updated gphoto2. See attached links above.

Comment 2 Stefan 2021-12-08 16:36:09 UTC
Please note the comment of the upstream maintainer

https://gitlab.gnome.org/GNOME/shotwell/-/issues/4926#note_1329820

"This is a development release. Why fedora opted to ship this, is beyond me. The fix is released in the latest stable release 0.30.whatever."

Due this Bug, Shotwell is broken on Fedora 35

Comment 3 Thomas Moschny 2021-12-08 18:19:47 UTC
Well, the update to 0.31 was already done for Fedora 30, and while I don't remember it now, there surely was a reason why Kalev did it at that time. One could also ask why upstream didn't release a stable version based on that branch (i.e., a 0.32) since then.

Anyway, we already cherry-picked some commits, and maybe we are missing one. I can have a look.

Another option would be to switch back to 0.30, but this would force us to use an epoch, and I am not sure about any incompatibilities wrt to the database or the configuration.

Comment 4 Stefan 2021-12-08 19:26:58 UTC
There was some database and configuration changes between Schema Version 20 (0.30.14) and 23 (0.31.3)
* Some columns were added to the database
* GSettings have been migrated: org.yorba.Shotwell -> org.gnome.Shotwell

So switching back maybe not so easy.

I've done it for my installation. I installed Shotwell 0.30.14 from Flatpak and did some changes to the database

UPDATE VersionTable SET schema_version=20, app_version='0.30.14' WHERE id=1;

Without that, Shotwell rejected to launch

Your photo library is not compatible with this version of Shotwell. It appears it was created by Shotwell 0.31.2 (schema 23). This Version is 0.30.14 (schema 20). Please use the latest version of Shotwell

Additionally, I dropped all the additional Database Structures

alter table PhotoTable drop column has_gps;
alter table PhotoTable drop column gps_lat;
alter table PhotoTable drop column gps_lon;
drop table FaceLocationTable;

I assume, it is easier, to cherry pick the right changes :-)

Comment 5 Julian Sikorski 2021-12-25 10:23:16 UTC
https://src.fedoraproject.org/rpms/shotwell/pull-request/1

This PR appears to fix the issue for me.

Comment 6 Thomas Moschny 2022-01-30 12:25:05 UTC
Thanks Julian!

I've created an update, could you please test.

Comment 7 Fedora Update System 2022-01-30 12:25:20 UTC
FEDORA-2022-f755b31430 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-f755b31430

Comment 8 Fedora Update System 2022-01-31 01:22:11 UTC
FEDORA-2022-f755b31430 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-f755b31430`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-f755b31430

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2022-02-22 03:56:45 UTC
FEDORA-2022-f755b31430 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.