View Single Post
Old 01-03-2024, 12:22 AM   #1
legato
Junior Member
legato began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2024
Device: Nook
Calibre 7 crashes on Wayland

I have Ubuntu Linux 22.04.3 LTS and Calibre 7.2, and I cannot open the app without it segfaulting almost immediately:

Code:
$ calibre
qt.qpa.theme.dbus: Session DBus not running.
qt.qpa.theme.dbus: Application will not react to setting changes.
 Check your DBus installation.
Segmentation fault (core dumped)
Code:
calibre[2846607]: segfault at 0 ip 00007fa182a9010b sp 00007ffc1fcf74e8 error 4 in libX11-xcb.so.1.0.0[7fa182a90000+1000] likely on CPU 17 (core 1, socket 0)
Code: 00 01 5d c3 0f 1f 00 c3 0f 1f 80 00 00 00 00 f3 0f 1e fa e9 77 ff ff ff 0f 1f 80 00 00 00 00 f3 0f 1e fa 48 8b 87 30 0a 00 00 <48> 8b 00 c3 90 f3 0f 1e fa 48 8b 87 30 0a 00 00 89 70 48 c3 00 f3
Searching the forums found me some debugging options. calibre-debug didn't show anything useful, so I tried this:

Code:
$ QT_DEBUG_PLUGINS=1 calibre
[...]
qt.core.plugin.factoryloader: Got keys from plugin meta data QList()
qt.core.plugin.factoryloader: checking directory path "/opt/calibre/bin/wayland-graphics-integration-client" ...
qt.core.library: "/opt/calibre/plugins/wayland-graphics-integration-client/libqt-plugin-wayland-egl.so" loaded library
Segmentation fault (core dumped)
Full output is attached if you need that.

My QT_QPA_PLATFORM variable is set to "wayland-egl". I tried launching it with
Code:
QT_QPA_PLATFORM=xcb calibre
and that worked. What can I do to make Calibre launch normally?

I have been using the binary downloads but I wouldn't mind switching to source.
Attached Files
File Type: txt QT_DEBUG_PLUGINS.txt (15.1 KB, 215 views)
legato is offline   Reply With Quote