Please read tips for efficient and successful posting and posting code
ROOT Version: 6.16.00
Platform: RHEL (fedora 7.8 Maipo) Kernel : Linux 3.10.0-1127.8.2.el7.x86_64 x86_64
Compiler: 4.8.5 20150623
WARNING - Attempt to delete the physical volume store while geometry closed !
WARNING - Attempt to delete the logical volume store while geometry closed !
WARNING - Attempt to delete the solid store while geometry closed !
WARNING - Attempt to delete the region store while geometry closed !
===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0 0x00007fb3d9d2646c in waitpid () from /lib64/libc.so.6
#1 0x00007fb3d9ca3f62 in do_system () from /lib64/libc.so.6
#2 0x00007fb3e9e13d84 in TUnixSystem::StackTrace (this=0x2718960) at /home/legend/software/ROOT/root-6.16.00-source/core/unix/src/TUnixSystem.cxx:2413
#3 0x00007fb3e9e164bc in TUnixSystem::DispatchSignals (this=0x2718960, sig=kSigSegmentationViolation) at /home/legend/software/ROOT/root-6.16.00-source/core/unix/src/TUnixSystem.cxx:3644
#4 <signal handler called>
#5 0x00007fb3e8d29086 in TH3F::AddBinContent (this=0x5fbb620, bin=-1793388231) at /home/legend/software/ROOT/root-6.16.00-build/include/TH3.h:281
#6 0x00007fb3e8d22522 in TH3::Fill (this=0x5fbb620, x=3982.8038186687363, y=<optimized out>, z=<optimized out>) at /home/legend/software/ROOT/root-6.16.00-source/hist/hist/src/TH3.cxx:311
#7 0x0000000000a7caa5 in MGOutputMCOpticalRun::RootSteppingAction(G4Step const*) ()
#8 0x00007fb3e2bbcfc2 in G4SteppingManager::Stepping() () from /home/legend/software/GEANT4/geant4.10.05-install/lib64/Geant4-10.5.0/Linux-g++/libG4tracking.so
#9 0x00007fb3e2bc7e1d in G4TrackingManager::ProcessOneTrack(G4Track*) () from /home/legend/software/GEANT4/geant4.10.05-install/lib64/Geant4-10.5.0/Linux-g++/libG4tracking.so
#10 0x00007fb3e2dffc59 in G4EventManager::DoProcessing(G4Event*) () from /home/legend/software/GEANT4/geant4.10.05-install/lib64/Geant4-10.5.0/Linux-g++/libG4event.so
#11 0x00007fb3e3097a17 in G4RunManager::ProcessOneEvent(int) () from /home/legend/software/GEANT4/geant4.10.05-install/lib64/Geant4-10.5.0/Linux-g++/libG4run.so
#12 0x00007fb3e3090b23 in G4RunManager::DoEventLoop(int, char const*, int) () from /home/legend/software/GEANT4/geant4.10.05-install/lib64/Geant4-10.5.0/Linux-g++/libG4run.so
#13 0x00007fb3e30908de in G4RunManager::BeamOn(int, char const*, int) () from /home/legend/software/GEANT4/geant4.10.05-install/lib64/Geant4-10.5.0/Linux-g++/libG4run.so
#14 0x00007fb3e30aa488 in G4RunMessenger::SetNewValue(G4UIcommand*, G4String) () from /home/legend/software/GEANT4/geant4.10.05-install/lib64/Geant4-10.5.0/Linux-g++/libG4run.so
#15 0x00007fb3dca2970f in G4UIcommand::DoIt(G4String) () from /home/legend/software/GEANT4/geant4.10.05-install/lib64/Geant4-10.5.0/Linux-g++/libG4intercoms.so
#16 0x00007fb3dca46793 in G4UImanager::ApplyCommand(char const*) () from /home/legend/software/GEANT4/geant4.10.05-install/lib64/Geant4-10.5.0/Linux-g++/libG4intercoms.so
#17 0x00007fb3dca16a97 in G4UIbatch::ExecCommand(G4String const&) () from /home/legend/software/GEANT4/geant4.10.05-install/lib64/Geant4-10.5.0/Linux-g++/libG4intercoms.so
#18 0x00007fb3dca1815b in G4UIbatch::SessionStart() () from /home/legend/software/GEANT4/geant4.10.05-install/lib64/Geant4-10.5.0/Linux-g++/libG4intercoms.so
#19 0x00007fb3dca3dc23 in G4UImanager::ExecuteMacroFile(char const*) () from /home/legend/software/GEANT4/geant4.10.05-install/lib64/Geant4-10.5.0/Linux-g++/libG4intercoms.so
#20 0x00007fb3dca31fed in G4UIcontrolMessenger::SetNewValue(G4UIcommand*, G4String) () from /home/legend/software/GEANT4/geant4.10.05-install/lib64/Geant4-10.5.0/Linux-g++/libG4intercoms.so
#21 0x00007fb3dca2970f in G4UIcommand::DoIt(G4String) () from /home/legend/software/GEANT4/geant4.10.05-install/lib64/Geant4-10.5.0/Linux-g++/libG4intercoms.so
#22 0x00007fb3dca46793 in G4UImanager::ApplyCommand(char const*) () from /home/legend/software/GEANT4/geant4.10.05-install/lib64/Geant4-10.5.0/Linux-g++/libG4intercoms.so
#23 0x00000000004a5524 in main ()
===========================================================
The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum http://root.cern.ch/forum
Only if you are really convinced it is a bug in ROOT then please submit a
report at http://root.cern.ch/bugs Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#5 0x00007fb3e8d29086 in TH3F::AddBinContent (this=0x5fbb620, bin=-1793388231) at /home/legend/software/ROOT/root-6.16.00-build/include/TH3.h:281
#6 0x00007fb3e8d22522 in TH3::Fill (this=0x5fbb620, x=3982.8038186687363, y=<optimized out>, z=<optimized out>) at /home/legend/software/ROOT/root-6.16.00-source/hist/hist/src/TH3.cxx:311
#7 0x0000000000a7caa5 in MGOutputMCOpticalRun::RootSteppingAction(G4Step const*) ()
#8 0x00007fb3e2bbcfc2 in G4SteppingManager::Stepping() () from /home/legend/software/GEANT4/geant4.10.05-install/lib64/Geant4-10.5.0/Linux-g++/libG4tracking.so
#9 0x00007fb3e2bc7e1d in G4TrackingManager::ProcessOneTrack(G4Track*) () from /home/legend/software/GEANT4/geant4.10.05-install/lib64/Geant4-10.5.0/Linux-g++/libG4tracking.so
#10 0x00007fb3e2dffc59 in G4EventManager::DoProcessing(G4Event*) () from /home/legend/software/GEANT4/geant4.10.05-install/lib64/Geant4-10.5.0/Linux-g++/libG4event.so
#11 0x00007fb3e3097a17 in G4RunManager::ProcessOneEvent(int) () from /home/legend/software/GEANT4/geant4.10.05-install/lib64/Geant4-10.5.0/Linux-g++/libG4run.so
#12 0x00007fb3e3090b23 in G4RunManager::DoEventLoop(int, char const*, int) () from /home/legend/software/GEANT4/geant4.10.05-install/lib64/Geant4-10.5.0/Linux-g++/libG4run.so
#13 0x00007fb3e30908de in G4RunManager::BeamOn(int, char const*, int) () from /home/legend/software/GEANT4/geant4.10.05-install/lib64/Geant4-10.5.0/Linux-g++/libG4run.so
#14 0x00007fb3e30aa488 in G4RunMessenger::SetNewValue(G4UIcommand*, G4String) () from /home/legend/software/GEANT4/geant4.10.05-install/lib64/Geant4-10.5.0/Linux-g++/libG4run.so
#15 0x00007fb3dca2970f in G4UIcommand::DoIt(G4String) () from /home/legend/software/GEANT4/geant4.10.05-install/lib64/Geant4-10.5.0/Linux-g++/libG4intercoms.so
#16 0x00007fb3dca46793 in G4UImanager::ApplyCommand(char const*) () from /home/legend/software/GEANT4/geant4.10.05-install/lib64/Geant4-10.5.0/Linux-g++/libG4intercoms.so
I want to point out that this error goes away if I make the X,Y.Z limits of the output histograms smaller.
(i.e. change the limits from (-4000,4000) to (-2000, 2000) for all three co-ordinates.