Whenever I try to create a QApplication
code locally works as expected but segfaults in travis.
I pinpointed the issue to the following line:
qapp = QtWidgets.QApplication([])
This is the error I’m getting (taken from the travis log):
tests/idaplugin/test_plugin.py::test_plugin_creation /home/travis/.travis/job_st
You’ll need to run xvfb
on Travis to be able to execute graphical applications (if you don’t need any GUI, use QCoreApplication
instead).
You can either follow the Travis docs, or (since it looks like you’re using pytest
), use my pytest-xvfb plugin.
One thing to note, pytest's
-s
flag (to not hide output from “passing” tests) is quite useful when debugging issues like this.
1 Like