<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>A little more information in case it helps.</p>
<p>I test it on 5 different computers:</p>
<p>- Debian 8:<br>
- Python 3.4 (official) no segfault (2 computers)<br>
- Python 3.5 (own) segfault (2 computers)<br>
- Python 3.6 (own) segfault (1 computer)<br>
- Debian 9:<br>
- Python 3.5 (official) segfault (1 computer)</p>
<p>Maybe it have something to do with Python>=3.5?<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 11/27/2017 01:20 PM, Valentin Valls
wrote:<br>
</div>
<blockquote cite="mid:4659b87a-a960-6d8d-be89-6d69a1ffa00c@esrf.fr"
type="cite">
<pre wrap="">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@entry=0x7fffed6e9750, args=args@entry=0x7ffff7e04048,
kwds=kwds@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,
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
PyQt mailing list <a class="moz-txt-link-abbreviated" href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a>
<a class="moz-txt-link-freetext" href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></pre>
</blockquote>
<br>
</body>
</html>