Problem 157 - Bug in vis commands
Summary: Bug in vis commands
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: visualization/OpenGL (show other problems)
Version: 2.0
Hardware: PC Linux
: P2 normal
Assignee: John.Allison
URL:
Depends on:
Blocks:
 
Reported: 2000-09-28 13:47 CEST by marc.kippen
Modified: 2001-02-01 10:51 CET (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description marc.kippen 2000-09-28 13:47:59 CEST
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
Comment 1 John.Allison 2000-10-19 11:36:59 CEST
Bug recreated.  Will be investigated.  Thanks.
Comment 2 John.Allison 2001-02-01 10:51:59 CET
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.