在VNC上使用Mayavi mlab会引发OpenGL错误

问题描述 投票:1回答:1

在这个远离社会的时代,远程工作已成为新的规范。我在MNE-Python环境中的PyCharm IDE中在python中使用Mayavi mlab遇到了一些困难。我使用xvnc服务器从本地MacOS到Linux群集计算机,通过VNC会话通过Mayavi和VTK访问Conda环境。

打开mlab窗口时出现的错误是:

ERROR: In ../Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 754 
vtkXOpenGLRenderWindow (0x556e13b32670): Unable to find a valid OpenGL 3.2 or later implementation. Please update your video card driver to the latest version. If you are using Mesa please make sure you have version 11.2 or later and make sure your driver in Mesa supports OpenGL 3.2 such as llvmpipe or openswr. If you are on windows and using Microsoft remote desktop note that it only supports OpenGL 3.2 with nvidia quadro cards. You can use other remoting software such as nomachine to avoid this issue.

我已经在网上广泛寻找可能的解决方案。似乎使用VirtualGL拦截VTK调用OpenGL的PyCharm是一种可能的解决方案。有谁成功克服了在VNC会话上使用Mayavi mlab的问题?您有什么解决方案?

谢谢!

opengl pycharm vnc mayavi mne-python
1个回答
0
投票

我无法复制。您是否确定要访问的计算机具有可用的并加载了最新的图形驱动程序和/或Mesa软件?例如,我正在使用TurboVNC访问远程Ubuntu 18.04计算机,并且能够通过常规和设想的Mayavi后端生成Spherical Harmonics Gallery Example。但是,使用TurboVNC的默认设置,渲染的场景具有伪影,将场景另存为png会产生黑色图像,我猜这是使用Mesa(llvmpipe)的结果。如果我以-extension GLX启动TurboVNC,或者只是将vglrun附加在调用python3VirtualGL命令之前,则使用OpenGL,并且渲染的场景是完美的。我在下面附上屏幕截图和保存的数字。

enter image description hereenter image description hereenter image description here

© www.soinside.com 2019 - 2024. All rights reserved.