<div dir="ltr"><div>In trying to get a <a href="https://www.boxcontrol.net/beginners-pyqt5-and-qml-integration-tutorial.html">very basic PyQt5 QML example</a> to run, I found that I get a segmentation fault.  I verified that it only seems deal with displaying QML since <a href="http://pyqt.sourceforge.net/Docs/PyQt5/qml.html">an example without a window</a> runs fine.  I tried the following minimial test:</div><div><br></div><div>    #!/usr/bin/python3</div><div>    import sys</div><div>    from PyQt5.QtCore import QUrl</div><div>    from PyQt5.QtWidgets import QApplication</div><div>    from PyQt5.QtQml import QQmlApplicationEngine</div><div>    </div><div>    # Main Function</div><div>    if __name__ == '__main__':</div><div>        app = QApplication(sys.argv)</div><div>        engine = QQmlApplicationEngine("simple.qml")</div><div>        engine.quit.connect(app.quit)</div><div>        sys.exit(app.exec_())</div><div><br></div><div>simple.qml:</div><div><br></div><div>    import QtQuick 2.5</div><div>    import QtQuick.Controls 1.4</div><div>    </div><div>    ApplicationWindow {</div><div>        width: 300</div><div>        height: 200</div><div>        title: "Simple"</div><div>        visible: true</div><div>    }</div><div><br></div><div>When I run this application, a window appears for a split second before closing like in the more detailed example, and I receive `Segmentation fault` in the console (and nothing more).</div><div><br></div><div>Running from GDB shows that the `QSGRenderThread` is receiving the SIGSEGV:</div><div><br></div><div>    (gdb) run snowman_qt.py </div><div>    Starting program: /usr/bin/python3 snowman_qt.py</div><div>    [Thread debugging using libthread_db enabled]</div><div>    Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".</div><div>    [New Thread 0x7fffe912b700 (LWP 17200)]</div><div>    [New Thread 0x7fffe3dbb700 (LWP 17201)]</div><div>    [New Thread 0x7fffe1442700 (LWP 17202)]</div><div>    [New Thread 0x7fffdbfff700 (LWP 17203)]</div><div>    </div><div>    Thread 5 "QSGRenderThread" received signal SIGSEGV, Segmentation fault.</div><div>    [Switching to Thread 0x7fffdbfff700 (LWP 17203)]</div><div>    __strstr_sse2 (haystack_start=0x0, needle_start=0x7fffe28c9dd0 "nouveau") at ../string/strstr.c:63</div><div>    63<span class="Apple-tab-span" style="white-space:pre">  </span>../string/strstr.c: No such file or directory.</div><div><br></div><div>If I run the QML file <a href="https://github.com/thp/pyotherside/issues/63">from a C++ application</a>, there is no segmentation fault and the application works.  Note that I'm using PyQT without PyOtherside, but the symptoms seem similar.</div><div><br></div><div>Is there a way to get more information to continue debugging?</div><div><br></div><div>I am running Python 3.5.2 on Linux Mint 18.  My QT version is 5.7.0, my PyQt version is 5.7, and my SIP version is 4.18.1.</div><div><br></div><div>This is a copy of my <a href="http://stackoverflow.com/questions/39381009/simple-pyqt5-qml-application-causes-segmentation-fault">stackoverflow question</a>, and I apologize for spamming this issue.  I'm trying to convince a small team to look at QML over HTML5 and this is a blocker.</div><div><br></div><div>Thanks,</div><div>Louis</div></div>