MNE Coreg issue with display - black screen on visualization

Hello everyone,

After trying for a few days to try to fix my issue with the mne coreg command, I am out of ideas and thus asking you for help.

My issue is that whenever running the mne coreg command on my computer (using the
mne coreg -d ~/mne_data/MNE-sample-data/subjects -s sample command)
, I get a black screen on the visualization pannel:

MNE version: 1.2.dev0
PyQt5: 5.15.7
Pyvista: 0.36.1
Python=3.10.6
under Ubuntu 22.04.1

I tried recreating a different virtualenv for mne, downgrading Python, using older versions of pyqt5 & vtk that could cause these problems, but no luck so far.

In the case of the last solution, it doesn’t work as the vtk version installed is not compatible with mne it seems (vtkmodules; required by mne is not part of that version of vtk).

The solution to this problem might be obvious, but I’m a bit stuck at the moment!

Thank you for your help!

Hello,

This is most likely an antialiasing issue.
You can disable it with mne.viz.set_3d_options(antialias=False).

Mathieu