Bug#944575: calibre cannot find libGLX_mesa.so.0 and fails to launch

2019-11-12 Thread Norbert Preining
Hi

> $ calibre the_book_of_wisdom_of_solomon.mobi

(btw, ebook-viewer ...mobi is probably better, it starts the viewer)

> libGL error: No matching fbConfigs or visuals found
> libGL error: failed to load driver: swrast
> Unable to read MTPZ public exponent from ~/.mtpz-data, MTPZ disabled.
> qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1271,
> resource id: 15145284, major code: 40 (TranslateCoords), minor code: 0

That is something that is definitely out of the Calibre realm. Something
in your GL setup is wrong. You maybe have installed some external
drivers at some point in the past (nvidia binary drivers?) or changed
something else. I don't really know how to fix these kinds of things
remotely.

> (ebook-convert works, though.)

Yes, it doesn't need Qt library for displaying stuff.

Best

Norbert

--
PREINING Norbert   http://www.preining.info
Accelia Inc. + IFMGA ProGuide + TU Wien + JAIST + TeX Live + Debian Dev
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13



Bug#944575: calibre cannot find libGLX_mesa.so.0 and fails to launch

2019-11-12 Thread James Van Zandt
I haven't knowingly tinkered with OpenGL.  The plugin dependencies look the
same here:

home:/usr/lib/calibre/calibre/plugins $ ldd *|grep GL
libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x7f561f412000)
libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 (0x7f561ec18000)
libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0
(0x7f561eb5b000)
libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x7f1643d5f000)
libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 (0x7f1643548000)
libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0
(0x7f164348b000)
libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x7f9aec677000)
libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 (0x7f9aebe7d000)
libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0
(0x7f9aebdc)
libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x7f974c9c)
libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 (0x7f974c1c6000)
libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0
(0x7f974c109000)

calibre doesn't launch here unless it can find that library.
On the other hand, even with that library, it prints warnings:

$ calibre the_book_of_wisdom_of_solomon.mobi
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Unable to read MTPZ public exponent from ~/.mtpz-data, MTPZ disabled.
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1271,
resource id: 15145284, major code: 40 (TranslateCoords), minor code: 0

And have not gotten it to actually open an ebook.  So there may be other
things wrong with my setup.

(ebook-convert works, though.)


Bug#944575: calibre cannot find libGLX_mesa.so.0 and fails to launch

2019-11-11 Thread Norbert Preining
severity 944575 normal
tag 944575 + unreproducible
thanks

Hi

On Mon, 11 Nov 2019, James Van Zandt wrote:
> strace shows it's looking for /lib/libGLX_indirect.so.0 in four places:

I don't have GLX_indirect installed at all, so I don't think this is
really necessary.

Could it be that you have played around with the OpenGL setup (libraries
libGL etc) on your system?

ldd-ing the plugins in /usr/lib/calibre/calibre/plugins/ shows
dependencies on libGL doesn't show up andy _indirect stuff here:

$ ldd * | grep GL
libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x7f7fe47df000)
libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 
(0x7f7fe3fe5000)
libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 
(0x7f7fe3f28000)
libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x7fd9b73b2000)
libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 
(0x7fd9b6b9b000)
libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 
(0x7fd9b6ade000)
libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x7f6295641000)
libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 
(0x7f6294e47000)
libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 
(0x7f6294d8a000)
libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x7f19ce18)
libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 
(0x7f19cd986000)
libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 
(0x7f19cd8c9000)
$

Norbert

--
PREINING Norbert   http://www.preining.info
Accelia Inc. + IFMGA ProGuide + TU Wien + JAIST + TeX Live + Debian Dev
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13



Bug#944575: calibre cannot find libGLX_mesa.so.0 and fails to launch

2019-11-11 Thread James Van Zandt
Package: calibre
Version: 4.3.0+dfsg-2
Severity: important

Dear Maintainer,


calibre won't launch here:

  home:/usr/lib $ calibre
  qt.glx: qglx_findConfig: Failed to finding matching FBConfig for
