<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<span style="font-size: 16px;">Package:python-pyqt5</span><span
style="font-size: 16px;"><br>
Version: 5.11.3+dfsg-1+b3_arm64</span><span style="font-size:
16px;"><br>
Severity: serious</span><br>
<tt><span style="font-size: 16px;">Hi Experts,<br>
</span></tt><tt></tt><br>
<tt><span style="font-size: 16px;">Hope this email finds you well. </span></tt><br>
<tt><span style="font-size: 16px;">I am Peng Zongli, I'm sorry to
bother you.</span></tt><br>
<tt><span style="font-size: 16px;"><span style="background-color:
rgb(255, 255, 255); color: rgb(36, 39, 41); font-size: 15px;">When
ever I run the example code on the arm <span style="font-size:
14px;">machine</span>,<span> </span></span>It results i<span
style="background-color: rgb(255, 255, 255); color: rgb(36,
39, 41); font-size: 15px;">n the error below:</span><br>
</span></tt><br>
<tt><span style="font-size: 16px;"> <em> Could not initialize GLX</em></span></tt><br>
<tt><span style="font-size: 16px;"><em> Aborted (core dumped)</em></span></tt><br>
<tt><span style="font-size: 16px; color: rgb(51, 51, 51);">but when
I run the same example code on the x86 machine(<span
style="font-size: 16px; color: rgb(51, 51, 51);">Debian
8.3.0-6</span>), there is no error.<br>
</span></tt><br>
<tt><span style="color: rgb(51, 51, 51); font-size: 14px;"><br>
</span></tt><br>
<tt><span style="font-size: 16px;">Debian Release: (gcc version
9.2.1 20191102 (Debian 9.2.1-17))</span></tt><br>
<tt><span style="font-size: 16px;">Architecture: arm (64)</span></tt><br>
<tt><span style="font-size: 16px;">Kernel: Linux 4.19.34-2-arm64</span></tt><br>
<tt><br>
</tt><br>
<tt><span style="font-size: 16px;"><span style="background-color:
rgb(255, 255, 255); color: rgb(36, 39, 41); font-size: 15px;">pyt</span><span
style="font-size: 14px;">hon vesion 2.7.16</span></span></tt><br>
<tt><span style="font-size: 16px;">python-pyqt5-dbg (5.11.3+dfsg-1+b3)</span></tt><br>
<tt><span style="font-size: 16px;">python-pyqt5.qtwebengine-dbg
(5.11.3+dfsg-1+b3)</span></tt><br>
<tt><span style="font-size: 16px;">Qt5 vesion 5.11.3</span></tt><br>
<tt><span style="font-size: 16px;">GLX version: 1.4</span></tt><br>
<tt><span style="font-size: 16px;">Sip vesion 4.19.14<br>
</span></tt><br>
<tt><br>
</tt><br>
<tt><span style="font-size: 16px;">the example code:</span></tt><br>
<tt><span style="font-size: 16px;"></span></tt><br>
<tt><span style="text-decoration: none; font-size: 16px;"><em> from
PyQt5.QtWidgets import QApplication</em></span></tt><br>
<tt><span style="text-decoration: none; font-size: 16px;"><em> from
PyQt5.QtCore import QT_VERSION_STR</em></span></tt><br>
<tt><span style="text-decoration: none; font-size: 16px;"><em> from
PyQt5.Qt import PYQT_VERSION_STR</em></span></tt><br>
<tt><span style="text-decoration: none; font-size: 16px;"><em> from
sip import SIP_VERSION_STR</em></span></tt><br>
<tt><span style="text-decoration: none; font-size: 16px;"><em> </em></span></tt><br>
<tt><span style="font-size: 16px;"> <span style="font-size: 16px;
text-decoration: none;"><em> if __name__=='__main__':</em></span></span></tt><br>
<tt><span style="font-size: 16px;"> <span style="font-size: 16px;
text-decoration: none;"><em> import sys</em></span></span></tt><br>
<tt><span style="font-size: 16px;"> <span style="font-size: 16px;
text-decoration: none;"><em>
app=QApplication(sys.argv) </em></span></span></tt><br>
<tt><span style="font-size: 16px;"> <span style="font-size: 16px;
text-decoration: none;"><em> print("Qt5 Version Number
is: {0}".format(QT_VERSION_STR))</em></span></span></tt><br>
<tt><span style="font-size: 16px;"> <span style="font-size: 16px;
text-decoration: none;"><em> print("PyQt5 Version is:
{}".format(PYQT_VERSION_STR))</em></span></span></tt><br>
<tt><span style="font-size: 16px;"> <span style="font-size: 16px;
text-decoration: none;"><em> print("Sip Version is:
{}".format(SIP_VERSION_STR)) </em></span></span></tt><br>
<tt><span style="font-size: 16px;"> <span style="font-size: 16px;
text-decoration: none;"><em> </em></span></span></tt><br>
<tt><span style="font-size: 16px;"> <span style="font-size: 16px;
text-decoration: none;"><em> sys.exit(app.exec_())</em></span></span></tt><br>
<tt><span style="font-size: 16px;"> </span></tt><br>
<tt><span style="font-size: 16px;">it gives a Python traceback and
crash:</span></tt><br>
<tt><span style="font-size: 16px;"><br>
</span></tt><br>
<tt><span style="font-size: 16px;"> <em>uos@uos-PC:~/Downloads$
gdb python</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>GNU gdb (Debian
8.2.1-2+b1) 8.2.1</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>Copyright (C) 2018
Free Software Foundation, Inc.</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>License GPLv3+: GNU
GPL version 3 or later <</em><em><a
href="http://gnu.org/licenses/gpl.html%3E" target="_blank"
_href="http://gnu.org/licenses/gpl.html>">http://gnu.org/licenses/gpl.html></a></em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>This is free
software: you are free to change and redistribute it.</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>There is NO WARRANTY,
to the extent permitted by law.</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>Type "show copying"
and "show warranty" for details.</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>This GDB was
configured as "aarch64-linux-gnu".</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>Type "show
configuration" for configuration details.</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>For bug reporting
instructions, please see:</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em><</em><em><a
href="http://www.gnu.org/software/gdb/bugs%3E%3C/a%3E."
target="_blank"
_href="http://www.gnu.org/software/gdb/bugs></a>.">http://www.gnu.org/software/gdb/bugs/>.</a></em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>Find the GDB manual
and other documentation resources online at:</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em> <</em><em><a
href="http://www.gnu.org/software/gdb/documentation%3E%3C/a%3E."
target="_blank"
_href="http://www.gnu.org/software/gdb/documentation></a>.">http://www.gnu.org/software/gdb/documentation/>.</a></em></span></tt><br>
<tt><span style="font-size: 16px;"> <br>
</span></tt><br>
<tt><span style="font-size: 16px;"> <em>For help, type
"help".</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>Type "apropos word"
to search for commands related to "word"...</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>Reading symbols from
python...Reading symbols from
/usr/lib/debug/.build-id/d2/abd686c8e3ff7962791dfefbc4ef85235040d3.debug...done.</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>done.</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>(gdb) </em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>(gdb) r
testExample.py </em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>Starting program:
/usr/bin/python testExample.py</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>[Thread debugging
using libthread_db enabled]</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>Using host
libthread_db library
"/lib/aarch64-linux-gnu/libthread_db.so.1".</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>[New Thread
0xffffe5d541e0 (LWP 4622)]</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>[New Thread
0xffffe515e1e0 (LWP 4623)]</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>Could not initialize
GLX</em></span></tt><br>
<tt><span style="font-size: 16px;"> <br>
</span></tt><br>
<tt><span style="font-size: 16px;"> <em>Thread 1 "python"
received signal SIGABRT, Aborted.</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>__GI_raise
(sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>50<span style="font-size: 16px; white-space: pre;"></span>../sysdeps/unix/sysv/linux/raise.c:
没有那个文件或目录.</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>(gdb) </em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>(gdb) py-list </em></span></tt><br>
<tt><span style="font-size: 16px;"> <em> 4 #ifrom
PyQt5.QtWebEngineWidgets import QWebEngineView</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em> 5 #from sip
import SIP_VERSION_STR</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em> 6 </em></span></tt><br>
<tt><span style="font-size: 16px;"> <em> 7 if
__name__=='__main__':</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em> 8 import
sys</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em> >9
app=QApplication(sys.argv) </em></span></tt><br>
<tt><span style="font-size: 16px;"> <em> 10
#print("Qt5 Version Number is: {0}".format(QT_VERSION_STR))</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em> 11
#print("PyQt5 Version is: {}".format(PYQT_VERSION_STR))</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em> 12
#print("Sip Version is: {}".format(SIP_VERSION_STR)) </em></span></tt><br>
<tt><span style="font-size: 16px;"> <em> 13 print
("hello")</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em> 14 </em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>(gdb) </em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>(gdb) bt</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#0
0x0000fffff7d32714 in __GI_raise (sig=sig@entry=6) at
../sysdeps/unix/sysv/linux/raise.c:50</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#1
0x0000fffff7d208e8 in __GI_abort () at abort.c:79</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#2
0x0000fffff5beff2c in qt_message_fatal (context=...,
message=<synthetic pointer>...) at
global/qlogging.cpp:1840</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#3
0x0000fffff5beff2c in QMessageLogger::fatal(char const*, ...)
const (this=this@entry=0xffffffffd2d8,
msg=msg@entry=0xffffe5540d38 "Could not initialize GLX") at
global/qlogging.cpp:880</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#4
0x0000ffffe553e4cc in QGLXContext::init(QXcbScreen*,
QPlatformOpenGLContext*) (this=0xffffe0006070,
screen=0x7c8210, share=<optimized out>)</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em> at
../../../../../../include/QtCore/../../src/corelib/global/qlogging.h:91</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#5
0x0000ffffe553bb20 in
QXcbGlxIntegration::createPlatformOpenGLContext(QOpenGLContext*)
const (this=<optimized out>, context=0xffffe00056c0) at
qxcbglxintegration.cpp:186</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#6
0x0000ffffe5f870d0 in
QXcbIntegration::createPlatformOpenGLContext(QOpenGLContext*)
const (this=<optimized out>, context=0xffffe00056c0) at
qxcbintegration.cpp:283</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#7
0x0000fffff61cec08 in QOpenGLContext::create()
(this=0xffffe00056c0) at
../../include/QtGui/5.11.3/QtGui/private/../../../../../src/gui/kernel/qguiapplication_p.h:105</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#8
0x0000ffffef4e3af4 in QtWebEngineCore::initialize() () at
/lib/aarch64-linux-gnu/libQt5WebEngineCore.so.5</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#9
0x0000fffff5dd00f0 in qt_call_pre_routines () at
../../include/QtCore/../../src/corelib/tools/qlist.h:540</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#10
0x0000fffff5dd00f0 in QCoreApplicationPrivate::init()
(this=this@entry=0x7cb3f0) at kernel/qcoreapplication.cpp:865</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#11
0x0000fffff618b7e8 in QGuiApplicationPrivate::init()
(this=this@entry=0x7cb3f0) at kernel/qguiapplication.cpp:1419</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#12
0x0000fffff675d354 in QApplicationPrivate::init()
(this=0x7cb3f0) at kernel/qapplication.cpp:564</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#13
0x0000fffff7020d2c in
sipQApplication::sipQApplication(int&, char**, int)
(this=0xac5860, a0=<optimized out>, a1=<optimized
out>, a2=<optimized out>) at
./build-2.7/QtWidgets/sipQtWidgetspart9.cpp:12868</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#14
0x0000fffff7020e1c in
init_type_QApplication(sipSimpleWrapper*, PyObject*,
PyObject*, PyObject**, PyObject**, PyObject**)</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>
(sipSelf=0xfffff2e1ad60, sipArgs=<optimized out>,
sipKwds=<optimized out>, sipUnused=<optimized
out>, sipParseErr=0xffffffffd7a0) at
./sip/QtWidgets/qapplication.sip:221</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#15
0x0000fffff31de53c in sipSimpleWrapper_init
(self=0xfffff2e1ad60, args=(['testExample.py'],), kwds=0x0) at
./siplib/siplib.c:10542</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#16
0x00000000004609b8 in type_call (type=<optimized out>,
args=(['testExample.py'],), kwds=0x0) at
../Objects/typeobject.c:1181</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#17
0x0000000000456310 in PyObject_Call (func=<optimized
out>, arg=<optimized out>, kw=<optimized out>)
at ../Objects/abstract.c:2544</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#18
0x00000000004799ec in do_call (nk=<optimized out>,
na=<optimized out>, pp_stack=0xffffffffd948,
func=<optimized out>) at ../Python/ceval.c:4593</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#19
0x00000000004799ec in call_function (oparg=<optimized
out>, pp_stack=0xffffffffd948) at ../Python/ceval.c:4398</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#20
0x00000000004799ec in PyEval_EvalFrameEx (f=<optimized
out>, throwflag=<optimized out>) at
../Python/ceval.c:3013</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#21
0x0000000000471d08 in PyEval_EvalCodeEx</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em> (co=<optimized
out>, globals=<optimized out>, locals=<optimized
out>, args=<optimized out>, argcount=<optimized
out>, kws=<optimized out>, kwcount=<optimized
out>, defs=<optimized out>, defcount=<optimized
out>, closure=<optimized out>) at
../Python/ceval.c:3608</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#22
0x000000000047197c in PyEval_EvalCode (co=<optimized
out>, globals=<optimized out>, locals=<optimized
out>) at ../Python/ceval.c:669</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#23
0x00000000004a9798 in run_mod</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>
(mod=<optimized out>, filename=<optimized out>,
globals={'PYQT_VERSION_STR': '5.11.3', 'QT_VERSION_STR':
'5.11.3', '__builtins__': <module at remote
0xfffff7cc0b08>, '__file__': 'testExample.py',
'QApplication': <sip.wrappertype at remote 0x96c010>,
'__package__': None, 'sys': <module at remote
0xfffff7cc0bb0>, '__name__': '__main__', '__doc__': None},
locals={'PYQT_VERSION_STR': '5.11.3', 'QT_VERSION_STR':
'5.11.3', '__builtins__': <module at remote
0xfffff7cc0b08>, '__file__': 'testExample.py',
'QApplication': <sip.wrappertype at remote 0x96c010>,
'__package__': None, 'sys': <module at remote
0xfffff7cc0bb0>, '__name__': '__main__', '__doc__': None},
flags=<optimized out>, arena=<optimized out>) at
../Python/pythonrun.c:1385</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#24
0x00000000004a4124 in PyRun_FileExFlags</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>
(fp=fp@entry=0x7a26f0, filename=filename@entry=0xffffffffe0c5
"testExample.py", start=start@entry=257,
globals=globals@entry={'PYQT_VERSION_STR': '5.11.3',
'QT_VERSION_STR': '5.11.3', '__builtins__': <module at
remote 0xfffff7cc0b08>, '__file__': 'testExample.py',
'QApplication': <sip.wrappertype at remote 0x96c010>,
'__package__': None, 'sys': <module at remote
0xfffff7cc0bb0>, '__name__': '__main__', '__doc__': None},
locals=locals@entry={'PYQT_VERSION_STR': '5.11.3',
'QT_VERSION_STR': '5.11.3', '__builtins__': <module at
remote 0xfffff7cc0b08>, '__file__': 'testExample.py',
'QApplication': <sip.wrappertype at remote 0x96c010>,
'__package__': None, 'sys': <module at remote
0xfffff7cc0bb0>, '__name__': '__main__', '__doc__': None},
closeit=closeit@entry=1, flags=flags@entry=0xffffffffdbf8) at
../Python/pythonrun.c:1371</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#25
0x00000000004a3784 in PyRun_SimpleFileExFlags (fp=0x7a26f0,
filename=0xffffffffe0c5 "testExample.py", closeit=1,
flags=0xffffffffdbf8) at ../Python/pythonrun.c:957</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#26
0x000000000043db68 in Py_Main (argc=<optimized out>,
argv=<optimized out>) at ../Modules/main.c:641</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#27
0x0000fffff7d20d24 in __libc_start_main (main=0x43d5d0
<main>, argc=2, argv=0xffffffffddc8, init=<optimized
out>, fini=<optimized out>, rtld_fini=<optimized
out>, stack_end=<optimized out>)</em></span></tt><br>
<tt><span style="font-size: 16px;"> <span style="font-size:
16px;"> <em> at ../csu/libc-start.c:308</em></span></span></tt><br>
<tt><span style="font-size: 16px;"> <em>#28
0x000000000043d518 in _start () at
../Objects/bytearrayobject.c:18</em></span></tt><br>
<tt><span style="font-size: 16px;"> <em>(gdb) </em></span></tt><br>
<tt><br>
</tt><br>
<tt><span style="font-size: 16px;">And when I uninstall
python-pyqt5.qtweben<span style="font-size: 16px;">gine-dbg(5.11.3.1-1+rebuild),<span
style="color: rgb(51, 51, 51);">the error disappears. </span> Comparing
the gd</span>b log and only found the parameters of
PyRun_FileExFlags: global and locals is missing a part: </span></tt><br>
<tt><span style="font-size: 16px;"> 'app': <QApplication at
remote 0xfffff2a89c30>. </span></tt><br>
<tt><span style="font-size: 16px;">On x86 machines, this part is
there.</span></tt><br>
<tt><br>
</tt><br>
<tt><span style="font-size: 16px;">I don't know if this is the cause
of this problem in the end, and I don't understand why there is
such a difference between arm and x86.</span></tt><br>
<tt><span style="font-size: 16px;">I enclose X86 gdb log for your
reference.</span></tt><br>
<tt><br>
</tt><br>
<tt><span style="font-size: 16px;">So far i havent't found any
solution how to solve this issue. Could you help to investigate
on this issue, thanks in advance!</span></tt><br>
<tt><br>
</tt><br>
<tt><span style="font-size: 16px;">Best regards,</span></tt><br>
<tt><span style="font-size: 16px;">Zongli Peng</span></tt>
</body>
</html>