Message: Geant4.10.3 installation and visualization on Sierra Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Geant4.10.3 installation and visualization on Sierra 

Forum: Installation and Configuration
Date: 17 Dec, 2016
From: Jim Streuli <Jim Streuli>

A while back, I irresponsibly upgraded my Mac OS to Sierra. Since then I have not been able to get any type of visualization when running any of the examples since. I recently installed Geant4.10.03 and tried to configure all relevant packages, (Xcode, XQuartz, etc.)

Here are the versions of all the packages I am currently using:

macOS Sierra: 10.12.2 Xcode: 8.2 (8C38) XQuartz: 2.7.9 <-- this version worked fine prior to update CMake: 3.6.1

Also, I have some version of X11, (1.18.4), that I can't seem to get rid of. I know that XQuartz and X11 are in essence the same thing, but whenever I compile and try to run say, example B1, for example, this seems to be the version that opens up when I run the executable.

From what I can tell, the programs all compile, I have installed Geant4.10.3 with the following settings:

-DGEANT4_INSTALL_DATA=ON . -DGEANT4_USE_OPENGL_X11=ON .

These are the same settings I used in El Capitan (and Geant4.10.02.p02), when everything, including visuals, worked fine.

After the Sierra and Xcode updates, but prior to Geant4.10.03, I was able to get everything working with the exception of the visual output. So the same issue is remaining.

After the code compiles, and the executable is run, X11 opens, and I think it attempts to open a viewer window, but is unable. Here is some of the relevant output:

Available UI session types: [ GAG, tcsh, csh ]

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) OpenGLImmediateX (OGLIX, OGLI) OpenGLStoredX (OGLSX, OGL, OGLS) RayTracerX (RayTracerX)

Then I get the following error messages:

/vis/open OGL 600x600-0+0
/vis/sceneHandler/create OGL
/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 during OpenGLStoredX viewer creation.
  No action taken.
WARNING: No viewer created.

/vis/viewer/set/autoRefresh false ERROR: G4VisCommandsViewerSet::SetNewValue: no current viewer. /vis/verbose errors Visualization verbosity changed to errors (2)

When trying to open OGLSX...

Idle> /vis/open OGLSX
/vis/open OGLSX
/vis/sceneHandler/create OGLSX
/vis/sceneHandler/attach
/vis/viewer/create ! ! 600
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 during OpenGLStoredX viewer creation.
  No action taken.
WARNING: No viewer created.
Idle> /vis/open OGL 600x600-0+0
/vis/open OGL 600x600-0+0
/vis/sceneHandler/create OGL
/vis/sceneHandler/attach
/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 during OpenGLStoredX viewer creation.
  No action taken.
WARNING: No viewer created.

I'm pretty sure the issue is that Geant is unable to communicate with XQuartz or X11 for some reason, but I can't figure out why.

I hope I've supplied enough information so that someone could help me with this persistent issue.

Thanks!

-Jim Streuli

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Feedback: Re: Geant4.10.3 installation and visualization on Sierra   (Gabriele Cosmo - 20 Dec, 2016)
(_ Question: Geant4.10.3 installation, fatal error, G4Exception : GeomSolids0002   (Azam Zabihi - 14 Jan, 2017)
1 None: Re: Geant4.10.3 installation, fatal error, G4Exception : GeomSolids0002   (Evgueni Tcherniaev - 16 Jan, 2017)
2 None: Re: Geant4.10.3 installation, fatal error, G4Exception : GeomSolids0002   (Azam Zabihi - 11 Jun, 2018)
 Add Message Add Message
to: "Geant4.10.3 installation and visualization on Sierra"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]