GATE Visualisation Error

Hello Everyone !
I have recently installed GATE version 9.2 and tried to run an example. I had GEANT4 installed already version 11.1.0 which was running fine. When I tried to run an example it threw me this error and I couldn’t visualize my geometry. Kindly look into it and tell me how to fix. I was using OPENGL to visualize geometries in GEANT4.

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


-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : UIMAN0123
      issued by : G4UImanager::ApplyCommand
Invoked command has failed - see above. Available graphics systems are:
 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)
  OpenGLImmediateQt (OGLIQt, OGLI)
  OpenGLStoredQt (OGLSQt, OGL, OGLS)
  RayTracerX (RayTracerX)
  TOOLSSG_QT_GLES (TSG_QT_GLES, TSGQt, TSG)

Error code : 1
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------

[G4-cerr] ***** Illegal parameter (1) </vis/open OGL> *****
[Gate] Sorry, error in a macro command : abort.

The problem is “OGLSQt” is not compatible with your chosen session". Looking at your list of registered graphics systems it looks like you have built Geant4 with Qt. Hence you should instantiate a Qt session. Maybe GATE uses a terminal session.

Looking further, I see you have RayTracerX, so why not build with GEANT4_USE_OPENGL_X11. That would give you a “fallback”.

Thank you so much for your reply @allison . How can I instantiate a Qt session.

Hi. Usually it is chosen from you build flags. E.g., in all the Geant4 examples, something like:

  // Detect interactive mode (if no arguments) and define UI session
  //
  G4UIExecutive* ui = nullptr;
  if ( argc == 1 ) { ui = new G4UIExecutive(argc, argv); }

I guess GATE doesn’t do this. Maybe you should consult the GATE providers.

1 Like

Yes, gate doesn’t do this. Kindly let me know if you came across a solution. I will be grateful

It’s probably worth contacting the GATE developers through their support channels on what methods GATE provides for the selection/configuration (if any) of the Geant4 UI/Vis drivers. We can feedback to that if needed.

1 Like