Geant4 Version: 11.1.2
Operating System: Ubuntu 22.04.2 LTS
Compiler/Version: g++ (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
Hi, I am a new user to both Ubuntu and Geant4. I have been trying to install Geant4, and I have successfully gotten the command line interface of Geant4 to work, but I’m having trouble getting the GUI to work. I had to rebuild Geant4 once, which is how I got the GUI to show at all, but I do not know how to get the window to visualize properly when I input
/run/beamOn 1, for instance. I have been following the “Physics Matters” tutorial on YouTube, so that is the program running pictured here.
This is my view of the GUI, and when I first start up the program, it gives me the following error:
Candidates are: ASCIITree ATree DAWNFILE G4HepRepFile HepRepFile RayTracer VRML2FILE gMocrenFile TOOLSSG_OFFSCREEN TSG_OFFSCREEN TOOLSSG_OFFSCREEN TSG_OFFSCREEN TSG_FILE -------- 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) Error code : 500 *** This is just a warning message. *** -------- WWWW -------- G4Exception-END --------- WWWW ------- ERROR: G4VisCommandsViewerSet::SetNewValue: no current viewer. WARNING: Scene handler not found. ERROR: Current scene handler not defined. Please select or create one. ERROR: G4VisCommandsViewerSet::SetNewValue: no current viewer.
The commands I’m having run on program startup (hard-coded into my program, as instructed in the tutorial I saw) are as follows:
UImanager->ApplyCommand("/vis/open OGL"); UImanager->ApplyCommand("/vis/viewer/set/viewpointVector 1 1 1"); UImanager->ApplyCommand("/vis/drawVolume"); UImanager->ApplyCommand("/vis/viewer/set/autoRefresh true"); UImanager->ApplyCommand("/vis/scene/add/trajectories smooth");
As I mentioned previously, I rebuilt/reinstalled Geant4 once, to get it to show the GUI at all, and the cmake command gave me this error:
Disabling Geant4 Qt3D driver, missing Qt packages: Qt53DCore;Qt53DExtras;Qt53DRender
As I have also mentioned, I am new to Ubuntu, so I don’t know exactly how to fix this, but I assume this is the reason that Geant4 is not showing me the path of my particles in the GUI window. Thanks!