Message: exampleB4 can't execute histograms macro Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question exampleB4 can't execute histograms macro 

Forum: Analysis
Date: Feb 07, 04:10
From: nick <nick>

Hello people,

Newbie here and I'd really like your help cause i'm stuck in this place for a long time. I have a working installation of geant4 and i can run all examples smoothly. But when i try to .x the plotHisto.C file of exampleB4a, an empty canvas opens and I get the following errors. Any advice is much appreciated. I also tried re-installing ROOT and rebuilding Geant4 but without success, maybe i have to reconfigure the build options? I'm sure the example is correct because it works on everyone.

root [0] Processing plotHisto.C... Error in <TFile::TFile>: file B4.root does not exist

 *** Break *** segmentation violation

=========================================================== There was a crash. This is the entire stack trace of all threads: =========================================================== #0 0x00007f6528fea687 in __GI___waitpid (pid=4923, stat_loc=stat_loc entry=0x7fff1e8c4568, options=options entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30

#1  0x00007f6528f55067 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:149
#2  0x00007f6529be3e83 in TUnixSystem::Exec (shellcmd=<optimized out>, this=0x560bedb5d7c0) at /root_v6.14.06.source/root-6.14.06/core/unix/src/TUnixSystem.cxx:2119
#3  TUnixSystem::StackTrace (this=0x560bedb5d7c0) at /root_v6.14.06.source/root-6.14.06/core/unix/src/TUnixSystem.cxx:2413
#4  0x00007f6529be6874 in TUnixSystem::DispatchSignals (this=0x560bedb5d7c0, sig=kSigSegmentationViolation) at /root_v6.14.06.source/root-6.14.06/core/unix/src/TUnixSystem.cxx:3644
#5  <signal handler called>
#6  0x00007f652a36d47a in ?? ()
#7  0x00007fff1e8c6f20 in ?? ()
#8  0x0000000000000018 in ?? ()
#9  0x00007fff1e8c6f20 in ?? ()
#10 0x00007f652a36d1d0 in ?? ()
#11 0x00007fff1e8c6f30 in ?? ()
#12 0x00007f652a36d32c in ?? ()
#13 0x0000560bee9357a8 in ?? ()
#14 0x00007f65244d0554 in cling::IncrementalExecutor::runStaticInitializersOnce(cling::Transaction const&) () from /usr/local/lib/libCling.so
#15 0x00007f652446b39b in cling::Interpreter::executeTransaction(cling::Transaction&) () from /usr/local/lib/libCling.so
#16 0x00007f65244e0af3 in cling::IncrementalParser::commitTransaction(llvm::PointerIntPair<cling::Transaction*, 2u, cling::IncrementalParser::EParseResult, llvm::PointerLikeTypeTraits<cling::Transaction*>, llvm::PointerIntPairInfo<cling::Transaction*, 2u, llvm::PointerLikeTypeTraits<cling::Transaction*> > >&, bool) () from /usr/local/lib/libCling.so
#17 0x00007f65244e0bb8 in cling::IncrementalParser::Compile(llvm::StringRef, cling::CompilationOptions const&) () from /usr/local/lib/libCling.so
#18 0x00007f652446c08e in cling::Interpreter::EvaluateInternal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) () from /usr/local/lib/libCling.so
#19 0x00007f652446c9c7 in cling::Interpreter::process(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cling::Value*, cling::Transaction**, bool) () from /usr/local/lib/libCling.so
#20 0x00007f652451dfff in cling::MetaProcessor::readInputFromFile(llvm::StringRef, cling::Value*, unsigned long, bool) () from /usr/local/lib/libCling.so
#21 0x00007f65243d6384 in TCling::ProcessLine (this=0x560bedbd15a0, line=<optimized out>, error=0x7fff1e8c8ddc) at /root_v6.14.06.source/root-6.14.06/core/metacling/src/TCling.cxx:2197
#22 0x00007f65243c84a7 in TCling::ProcessLineSynch (this=0x560bedbd15a0, line=0x560bee62ba50 ".x /B4ex/B4/B4a/./plotHisto.C", error=0x7fff1e8c8ddc) at /root_v6.14.06.source/root-6.14.06/core/metacling/src/TCling.cxx:3053
#23 0x00007f6529a92448 in TApplication::ExecuteFile (file=<optimized out>, error=0x7fff1e8c8ddc, keep=<optimized out>) at /root_v6.14.06.source/root-6.14.06/core/base/src/TApplication.cxx:1157
#24 0x00007f6529a91be5 in TApplication::ProcessLine (this=0x560bedbbcc60, line=<optimized out>, sync=<optimized out>, err=0x7fff1e8c8ddc) at /root_v6.14.06.source/root-6.14.06/core/base/src/TApplication.cxx:1002
#25 0x00007f6529f596d2 in TRint::ProcessLineNr (this=this
entry=0x560bedbbcc60, filestem=filestem entry=0x7f6529f6bc04 "ROOT_cli_", line=line entry=0x7fff1e8c8de0 ".x plotHisto.C", error=error entry=0x7fff1e8c8ddc) at /root_v6.14.06.source/root-6.14.06/core/rint/src/TRint.cxx:756
#26 0x00007f6529f5af88 in TRint::Run (this=0x560bedbbcc60, retrn=<optimized out>) at /root_v6.14.06.source/root-6.14.06/core/rint/src/TRint.cxx:416
#27 0x0000560bed347a1c in main (argc=<optimized out>, argv=0x7fff1e8caf68) at /root_v6.14.06.source/root-6.14.06/main/src/rmain.cxx:30
===========================================================

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. ===========================================================

