Remote visualisation problem

Dear Geant4 Gurus,

I am not able to visualise the detector geometry of a Geant4 existing detector, when I compile the package on lxplus (source /cvmfs/geant4.cern.ch/geant4/10.5/x86_64-centos7-gcc63-opt/CMake-setup.sh).
If I try to run this very simple macro:

/vis/open OGL 600x600-0+0
/vis/drawVolume
/vis/viewer/set/background white

I get the following error:

WARNING: G4VisCommandSceneHandlerCreate::SetNewValue:
Using fallback graphics system: OpenGLStoredX (OGLSX)
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 149 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 27
Current serial number in output stream: 28

When running from a ssh -X terminal on my macbook pro with Mojave 10.14.6 and up-to-date XQuartz installed.
Is there a fix for this?

pietro

From my Mac, I have to use ssh -Y to get remote X displays to work properly.

You may also need to enable “indirect GL” in XQuartz, with the command

defaults write org.macosforge.xquartz.X11 enable_iglx -bool true

then stop and restart XQuartz.

Dear Michael,

thanks a lot for your suggestion, which I applied and things changed, which is for sure an evolution. I still have errors, but I also don’t know the origin of them yet and the initial messages that triggered my question disappeared.
The first new complaints that I see are the following:

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

do you happen to know whether they are still connected to my ZQuartz settings?

pietro

I get those messages as well, when logged into a remote Linux (RedHat 6) system, with display redirected back to my MacBook. They do not appear to affect visualization, and may be related to the driver sets installed on the remote system.

Thanks Michael,

pietro