Bug 417121 - Crash when switching to google maps in "Edit Geolocation" with v7.0.0-beta-2, beta 1 is ok
Summary: Crash when switching to google maps in "Edit Geolocation" with v7.0.0-beta-2,...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-GeolocationEdit (show other bugs)
Version: 7.0.0
Platform: Debian stable Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-03 21:22 UTC by Martin
Modified: 2020-08-31 13:03 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.1.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin 2020-02-03 21:22:03 UTC
SUMMARY


STEPS TO REPRODUCE
1. Select a picture
2. Item->Edit Geolocation
3. Select "Google Maps"

OBSERVED RESULT
App crashes

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Debian GNU/Linux 9
(available in About System)
KDE Plasma Version: 5.8.6
KDE Frameworks Version: 5.28.0
Qt Version: 5.7.1

ADDITIONAL INFORMATION
With digikam-7.0.0-beta1-x86-64.appimage this crash does not occur.

Output on console:
$ ./digikam-7.0.0-beta2-1-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 
-- Preloading shared libs: 
QtAV 1.13.0(Jan 27 2020, 02:49:13)
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
unknown: Unhandled container to remove :  Digikam::DigikamApp
[28149:28164:0203/221952.756673:ERROR:nss_util.cc(674)] Error initializing NSS with a persistent database (sql:/home/martin/.pki/nssdb): NSS error code: -8023
[28149:28164:0203/221952.756824:ERROR:nss_util.cc(154)] Error initializing NSS without a persistent database: NSS error code: -8023
[28149:28164:0203/221952.756836:FATAL:nss_util.cc(156)] nss_error=-8023, os_error=0
/tmp/.mount_digikaejjMEn/AppRun: Zeile 155: 28149 Trace/Breakpoint ausgelöst   digikam $@
Comment 1 Maik Qualmann 2020-02-04 05:37:43 UTC
Gilles, we may need to preload libnss3.so.

Maik
Comment 2 caulier.gilles 2020-02-04 05:40:49 UTC
ok, i will fix appimage bash script and rebuild the bundles

Gilles
Comment 3 caulier.gilles 2020-07-31 11:31:23 UTC
digiKam 7.0.0 stable release is now published:

https://www.digikam.org/news/2020-07-19-7.0.0_release_announcement/

We need a fresh feedback on this file using this version.

Best Regards

