Error while running tests

I’m getting this error every time I run tests via this command:

 pytest -m "not ultraslowtest" mne

The error:

mne/forward/tests/test_make_forward.py .sssssssss.sss.s.                                                                               [ 35%]
mne/gui/tests/test_coreg.py sssssssssssX Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  12 (X_ConfigureWindow)
  Resource id in failed request:  0x28760ac0
  Serial number of failed request:  7
  Current serial number in output stream:  8

Any way I can run the full test suite without bumping into this error. Also note that it stops exactly at 35%.

Searching the error code gives this pyvistaqt issue: X Error of failed request: BadWindow (invalid Window parameter) · Issue #445 · pyvista/pyvistaqt · GitHub
Has a suggested fix you could try. CC @larsoner

Also, if you run the tests with the -v flag, the pytest output will be more verbose and you’ll see the name of the test that is failing.

You can run with xvfb-run or really we should try to figure out which test is failing (-v or -vv will help with this) and add an appropriate / better skip function for when a usable Xwindow is not available (my guess is that you don’t have the right 3D support perhaps)

hhhmmm, Nice, using export QT_QPA_PLATFORM=xcb helps. The thread link you gave had a fix(or workaround).

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.