Bug 451719 - Camera list is empty
Summary: Camera list is empty
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-Gphoto2 (show other bugs)
Version: 7.6.0
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-20 09:15 UTC by aschlottau
Modified: 2024-09-18 04:36 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.5.0
Sentry Crash Report:


Attachments
Camera configuration (124.07 KB, image/png)
2022-03-20 09:15 UTC, aschlottau
Details
attachment-21165-0.html (2.99 KB, text/html)
2022-03-20 15:16 UTC, aschlottau
Details
Screenshot 2022-03-20 at 16.01.19.png (539.16 KB, image/png)
2022-03-20 15:16 UTC, aschlottau
Details
Screenshot 2022-03-20 at 16.03.07.png (393.59 KB, image/png)
2022-03-20 15:16 UTC, aschlottau
Details
Screenshot 2022-03-20 at 16.03.30.png (68.02 KB, image/png)
2022-03-20 15:16 UTC, aschlottau
Details
Screenshot 2022-03-20 at 16.03.55.png (806.74 KB, image/png)
2022-03-20 15:16 UTC, aschlottau
Details
Screenshot 2022-03-20 at 16.10.22.png (102.36 KB, image/png)
2022-03-20 15:16 UTC, aschlottau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aschlottau 2022-03-20 09:15:13 UTC
Created attachment 147613 [details]
Camera configuration

Shouldn't the list be filled with compatible cameras? Or is there a way to fill it? 

SOFTWARE/OS VERSIONS
macOS: 12.3
Comment 1 Maik Qualmann 2022-03-20 09:22:14 UTC
This list is empty before adding a camera(s).

Maik
Comment 2 Maik Qualmann 2022-03-20 09:28:31 UTC
When you click "Add..." a list of cameras currently supported by GPhoto2 appears?

Maik
Comment 3 caulier.gilles 2022-03-20 09:47:56 UTC
Not reproducible here. 

As explaining Maik, pressing Add... button from Camera Setup Dialog list all Gphoto2 drivers available :

https://i.imgur.com/25Dk1gS.png

I'm sure, i fixed this problem with 7.6.0 (a problem with packaging Gphoto2 modules in the MacOS bundle).

Gilles
Comment 4 aschlottau 2022-03-20 09:48:33 UTC
Thank you for your quick reply! 

> On 20 Mar 2022, at 10:28, Maik Qualmann <bugzilla_noreply@kde.org> wrote:
> 
> https://bugs.kde.org/show_bug.cgi?id=451719
> 
> --- Comment #2 from Maik Qualmann <metzpinguin@gmail.com> ---
> When you click "Add..." a list of cameras currently supported by GPhoto2
> appears?

No! And when I add my Panasonic DMC-TZ57 manually and then try to import Digikam crashes 


> 
> Maik
> 
> -- 
> You are receiving this mail because:
> You reported the bug.
Comment 5 Maik Qualmann 2022-03-20 09:53:15 UTC
It shouldn't crash, but the DMC-TZ57 camera is currently not in the GPhoto2 supported camera list.

Maik
Comment 6 caulier.gilles 2022-03-20 09:59:24 UTC
Did you see an empty list if you install digiKam 7.7.0 pre-release available here :

https://files.kde.org/digikam/

Gilles Caulier
Comment 7 aschlottau 2022-03-20 09:59:31 UTC
Ok, thank you!

I can use the camera as a USB drive instead, which works fine but I have to relaunch Digikam every time I connect it for it to be available. 
Not a real problem but it would be nice if Digikam could acknowledge the USB drive being hot plugged…

Sascha 

> On 20 Mar 2022, at 10:53, Maik Qualmann <bugzilla_noreply@kde.org> wrote:
> 
> https://bugs.kde.org/show_bug.cgi?id=451719
> 
> --- Comment #5 from Maik Qualmann <metzpinguin@gmail.com> ---
> It shouldn't crash, but the DMC-TZ57 camera is currently not in the GPhoto2
> supported camera list.
> 
> Maik
> 
> -- 
> You are receiving this mail because:
> You reported the bug.
Comment 8 aschlottau 2022-03-20 10:02:02 UTC
Thank you Gilles! 

I’ll try this later and report (prefer to go out now an enjoy the sunny weather here in Paris 😁)