#6  0x00007f652a36d47a in ?? ()
#7  0x00007fff1e8c6f20 in ?? ()
#8  0x0000000000000018 in ?? ()
#9  0x00007fff1e8c6f20 in ?? ()
#10 0x00007f652a36d1d0 in ?? ()
#11 0x00007fff1e8c6f30 in ?? ()
#12 0x00007f652a36d32c in ?? ()
#13 0x0000560bee9357a8 in ?? ()
#14 0x00007f65244d0554 in cling::IncrementalExecutor::runStaticInitializersOnce(cling::Transaction const&) () from /usr/local/lib/libCling.so
#15 0x00007f652446b39b in cling::Interpreter::executeTransaction(cling::Transaction&) () from /usr/local/lib/libCling.so
#16 0x00007f65244e0af3 in cling::IncrementalParser::commitTransaction(llvm::PointerIntPair<cling::Transaction*, 2u, cling::IncrementalParser::EParseResult, llvm::PointerLikeTypeTraits<cling::Transaction*>, llvm::PointerIntPairInfo<cling::Transaction*, 2u, llvm::PointerLikeTypeTraits<cling::Transaction*> > >&, bool) () from /usr/local/lib/libCling.so
#17 0x00007f65244e0bb8 in cling::IncrementalParser::Compile(llvm::StringRef, cling::CompilationOptions const&) () from /usr/local/lib/libCling.so
#18 0x00007f652446c08e in cling::Interpreter::EvaluateInternal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) () from /usr/local/lib/libCling.so
#19 0x00007f652446c9c7 in cling::Interpreter::process(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cling::Value*, cling::Transaction**, bool) () from /usr/local/lib/libCling.so
#20 0x00007f652451dfff in cling::MetaProcessor::readInputFromFile(llvm::StringRef, cling::Value*, unsigned long, bool) () from /usr/local/lib/libCling.so
===========================================================

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: exampleB4 can't execute histograms macro   (Ivana Hrivnacova - Feb 19, 08:40)
(_ None: Re: exampleB4 can't execute histograms macro   (nick - Feb 19, 08:56)
 Add Message Add Message
to: "exampleB4 can't execute histograms macro"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]