The following sequence of vis commands (as suggested in Sec. 3.16.7.9.4 of the User's Guide) causes segmentation fault (independent of geometry being visualized). /run/initialize /vis/open OGLSX /vis/camera/viewpoint 70 20 /vis/drawVolume Output: >> ********************************************** >> Geant4 version $Name: geant4-02-00 $ >> (30-Jun-2000) >> Copyright : Geant4 Collaboration >> ********************************************** >> Constructing Visualization Manager.... >> Initialising Visualization Manager.... >> Registering graphics systems.... >> >> G4VisManager::SetCurrentGraphicsSystem: system now OpenGLStoredX >> 1 OpenGLStoredX scenes extanct. >> New scene handler "scene-handler-0" created. >> Null string specified. Maybe there are no scenes available yet. >> Please create one. >> Got standard cmap >> Window name: viewer-0 (OpenGLStoredX) >> G4VisManager::CreateViewer: new viewer created: >> NOTE: objects with visibility flag set to "false" will not be drawn! >> "/vis/set/culling off" to Draw such objects. >> Also see other "/vis/set" commands. >> New viewer "viewer-0 (OpenGLStoredX)" created. >> Segmentation fault >> However, the following works fine: /run/initialize /vis/open OGLSX /vis/drawVolume /vis/camera/viewpoint 70 20 /vis/drawVolume
Bug recreated. Will be investigated. Thanks.
Fixed in the following tag. Should be in the next reference tag and possibly in a patch to Geant4 3.0. 1st February 2001 John Allison (vis-V03-00-01) - Fixed cause of crash when setting viewpoint before creating scene (Bug #157). Solution: SetView no longer called when view parameters are changed. In any case it's called just before drawing, whixh is the right place.