Sample B1 errors while running

Hello;

I’m a beginner

I deleted it many times and installed it again but it always gives the same error. Please can you help?Scene tree empty and and I can’t see the image

this is output


Geant4 version Name: geant4-10-06-patch-01 (14-February-2020)

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/


<<< Reference Physics List QBBC

Visualization Manager instantiating with verbosity “warnings (3)”…

Visualization Manager initialising…

Registering graphics systems…

You have successfully registered the following graphics systems.

Current available graphics systems are:

ASCIITree (ATree)

DAWNFILE (DAWNFILE)

G4HepRep (HepRepXML)

G4HepRepFile (HepRepFile)

RayTracer (RayTracer)

VRML1FILE (VRML1FILE)

VRML2FILE (VRML2FILE)

gMocrenFile (gMocrenFile)

OpenGLImmediateQt (OGLIQt, OGLI)

OpenGLStoredQt (OGLSQt, OGL, OGLS)

OpenGLImmediateX (OGLIX, OGLIQt_FALLBACK)

OpenGLStoredX (OGLSX, OGLSQt_FALLBACK)

Registering model factories…

You have successfully registered the following model factories.

Registered model factories:

generic

drawByAttribute

drawByCharge

drawByOriginVolume

drawByParticleID

drawByEncounteredVolume

Registered filter factories:

attributeFilter

chargeFilter

originVolumeFilter

particleFilter

encounteredVolumeFilter

You have successfully registered the following user vis actions.

Run Duration User Vis Actions: none

End of Event User Vis Actions: none

End of Run User Vis Actions: none

Some /vis commands (optionally) take a string to specify colour.

“/vis/list” to see available colours.

parameter out of range: switch >= 0 && switch <=2

***** Illegal parameter (99) </control/verbose 2> *****

***** Batch is interrupted!! *****

-------- WWWW ------- G4Exception-START -------- WWWW -------

*** G4Exception : UIMAN0123

issued by : G4UImanager::ApplyCommand

Command aborted (399)

Error code : 399

*** This is just a warning message. ***

-------- WWWW -------- G4Exception-END --------- WWWW -------

parameter out of range: switch >= 0 && switch <=2

***** Illegal parameter (99) </control/verbose 2> *****

***** Batch is interrupted!! *****

-------- WWWW ------- G4Exception-START -------- WWWW -------

*** G4Exception : UIMAN0123

issued by : G4UImanager::ApplyCommand

Command aborted (399)

Error code : 399

*** This is just a warning message. ***

-------- WWWW -------- G4Exception-END --------- WWWW -------

parameter out of range: switch >= 0 && switch <=2

***** Illegal parameter (99) </control/verbose 2> *****

***** Batch is interrupted!! *****

-------- WWWW ------- G4Exception-START -------- WWWW -------

*** G4Exception : UIMAN0123

issued by : G4UImanager::ApplyCommand

Command aborted (399)

Error code : 399

*** This is just a warning message. ***

-------- WWWW -------- G4Exception-END --------- WWWW -------

Have you tried deleting that line from the visinit.mac file?

I don’t know exactly, can you help me?

Dear William @donahuw2

thanks for help

The visual was opened when I deleted the lines / control / verbose 2 and / run / verbose 2 in the file. But this time I get the following error. It doesn’t work when typing run command.

So this is new territory for me. Lets try something a little different from the command line, try calliling

./exampleB1 run1.mac

Does that throw any errors? If not than it would seem to be an issue with the GUI interface.

I would begin to suspect the compilation actually had an error somewhere.Which version of Geant4 did you install?

Thank you so much for answering @donahuw2 . I installed the latest version of Geant. I ran the command you said and got this. But this time the image window is not opened, only the command window is available.

Command window.txt (64.2 KB)

This is exactly what i expected from that command format. When you call it that way it executes all the commands in the script. This is how you will end up running your production runs because the visualization slows down the process.

These run macros contain the command “/run/beamOn” which means that the Geant library is running as expected.

At this point, i don’t know why the application did not run the command from the GUI window. My guesses are:

The command was mistyped somehow. (an extra space somewhere or one missing) Copy the line from run1.mac that contains the /run/beamOn command and paste that into the gui window when you load it. If that works thats all it is.

There is some corruption in the compiled library (very unlikely)

I am very sorry but I do not fully understand. I couldn’t find the window where I would copy and paste that line. I don’t know very well because I just installed the app. By the way, did the problem go away?

I had the same problem as you. it’s probably because of the system language. when i changed the system locals to en-us only it got solved.