Problem 1375

Summary: G4Exception at run time with QT ON, geant4-09-05-ref-10
Product: Examples/Extended Reporter: garnier
Component: field/field04,05,06Assignee: garnier
Status: CLOSED MOVED    
Severity: normal CC: Ivana.Hrivnacova, ivana, Koichi.Murakami
Priority: P5    
Version: 9.5   
Hardware: All   
OS: Mac OS X   

Description garnier 2012-11-08 16:02:17 CET
On MAC OS X 10.8 :

Created menubar
Created Actions pulldown menu
Created Miscellany pulldown menu
ERROR: G4VisCommandSceneAddVolume::SetNewValue:
No world. Maybe the geometry has not yet been defined.
Try "/run/initialize"
/tracking/storeTrajectory 2
Attributes available for modeling and filtering with
"/vis/modeling/trajectories/create/drawByAttribute" and
"/vis/filtering/trajectories/create/attributeFilter" commands:
G4TrajectoriesModel:
Event ID (EventID): G4int
G4SmoothTrajectory:
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
G4SmoothTrajectoryPoint:
Auxiliary Point Position (Aux): G4BestUnit (G4ThreeVector)
Step Position (Pos): G4BestUnit (G4ThreeVector)
WARNING: Trajectory storing has been requested. This action may be
reversed with "/tracking/storeTrajectory 0".
-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : visman0202
issued by : G4Scene::CalculateExtent
Scene has no extent. Please activate or add something.
The camera needs to have something to point at!
"/vis/scene/list" to see list of models.
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------
ERROR: G4VisManager::IsViewValid ():
Attempt at some drawing operation when scene is empty.
Maybe the geometry has not yet been defined. Try /run/initialize.
WARNING: Problem setting viewer - please report circumstances.
ERROR: G4VisManager::IsViewValid ():
Attempt at some drawing operation when scene is empty.
Maybe the geometry has not yet been defined. Try /run/initialize.
WARNING: Problem setting scene handler - please report circumstances.
ERROR: G4VisManager::IsViewValid ():
Attempt at some drawing operation when scene is empty.
Maybe the geometry has not yet been defined. Try /run/initialize.
WARNING: Problem setting viewer - please report circumstances.
ERROR: G4VisManager::IsViewValid ():
Attempt at some drawing operation when scene is empty.
Maybe the geometry has not yet been defined. Try /run/initialize.
WARNING: Problem setting scene handler - please report circumstances.
Comment 1 Ivana Hrivnacova 2012-11-14 16:32:41 CET
The field04 example calls vis.mac before run/initialize, what causes a message:
ERROR: G4VisCommandSceneAddVolume::SetNewValue:
  No world.  Maybe the geometry has not yet been defined.
  Try "/run/initialize"
from
/vis/drawVolume

However when vis.mac is reduced to 
/vis/open OGL 600x600-0+0
/vis/viewer/set/viewpointVector 1 1.5 1.1
/vis/viewer/set/viewpointThetaPhi 110 140
/vis/viewer/zoom 1.4
as no further setting has a good meaning, then the program (built with Qt) crashes with gdb back trace:
./field04
...
#0  0x0000003e1500ee98 in QWidgetPrivate::showChildren(bool) ()
   from /usr/lib64/libQtGui.so.4
#1  0x0000003e1500efcf in QWidgetPrivate::show_helper() ()
   from /usr/lib64/libQtGui.so.4
#2  0x0000003e1500f40a in QWidget::setVisible(bool) ()
   from /usr/lib64/libQtGui.so.4
#3  0x0000003e1500ef66 in QWidgetPrivate::showChildren(bool) ()
   from /usr/lib64/libQtGui.so.4
#4  0x0000003e1500efcf in QWidgetPrivate::show_helper() ()
   from /usr/lib64/libQtGui.so.4
#5  0x0000003e1500f40a in QWidget::setVisible(bool) ()
   from /usr/lib64/libQtGui.so.4
#6  0x00007ffff6667e28 in G4UIQt::SessionStart() ()
   from /work/packages/geant4/geant4_ref_install/lib64/libG4interfaces.so
#7  0x0000000000421050 in main ()
Comment 2 Koichi Murakami 2013-02-27 00:00:23 CET
The issue was moved to JIRA.
http://jira-geant4.kek.jp/browse/DEV-14