teuben / nemo

a Stellar Dynamics Toolbox (Not Everybody Must Observe)
https://astronemo.readthedocs.io
GNU General Public License v2.0
56 stars 40 forks source link

glnemo2 works via ssh, but not via a vnc server such as x2go #117

Open teuben opened 1 year ago

teuben commented 1 year ago

Here is a normal run of glnemo2, as for example run when we use ssh to the machine where the data is

 $ glnemo2 p100 
 # screens = 2
 Is virtual desktop : 1

 >>>>>>>>> initializeGL()

 OpenGL version : [4.5 (Compatibility Profile) Mesa 22.1.5]
 OpenGL :4.5
 begining init shader
 GLSL version supported : [4.50]
 ...
 END OF INITSHADER
 ...

but when running in x2go, we (me and @kshi03) get a fatal error:

 $ glnemo2 p100 
 qt.qpa.xcb: X server does not support XInput 2
 qt.qpa.gl: QXcbConnection: Failed to initialize GLX
 # screens = 1
 Is virtual desktop : 0

 >>>>>>>>> initializeGL()

 OpenGL version : [4.5 (Compatibility Profile) Mesa 22.1.5]
 OpenGL :4.5
 begining init shader
 END OF INITSHADER 
 FATAL: FNT font loader called without a valid OpenGL context.

Any idea @jcldc what this could be?

jcldc commented 1 year ago

Hi there, forget about x2go, it's an outdated application. Install turbovnc + virtualgl and you'll get 3D acceleration from vncviewer with glnemo2 running See : https://www.turbovnc.org/

teuben commented 1 year ago

interesting! right now our sysadmin favored x2go in redhat8, because there's some new (redhat?) issue with vncviewer:

  WARNING: vncserver has been replaced by a systemd unit and is now considered deprecated and removed in upstream.
  Please read /usr/share/doc/tigervnc/HOWTO.md for more information.