Skip to content

gmsh GUI fails to launch over ssh

Description

Trying to launch gmsh (GUI) on a remote machine over SSH (with X11 forwarding enabled) results in an empty drawing area and an error in the terminal used to spawn gmsh

XRequest.152: BadValue (integer parameter out of range for operation) 0x0

Screenshot_from_2021-11-26_11-56-52

Am I missing something obvious? If not, what is the correct way to launch gmsh on a remote machine?

Additional info

Both machines run Ubuntu 20.04, and use the precompiled binaries for Linux. Changing the DISPLAY/passing to gmsh -display :0.0 will simply launch gmsh on the remote screen (if one is available). Attempting to read an input file does nothing while attempting to draw a geometry causes the gmsh to segfault. As far as I know gmsh has always behaved that way i.e. was still the case with gmsh 2.x.