GNU bug report logs - #45404
kiwix-desktop does not start

Previous Next

Package: guix;

Reported by: Maxime Devos <maxime.devos <at> student.kuleuven.be>

Date: Thu, 24 Dec 2020 12:35:02 UTC

Severity: normal

Done: Leo Prikler <leo.prikler <at> student.tugraz.at>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 45404 in the body.
You can then email your comments to 45404 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#45404; Package guix. (Thu, 24 Dec 2020 12:35:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Maxime Devos <maxime.devos <at> student.kuleuven.be>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 24 Dec 2020 12:35:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maxime.devos <at> student.kuleuven.be>
To: bug-guix <at> gnu.org
Subject: kiwix-desktop does not start
Date: Thu, 24 Dec 2020 13:33:24 +0100
[Message part 1 (text/plain, inline)]
Hello Guix,

kiwix-desktop doesn't start. Depending on the environment, I get
different error messages:

Variant #A (pure environment, in GDM session)
$ guix time-machine --commit=20a687bbfbc72ffcd802b4bc59db344ad4291577
environment --ad-hoc --pure kiwix-desktop -- kiwix-desktop

> No protocol specified
> qt.qpa.xcb: could not connect to display :1
> qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even
> though it was found.
> This application failed to start because no Qt platform plugin could
be initialized. Reinstalling the application may fix this problem.
>
> Available platform plugins are: eglfs, linuxfb, minimal, minimalegl,
> offscreen, vnc, xcb.
>
> Aborted

Not sure what's going on here, but here's a GDB backtrace:

Breakpoint 1, 0x00007fffed1e5a90 in abort ()
   from /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-
2.31/lib/libc.so.6
(gdb) bt
#0  0x00007fffed1e5a90 in abort ()
   from /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-
2.31/lib/libc.so.6
#1  0x00007fffed78ba2f in QMessageLogger::fatal(char const*, ...) const
()
   from /gnu/store/lg0pz5wvpfd5xq3qhmarq3p4nqi64hdd-qtbase-
5.14.2/lib/libQt5Core.so.5
#2  0x00007fffee44c8f4 in
QGuiApplicationPrivate::createPlatformIntegration() ()
   from /gnu/store/lg0pz5wvpfd5xq3qhmarq3p4nqi64hdd-qtbase-
5.14.2/lib/libQt5Gui.so.5
#3  0x00007fffee44cdbd in
QGuiApplicationPrivate::createEventDispatcher() ()
   from /gnu/store/lg0pz5wvpfd5xq3qhmarq3p4nqi64hdd-qtbase-
5.14.2/lib/libQt5Gui.so.5
#4  0x00007fffed994905 in QCoreApplicationPrivate::init() ()
   from /gnu/store/lg0pz5wvpfd5xq3qhmarq3p4nqi64hdd-qtbase-
5.14.2/lib/libQt5Core.so.5
#5  0x00007fffee44e95c in QGuiApplicationPrivate::init() ()
   from /gnu/store/lg0pz5wvpfd5xq3qhmarq3p4nqi64hdd-qtbase-
5.14.2/lib/libQt5Gui.so.5
#6  0x00007fffeeb4832e in QApplicationPrivate::init() ()
   from /gnu/store/lg0pz5wvpfd5xq3qhmarq3p4nqi64hdd-qtbase-
5.14.2/lib/libQt5Widgets.so.5
#7  0x000000000045a84c in ?? ()
#8  0x00000000004333d6 in ?? ()
#9  0x0000000000422d30 in ?? ()
#10 0x00007fffed1d0a6d in __libc_start_main ()
   from /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-
2.31/lib/libc.so.6
#11 0x00000000004236ea in ?? ()

Variant #B (installed in user profile, in GDM session)

$ kiwix-desktop

> Could not find QtWebEngineProcess

Greetings,
Maxime
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#45404; Package guix. (Sat, 26 Dec 2020 05:37:02 GMT) Full text and rfc822 format available.