Sascha

> On 20 Mar 2022, at 10:59, bugzilla_noreply@kde.org wrote:
> 
> https://bugs.kde.org/show_bug.cgi?id=451719
> 
> --- Comment #6 from caulier.gilles@gmail.com ---
> Did you see an empty list if you install digiKam 7.7.0 pre-release available
> here :
> 
> https://files.kde.org/digikam/
> 
> Gilles Caulier
> 
> -- 
> You are receiving this mail because:
> You reported the bug.
Comment 9 caulier.gilles 2022-03-20 10:06:50 UTC
7.7.0 pre-release is this version that i use to take the screenshot. So, it must work typically...

Gilles
Comment 10 aschlottau 2022-03-20 15:16:23 UTC
Created attachment 147621 [details]
attachment-21165-0.html

Just tried with 7.7.0 as you suggested. But the camera list is still empty…



I then added the camera manually:



and tried to import from it



but Digikam crashed:



As I said, if I import from it as an USB Storage device it works




But unfortunately only if I plug in the camera before launching Digikam…

Please let me know if I can do anything to help you to understand the problem!

Regards

Sascha

P.S.: Nevertheless, Digikam is just gorgeous! Thank you for your great work! 



> On 20 Mar 2022, at 11:06, bugzilla_noreply@kde.org wrote:
> 
> https://bugs.kde.org/show_bug.cgi?id=451719
> 
> --- Comment #9 from caulier.gilles@gmail.com ---
> 7.7.0 pre-release is this version that i use to take the screenshot. So, it
> must work typically...
> 
> Gilles
> 
> -- 
> You are receiving this mail because:
> You reported the bug.
Comment 11 aschlottau 2022-03-20 15:16:24 UTC
Created attachment 147622 [details]
Screenshot 2022-03-20 at 16.01.19.png
Comment 12 aschlottau 2022-03-20 15:16:24 UTC
Created attachment 147623 [details]
Screenshot 2022-03-20 at 16.03.07.png
Comment 13 aschlottau 2022-03-20 15:16:24 UTC
Created attachment 147624 [details]
Screenshot 2022-03-20 at 16.03.30.png
Comment 14 aschlottau 2022-03-20 15:16:24 UTC
Created attachment 147625 [details]
Screenshot 2022-03-20 at 16.03.55.png
Comment 15 aschlottau 2022-03-20 15:16:24 UTC
Created attachment 147626 [details]
Screenshot 2022-03-20 at 16.10.22.png
Comment 16 Maik Qualmann 2022-03-20 15:20:49 UTC
Please scroll to thread 28 that is the thread that crashed or post the full log.

Maik
Comment 17 caulier.gilles 2022-03-20 15:40:30 UTC
I just tried with my second macbook pro, and i can reproduce the problem :

https://i.imgur.com/01yw6KQ.png

Gilles Caulier
Comment 18 caulier.gilles 2022-03-20 15:47:57 UTC
I suspect an access right to add in MacOS config panel, section "Security..."

On my first computer where list is populated, digiKam appear in plenty of entries :

- Files and folders;
- Accessibility;
- Photos.
Comment 19 aschlottau 2022-03-20 16:16:46 UTC
On my mac, digiKam appears in "Files and folders”, I added it manually to “Accessibilty”, but that did not change anything.

For “Photos” one can’t add an app via the GUI, maybe through Terminal ? But anyhow, I can hardly imagine how this could be the reason...
 

> On 20 Mar 2022, at 16:47, bugzilla_noreply@kde.org wrote:
> 
> https://bugs.kde.org/show_bug.cgi?id=451719
> 
> --- Comment #18 from caulier.gilles@gmail.com ---
> I suspect an access right to add in MacOS config panel, section "Security..."
> 
> On my first computer where list is populated, digiKam appear in plenty of
> entries :
> 
> - Files and folders;
> - Accessibility;
> - Photos.
> 
> -- 
> You are receiving this mail because:
> You reported the bug.
Comment 20 Maik Qualmann 2022-10-11 16:41:44 UTC
*** Bug 460252 has been marked as a duplicate of this bug. ***
Comment 21 caulier.gilles 2023-05-02 08:36:48 UTC
Here my screenshot of digiKam 8.0.0 taken under my macbook pro 2015 Intel :

