/particle/select in examples/basic/B1

Hi John,

marwees>ls -l exampleB1
-rwxr-xr-x  1 ursl  staff  578632 Aug 11 10:29 exampleB1

The warnings/errors with the viewers differ between macos and linux.

(1) macos: The initial error message is

/vis/viewer/create ! ! 600x600-0+0
G4OpenGLXViewer::G4OpenGLXViewer: unable to get a single buffer visual.
G4OpenGLXViewer::G4OpenGLXViewer: unable to get a double buffer visual.
G4OpenGLXViewer::G4OpenGLXViewer: unable to get required visuals.
G4OpenGLStoredX::CreateViewer: error flagged by negative view id in G4OpenGLStoredXViewer creation.
 Destroying view and returning null pointer.
ERROR in G4VisManager::CreateViewer: null pointer during OpenGLStoredX viewer creation.
  No action taken.
WARNING: No viewer created.
#

and then additional messages are triggered. I end up in

# Re-establish auto refreshing and verbosity:
/vis/viewer/set/autoRefresh true
ERROR: G4VisCommandsViewerSet::SetNewValue: no current viewer.
/vis/verbose warnings
Visualization verbosity changed to warnings (3)
#
# For file-based drivers, use this to create an empty detector view:
#/vis/viewer/flush
Idle>  

(2) On RH Enterprise Linux Server 7.9 I get (when using the release vis.mac)

# Use this open statement to create an OpenGL view:
/vis/open OGL 600x600-0+0
/vis/sceneHandler/create OGL
/vis/viewer/create ! ! 600x600-0+0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  149 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  22
  Current serial number in output stream:  23

(For my test above I had comment the viewer creation, as the above error is fatal.)

I should say that these errors do not affect me normally because my normal builds are with Qt5. I just tried to follow a minimal build path for the purpose of this discussion. Maybe these issues disappear completely when removing -DGEANT4_USE_OPENGL_X11=ON.

I’ll try to build from the master on my side.

Many thanks.

Cheers,
–U.

PS: I don’t know the XQuartz version I am running, and I am affected by the same issue that the display from the linux machine on my mbp shows an empty scene tree. But again, this is not an issue in real life.