Closed yh-luo closed 4 years ago
This could be garbage collection, if you do brain = stc.plot(....)
to keep a reference to the object, does it help?
@larsoner No, brain = stc_aud.plot(hemi='both', initial_time=0.1)
shows the same behavior. Also, the bug exists in both Python interpreter and IPython.
I used Visualize source time courses to further test SourceEstimate.plot()
, VolSourceEstimate.plot()
and VectorSourceEstimate.plot()
, only VectorSourceEstimate
has this problem.
I think depth peeling could be the issue. The surfaces are shown correctly (but ugly) when brain_alpha=1
. I tried to comment out the below part to avoid depth peeling and the problem is fixed too.
I can't reproduce this one.
Depth peeling for the mayavi backend was enabled in https://github.com/mne-tools/mne-python/pull/7030 to fix graphical issues with the glass brain. But apparently, this workaround is not working for every configuration.
Choosing the less painful solution, between graphical issue and a brain that closes by itself: should we disable depth peeling @jasmainak, @larsoner ?
I'm closing this because it's actually a problem of Fedora with NVIDIA Optimus laptop. Others may encounter the same Mayavi rendering problem so the solution is below:
__NV_PRIME_RENDER_OFFLOAD=1
and __GLX_VENDOR_LIBRARY_NAME=nvidia
before running graphical applications. Or set them in .bashrc
export __NV_PRIME_RENDER_OFFLOAD=1
export __GLX_VENDOR_LIBRARY_NAME=nvidia
I'm not sure if other Linux users have this problem with dual GPU laptops though.
Thanks for sharing!
I'm not sure if other Linux users have this problem with dual GPU laptops though.
I used a slightly more complicated method on my Manjaro to get rid of those visual artifacts.
Describe the bug
VectorSourceEstimate.plot()
is not working properly in v20.Steps to reproduce
I used the
sample
dataset to compute someVectorSourceEstimate
files to play around. Trouble shootings in Advanced setup of MNE-Python did not fix the problem.Expected results
In MNE v19, it works without problems
Actual results
In MNE v20, the surfaces disappear after plotting.
The problem persists in
master
.Additional information
If required, I can upload the source estimate file.
mne.sys_info