Bug 439581 - Problems under Ubuntu with digiKam as snap package
Summary: Problems under Ubuntu with digiKam as snap package
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: ImageEditor-Core (show other bugs)
Version: 7.2.0
Platform: Snap Linux
: NOR normal
Target Milestone: ---
Assignee: Scarlett Moore
URL:
Keywords:
: 439587 464276 477467 478038 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-07-07 07:42 UTC by webpalaute
Modified: 2023-12-06 07:27 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
installation source (24.21 KB, image/png)
2021-07-07 13:34 UTC, webpalaute
Details
versioning feature (76.83 KB, image/png)
2023-06-02 16:46 UTC, webpalaute
Details
console log as file (61.63 KB, text/x-log)
2023-06-02 16:53 UTC, webpalaute
Details
digikam log (71.48 KB, text/x-log)
2023-10-12 18:43 UTC, webpalaute
Details

Note You need to log in before you can comment on or make changes to this bug.
Description webpalaute 2021-07-07 07:42:53 UTC
SUMMARY
When exporting image to jpg, from menu or button, does not create file.


STEPS TO REPRODUCE
1. File / export
2. filename: test.jpg (name does not matter)
3. save
4. settings for saving image file: default
5. ok - no file anywhere
6. if you use exist file, it will overwrite

OBSERVED RESULT
no file

EXPECTED RESULT
nice to have file saved :-)

SOFTWARE/OS VERSIONS
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.2 LTS"
NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"
KDE Frameworks 5.79.0
Qt 5.15.2 (built against 5.15.2)
The xcb windowing system

ADDITIONAL INFORMATION
no problem with version 6.x
Comment 1 Maik Qualmann 2021-07-07 08:22:35 UTC
Cannot be reproduced here with pre-release digiKam-7.3.0. Please post the debug output in the terminal with activated debug variable as described here:

https://www.digikam.org/contribute/

Maik
Comment 2 webpalaute 2021-07-07 08:48:17 UTC
Tested with logging and following show up.

when startig digikam from commandline, bug does not exists!
When started from desktop-icon, bug exists.
Comment 3 Maik Qualmann 2021-07-07 09:17:22 UTC
The behavior that it works from the command line and not from the icon, I have no explanation for that. Does Ubuntu start programs in a sandbox? Or do you use the Flatpak?

Maik
Comment 4 webpalaute 2021-07-07 09:18:50 UTC
No idea how to use sandbox or flatbak?
Comment 5 Maik Qualmann 2021-07-07 11:34:20 UTC
If I see it correctly, there is no native digiKam version for Ubuntu. A snap package will be installed with sandbox. There is probably the possibility to install the application in "--classic" mode for access to the entire system. In my honest opinion, use a Linux distribution that provides a current native digiKam version.

Maik
Comment 6 Maik Qualmann 2021-07-07 11:38:06 UTC

*** This bug has been marked as a duplicate of bug 439587 ***
Comment 7 Maik Qualmann 2021-07-07 11:43:35 UTC
*** Bug 439587 has been marked as a duplicate of this bug. ***
Comment 8 webpalaute 2021-07-07 13:34:46 UTC
Created attachment 139923 [details]
installation source
Comment 9 webpalaute 2021-07-07 13:36:16 UTC
yep, snapcraft.io seems to be source for os distribution package
Comment 10 webpalaute 2021-07-07 14:01:14 UTC
I removed package from "Ubuntu Software" and installed again from command line with apt install digikam - got version 6.4.0 and there is no problem.

Then is run 7.3.0 appimage, which now started ok and both problems are gone.


Have to say, I'm quite confusing, how installation packages are handled, but it's dikikam case :-)
Comment 11 caulier.gilles 2021-07-07 20:31:22 UTC
Ubuntu have been always a problem. It's the best Linux distro so far...

Gilles Caulier
Comment 12 Maik Qualmann 2021-07-23 21:08:54 UTC
*** Bug 440197 has been marked as a duplicate of this bug. ***
Comment 13 webpalaute 2022-10-20 18:23:09 UTC
Same happened with newer ubuntu. picture seems to export ok, but no files anywhere.
I have tryed with snap-pacgae and with apt-package - same behaviour. 
Current Digikam version on my instalation is 7.8.0

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
Comment 14 Maik Qualmann 2022-10-20 18:32:05 UTC
This is not a digiKam problem. Snap uses a sandbox, so there is no access outside of the home directory. Ubuntu Snap packages are useless.
Reports the problem to Ubuntu and forces them to provide native digiKam packages.

Maik
Comment 15 Maik Qualmann 2023-01-22 20:09:29 UTC
*** Bug 464276 has been marked as a duplicate of this bug. ***
Comment 16 caulier.gilles 2023-05-05 18:26:23 UTC
@webpalaute@ajl.fi

digiKam 8.0.0 is out. This problem still reproducible with this release ?

Best regards

Gilles Caulier
Comment 17 webpalaute 2023-05-08 15:20:33 UTC
Tested with digiKam-8.0.0-x86-64.appimage
No difference. Works same way. No exported files anywhere
Comment 18 caulier.gilles 2023-05-28 14:31:18 UTC
It's not reproducible at all here under Ubuntu 22.04 and later release.

Do you use versioning feature from Image Editor ? Look in digiKam/Setup/Editor/Versioning page for details.