Message #8 received at 45404 <at> debbugs.gnu.org (full text, mbox):

From: 宋文武 <iyzsong <at> outlook.com>
To: Maxime Devos <maxime.devos <at> student.kuleuven.be>
Cc: 45404 <at> debbugs.gnu.org
Subject: Re: bug#45404: kiwix-desktop does not start
Date: Sat, 26 Dec 2020 13:37:21 +0800
Maxime Devos <maxime.devos <at> student.kuleuven.be> writes:

> Hello Guix,

Hello!
>
> kiwix-desktop doesn't start. Depending on the environment, I get
> different error messages:
>
> Variant #A (pure environment, in GDM session)
> $ guix time-machine --commit=20a687bbfbc72ffcd802b4bc59db344ad4291577
> environment --ad-hoc --pure kiwix-desktop -- kiwix-desktop
With ‘–-pure’, the process will run in a container that doesn’t have
access to the X server, this is expected behavior.


> Variant #B (installed in user profile, in GDM session)
>
> $ kiwix-desktop
>
>> Could not find QtWebEngineProcess
This is a bug, look like kiwix-desktop should be wrapped with some
environment variables.  In the meantime, you can install qtwebengine and
qtbase into the profile, or use: guix environment --ad-hoc kiwix-desktop
qtbase qtwebengine -- kiwix-desktop





Reply sent to Leo Prikler <leo.prikler <at> student.tugraz.at>:
You have taken responsibility. (Tue, 29 Dec 2020 20:30:02 GMT) Full text and rfc822 format available.

Notification sent to Maxime Devos <maxime.devos <at> student.kuleuven.be>:
bug acknowledged by developer. (Tue, 29 Dec 2020 20:30:02 GMT) Full text and rfc822 format available.

Message #13 received at 45404-done <at> debbugs.gnu.org (full text, mbox):

From: Leo Prikler <leo.prikler <at> student.tugraz.at>
To: Michael Rohleder <mike <at> rohleder.de>
Cc: 45431-done <at> debbugs.gnu.org, 45404-done <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: kiwix-desktop: Fix program start.
Date: Tue, 29 Dec 2020 21:29:40 +0100
Pushed, thanks!

Small hint, if you want to use pure environments, don't forget
to expose environment variables such as DISPLAY and XAUTHORITY.

Regards,
Leo 

Am Freitag, den 25.12.2020, 17:36 +0100 schrieb Michael Rohleder:
> Fixes <https://bugs.gnu.org/45404>;.
> 
> * gnu/packages/web.scm (kiwix-desktop)[arguments]: Add phase to wrap
> QTWEBENGINEPROCESS_PATH.
> ---
>  gnu/packages/web.scm | 12 +++++++++++-
>  1 file changed, 11 insertions(+), 1 deletion(-)
> 
> diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
> index 8d7dfe2804..7486eb7f5b 100644
> --- a/gnu/packages/web.scm
> +++ b/gnu/packages/web.scm
> @@ -7981,7 +7981,17 @@ It contains the code shared by all Kiwix
> ports.")
>             (lambda* (#:key inputs #:allow-other-keys)
>               (substitute* "kiwix-desktop.pro"
>                 (("webenginewidgets" all) (string-append all "
> printsupport")))
> -             #t)))))
> +             #t))
> +         (add-after 'install 'wrap-qt-process-path
> +           (lambda* (#:key inputs outputs #:allow-other-keys)
> +             (let* ((out (assoc-ref outputs "out"))
> +                    (bin (string-append out "/bin/kiwix-desktop"))
> +                    (qt-process-path (string-append
> +                                      (assoc-ref inputs
> "qtwebengine")
> +                                      "/lib/qt5/libexec/QtWebEngineP
> rocess")))
> +               (wrap-program bin
> +                 `("QTWEBENGINEPROCESS_PATH" = (,qt-process-path)))
> +               #t))))))
>      (inputs
>       `(("curl" ,curl)
>         ("icu4c" ,icu4c)





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 27 Jan 2021 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 87 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.