Bug#960073: Package:python-pyqt5 Run the example code with Trace and crash (SIGABRT)【请注意,邮件由mity...@gmail.com代发】

2020-07-06 Thread pengzon...@uniontech.com
Hi!

Sorry for my late reply. I preload libGLX_mesa.so.0 , and then run  the code on 
the arm machine is ok.
I tried to debug it, and then I found something different. The parameter of 
__glXLookupVendorByName is NVIDIA instead of mesa, it will dlopen 
libGLX_nvidia.so.0,
but my Graphics Card is AMD, only IibGLX_mesa.so.0 can be found locally, so 
__glXLookupVendorByName failed.

(gdb) b libglxmapping.c:574
Breakpoint 4 at 0xf3a993d0: file ../../../src/GLX/libglxmapping.c, line 574.
(gdb) r
[...]
Thread 1 "python" hit Breakpoint 4, __glXLookupVendorByScreen 
(dpy=dpy@entry=0xab1f8de0, screen=screen@entry=0) at 
../../../src/GLX/libglxmapping.c:574
(gdb) p name
$11 = 0xe0006330 "nvidia"

(gdb) b libglxmapping.c:430
Breakpoint 5 at 0xf3a97f74: file ../../../src/GLX/libglxmapping.c, line 430.
(gdb) r
[...]
Thread 1 "python" hit Breakpoint 5, __glXLookupVendorByName 
(vendorName=0xe0006110 "nvidia") at ../../../src/GLX/libglxmapping.c:430
(gdb) p filename
$12 = 0xab1ecc40 "libGLX_nvidia.so.0"
(gdb) 

I tried to continue debug, but I didn't find why filename is nvidia. 
 If you could please shed some light on this topic, I would really appreciate 
it.
Thank you in advance.

BRs
//Zongli


Bug#960073: Package:python-pyqt5 Run the example code with Trace and crash (SIGABRT)【请注意,邮件由mity...@gmail.com代发】

2020-06-30 Thread pengzon...@uniontech.com
Hi!

Some information on this, it look like  the same issue as #963709.

(gdb) r PnsAppWebX.py 
Starting program: /usr/bin/python PnsAppWebX.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
[New Thread 0xe6bc41e0 (LWP 21532)]
Could not initialize GLX

Thread 1 "python" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50 ../sysdeps/unix/sysv/linux/raise.c: 没有那个文件或目录.
(gdb) b libglxmapping.c:432
No source file named libglxmapping.c.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (libglxmapping.c:432) pending.
(gdb) p vendor->dlhandle
No symbol "vendor" in current context.
(gdb) p (char *)dlerror()
$1 = 0xab233500 "/lib/aarch64-linux-gnu/libglapi.so.0: cannot allocate 
memory in static TLS block"
(gdb) 

Now, is this the only  way we can fix this issue?and is there any way to fix 
this issue fundamentally?
Thank you for letting me know.

BRs
//Zongli


Bug#960073: Package:python-pyqt5 Run the example code with Trace and crash (SIGABRT)【请注意,邮件由mity...@gmail.com代发】

2020-06-28 Thread pengzon...@uniontech.com
Hi!

I add  this code on top of the python file and it works now. I read this 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=963709#39 , but I don’t 
understand why this is effective.
Thank you very much for your  help .

BRs
//Zongli


Bug#960073: Re: Bug#960073: Package:python-pyqt5 Run the example code with Trace and crash (SIGABRT)【请注意,邮件由mity...@gmail.com代发】

2020-06-12 Thread pengzon...@uniontech.com
Hi!

I tried to verify the local opengl/glx, they are normal. It is no problem to 
write QT code directly to call qtwebengine. So I suspect that the problem is 
caused by pyqt.
Looking forward to hearing from you soon.
Thanks.

BRs
//Zongli


testwebengine.cpp
Description: Binary data


Bug#960073: Re: Bug#960073: Package:python-pyqt5 Run the example code with Trace and crash (SIGABRT)【请注意,邮件由mity...@gmail.com代发】

2020-06-11 Thread pengzon...@uniontech.com
Hi!

Sorry for my late reply.
I tried to exporting QT_XCB_GL_INTEGRATION=xcb_egl  and it still reported an 
error. libglvnd-dev  package was originally installed.
Do you need other information?

Thank you in advance.

BRs
//Zongli