Bug 449308

Summary: Web Browser cannot open url Fails with Error initializing NSS with a persistent database (sql:/home/somebody/.pki/nssdb): NSS error code: -8023 [patch]
Product: [Applications] digikam Reporter: thomasking53
Component: Bundle-AppImageAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version: 7.5.0   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed In: 7.6.0
Attachments: output from running app.
Image of the Webbrowser error
changes to AppRun

Description thomasking53 2022-01-29 06:36:21 UTC
Created attachment 146024 [details]
output from running app.

SUMMARY
***
This happens with the appimage digiKam-7.5.0-x86-64_a1b81863809ca2569978a8795d289d7c.appimage downloaded from the web. (https://download.kde.org/stable/digikam/7.5.0/digiKam-7.5.0-x86-64.appimage.mirrorlist)
This issue has been reported and is due to incompatibility with OS libnss3.so ,libnssutils3.so and the appimage version of libsmime3.so.
As a workaround I modified the AppRun to remove preloads of libcrypto and libssl,but preload the OS libsmime3.so 
preload_shared_library libsmime3.so
Linux 64bit Ubuntu 20.04.3 LTS - Gnome 3.36.8
***


STEPS TO REPRODUCE
1. Start the Appimage and select Map Tab (on the right)
2. Click on the World Icon on the bottom (See more information on the Internet)
3. Webbrowser window pops Up

OBSERVED RESULT
Webbrowser reports error that the page could not be loaded 

EXPECTED RESULT
Expected the web page to be opened.

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

ADDITIONAL INFORMATION
Comment 1 thomasking53 2022-01-29 06:38:07 UTC
Created attachment 146025 [details]
Image of the Webbrowser error
Comment 2 thomasking53 2022-01-29 07:35:17 UTC
Created attachment 146026 [details]
changes to AppRun

The only changes to the AppRun were to add three images to preload
Comment 3 thomasking53 2022-01-29 07:39:45 UTC
There seems to be some comments missing.
I downloaded App Image from (https://download.kde.org/stable/digikam/7.5.0/digiKam-7.5.0-x86-64.appimage.mirrorlist).
When I run it the reported bahavior happens.
When I modify it to preload the OS images it works

Ubuntu 64bit 20.04.3 LTS
Comment 4 caulier.gilles 2022-01-29 10:06:28 UTC
Git commit aefb18b05385d0951a65590e40d4cad9978a4bcc by Gilles Caulier.
Committed on 29/01/2022 at 10:01.
Pushed by cgilles into branch 'master'.

AppImage: apply patch from Thomas King to preload more shared libs under Linux 64bit Ubuntu 20.04.3 LTS
Related: bug 447304, bug 412778, bug 419458, bug 414959

M  +5    -0    project/bundles/appimage/data/AppRun

https://invent.kde.org/graphics/digikam/commit/aefb18b05385d0951a65590e40d4cad9978a4bcc