This happens on SemaphoreCI but I'm also able to reproduce it on my computer. When running pytest -v
some tests are passing, but then segmentation fault appears.
After installing pytest-faulthandler
I get this Python backtrace:
manuskript/tests/ui/importers/test_importers.py::test_loadImportWiget Project tmpzeylgxfp.msk saved.
Loading: /tmp/tmpjy6jlxeo.msk
Detected file format version: 1. Zip: False.
Project /tmp/tmpjy6jlxeo.msk loaded.
QAbstractItemView::setRootIndex failed : index must be from the currently set model
QAbstractItemView::setRootIndex failed : index must be from the currently set model
QAbstractItemView::setRootIndex failed : index must be from the currently set model
0
Fatal Python error: Segmentation fault
Current thread 0x00007fb701d13600 (most recent call first):
File "/home/katafrakt/dev/github/manuskript/manuskript/ui/importers/importer.py", line 221 in setGroupWidget
File "/home/katafrakt/dev/github/manuskript/manuskript/ui/importers/importer.py", line 202 in updateSettings
File "/home/katafrakt/dev/github/manuskript/manuskript/ui/importers/importer.py", line 59 in __init__
File "/home/katafrakt/dev/github/manuskript/manuskript/mainWindow.py", line 1473 in doImport
File "/home/katafrakt/dev/github/manuskript/manuskript/tests/ui/importers/test_importers.py", line 13 in test_loadImportWiget
File "/usr/lib/python3.7/site-packages/_pytest/python.py", line 166 in pytest_pyfunc_call
File "/usr/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall
File "/usr/lib/python3.7/site-packages/pluggy/manager.py", line 61 in <lambda>
File "/usr/lib/python3.7/site-packages/pluggy/manager.py", line 67 in _hookexec
File "/usr/lib/python3.7/site-packages/pluggy/hooks.py", line 284 in __call__
File "/usr/lib/python3.7/site-packages/_pytest/python.py", line 1435 in runtest
File "/usr/lib/python3.7/site-packages/_pytest/runner.py", line 116 in pytest_runtest_call
File "/usr/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall
File "/usr/lib/python3.7/site-packages/pluggy/manager.py", line 61 in <lambda>
File "/usr/lib/python3.7/site-packages/pluggy/manager.py", line 67 in _hookexec
File "/usr/lib/python3.7/site-packages/pluggy/hooks.py", line 284 in __call__
File "/usr/lib/python3.7/site-packages/_pytest/runner.py", line 188 in <lambda>
File "/usr/lib/python3.7/site-packages/_pytest/runner.py", line 206 in __init__
File "/usr/lib/python3.7/site-packages/_pytest/runner.py", line 190 in call_runtest_hook
File "/usr/lib/python3.7/site-packages/_pytest/runner.py", line 166 in call_and_report
File "/usr/lib/python3.7/site-packages/_pytest/runner.py", line 86 in runtestprotocol
File "/usr/lib/python3.7/site-packages/_pytest/runner.py", line 71 in pytest_runtest_protocol
File "/usr/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall
File "/usr/lib/python3.7/site-packages/pluggy/manager.py", line 61 in <lambda>
File "/usr/lib/python3.7/site-packages/pluggy/manager.py", line 67 in _hookexec
File "/usr/lib/python3.7/site-packages/pluggy/hooks.py", line 284 in __call__
File "/usr/lib/python3.7/site-packages/_pytest/main.py", line 242 in pytest_runtestloop
File "/usr/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall
File "/usr/lib/python3.7/site-packages/pluggy/manager.py", line 61 in <lambda>
File "/usr/lib/python3.7/site-packages/pluggy/manager.py", line 67 in _hookexec
File "/usr/lib/python3.7/site-packages/pluggy/hooks.py", line 284 in __call__
File "/usr/lib/python3.7/site-packages/_pytest/main.py", line 221 in _main
File "/usr/lib/python3.7/site-packages/_pytest/main.py", line 181 in wrap_session
File "/usr/lib/python3.7/site-packages/_pytest/main.py", line 214 in pytest_cmdline_main
File "/usr/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall
File "/usr/lib/python3.7/site-packages/pluggy/manager.py", line 61 in <lambda>
File "/usr/lib/python3.7/site-packages/pluggy/manager.py", line 67 in _hookexec
File "/usr/lib/python3.7/site-packages/pluggy/hooks.py", line 284 in __call__
File "/usr/lib/python3.7/site-packages/_pytest/config/__init__.py", line 68 in main
File "/usr/bin/pytest", line 11 in <module>
[1] 11359 segmentation fault (core dumped) pytest -vs
I tried playing around with gdb
and got this trace as well (but I was unable to go any further):
Thread 1 "python" received signal SIGSEGV, Segmentation fault.
0x00007ffff5138285 in ?? () from /usr/lib/libQt5Widgets.so.5
(gdb) bt
#0 0x00007ffff5138285 in () at /usr/lib/libQt5Widgets.so.5
#1 0x00007ffff51383a4 in () at /usr/lib/libQt5Widgets.so.5
#2 0x00007ffff50c19a9 in QWidgetPrivate::inheritStyle() () at /usr/lib/libQt5Widgets.so.5
#3 0x00007ffff50c16cd in QWidgetPrivate::setStyle_helper(QStyle*, bool, bool) () at /usr/lib/libQt5Widgets.so.5
#4 0x00007ffff50c1a10 in QWidgetPrivate::inheritStyle() () at /usr/lib/libQt5Widgets.so.5
#5 0x00007ffff50d2a5e in QWidget::setParent(QWidget*, QFlags<Qt::WindowType>) () at /usr/lib/libQt5Widgets.so.5
#6 0x00007ffff50af03f in QLayout::addChildWidget(QWidget*) () at /usr/lib/libQt5Widgets.so.5
#7 0x00007ffff50a6a7c in QBoxLayout::insertWidget(int, QWidget*, int, QFlags<Qt::AlignmentFlag>) () at /usr/lib/libQt5Widgets.so.5
#8 0x00007ffff571721c in () at /usr/lib/python3.7/site-packages/PyQt5/QtWidgets.so
#9 0x00007ffff7b9c304 in _PyMethodDef_RawFastCallKeywords () at /usr/lib/libpython3.7m.so.1.0
#10 0x00007ffff7b9c461 in _PyCFunction_FastCallKeywords () at /usr/lib/libpython3.7m.so.1.0
#11 0x00007ffff7c0c209 in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.7m.so.1.0
#12 0x00007ffff7b9ba3b in _PyFunction_FastCallKeywords () at /usr/lib/libpython3.7m.so.1.0
#13 0x00007ffff7c0bbf4 in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.7m.so.1.0
#14 0x00007ffff7b9ba3b in _PyFunction_FastCallKeywords () at /usr/lib/libpython3.7m.so.1.0
#15 0x00007ffff7c0bbf4 in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.7m.so.1.0
#16 0x00007ffff7b55879 in _PyEval_EvalCodeWithName () at /usr/lib/libpython3.7m.so.1.0
#17 0x00007ffff7b56adc in _PyFunction_FastCallDict () at /usr/lib/libpython3.7m.so.1.0
#18 0x00007ffff7b66028 in _PyObject_Call_Prepend () at /usr/lib/libpython3.7m.so.1.0
#19 0x00007ffff7bb4303 in () at /usr/lib/libpython3.7m.so.1.0
#20 0x00007ffff7bc806c in _PyObject_FastCallKeywords () at /usr/lib/libpython3.7m.so.1.0
#21 0x00007ffff7c0cd35 in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.7m.so.1.0
#22 0x00007ffff7b9ba3b in _PyFunction_FastCallKeywords () at /usr/lib/libpython3.7m.so.1.0
#23 0x00007ffff7c0bbf4 in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.7m.so.1.0
#24 0x00007ffff7b55879 in _PyEval_EvalCodeWithName () at /usr/lib/libpython3.7m.so.1.0
#25 0x00007ffff7b56adc in _PyFunction_FastCallDict () at /usr/lib/libpython3.7m.so.1.0
#26 0x00007ffff7c08cf3 in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.7m.so.1.0
#27 0x00007ffff7b568fb in _PyFunction_FastCallDict () at /usr/lib/libpython3.7m.so.1.0
#28 0x00007ffff7c08cf3 in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.7m.so.1.0
#29 0x00007ffff7b55879 in _PyEval_EvalCodeWithName () at /usr/lib/libpython3.7m.so.1.0
#30 0x00007ffff7b9bbe2 in _PyFunction_FastCallKeywords () at /usr/lib/libpython3.7m.so.1.0
#31 0x00007ffff7c08435 in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.7m.so.1.0
#32 0x00007ffff7b55879 in _PyEval_EvalCodeWithName () at /usr/lib/libpython3.7m.so.1.0
#33 0x00007ffff7b9bbe2 in _PyFunction_FastCallKeywords () at /usr/lib/libpython3.7m.so.1.0
#34 0x00007ffff7c0bbf4 in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.7m.so.1.0
#35 0x00007ffff7b9ba3b in _PyFunction_FastCallKeywords () at /usr/lib/libpython3.7m.so.1.0
--Type <RET> for more, q to quit, c to continue without paging--q
Unfortunately, the very same thing happens when I open up a project and do File->Import (it crashes immediately).
Python 3.7.1
PyQt5 5.11.3-1 (from pacman)
SIP 4.19.13-1 (from pacman)
bug