digikam fail to import pictures via MTP: Failed to connect to the camera
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
digikam (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I am trying to reproduce bug #2035406.
preparation
-----------
1. Install Ubuntu 20.04 (using ubuntu-
2. Install all updates: sudo apt update && sudo apt dist-upgrade
3. Install digikam: sudo apt install digikam
4. Open digikam and accept all defaults and close digikam again
reproduce
---------
5. Connect a camera (in my case a Sony Alpha 9) via USB to the computer and configure the camera to use MTP
6. Open digikam
7. Select Import -> Cameras -> Sony ILCE-9 (auto-detected)
A new window will open and show a red bar at the bottom with:
Failed to connect to the camera. Please make sure it is connected properly and turned on.
```
~$ LANG=C digikam
digikam.facedb: Cannot found faces engine model "shapepredictor
digikam.facedb: Faces recognition feature cannot be used!
digikam.facedb: cv::Exception: OpenCV(4.5.4) ./modules/
QtAV 1.13.0(Mar 17 2022, 15:37:53)
Multimedia framework base on Qt and FFmpeg.
Distributed under the terms of LGPLv2.1 or later.
Shanghai, China Copyright (C) 2012-2019 Wang Bin (aka. Lucas Wang) <email address hidden>
Donate: http://
Source: https:/
Home page: http://
Icon theme "breeze" not found.
kf.xmlgui: Unhandled container to remove : Digikam::DigikamApp
QLayout: Attempting to add QLayout "" to Digikam:
QWidget:
QWidget:
QWidget:
```
Clicking on the ILCE-9 icon on the side bar lets you navigate and show the pictures on the camera.
Following strace output appears when opening the camera import:
```
$ LANG=C strace -efile digikam 2>&1
[...]
newfstatat(
newfstatat(
newfstatat(
QWidget:
newfstatat(
newfstatat(
newfstatat(
readlink("/home", 0x7ffe555527d0, 1023) = -1 EINVAL (Invalid argument)
readlink(
readlink(
openat(AT_FDCWD, "/proc/
newfstatat(134, "", {st_mode=
access(
statfs("/", {f_type=
readlink("/dev", 0x7ffe555528f0, 1023) = -1 EINVAL (Invalid argument)
readlink(
openat(AT_FDCWD, "/dev/disk/
openat(AT_FDCWD, "/proc/meminfo", O_RDONLY|
[...]
```
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: digikam 4:7.5.0-3fakesync1
ProcVersionSign
Uname: Linux 6.2.0-32-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Fri Sep 15 15:45:13 2023
InstallationDate: Installed on 2023-09-15 (0 days ago)
InstallationMedia: Ubuntu 22.04.2 LTS "Jammy Jellyfish" - Release amd64 (20230223)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: digikam
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
mtime.conffile.
summary: |
- digikam fail to import pictures via MTP: Failed to connect to the - camera. + digikam fail to import pictures via MTP: Failed to connect to the camera |
how about 'LANG=C strace -efile digikam 2>&1 | grep '/dev.*EPERM'?