many thanks for your response! I don’t know what the issue with my executable should be. I see this behavior with completely unmodified files in a fresh build, both on macos and on RH linux. I describe what I do below.
I installed from scratch geant4.10.07.p02.tar (geant4.web.cern.ch) on two machines: (1) macos 10.15.7 and (2) Red Hat Enterprise Linux Server 7.9. In both cases I compiled minimally (w/o Qt or so) using
cmake -DCMAKE_INSTALL_PREFIX=../g4-install -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_BUILD_MULTITHREADED=OFF -DCMAKE_BUILD_TYPE=Debug -DGEANT4_BUILD_CXXSTD=17 ../geant4.10.07.p02
make VERBOSE=1 -j9 > & make.log &
mkdir _build && cd _build/
This dumps me into interactive mode (except on the linux machine, where I have to comment the call to /vis/open OGL 600x600-0+0 in vis.mac to avoid a fatal error), where I can do
Particle is not selected yet !! Command ignored.
In the simplified builds on both architectures I get complaints from G4OpenGLXViewer, but I think the detector and the physicslist have been built. (The error message regarding the particle selection is the same in these simplified fresh builds as in my normal Qt5-based build where I have no errors from the viewer.) I also tried to use C++11 instead of C++17 (imposed by external constraints for my normal work), but this does not cure the issue.
Since I was at it, I also tried installing from scratch with geant4.10.06.p03.tar (Software Download Archive | geant4.web.cern.ch). With this release, I do NOT get the issue. I can select the particle and dump its properties.
From my perspective I can reproduce the issue I reported in June in fresh unmodified builds of geant4.10.07.p02 on two different architectures. The issue is not present in geant4.10.06.p03.
When you refer to the ‘latest version of Geant4’, are you building against the master branch or v11.0.0.beta?