7

Just upgraded to 22.04 and the ebook viewer is unable to open .mobi file with ebook viewer error message:

calibre, version 5.41.0
ERROR: Render process crashed:
The Qt WebEngine Render process has crashed.
You should try restarting the viewer.

I've tried this before and after Calibre update and is getting the same result.

Bug report filed

Update:

as recommended by @andrew.46, using the repository version will resolve the problem. Kindly scroll down to view his answer for a complete walk-thru.

ManOnTheMoon
  • 1,512
  • 8
  • 21

3 Answers3

6

Normally the best advice with Calibre is to follow the directions of Kovid Goyal (the Calibre developer) and use the binary edition available on the Calibre web site.

However currently there is an issue either with this version: 5.41.0 or with its interaction with glibc and/or QT on the host system leading to this error:

enter image description here

This can be worked around by running Calibre and its associated applications with:

QTWEBENGINE_DISABLE_SANDBOX=1

But this is an ugly hack and seems to have a few ill effects on the running of Calibre on Ubuntu 22.04. Fortunately the repository version 5.37.0 runs perfectly and can be installed from the Software Center, Synaptic or simply from the command line as:

sudo apt-get install calibre

And then we can all get back to reading :).

andrew.46
  • 39,359
2

In case you configured the desktop entry in order to have calibre available in start menu, you can configure it as follows:

[Desktop Entry]
    Encoding=UTF-8
    Name=Calibre
    GenericName=Ebook reader
    Comment=Ebook reader
    TryExec=/opt/calibre/calibre
    Exec=env QTWEBENGINE_DISABLE_SANDBOX=1 /opt/calibre/calibre %F
    StartupNotify=true
    Terminal=false
    Type=Application
    Icon=/opt/calibre/resources/images/library.png
    Categories=Office;Viewer

You can see that the entry

  Exec

contains settings for variable QTWEBENGINE_DISABLE_SANDBOX just before the command to execute Calibre.

2

Latest version of Calibre fix it: https://calibre-ebook.com/it/whats-new, download it from here: https://download.calibre-ebook.com/5.42.0/