Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cosima vizualization error on Docker hosted on Mac OSX #54

Open
scandey opened this issue Feb 28, 2020 · 1 comment
Open

Cosima vizualization error on Docker hosted on Mac OSX #54

scandey opened this issue Feb 28, 2020 · 1 comment

Comments

@scandey
Copy link

scandey commented Feb 28, 2020

I am attempting to run the experimental docker image on a Mac OSX 10.14.6 host. XQuartz is properly setup, as geomega works without any issues. When I attempt to run the sample visualization code, I get a series of errors to do with OpenGL.

From a new Docker image, running cd $MEGALIB/resource/examples/cosima/macro and cosima -m Visualize.mac Visualize.source appears to work till "Execute macro...!". Some OpenGL errors are mentioned, but then the simulation proceeds regardless. After storing about 5 events, a final error is given and nothing is displayed. The final error is ERROR: G4VisCommandsViewerSave::SetNewValue: no current viewer.. The rest of the errors from the top of the output are shown below.

If there are additional logs for OGL or MEGAlib I should include, please let me know.

...
Execute macro...!
parameter value (OGL) is not listed in the candidate List.
ERROR: G4VisCommandViewerCreate::SetNewValue: no scene handlers.
Create a scene handler with "/vis/sceneHandler/create"
/tracking/storeTrajectory 1
Attributes available for modeling and filtering with
"/vis/modeling/trajectories/create/drawByAttribute" and
"/vis/filtering/trajectories/create/attributeFilter" commands:
G4TrajectoriesModel:
Event ID (EventID): G4int
Run ID (RunID): G4int
G4Trajectory:
Charge (Ch): unit: e+ (G4double)
Track ID (ID): G4int
Initial kinetic energy (IKE): G4BestUnit (G4double)
Initial momentum magnitude (IMag): G4BestUnit (G4double)
Initial momentum (IMom): G4BestUnit (G4ThreeVector)
No. of points (NTP): G4int
PDG Encoding (PDG): G4int
Parent ID (PID): G4int
Particle Name (PN): G4String
G4TrajectoryPoint:
Position (Pos): G4BestUnit (G4ThreeVector)
WARNING: Trajectory storing has been requested. This action may be
reversed with "/tracking/storeTrajectory 0".
WARNING: The current scene "scene-0" has no models.
WARNING: The current scene "scene-0" has no models.
WARNING: The current scene "scene-0" has no models.
ERROR: No current sceneHandler. Please create one.
ERROR: Viewer "none" not found - "/vis/viewer/list" to see possibilities.
ERROR: G4VisCommandsViewerSet::SetNewValue: no current viewer.
ERROR: G4VisCommandsViewerSet::SetNewValue: no current viewer.
ERROR: G4VisCommandsViewerSet::SetNewValue: no current viewer.
ERROR: G4VisCommandsViewerZoom::SetNewValue: no current viewer.
ERROR: G4VisCommandsViewerSet::SetNewValue: no current viewer.
...

@zoglauer
Copy link
Owner

Hi,

It looks like the docker does not support openGL. Googling tells me, that this requires the creation of a new dockerfile with openGL support. An example what would need to be added might be here:

https://antrg.com/blog/2018/11/28/reproducible-opengl/

When I find the time I will do it, but not in the immediate future. If you have time, feel free to modify the Dockerfile yourself. It is in the config subdirectory.

Best,
Andreas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants