Bug 440689 - Current appimage does not start on KDE Neon Linux (Ubuntu 20.04 based)
Summary: Current appimage does not start on KDE Neon Linux (Ubuntu 20.04 based)
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Bundle-AppImage (other bugs)
Version First Reported In: 7.4.0
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-07 13:04 UTC by Jens
Modified: 2021-09-01 21:23 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jens 2021-08-07 13:04:15 UTC
SUMMARY

~$ Applications/digiKam-7.4.0-20210806T231120-x86-64_f8309c9fc65df541f73723b09d54de13.appimage 
-- digiKam Linux AppImage Bundle
-- Use 'help' as CLI argument to know all available options for digiKam application.
-- Notes: to integrate this bundle to your desktop, use AppImageLauncher.
--        to enable all debug messages on the console, use 'export QT_LOGGING_RULES="digikam*=true"'.
libudev.so.0 
libxcb-dri3.so.0 
-- Preloading shared libs: :/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0
digikam: /usr/lib/x86_64-linux-gnu/libnss3.so: version `NSS_3.65' not found (required by /tmp/.mount_digiKagCH64f/usr/lib/libsmime3.so)


~$ dpkg -l libnss3
...
||/ Name           Version             Architektur  Beschreibung
+++-==============-===================-============-==================================
ii  libnss3:amd64  2:3.49.1-1ubuntu1.5 amd64        Network Security Service libraries
Comment 1 caulier.gilles 2021-08-08 10:18:07 UTC
This is not a crash, it' a binary compatibility issue
Comment 2 Maik Qualmann 2021-08-12 21:29:02 UTC
*** Bug 440908 has been marked as a duplicate of this bug. ***
Comment 3 Jens 2021-08-30 18:30:47 UTC
OK, but how does this solve the problem?
Currently I cannot update to any newer snapshots.
Comment 4 Maik Qualmann 2021-08-31 13:13:37 UTC
@Gilles,
can we try to include the libnss3 in the AppImage?

Maik
Comment 5 caulier.gilles 2021-08-31 13:17:24 UTC
Hi Maik,

Yes, sure we can do it... but preloading this library will not be enough, as it's already done with other one ?

https://invent.kde.org/graphics/digikam/-/blob/master/project/bundles/appimage/data/AppRun#L12

Gilles
Comment 6 caulier.gilles 2021-08-31 13:21:16 UTC
Jens,

Try to start Appimage bundle with a preload of library like this :

LD_PRELOAD=/usr/lib64/libnss3.so.0 ./digikam-7.4.0-x86-64.appimage

Name and path to libnss3 can change in different system.

Gilles Caulier
Comment 7 Jens 2021-08-31 15:09:52 UTC
This does not work. Maybe the libnss3 version of Ubuntu LTS is "too old"?

$ LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libnss3.so ./digikam-7.4.0.appimage 
-- digiKam Linux AppImage Bundle
-- Use 'help' as CLI argument to know all available options for digiKam application.
-- Notes: to integrate this bundle to your desktop, use AppImageLauncher.
--        to enable all debug messages on the console, use 'export QT_LOGGING_RULES="digikam*=true"'.
libudev.so.0 
libxcb-dri3.so.0 
-- Preloading shared libs: :/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0
digikam: /usr/lib/x86_64-linux-gnu/libnss3.so: version `NSS_3.65' not found (required by /tmp/.mount_digiKa5ZCWbD/usr/lib/libsmime3.so)

$ dpkg -l|grep libnss
...
ii  libnss3:amd64    2:3.49.1-1ubuntu1.5    amd64   Network Security Service libraries