QSurfaceFormat(version 2.0, options QFlags(),
depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1,
alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior
QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace
QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile)
  qt.glx: qglx_findConfig: Failed to finding matching FBConfig for
QSurfaceFormat(version 2.0, options QFlags(),
depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1,
alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior
QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace
QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile)
  Could not initialize GLX
  [3]+  Donecalibre
  Aborted


I think "Could not initialize GLX" is the important part.

strace shows it's looking for /lib/libGLX_indirect.so.0 in four places:
  $ grep indirect /tmp/trace|sort -u
  openat(AT_FDCWD, "/lib/libGLX_indirect.so.0", O_RDONLY|O_CLOEXEC) = -1
ENOENT (No such file or directory)
  openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libGLX_indirect.so.0",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
  openat(AT_FDCWD, "/usr/lib/libGLX_indirect.so.0", O_RDONLY|O_CLOEXEC) =
-1 ENOENT (No such file or directory)
  openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libGLX_indirect.so.0",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

The library functionality is apparently supplied by the
libglx-mesa0:amd64 package, which installs this symlink:

  $ find /usr/lib -name \*libGLX_indirect\* -ls
  186909291  0 lrwxrwxrwx   1 root root   16 Nov  7 07:01
/usr/lib/mesa-diverted/x86_64-linux-gnu/libGLX_indirect.so.0 ->
libGLX_mesa.so.0

I created an additional symlink

  home:/usr/lib $ ls -l *indirect*
  lrwxrwxrwx 1 root root 33 Nov 11 20:16 libGLX_indirect.so.0 ->
x86_64-linux-gnu/libGLX_mesa.so.0

That permitted calibre to open.

I suppose calibre should be built to look in
/usr/lib/mesa-diverted/x86_64-linux-gnu/ for the library, or else the
libglx-mesa0:amd64 package should create a symlink in one of the four
directories calibre is now looking.


-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (700, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.3.0-1-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages calibre depends on:
ii  calibre-bin  4.3.0+dfsg-2
ii  dpkg 1.19.7
ii  fonts-liberation 1:1.07.4-10
ii  imagemagick  8:6.9.10.23+dfsg-2.1+b2
ii  imagemagick-6.q16 [imagemagick]  8:6.9.10.23+dfsg-2.1+b2
ii  libjpeg-turbo-progs  1:1.5.2-2+b1
ii  libjs-coffeescript   1.12.8~dfsg-4
ii  libjs-mathjax2.7.4+dfsg-1
ii  optipng  0.7.7-1+b1
ii  poppler-utils0.71.0-6
ii  python-apsw  3.29.0-r1-1
ii  python-bs4   4.8.0-2
ii  python-chardet   3.0.4-4
ii  python-cherrypy3 8.9.1-5
ii  python-css-parser1.0.4-1
ii  python-cssselect 1.1.0-1
ii  python-cssutils  1.0.2-2
ii  python-dateutil  2.7.3-3
ii  python-dbus  1.2.12-1
ii  python-feedparser5.2.1-1
ii  python-html2text 2019.8.11-1
ii  python-html5-parser  0.4.9-1
ii  python-html5lib  1.0.1-1
ii  python-lxml  4.4.1-1
ii  python-markdown  3.1.1-2
ii  python-mechanize 1:0.4.3-2
ii  python-msgpack   0.5.6-2
ii  python-netifaces 0.10.4-1+b1
ii  python-pil   6.2.1-2
ii  python-pkg-resources 41.4.0-1
ii  python-pyparsing 2.4.2-1
ii  python-pyqt5 5.12.3+dfsg-3
ii  python-pyqt5.qtsvg   5.12.3+dfsg-3
ii  python-pyqt5.qtwebengine 5.12.1-4+b1
ii  python-regex 0.1.20190207-1+b1
ii  python-routes2.4.1-1
ii  python2.72.7.17-1
ii  xdg-utils1.1.3-1

Versions of packages calibre recommends:
ii  python-dnspython  1.16.0-1

Versions of packages calibre suggests:
pn  python-unrardll  

-- no debconf information