Your message dated Tue, 16 Jun 2020 14:20:42 +0300
with message-id <[email protected]>
and subject line Re: Bug#962846: Bug#962811: calibre: ebook-viewer crash on 
start
has caused the Debian Bug report #962845,
regarding pyqt5webengine: fails to block pyqt5 update
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
962845: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=962845
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: calibre
Version: 4.99.4+dfsg+really4.17.0-1
Severity: normal

Dear Maintainer,

ebook-viewer crash for every ebook I try to open

$ ebook-viewer a.epub
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Fatal Python error: PyEval_SaveThread: NULL tstate
Python runtime state: initialized

Current thread 0x00007f3ee047d740 (most recent call first):
File "/usr/lib/calibre/calibre/gui2/webengine.py", line 126 in _dispatch_messages
  File "/usr/lib/calibre/calibre/gui2/viewer/main.py", line 229 in main
  File "/usr/lib/calibre/calibre/gui_launch.py", line 81 in ebook_viewer
  File "/usr/bin/ebook-viewer", line 20 in <module>
Annullato

I have found this bug report in arch:
https://bugs.archlinux.org/task/66905

in this bug report the prolem is a python2 library, I have see that the corresponding python3 library has been updated today:
python3-pyqt5

but I cant try to install the previews version, elsewhere it will remove calibre and so I cannot test if this is the problem.

Let me know if you need more information or what I can do for try to understand the problem

Ciao
Davide

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.6.14-dp-20200530 (SMP w/4 CPU cores; PREEMPT)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8), LANGUAGE=it_IT.utf8 (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.99.4+dfsg+really4.17.0-1+b1
ii  dpkg                             1.19.7
ii  fonts-liberation                 1:1.07.4-11
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-mathjax                    2.7.8+dfsg-1
ii  libjxr-tools                     1.1-6+b1
ii  optipng                          0.7.7-1+b1
ii  poppler-utils                    0.71.0-6
ii  python3                          3.8.2-3
ii  python3-apsw                     3.30.1-r1-1.1+b1
ii  python3-bs4                      4.9.1-1
ii  python3-chardet                  3.0.4-7
ii  python3-chm                      0.8.6-2+b1
ii  python3-css-parser               1.0.4-2
ii  python3-cssselect                1.1.0-2
ii  python3-cssutils                 1.0.2-3
ii  python3-dateutil                 2.8.1-4
ii  python3-dbus                     1.2.16-2
ii  python3-feedparser               5.2.1-2
ii  python3-html2text                2020.1.16-1
ii  python3-html5-parser             0.4.9-3+b1
ii  python3-html5lib                 1.0.1-3
ii  python3-lxml                     4.5.0-1.1
ii  python3-markdown                 3.2.2-1
ii  python3-mechanize                1:0.4.5-2
ii  python3-msgpack                  0.6.2-1+b1
ii  python3-netifaces                0.10.9-0.2+b1
ii  python3-pil                      7.0.0-4+b1
ii  python3-pkg-resources            46.1.3-1
ii  python3-pygments                 2.3.1+dfsg-3
ii  python3-pyparsing                2.4.7-1
ii  python3-pyqt5                    5.15.0+dfsg-1
ii  python3-pyqt5.qtsvg              5.15.0+dfsg-1
ii  python3-pyqt5.qtwebengine        5.14.0-2+b1
ii  python3-regex                    0.1.20190819-2+b1
ii  python3-routes                   2.4.1-2
ii  python3-zeroconf                 0.26.1-1
ii  xdg-utils                        1.1.3-2

Versions of packages calibre recommends:
ii  python3-dnspython  1.16.0-2
ii  udisks2            2.9.0-1

Versions of packages calibre suggests:
ii  python3-openssl   19.1.0-2
pn  python3-unrardll  <none>

-- debconf-show failed

--- End Message ---
--- Begin Message ---
Hi Davide!

On Mon, Jun 15, 2020 at 05:52:37PM +0200, Davide Prina wrote:
> I try to make a full debug. I never done that with a Python program, so I
> have searched on internet

Thanks!

> #3  0x000000000049d912 in Py_FatalError (msg=<optimized out>) at 
> ../Python/pylifecycle.c:2197
> #4  0x00000000004b73b3 in PyEval_SaveThread () at ../Python/ceval.c:380
> #5  0x00007ffff43ac549 in  () at 
> /usr/lib/python3/dist-packages/PyQt5/QtCore.cpython-38-x86_64-linux-gnu.so
> #6  0x00007ffff3f0c44c in QMetaObject::activate(QObject*, int, int, void**) 
> () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
> #7  0x00007ffff43a643e in  () at 
> /usr/lib/python3/dist-packages/PyQt5/QtCore.cpython-38-x86_64-linux-gnu.so
> #8  0x00000000005f1fca in cfunction_call_varargs (kwargs=<optimized out>, 
> args=<optimized out>,
>     func=<built-in method emit of PyQt5.QtCore.pyqtBoundSignal object at 
> remote 0x7fffbc357cf0>)
>     at ../Include/internal/pycore_pyerrors.h:13

So this seems to be the relevant part here.

I managed to reproduce this issue locally with some dbg packages installed,
and this part of stacktrace is as follows:

#9  0x000000000051cb0a in Py_FatalError (msg=msg@entry=0x6d9a88 
"PyEval_SaveThread: NULL tstate") at ../Python/pylifecycle.c:2197
#10 0x00000000004db7d7 in PyEval_SaveThread () at ../Python/ceval.c:380
#11 0x00007ffff45f105c in qt_metacall_worker(sipSimpleWrapper*, PyTypeObject*, 
sipTypeDef*, QMetaObject::Call, int, void**)
    (pySelf=0x7fffc0522c30, pytype=<optimized out>, base=<optimized out>, 
_c=QMetaObject::InvokeMetaMethod, _id=19, _a=0x27ac0e0)
    at ../../qpy/QtCore/qpycore_qobject_helpers.cpp:106
#12 0x00007ffff413944c in QMetaObject::activate(QObject*, int, int, void**)
    (sender=0x20249a0, signalOffset=<optimized out>, 
local_signal_index=<optimized out>, argv=<optimized out>)
    at kernel/qobject.cpp:3821
#13 0x00007ffff45e9a9e in do_emit (sigargs=<optimized out>, 
docstring=<optimized out>, parsed_signature=0x144cb30,
    signal_index=<optimized out>, qtx=<optimized out>)
    at ../../qpy/QtCore/qpycore_pyqtboundsignal.cpp:801
#14 pyqtBoundSignal_emit(PyObject*, PyObject*) (self=<optimized out>, 
args=<optimized out>)
    at ../../qpy/QtCore/qpycore_pyqtboundsignal.cpp:742
#15 0x00000000004344fb in cfunction_call_varargs (func=0x7fffc20b5530, 
args=0x7ffff4923b40, kwargs=0x0) at ../Objects/call.c:757

It looks like a change in qpycore_qobject_helpers.cpp in PyQt 5.15 needed
a corresponding change in sip [1] that is part of sip 4.19.23, and all
dependent packages need to be rebuilt against that sip.

[1]: https://riverbankcomputing.com/hg/sip/rev/812b5e26df96

I will add a Breaks: against old pyqt5webengine to new pyqt5. Now that new
pyqt5webengine is already in testing, this is not urgent, but it will be
part of the next upload.

There is nothing I can do about this in pyqt5webengine, so I am closing the
bug filed against it.

--
Dmitry Shachnev

Attachment: signature.asc
Description: PGP signature


--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to