PyQt5 QApplication causing segmentation fault

Bug #1807564 reported by Jon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Raspbian
New
Undecided
Unassigned

Bug Description

When trying to create a QtWidgets.QApplication in Python usingPyQt5, I get a segmentation fault. I have tried with very simple code:

from PyQt5 import QtWidgets

print("1")
app = QtWidgets.QApplication([' '])
print("2")
sys.exit()

I get the output:

1
Segmentation fault

Changing the arguments of QApplication to sys.argv makes no difference. I've also tried add a 'del' statement to see if this was GC related.

I unfortunately cannot get python bindings of gdb to work, but I've attached the gdb backtrace (incase helpful).

This is a fresh install. I've forced all python3 and pyqt5 packages to reinstall. I've also run apt-get update and dist-upgrade

Version information:

Linux raspberryjon 4.14.79+ #1159 Sun Nov 4 17:28:08 GMT 2018 armv6l GNU/Linux

Package: python3-pyqt5
Maintainer: Debian Python Modules Team <email address hidden>
Architecture: armhf
Source: pyqt5
Version: 5.7+dfsg-5

Package: python3.5
Maintainer: Matthias Klose <email address hidden>
Architecture: armhf
Multi-Arch: allowed
Version: 3.5.3-1+deb9u1

Revision history for this message
Jon (6zt) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.