https://i.imgur.com/WmgomT5.png

As you can see the camera list is populated properly. I setup all the rights to the application listed on the online documentation:

https://docs.digikam.org/en/getting_started/installation.html#digikam-on-macos

Gilles Caulier
Comment 22 aschlottau 2023-05-05 07:57:45 UTC
Bonjour M. Caulier,
Sorry to say but it still doesn't work for me.
I really would like to understand what I'm doing wrong...
Here's how I proceeded to be sure to start from a fresh installation:
I deleted the old apps
I also deleted:
~/Library/Preferences/digikamrc, 
~/Library/Preferences/digikam_systemrc, 
~/Library/Caches/digikam and 
~/Library/Application Support/digikam
I downloaded version 8, installed it and gave it all the necessary rights (see attached screenshots) 
But the camera list is still empty...
https://www.dropbox.com/sh/676lv0a4vwix28p/AACXl86buonyqgqDMvo_zF7ea?dl=0
Any idea?
Thank you
Sascha
Comment 23 caulier.gilles 2023-05-05 08:00:18 UTC
Well no.

Typically all digiKam settings is not relevant of Gphoto2 right access. I'm sure that problem is located with the MacOS right settings.

But what's exactly ???

Gilles Caulier
Comment 24 aschlottau 2023-05-05 09:26:49 UTC
Just for your information: I just did the same installation on my wife's Mac (Ventura 13.2) with the same result: the camera list is empty...
Comment 25 aschlottau 2023-05-05 16:40:55 UTC
In case it might help: when launching Digikam with Terminal I get the following messages:

alexanderschlottau@Macbook-pro ~ % /Applications/digiKam.org/digikam.app/Contents/MacOS/digikam       
qt.qpa.fonts: Populating font family aliases took 281 ms. Replace uses of missing font family ".AppleSystemUIFont" with one that exists to avoid this cost. 
dbus[6787]: Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
kf.xmlgui: Unhandled container to remove :  Digikam::DigikamApp

No idea if the dynamic session problem is related to the gphoto2 problem...

Regards
Sascha
Comment 26 caulier.gilles 2023-05-05 17:27:11 UTC
Dynamic session is DBUS used by Qt. It's a protocol based on a local server to allows to communicate between application. It's only Linux stuff, even if it can run under other OS. It's not used by digiKam at all.

Gilles
Comment 27 aschlottau 2023-05-06 15:49:48 UTC
As you already said: if on your Mac the camera list is filled and on our two Macs it's not, the problem probably is that the GPhoto2 code is not being executed and/or has not sufficient rights on our Macs. 
Could it be that as a developer you put up your Mac with some special privileges?
Comment 28 caulier.gilles 2023-05-07 07:59:27 UTC
Not all. I have not set anything excepted the rights from the macOS ctrl panel 
Gilles
Comment 29 Maik Qualmann 2023-06-01 17:35:57 UTC
*** Bug 470530 has been marked as a duplicate of this bug. ***
Comment 30 Jarmo 2023-10-07 14:01:26 UTC
I see the same behavior on Windows 11 Pro 22H2 and on Windows 10 with digiKam 8.1.0.
After a fresh install, the list of supported cameras is empty. 
Tried running the app as admin and installing as admin user - no difference. 

I have no previous experience with digiKam, so cannot say whether it worked on Windows before.

Are there any debug options or logfiles I could look at to see what's going on? Or should I rather file this as a separate Bug as it is on Windows not Mac?

