Bug 431658

Summary: Digikam git trash issue
Product: [Applications] digikam Reporter: maderios <leoutation>
Component: Albums-TrashAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version: 7.2.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 7.2.0
Sentry Crash Report:

Description maderios 2021-01-15 21:17:14 UTC
Digikam git Rev.: 8be9fa4bad68fb189bf7ad00170fb3527ac732a5
Arch system
libxcb version  1.14-1
With two album/directories locations, trash icon doesnt show files I trashed. 
Set two differents album/directories
Delete one or more files. Trash icon shows nothing, just like files were deleted.
Then set only one album. Magically, trash icon shows now previously trashed files. Trash works normally.
Console messages:
qt.qpa.xcb: Unhandled client message:  "_E_COMP_FLUSH"
qt.qpa.xcb: Unhandled client message:  "_E_COMP_DUMP"
Comment 1 Maik Qualmann 2021-01-15 21:43:45 UTC
There haven't been any changes to the Trash lately and I can't find any problem here with multiple collections. All Trashes are displayed and their content is displayed. Your error messages do not come directly from digiKam, but from the depths of Qt and indicate a problem with the communication with the X server.

Maik
Comment 2 Maik Qualmann 2021-01-15 21:49:35 UTC
The revision 8be9fa4bad68fb189bf7ad00170fb3527ac732a5 is 2 weeks old.

Maik
Comment 3 maderios 2021-01-15 22:00:22 UTC
I'll try to reproduce issue with last git master version.
Thanks for your answer.
Comment 4 maderios 2021-01-16 19:45:20 UTC
Out of topic, i dont know if it's the right place, sorry. 
Digikam git has a ccache "compatibility" problem:

[ 47%] Built target gui_digikam_obj_autogen
[ 48%] Built target core_dmetadata_obj
[ 54%] Built target core_dimg_obj
[35m[1mScanning dependencies of target digikamcore[0m
[ 58%] Built target gui_digikam_obj
[ 58%] [32mBuilding CXX object core/app/CMakeFiles/digikamcore.dir/utils/digikam_version.cpp.o[0m
ccache: error: Failed to create directory /run/user/0/ccache-tmp: Permission denied
make[2]: *** [core/app/CMakeFiles/digikamcore.dir/build.make:108: core/app/CMakeFiles/digikamcore.dir/utils/digikam_version.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:9918: core/app/CMakeFiles/digikamcore.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
[1m[31m==> ERROR:[m[1m A failure occurred in package().

To know: i checked Ccache behaviour with other builds. 
I built successfully today efl-git, enlightenment-git, rage-git, terminology-git.
Ccache doesn't complain about permission with these softwares.
Only digikam master git version has problem with ccache.
Comment 5 Maik Qualmann 2021-01-16 20:07:58 UTC
You'll need to start a new clean build. In the current git version, cmake functions have been re-implemented for the build time.

Maik
Comment 6 maderios 2021-01-17 15:49:49 UTC
I deleted all src and git directories.
Build again, same Ccache issue:
[58%] Building CXX object core/app/CMakeFiles/digikamcore.dir/utils/digikam_version.cpp.o
Failed to create directory /run/user/0/ccache-tmp: Permission denied
Comment 7 caulier.gilles 2021-01-17 15:59:14 UTC
This compilation problem is not reproducible here on all my computer (Centos, Mageia, Rasbian, Windows, and macOS)

also continuous integration on Suse work fine : 

https://build.kde.org/view/OS%20-%20Linux/job/Extragear/job/digikam/job/kf5-qt5%20SUSEQt5.15/


Gilles Caulier
Comment 8 maderios 2021-01-17 21:17:58 UTC
I test other qt/kde application: Amarok git compiles fine with Ccache.
I don't understand why only Digikam ccache build is not allowed to write in /run/user/0
Comment 9 maderios 2021-01-18 11:16:39 UTC
I submitted this bug here
https://bugs.kde.org/show_bug.cgi?id=431775
Comment 10 maderios 2021-01-18 11:29:05 UTC
This Digikam trash issue seems solved for me with 8be9fa4bad68fb189bf7ad00170fb3527ac732a5 revision