Getting error "TSG_QT_GLES" is not compatible with your chosen session, and no fallback system found

I am trying to use the visualization, which is very useful of course for debugging.

Here is some information from the spew when I start it up


Geant4 version Name: geant4-11-02-patch-02 [MT] (21-June-2024)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
: NIM A 835 (2016), 186-225
WWW : http://geant4.org/


and

Visualization Manager instantiating with verbosity “warnings (3)”…
Visualization Manager initialising…
Registering graphics systems…
Qt6: Asking ToolsSG to stand in for OpenGL

You have successfully registered the following graphics systems.
Registered graphics systems are:
ASCIITree (ATree)
DAWNFILE (DAWNFILE)
G4HepRepFile (HepRepFile)
RayTracer (RayTracer)
VRML2FILE (VRML2FILE)
gMocrenFile (gMocrenFile)
TOOLSSG_OFFSCREEN (TSG_OFFSCREEN)
TOOLSSG_OFFSCREEN (TSG_OFFSCREEN, TSG_FILE)
TOOLSSG_QT_GLES (TSG_QT_GLES, TSGQt, TSG, OGL)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB)
Default graphics system is: OGL (based on build flags).
Default window size hint is: 600x600-0+0 (based on G4VisManager initialisation).
Note: Parameters specified on the command line will override these defaults.
Use “vis/open” without parameters to get these defaults.

however when I do /vis/open I get an error. This started to occur when I started using geant via source /cvmfs/sw.hsf.org/key4hep/setup.sh

The error is

Idle> /vis/open

-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : UIMAN0123
issued by : G4UImanager::ApplyCommand
“TSG_QT_GLES” is not compatible with your chosen session, and no fallback system found.
Error code : 4
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------

my environmental variables are as shown at environmental variables - Google Docs

I am using MobaXterm to access the linux cluster I run on

Hi Sarah

When you are logging through to a remote machine, and trying to display some graphics on a local machine, it uses X11-protocol to send packets between the machines. Maybe there are some options in MobaXterm that need configuring for X11 graphics. I’m not an expert here, I’m afraid.

But opening a Qt window is very, very slow when using it over the network in this way. Could you try building with X11? Cmake option GEANT4_USE_OPENGL_X11=ON. This should give you more graphics options, including a fallback for TSG_QT_GLES.

Incidentally, you need only one environment variable, GEANT4_DATA_DIR, to run a simple Geant4 app. Stuff that used to need environment variables is all handled by cmake nowadays. It looks to me as though /cvmfs/sw.hsf.org/key4hep/setup.sh` over configures the environment for Geant4 - but perhaps no harm in that.

Let us know how you get on.

Good luck
John