3.49 < 3.65 which Digikam seems to be compiled against.
Comment 8 caulier.gilles 2021-08-31 15:12:54 UTC
Try to preload libsmime3.so just to test. If it do not work i will rebuild AppImage bundle with the libnss3 embedded.
Comment 9 Jens 2021-08-31 15:32:45 UTC
$ LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libsmime3.so ./digiKam-7.4.0-20210815T231101-x86-64_e6404739beb09320c2feaf9b9eaf35f0.appimage 
-- digiKam Linux AppImage Bundle
-- Use 'help' as CLI argument to know all available options for digiKam application.
-- Notes: to integrate this bundle to your desktop, use AppImageLauncher.
--        to enable all debug messages on the console, use 'export QT_LOGGING_RULES="digikam*=true"'.
libudev.so.0 
libxcb-dri3.so.0 
-- Preloading shared libs: :/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0
digikam: /usr/lib/x86_64-linux-gnu/libnss3.so: version `NSS_3.65' not found (required by /tmp/.mount_digiKaqecv11/usr/lib/libsmime3.so)
Comment 10 caulier.gilles 2021-09-01 06:09:07 UTC
Git commit 5b5eb6266f497f02f76b5719d8ae8cb150f695c6 by Gilles Caulier.
Committed on 01/09/2021 at 06:06.
Pushed by cgilles into branch 'master'.

inclife libnss* in bundle

M  +0    -9    project/bundles/appimage/04-build-appimage.sh

https://invent.kde.org/graphics/digikam/commit/5b5eb6266f497f02f76b5719d8ae8cb150f695c6
Comment 11 caulier.gilles 2021-09-01 09:56:39 UTC
I started the AppImage build without libnss*. It will be avaialble online in few hours at usual place.

Gilles Caulier
Comment 12 caulier.gilles 2021-09-01 11:12:00 UTC
AppImage is ready to test ::
https://files.kde.org/digikam/
Comment 13 caulier.gilles 2021-09-01 13:34:40 UTC
The new AppImage build today work fine under Ubuntu 20.04 here :

https://i.imgur.com/DF4huQT.png
https://i.imgur.com/1QGuKn7.png

Please confirm about KDE Neon. Thanks in advance...

Gilles Caulier
Comment 14 Terence 2021-09-01 14:27:03 UTC
Ubuntu Mate - Release 21.04 (Hirsute Hippo) 64-bit
Kernel Linux 5.11.0-25-generic x86_64

The digiKam-7.4.0-20210901T075400-x86-64.appimage appears to open (via command line) fine -- with no obvious faults, crashes or warnings -- on my Ubuntu Mate system. Here's the CL output below. Thanks for your continued attention to fixing this. 

--------------


:~/Temp$ ./digiKam-7.4.0-20210901T075400-x86-64.appimage
-- digiKam Linux AppImage Bundle
-- Use 'help' as CLI argument to know all available options for digiKam application.
-- Notes: to integrate this bundle to your desktop, use AppImageLauncher.
--        to enable all debug messages on the console, use 'export QT_LOGGING_RULES="digikam*=true"'.
libudev.so.0 
libxcb-dri3.so.0 
-- Preloading shared libs: :/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0
[0901/101619.102864:WARNING:resource_bundle_qt.cpp(115)] locale_file_path.empty() for locale 
[0901/101619.161864:WARNING:resource_bundle_qt.cpp(115)] locale_file_path.empty() for locale 
[0901/101619.172000:WARNING:resource_bundle_qt.cpp(115)] locale_file_path.empty() for locale 
QtAV 1.13.0(Sep  1 2021, 03:26:20)
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) wbsecg1@gmail.com
Donate: http://qtav.org/donate.html
Source: https://github.com/wang-bin/QtAV
Home page: http://qtav.org
[0901/101620.116683:WARNING:resource_bundle_qt.cpp(115)] locale_file_path.empty() for locale 
unknown: Unhandled container to remove :  Digikam::DigikamApp
unknown: Not a PNG image file.
Comment 15 caulier.gilles 2021-09-01 14:56:24 UTC
Ok thanks for the feedback

Gilles Caulier
Comment 16 caulier.gilles 2021-09-01 14:58:50 UTC
Git commit b89be68cfe90971776ecd7a4e3c1e84bfd461d9d by Gilles Caulier.
Committed on 01/09/2021 at 15:02.
Pushed by cgilles into branch 'master'.

add comment about libnss support
Related: bug 440908

M  +1    -0    project/bundles/appimage/04-build-appimage.sh

https://invent.kde.org/graphics/digikam/commit/b89be68cfe90971776ecd7a4e3c1e84bfd461d9d
Comment 17 Jens 2021-09-01 21:23:33 UTC
KDE Neon works fine with the new Appimage!
Thank you :-)


$ ./digiKam-7.4.0-20210901T075400-x86-64_c1deb15bdb096b2b7b1e1ec88cd3a3a7.appimage 
-- digiKam Linux AppImage Bundle
-- Use 'help' as CLI argument to know all available options for digiKam application.
-- Notes: to integrate this bundle to your desktop, use AppImageLauncher.
--        to enable all debug messages on the console, use 'export QT_LOGGING_RULES="digikam*=true"'.
libudev.so.0 
libxcb-dri3.so.0 
-- Preloading shared libs: :/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0
[0901/232251.255895:WARNING:resource_bundle_qt.cpp(115)] locale_file_path.empty() for locale 
[0901/232251.324030:WARNING:resource_bundle_qt.cpp(115)] locale_file_path.empty() for locale 
[0901/232251.340549:WARNING:resource_bundle_qt.cpp(115)] locale_file_path.empty() for locale 
QtAV 1.13.0(Sep  1 2021, 03:26:20)
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) wbsecg1@gmail.com
Donate: http://qtav.org/donate.html
Source: https://github.com/wang-bin/QtAV
Home page: http://qtav.org
[0901/232251.920469:WARNING:resource_bundle_qt.cpp(115)] locale_file_path.empty() for locale 
unknown: Unhandled container to remove :  Digikam::DigikamApp