Gilles Caulier
Comment 19 Maik Qualmann 2023-05-28 17:40:53 UTC
It's really hard to imagine that no new file is created with the AppImage when exporting. Please set the Qt debug variable in the terminal:

export QT_LOGGING_RULES="digikam*=true"

Then start the AppImage in the terminal, export a JPG and post the output in the terminal.

Maik
Comment 20 webpalaute 2023-06-02 16:46:26 UTC
Created attachment 159413 [details]
versioning feature

I'm not sure, what settings do you mean with "versioning feature". I haven't changed anything and here attached settings page
Comment 21 webpalaute 2023-06-02 16:53:06 UTC
Created attachment 159414 [details]
console log as file

Here is all logging from running appimage on console, when 
export QT_LOGGING_RULES="digikam*=true"
has been set.

After starting I found out, that some export of image editor works! If I try again, it does not save file. Even restart of image editor does not help. I restarted whole digikam, no help - cannot export anymore.
Comment 22 caulier.gilles 2023-10-11 14:34:32 UTC
@webpalaute@ajl.fi

I cannot reproduce this problem at all. Here i use Kubuntu 22.04 and 23.04

What's about this file using current 8.2.0 AppImage Linux bundle ? It's
reproducible ?

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

Thanks in advance

Gilles Caulier
Comment 23 Scarlett Moore 2023-10-11 15:58:00 UTC
Umm, this is the first I am seeing of this. I am now maintaining snaps. I am working on a new release and will make sure this is in order...
Comment 24 webpalaute 2023-10-11 17:41:43 UTC
Same with version 8.2.0 appimage. I attached video, where you can see, files not saved.
Comment 25 webpalaute 2023-10-11 17:44:55 UTC
Sorry - cannot attach - too big
Comment 26 Maik Qualmann 2023-10-11 17:59:51 UTC
Which protocol did you use to integrate your Buffalo NAS?

Maik
Comment 27 webpalaute 2023-10-11 18:04:59 UTC
I'm using samba. I have tried also on local disk and behaving is the same.
Comment 28 caulier.gilles 2023-10-11 19:02:08 UTC
Hi Scarlett,

There are plenty of rights access problem when digiKam from Snap is used.
Comment 29 caulier.gilles 2023-10-11 19:04:28 UTC
Scarlett,

all Snap problem can be wrapped around using the AppImage bundle. For ex this one :

https://bugs.kde.org/show_bug.cgi?id=453905

The problem is the same with the FlatPak version which have also many rights access limitations.

Gilles Caulier
Comment 30 Maik Qualmann 2023-10-11 19:26:34 UTC
@webpalaute:

When I look at the log from Comment 21, the file "denleu.jpg" was definitely created, the item scanner found it and a thumbnail was created, it must exist. When creating "denleu2.jpg" you seem to have aborted the process and exited digiKam.

Maik
Comment 31 webpalaute 2023-10-12 18:42:04 UTC
As you noticed, sometimes exporting is successful.
I made a new logging with 8.2.0. before start on terminal: 
`export QT_LOGGING_RULES="digikam*=true"` 
What I have made:
- open image thru samba with buffalo
- export with name ajl1.jpg = ok
- export with name ajl2.jpg = ok
- export with name ajl3.jpg = no file anywhere
- export with name ajl3.jpg = no file anywhere (note same same)
- export with name ajl4.jpg = no file anywhere
- exit from image-editor and digikam
Attachment follows
Comment 32 webpalaute 2023-10-12 18:43:03 UTC
Created attachment 162252 [details]
digikam log

latest log today from appimage 8.2.0
Comment 33 Scarlett Moore 2023-10-13 13:16:42 UTC
(In reply to caulier.gilles from comment #29)
> Scarlett,
> 
> all Snap problem can be wrapped around using the AppImage bundle. For ex
> this one :
> 
> https://bugs.kde.org/show_bug.cgi?id=453905
> 
> The problem is the same with the FlatPak version which have also many rights
> access limitations.
> 
> Gilles Caulier

Ok, thank you! I will follow the appimage and get the snap all fixed up.
Comment 34 caulier.gilles 2023-10-13 13:23:31 UTC
Scarlett,

Note that the official digiKam AppImage is not one build with Craft. We written own bash/Cmake script build on XUBuntu 18.04. All is here :

https://invent.kde.org/graphics/digikam/-/tree/master/project/bundles/appimage?ref_type=heads

The stable use Qt 5.15.11 + KF5 5.111.
The unstable not yet fully finalized is now ported to Qt 6.5.3 + KF6 (master).

Gilles
Comment 35 Scarlett Moore 2023-10-13 13:30:47 UTC
(In reply to caulier.gilles from comment #34)
> Scarlett,
> 
> Note that the official digiKam AppImage is not one build with Craft. We
> written own bash/Cmake script build on XUBuntu 18.04. All is here :
> 
> https://invent.kde.org/graphics/digikam/-/tree/master/project/bundles/
> appimage?ref_type=heads
> 
> The stable use Qt 5.15.11 + KF5 5.111.
> The unstable not yet fully finalized is now ported to Qt 6.5.3 + KF6
> (master).
> 
> Gilles

Wonderful thank you, no worries, I am not ready with Qt6 in snaps either.
Comment 36 Maik Qualmann 2023-11-24 16:21:07 UTC
*** Bug 477467 has been marked as a duplicate of this bug. ***
Comment 37 Maik Qualmann 2023-12-06 07:27:41 UTC
*** Bug 478038 has been marked as a duplicate of this bug. ***