Gilles Caulier
Comment 4 Martin 2020-08-08 08:58:41 UTC
(In reply to caulier.gilles from comment #3)
> digiKam 7.0.0 stable release is now published:
> 
> https://www.digikam.org/news/2020-07-19-7.0.0_release_announcement/
> 
> We need a fresh feedback on this file using this version.
> 
> Best Regards
> 
> Gilles Caulier

Hi,

unfortunately the crash is still reproducable with the release version digikam-7.0.0-x86-64.appimage:

STEPS TO REPRODUCE
1. Select a picture
2. Item->Edit Geolocation
3. Select "Google Maps"

OBSERVED RESULT
App crashes

Best regards,
Martin

martin@debian10:~/bin$ ./digikam-7.0.0-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 
libnss3.so 
-- Preloading shared libs: :/tmp/.mount_digikaS7eYcD/usr/lib64/libnss3.so
QtAV 1.13.0(Jul 16 2020, 07:09:16)
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
unknown: Unhandled container to remove :  Digikam::DigikamApp
[24598:27651:0808/105332.034109:ERROR:nss_util.cc(674)] Error initializing NSS with a persistent database (sql:/home/martin/.pki/nssdb): NSS error code: -8023
[24598:27651:0808/105332.034275:ERROR:nss_util.cc(154)] Error initializing NSS without a persistent database: NSS error code: -8023
[24598:27651:0808/105332.034293:FATAL:nss_util.cc(156)] nss_error=-8023, os_error=0
/tmp/.mount_digikaS7eYcD/AppRun: Zeile 157: 24598 Trace/Breakpoint ausgelöst   digikam $@
Comment 5 Maik Qualmann 2020-08-08 09:35:16 UTC
*** Bug 424618 has been marked as a duplicate of this bug. ***
Comment 6 caulier.gilles 2020-08-08 13:11:22 UTC
It's a know small bug that it will be fixed in 7.1.0.

Work around : run AppImage like this :

LD_PRELOAD=/usr/lib64/libxcb-dri3.so.0 ./digikam-7.0.0-x86-64.appimage

Gilles Caulier
Comment 7 Gianluca 2020-08-28 17:45:57 UTC
The workaround suggested by caulier.gilles in comment #6 does not work on Debian.
Hereby the output:

gianluca@asus-debian:~$ LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 /opt/digikam-7.0.0/./digikam-7.0.0-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 
libnss3.so 
-- Preloading shared libs: /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0:/tmp/.mount_digikaOUby18/usr/lib64/libnss3.so
QtAV 1.13.0(Jul 16 2020, 07:09:16)
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
unknown: Unhandled container to remove :  Digikam::DigikamApp
Digikam::CollectionScanner::scanAlbum: Folder does not exist or is not readable:  "/home/gianluca/cloud-decrypted/dropbox-decrypted/Casa/Trentola - P1/Ristrutturazione 2017"
[10559:10580:0828/194053.913035:ERROR:nss_util.cc(674)] Error initializing NSS with a persistent database (sql:/home/gianluca/.pki/nssdb): NSS error code: -8023
[10559:10580:0828/194053.913317:ERROR:nss_util.cc(154)] Error initializing NSS without a persistent database: NSS error code: -8023
[10559:10580:0828/194053.913341:FATAL:nss_util.cc(156)] nss_error=-8023, os_error=0
/tmp/.mount_digikaOUby18/AppRun: line 157: 10559 Trace/breakpoint trap   digikam $@
Comment 8 caulier.gilles 2020-08-28 17:52:13 UTC
perhaps to preload NSS lib located somewhere in /usr/lib/ from your computer can help.

can you localize the libnss on your system and preload by the same way than libxcb-dri library as explained previously ?

Gilles Caulier
Comment 9 Gianluca 2020-08-31 12:46:51 UTC
(In reply to caulier.gilles from comment #8)
> [...]

I made several tests. At the end of the day, my conclusions are that:
 - preloading libxcb-dri3 is not necessary
 - preloading libnss3 AND libnss3-utils is necessary (BOTH are necessary)

Below the command line I used to start the AppImage, where you can see what I preloaded and the output

gianluca@asus-debian:~$ LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libnss3.so:/usr/lib/x86_64-linux-gnu/libnssutil3.so /opt/digikam-7.0.0/./digikam-7.0.0-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 
libnss3.so 
-- Preloading shared libs: /usr/lib/x86_64-linux-gnu/libnss3.so:/usr/lib/x86_64-linux-gnu/libnssutil3.so:/tmp/.mount_digikagbfgSz/usr/lib64/libnss3.so
QtAV 1.13.0(Jul 16 2020, 07:09:16)
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
unknown: Unhandled container to remove :  Digikam::DigikamApp
Digikam::CollectionScanner::scanAlbum: Folder does not exist or is not readable:  "/home/gianluca/cloud-decrypted/dropbox-decrypted/Casa/Trentola - P1/Ristrutturazione 2017"

Thanks a lot for helping
Comment 10 caulier.gilles 2020-08-31 13:03:50 UTC
Git commit f1d54b95ddb67f2f4d8484f49806f462bca5e72d by Gilles Caulier.
Committed on 31/08/2020 at 13:01.
Pushed by cgilles into branch 'master'.

AppImage: preload libnssutil3 to prevent crash with GoogleMaps and QtWebEngine
Related: bug 424618
FIXED-IN: 7.1.0

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

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