Bug 485527

Summary: Freeze when trying to import from USB
Product: [Applications] digikam Reporter: philippe.quaglia
Component: Import-MainViewAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 8.3.0   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 8.4.0
Sentry Crash Report:
Attachments: Error message when digikam frozen
Error messages in the terminal
Message with the debug infos.

Description philippe.quaglia 2024-04-14 08:38:08 UTC
Created attachment 168503 [details]
Error message when digikam frozen

SUMMARY
On 8.3.0, I can no more import from USB. Digikam freeze during the process. I tried many times, on 2 different computer, with the same result. I installed 8.2.0 back, and every thing is back to normal.

STEPS TO REPRODUCE
1. Open Digikam. Choose «Importation» «périphérique de stockage USB»
2. I select the images I want to import (around 290)
3. I try to right click to get the menu «import the selection», but nothing appens

OBSERVED RESULT
Nothing happens, and after few seconds, i get the message that Digikam is frozen, and asking if I want to wait or to exit

EXPECTED RESULT
Should import the images

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
The the error message (image), but also the messages in the terminal, when launching the appimage from the terminal. The error messages are strange, as they refers to ... rhytmbox...
Comment 1 philippe.quaglia 2024-04-14 08:38:52 UTC
Created attachment 168504 [details]
Error messages in the terminal
Comment 2 Maik Qualmann 2024-04-14 08:43:39 UTC
Please create the log from the terminal with activated Qt debug output, set this environment variable before digiKam starts:

export QT_LOGGING_RULES="digikam*=true"

Maik
Comment 3 caulier.gilles 2024-04-14 09:18:54 UTC
Note: digiKam has nothing to do with rhytmbox tool...
Comment 4 Maik Qualmann 2024-04-14 11:42:24 UTC
The problem is related to KService. We forgot to patch the import tool context menu. To download images, do not use the right-click context menu, use the tool download button in the tool toolbar.

Maik
Comment 5 philippe.quaglia 2024-04-14 11:47:39 UTC
Here are the messages with the debug tool.
Comment 6 philippe.quaglia 2024-04-14 11:48:30 UTC
Created attachment 168510 [details]
Message with the debug infos.
Comment 7 philippe.quaglia 2024-04-14 11:51:03 UTC
(In reply to Maik Qualmann from comment #4)
> The problem is related to KService. We forgot to patch the import tool
> context menu. To download images, do not use the right-click context menu,
> use the tool download button in the tool toolbar.
> 
> Maik

I can not really access it, I always get the message from the OS «digikam is not responding», and the download button in the toolbar does not react (no button seems to react at all).
Comment 8 Maik Qualmann 2024-04-14 12:09:42 UTC
Git commit 25940e499eb131b0d8e0e7170baccd2dd7f8acf6 by Maik Qualmann.
Committed on 14/04/2024 at 12:09.
Pushed by mqualmann into branch 'master'.

no KService without KIO in the import "Open With..."

M  +134  -63   core/utilities/import/widgets/importcontextmenu.cpp

https://invent.kde.org/graphics/digikam/-/commit/25940e499eb131b0d8e0e7170baccd2dd7f8acf6
Comment 9 Maik Qualmann 2024-04-14 12:12:56 UTC
The GUI is blocked during the download, this is normal. You should not use the right-click context menu. Just select images and then use the tool button to download.

Maik
Comment 10 Maik Qualmann 2024-04-16 20:35:09 UTC
A new pre-release digiKam-8.4.0 AppImage is available. You can use this to test the bug fix, I'm closing the bug now.

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

Maik
Comment 11 philippe.quaglia 2024-04-17 17:11:00 UTC
Hello, tried pre-release of 8.4.0, at it works well. Thank you !