[bug PyQt 5.15.2] segmentation fault using QVideoFilterRunnable

Adrian Fiergolski adrian.fiergolski at fastree3d.com
Wed Feb 10 16:30:09 GMT 2021


Hi,

I am getting segmentation fault using QVideoFilterRunnable. I try to
follow the example from the documentation.

I am enclosing the testcase and the log from the debugger (gdb).

My setup: yocto (with meta-qt5 gatesgarth, PyQt 5.15.2) running on
Cortex A-53, kernel 5.4).

I got the same issue with PyQt 5.13.2 on my embedded platform. The
problem is reproducible on a PC (running Ubuntu 20.04 with installed
qt5-default and pyqt5-dev).

Once the filter is commented out (case.qml:17), everything runs smoothly.

Do you know any workaround for that? I need to process data from a
camera in OpenCV (I wanted to do it the QVideoFilterRunnable:run) and
paint the resulting processed frame.

Regards,

Adrian

-------------- next part --------------
Starting program: /usr/bin/python3 /usr/bin/fsiview.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
[New Thread 0xfffff4503150 (LWP 1031)]
[New Thread 0xfffff3d02150 (LWP 1032)]
[New Thread 0xfffff3500870 (LWP 1033)]
[New Thread 0xfffff34de150 (LWP 1034)]
[New Thread 0xfffff0a3a150 (LWP 1035)]
[New Thread 0xffffebfff150 (LWP 1036)]
[New Thread 0xffffeb7fe150 (LWP 1037)]
[New Thread 0xffffeaffd150 (LWP 1038)]
[New Thread 0xffffea7fc150 (LWP 1039)]
[New Thread 0xffffe9ffb150 (LWP 1040)]
[New Thread 0xffffe97fa150 (LWP 1041)]
[New Thread 0xffffe8ff9150 (LWP 1042)]
[New Thread 0xffffcbfff150 (LWP 1043)]
[New Thread 0xffffcb7fe150 (LWP 1044)]
[New Thread 0xffffcaffd150 (LWP 1045)]

Thread 15 "QSGRenderThread" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xffffcb7fe150 (LWP 1044)]
0x0000fffff5ad3a2c in ?? ()
   from /usr/lib/python3.8/site-packages/PyQt5/QtQml.so
	(gdb) bt
	#0  0x0000fffff5ad3a2c in ?? ()
	   from /usr/lib/python3.8/site-packages/PyQt5/QtQml.so
	#1  0x0000fffff21e204c in ?? () from /usr/lib/libQt5MultimediaQuick.so.5
	#2  0x0000fffff4ea5a04 in QQuickWindowPrivate::updateDirtyNode(QQuickItem*) ()
	   from /usr/lib/libQt5Quick.so.5
	#3  0x0000fffff4ea60e0 in QQuickWindowPrivate::updateDirtyNodes() ()
	   from /usr/lib/libQt5Quick.so.5
	#4  0x0000fffff4ea77f0 in QQuickWindowPrivate::syncSceneGraph() ()
	   from /usr/lib/libQt5Quick.so.5
	#5  0x0000fffff4e4ab1c in ?? () from /usr/lib/libQt5Quick.so.5
	#6  0x0000fffff4e4c59c in ?? () from /usr/lib/libQt5Quick.so.5
	#7  0x0000fffff4e4d318 in ?? () from /usr/lib/libQt5Quick.so.5
	#8  0x0000fffff6c06af0 in ?? () from /usr/lib/libQt5Core.so.5
	#9  0x0000fffff7ad1f34 in start_thread (arg=0xffffffffeecf)
	    at pthread_create.c:463
	#10 0x0000fffff7bcb3dc in thread_start ()
	    at ../sysdeps/unix/sysv/linux/aarch64/clone.S:78
(gdb) 
	
-------------- next part --------------
A non-text attachment was scrubbed...
Name: case.qml
Type: text/x-qml
Size: 287 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210210/5b7df606/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: case.py
Type: text/x-python
Size: 991 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210210/5b7df606/attachment.py>


More information about the PyQt mailing list