Unfortunately this is a showstopper for me - otherwise the app looks really great - exactly what I was looking for!
Comment 31 Jarmo 2023-10-07 14:33:22 UTC
(In reply to Jarmo from comment #30)
> I see the same behavior on Windows 11 Pro 22H2 and on Windows 10 with
> digiKam 8.1.0.
> After a fresh install, the list of supported cameras is empty. 
> Tried running the app as admin and installing as admin user - no difference. 
> 
> I have no previous experience with digiKam, so cannot say whether it worked
> on Windows before.
> 
> Are there any debug options or logfiles I could look at to see what's going
> on? Or should I rather file this as a separate Bug as it is on Windows not
> Mac?
> 
> Unfortunately this is a showstopper for me - otherwise the app looks really
> great - exactly what I was looking for!

Right after posting this I was able to solve the problem thanks to a comment in bug 398166: dikiKam needs to be started from the installation folder (C:\Program Files\digiKam\) an not from the Start Menu. Maybe that is something that should be mentioned in documentation if it can't be fixed?

Unfortunately import still does not work - no connection to camera is established. Will keep searching for a solution...
Comment 32 caulier.gilles 2023-10-07 14:37:04 UTC
Hi, 

Gphoto2 support do not work under Windows. This is a limitation of Gphoto2, not digiKam, even if Gphoto2 can be compiled under Windows now. this require a change in usb module inside the Windows core to work, which is out of scope from digiKam.

The only way for the future is to support the native Windows API to deal with camera, which is not yet implemented.

The MacOS problem is different as it's relevant of right access to the camera to setup from end users to the bundled application.

Best

Gilles Caulier
Comment 33 caulier.gilles 2024-09-14 21:09:34 UTC
*** Bug 451727 has been marked as a duplicate of this bug. ***
Comment 34 caulier.gilles 2024-09-15 06:28:26 UTC
Hi all,

The next digiKam 8.5.0 will be compiled natively for Apple Silicon computer (arm64 architecture).
Here the pre-release PKG installer list all gphoto2 drivers as expected:

https://i.imgur.com/UkkBoDn.png

You can download and test the Qt6 based PKG installer fir macOS available here:

https://files.kde.org/digikam/  

Thanks in advance for your feedback

Gilles Caulier
Comment 35 aschlottau 2024-09-15 08:25:12 UTC
(In reply to caulier.gilles from comment #34)
> Hi all,
> 
> The next digiKam 8.5.0 will be compiled natively for Apple Silicon computer
> (arm64 architecture).
> Here the pre-release PKG installer list all gphoto2 drivers as expected:
> 
> https://i.imgur.com/UkkBoDn.png
> 
> You can download and test the Qt6 based PKG installer fir macOS available
> here:
> 
> https://files.kde.org/digikam/  
> 
> Thanks in advance for your feedback
> 
> Gilles Caulier

Hi Gilles,

I'm on an Intel Mac (Ventura 13.6.9) with DigiKam 8.4.0 and still have an empty camera list. I would very much like to test a pre-release for Intel!
Comment 36 caulier.gilles 2024-09-15 08:28:47 UTC
The pre-release for Intel (Qt5 based) will arrives in few hours in the legacy/ sub directory of the same download area. I currently recompile whole Macports from scratch since 8 hours and it's will be ready later today i hope. Please be patient...
Comment 37 caulier.gilles 2024-09-17 05:46:39 UTC
Git commit b976d40cc24f9f7f43b935ed884593040d4903ec by Gilles Caulier.
Committed on 17/09/2024 at 05:44.
Pushed by cgilles into branch 'master'.

Add PATH env. vars for gphoto2 drivers
Related: bug 451727, bug 460252, bug 470530

M  +10   -3    core/app/utils/digikam_globals_bundles.cpp

https://invent.kde.org/graphics/digikam/-/commit/b976d40cc24f9f7f43b935ed884593040d4903ec
Comment 38 caulier.gilles 2024-09-17 07:00:18 UTC
Git commit dac1942db33b28e8103e5bff43d417fe765cfba1 by Gilles Caulier.
Committed on 17/09/2024 at 06:54.
Pushed by cgilles into branch 'master'.

Move the gpohto2 drivers at the right place in the macOS bundle generated by Macports.

Tested on a fresh installation of digiKam on a macbook air M1 without macports, xcode, and other dev tools.

The list of gphoto2 camera can be listed and used.

This can be tested with the digiKam 8.5.0 pre-release PKG installer for Apple Silicon (arm64)
published today at: https://files.kde.org/digikam/
Related: bug 451727, bug 460252, bug 470530

FIXED-IN: 8.5.0

M  +8    -6    project/bundles/macports/04-build-installer.sh
M  +1    -1    project/bundles/macports/data/qt.conf

https://invent.kde.org/graphics/digikam/-/commit/dac1942db33b28e8103e5bff43d417fe765cfba1
Comment 39 aschlottau 2024-09-17 08:30:50 UTC
Sounds great! Thank you! Eager to test it on my Intel Mac!