Bug 446750 - Can't export to onedrive: unable to login then crash
Summary: Can't export to onedrive: unable to login then crash
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-OneDrive (show other bugs)
Version: 7.4.0
Platform: Appimage Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-09 20:18 UTC by Nicofo
Modified: 2024-03-28 15:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.4.0


Attachments
Empty login window to onedrive (100.58 KB, image/png)
2021-12-09 20:18 UTC, Nicofo
Details
Digikam 7.3.0 crash log (64.27 KB, text/x-log)
2021-12-09 20:20 UTC, Nicofo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicofo 2021-12-09 20:18:10 UTC
Created attachment 144405 [details]
Empty login window to onedrive

SUMMARY
When trying to export to Onedrive, an empty window opens (see attachment).
Therefore it is not possible to log in into Onedrive account.

Besides that, if I close that empty window and click on "Change account" of the "Export to Onedrive" window, Digikam crashes.
See logs attached

SYSTEM
Fedora 35
Appimage digiKam-7.3.0-x86-64.appimage
Note: I also tried with latest digiKam-7.4.0-20211209T121203-x86-64.appimage -> but it crashes immediately:
$ ./digiKam-7.4.0-20211209T121203-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/lib64/libxcb-dri3.so.0
digikam: /tmp/.mount_digiKaJSufa6/usr/lib/libcrypto.so.1.1: version `OPENSSL_1_1_1b' not found (required by /lib64/libk5crypto.so.3)

I already had similar problem with Onedrive (see bug #401377) but it was solved 2 years ago.
Comment 1 Nicofo 2021-12-09 20:20:01 UTC
Created attachment 144406 [details]
Digikam 7.3.0 crash log

When I click on "Change account" (see at the end of attached file):

unknown: UNLINK to Onedrive
/tmp/.mount_digiKaO9UeHb/AppRun: line 172: 12759 Segmentation fault      (core dumped) digikam $@
Comment 2 Nicofo 2021-12-09 20:28:44 UTC
additional info:
digikam appimage 7.4.0 starts with following command line: 
      LD_PRELOAD=/usr/lib64/libssl.so.1.1:/usr/lib64/libcrypto.so.1.1 ./digiKam-7.4.0-20211209T121203-x86-64.appimage
But then the behaviour is excatly the same than 7.3.0 (empty log in window and crash if I click on "Change account").
So problem reproducible with 7.3.0 et 7.4.0.
Comment 3 caulier.gilles 2021-12-09 21:02:34 UTC
Please run the AppImage binary with the "debug" argument. This will run digiKam in the gdb debugger. When it crash, a prompt will appear. Enter "bt" to get a back-trace. To quit, enter "q".

Gilles Caulier
Comment 4 Maik Qualmann 2021-12-09 21:17:35 UTC
The problem is known and will not work with the AppImage either. OnDrive does not work with the outdated QWebKit browser. Here native digiKam with QWebEngine works.

Maik
Comment 5 Maik Qualmann 2021-12-09 21:19:08 UTC

*** This bug has been marked as a duplicate of bug 433219 ***
Comment 6 Nicofo 2021-12-11 12:54:52 UTC
(In reply to Maik Qualmann from comment #4)
> The problem is known and will not work with the AppImage either. OnDrive
> does not work with the outdated QWebKit browser. Here native digiKam with
> QWebEngine works.
> 
> Maik

How do I know if I have a QWebKit or a QWebEngine version of digikam ?
I think I have QWebEngine because in "Help > Components Information" I have:

   digikam version 7.3.0
   ...
   Qt: 5.14.2
   Qt WebEngine support: Yes
   ...

So Onedrive should work isn't ?
Comment 7 caulier.gilles 2021-12-11 13:02:07 UTC
Yes, Help Components Info dialog show this information. And yes you use QtWebEngine (Chromium in fact)
Comment 8 Nicofo 2021-12-11 13:29:49 UTC
(In reply to caulier.gilles from comment #7)
> Yes, Help Components Info dialog show this information. And yes you use
> QtWebEngine (Chromium in fact)

Thanks Gilles.
But then I don't understand Maik's comment: 
> OnDrive does not work with the outdated QWebKit browser. Here native digiKam with QWebEngine works.

As I don't use QWebKit but QtWebEngine, Onedrive should work on my machine ?
Comment 9 caulier.gilles 2021-12-11 14:06:54 UTC
On AppImage for Linux, QtWebEngine is always used, as under MacOS. Only Windows use QtWebKit, as Chromium code cannot be cross compiled yet.

QtWebEngine is the more updated than QtWebkit, about web service security issues. It preferable to use webengine, but we still to use Qt 5.15.2, where last LTS version is 5.15.7, but this version is not published as open source. To be updated, we need to switch to Qt 6.2, but not all the DK code and dependencies are not yet ported.

To resume : perhaps an LTS update of QtWebEngine  is necessary to solve this issue.

Gilles Caulier
Comment 10 caulier.gilles 2024-03-28 15:47:10 UTC
Fixed with bug 433219