Bug 485527 - Freeze when trying to import from USB
Summary: Freeze when trying to import from USB
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-MainView (show other bugs)
Version: 8.3.0
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-14 08:38 UTC by philippe.quaglia
Modified: 2024-04-17 17:11 UTC (History)
2 users (show)

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


Attachments
Error message when digikam frozen (63.44 KB, image/png)
2024-04-14 08:38 UTC, philippe.quaglia
Details
Error messages in the terminal (3.39 KB, text/plain)
2024-04-14 08:38 UTC, philippe.quaglia
Details
Message with the debug infos. (281.06 KB, text/plain)
2024-04-14 11:48 UTC, philippe.quaglia
Details

Note You need to log in before you can comment on or make changes to this bug.
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 !