[PyQt] Segfault using QFileDialog with PyQt 5.x manylinux
Valentin Valls
valentin.valls at esrf.fr
Mon Nov 27 12:20:42 GMT 2017
Hi,
Here is a segfault on Linux (Debian 8) using the last PyQt5.9.2, and an
own compiled Python 3.5.
I try to read the sidebar urls from a QFileDialog, but i don't need the
QFileDialog widget.
Here is a program:
from PyQt5 import Qt
def main():
qapp = Qt.QApplication([])
d = Qt.QFileDialog()
# Here i only need to read the sidebar urls
# urls = d.sidebarUrls()
d = None
qapp.exec_()
main()
Here is part of the backtrace:
#0 0x00007fffd50c6c16 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#1 0x00007fffd50cb56a in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#2 0x00007fffd475c4bb in ?? () from
/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#3 0x00007fffd475c4d9 in ?? () from
/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4 0x00007ffff2519b6d in g_main_context_dispatch () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5 0x00007ffff2519f48 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6 0x00007ffff2519ffc in g_main_context_iteration () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#7 0x00007ffff50ff36f in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
() from
/workspace/valls/env/py35-pyqt5/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5Core.so.5
#8 0x00007ffff50aa05a in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
/workspace/valls/env/py35-pyqt5/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5Core.so.5
#9 0x00007ffff50b2964 in QCoreApplication::exec() () from
/workspace/valls/env/py35-pyqt5/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5Core.so.5
#10 0x00007fffe8270be0 in meth_QApplication_exec_ () from
/workspace/valls/env/py35-pyqt5/lib/python3.5/site-packages/PyQt5/QtWidgets.so
#11 0x00000000005a3459 in PyCFunction_Call
(func=func at entry=0x7fffed6e9750, args=args at entry=0x7ffff7e04048,
kwds=kwds at entry=0x0) at Objects/methodobject.c:109
Here is pip list:
- PyQt5 (5.9.2)
- sip (4.19.6)
I also try to use close, DeleteOnClose, deleteLater, but without success.
I don't have any problems with PyQt4, or PyQt5 on Windows. I also try
PyQt 5.6, 5.7, 5.8 with always a segfault.
Any work around is also welcome.
Regards,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: valentin_valls.vcf
Type: text/x-vcard
Size: 293 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20171127/0c2f43b6/attachment.vcf>
More information about the PyQt
mailing list