Hi,
I want to use PyRoot so I install a anaconda2.5 (with python 2.7) and I want to use root 5.34/34, so I configure it with command: ./configure --enable-cxx11 --enable-python --with-python-incdir=/home/ui/anaconda2/include/python2.7 --with-python-libdir=/home/ui/anaconda2/lib and it works.
I can use , for example,
root -l
root [0] gSystem->Load(“libPyROOT”)
(int)0
but when I use:
root [0] TBrowser browser
libpng warning: Application built with libpng-1.2.50 but running with 1.6.17
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.17
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.17
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.17
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.17
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.17
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.17
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.17
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.17
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.17
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.17
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.17
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.17
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.17
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.17
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.17
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.17
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.17
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.17
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.17
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.17
Warning in TASImage::GetMask: No image
libpng warning: Application built with libpng-1.2.50 but running with 1.6.17
Warning in TASImage::GetMask: No image
Warning in TASImage::GetMask: No image
*** Break *** segmentation violation
===========================================================
There was a crash.
This is the entire stack trace of all threads:
#0 0x00007efe66263b4c in __libc_waitpid (pid=5840, stat_loc=stat_loc
entry=0x7fff51c42900, options=options
entry=0) at …/sysdeps/unix/sysv/linux/waitpid.c:31
#1 0x00007efe661e92e2 in do_system (line=) at …/sysdeps/posix/system.c:148
#2 0x00007efe66f19303 in TUnixSystem::StackTrace() () from /home/ui/tools/root/lib/libCore.so
#3 0x00007efe66f1af2c in TUnixSystem::DispatchSignals(ESignals) () from /home/ui/tools/root/lib/libCore.so
#4
#5 0x00007efe5f2fad91 in asimage_init () from /home/ui/tools/root/lib/libASImage.so
#6 0x00007efe5f2fb6e2 in destroy_asimage () from /home/ui/tools/root/lib/libASImage.so
#7 0x00007efe5f338374 in merge_layers () from /home/ui/tools/root/lib/libASImage.so
#8 0x00007efe5f2de0c6 in TASImage::Merge(TImage const*, char const*, int, int) () from /home/ui/tools/root/lib/libASImage.so
#9 0x00007efe607a242c in TGPictureButton::CreateDisabledPicture() () from /home/ui/tools/root/lib/libGui.so
#10 0x00007efe6079f1dc in TGPictureButton::DoRedraw() () from /home/ui/tools/root/lib/libGui.so
#11 0x00007efe6079ca1c in TGButton::SetState(EButtonState, bool) () from /home/ui/tools/root/lib/libGui.so
#12 0x00007efe608706d4 in TGTextEditor::Build() () from /home/ui/tools/root/lib/libGui.so
#13 0x00007efe60871a85 in TGTextEditor::TGTextEditor(char const*, TGWindow const*, unsigned int, unsigned int) () from /home/ui/tools/root/lib/libGui.so
#14 0x00007efe60b52173 in G__G__Gui3_386_0_2(G__value*, char const*, G__param*, int) () from /home/ui/tools/root/lib/libGui.so
#15 0x00007efe6587383d in Cint::G__ExceptionWrapper(int ()(G__value, char const*, G__param*, int), G__value*, char*, G__param*, int) () from /home/ui/tools/root/lib/libCint.so
#16 0x00007efe65916f77 in G__execute_call () from /home/ui/tools/root/lib/libCint.so
#17 0x00007efe65917335 in G__call_cppfunc () from /home/ui/tools/root/lib/libCint.so
#18 0x00007efe658f98e1 in G__interpret_func () from /home/ui/tools/root/lib/libCint.so
#19 0x00007efe658e43a0 in G__getfunction () from /home/ui/tools/root/lib/libCint.so
#20 0x00007efe65914d5b in G__new_operator () from /home/ui/tools/root/lib/libCint.so
#21 0x00007efe6594815a in G__exec_statement () from /home/ui/tools/root/lib/libCint.so
#22 0x00007efe658aaa21 in G__exec_tempfile_core () from /home/ui/tools/root/lib/libCint.so
#23 0x00007efe658abf8e in G__exec_tempfile_fp () from /home/ui/tools/root/lib/libCint.so
#24 0x00007efe65950c00 in G__process_cmd () from /home/ui/tools/root/lib/libCint.so
#25 0x00007efe66edd520 in TCint::ProcessLine(char const*, TInterpreter::EErrorCode*) () from /home/ui/tools/root/lib/libCore.so
#26 0x00007efe66e49306 in TApplication::ProcessLine(char const*, bool, int*) () from /home/ui/tools/root/lib/libCore.so
#27 0x00007efe66e8a821 in TROOT::ProcessLine(char const*, int*) () from /home/ui/tools/root/lib/libCore.so
#28 0x00007efe6088a821 in TRootBrowser::ExecPlugin(char const*, char const*, char const*, int, int) () from /home/ui/tools/root/lib/libGui.so
#29 0x00007efe6088b5f8 in TRootBrowser::InitPlugins(char const*) () from /home/ui/tools/root/lib/libGui.so
#30 0x00007efe6088ba48 in TRootBrowser::TRootBrowser(TBrowser*, char const*, unsigned int, unsigned int, char const*, bool) () from /home/ui/tools/root/lib/libGui.so
#31 0x00007efe6088bf58 in TRootBrowser::NewBrowser(TBrowser*, char const*, unsigned int, unsigned int, char const*) () from /home/ui/tools/root/lib/libGui.so
#32 0x00007efe60b744d0 in G__G__Gui3_419_0_47(G__value*, char const*, G__param*, int) () from /home/ui/tools/root/lib/libGui.so
#33 0x00007efe658a2a6b in Cint::G__CallFunc::Execute(void*) () from /home/ui/tools/root/lib/libCint.so
#34 0x00007efe66edb6b1 in TCint::CallFunc_ExecInt(void*, void*) const () from /home/ui/tools/root/lib/libCore.so
#35 0x00007efe66f03961 in TMethodCall::Execute(void*, long&) () from /home/ui/tools/root/lib/libCore.so
#36 0x00007efe66e752f2 in TPluginHandler::ExecPlugin(int, …) () from /home/ui/tools/root/lib/libCore.so
#37 0x00007efe608a58f9 in TRootGuiFactory::CreateBrowserImp(TBrowser*, char const*, unsigned int, unsigned int, char const*) () from /home/ui/tools/root/lib/libGui.so
#38 0x00007efe66e5263a in TBrowser::TBrowser(char const*, char const*, TBrowserImp*, char const*) () from /home/ui/tools/root/lib/libCore.so
#39 0x00007efe66f7673f in G__G__Base1_85_0_3(G__value*, char const*, G__param*, int) () from /home/ui/tools/root/lib/libCore.so
#40 0x00007efe6587383d in Cint::G__ExceptionWrapper(int ()(G__value, char const*, G__param*, int), G__value*, char*, G__param*, int) () from /home/ui/tools/root/lib/libCint.so
#41 0x00007efe65916f77 in G__execute_call () from /home/ui/tools/root/lib/libCint.so
#42 0x00007efe65917335 in G__call_cppfunc () from /home/ui/tools/root/lib/libCint.so
#43 0x00007efe658f98e1 in G__interpret_func () from /home/ui/tools/root/lib/libCint.so
#44 0x00007efe658e43a0 in G__getfunction () from /home/ui/tools/root/lib/libCint.so
#45 0x00007efe658b537c in G__define_var () from /home/ui/tools/root/lib/libCint.so
#46 0x00007efe65943476 in G__exec_statement () from /home/ui/tools/root/lib/libCint.so
#47 0x00007efe658aaa21 in G__exec_tempfile_core () from /home/ui/tools/root/lib/libCint.so
#48 0x00007efe658abf8e in G__exec_tempfile_fp () from /home/ui/tools/root/lib/libCint.so
#49 0x00007efe65950c00 in G__process_cmd () from /home/ui/tools/root/lib/libCint.so
#50 0x00007efe66edd520 in TCint::ProcessLine(char const*, TInterpreter::EErrorCode*) () from /home/ui/tools/root/lib/libCore.so
#51 0x00007efe66e49306 in TApplication::ProcessLine(char const*, bool, int*) () from /home/ui/tools/root/lib/libCore.so
#52 0x00007efe66a941b9 in TRint::HandleTermInput() () from /home/ui/tools/root/lib/libRint.so
#53 0x00007efe66f1a6c5 in TUnixSystem::CheckDescriptors() () from /home/ui/tools/root/lib/libCore.so
#54 0x00007efe66f1b64a in TUnixSystem::DispatchOneEvent(bool) () from /home/ui/tools/root/lib/libCore.so
#55 0x00007efe66e9fb86 in TSystem::InnerLoop() () from /home/ui/tools/root/lib/libCore.so
#56 0x00007efe66ea0790 in TSystem::Run() () from /home/ui/tools/root/lib/libCore.so
#57 0x00007efe66e479ff in TApplication::Run(bool) () from /home/ui/tools/root/lib/libCore.so
#58 0x00007efe66a953f7 in TRint::Run(bool) () from /home/ui/tools/root/lib/libRint.so
#59 0x0000000000400fdc in main ()
The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
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 0x00007efe5f2fad91 in asimage_init () from /home/ui/tools/root/lib/libASImage.so
#6 0x00007efe5f2fb6e2 in destroy_asimage () from /home/ui/tools/root/lib/libASImage.so
#7 0x00007efe5f338374 in merge_layers () from /home/ui/tools/root/lib/libASImage.so
#8 0x00007efe5f2de0c6 in TASImage::Merge(TImage const*, char const*, int, int) () from /home/ui/tools/root/lib/libASImage.so
#9 0x00007efe607a242c in TGPictureButton::CreateDisabledPicture() () from /home/ui/tools/root/lib/libGui.so
#10 0x00007efe6079f1dc in TGPictureButton::DoRedraw() () from /home/ui/tools/root/lib/libGui.so
#11 0x00007efe6079ca1c in TGButton::SetState(EButtonState, bool) () from /home/ui/tools/root/lib/libGui.so
#12 0x00007efe608706d4 in TGTextEditor::Build() () from /home/ui/tools/root/lib/libGui.so
#13 0x00007efe60871a85 in TGTextEditor::TGTextEditor(char const*, TGWindow const*, unsigned int, unsigned int) () from /home/ui/tools/root/lib/libGui.so
Root >
I find that ,
ui@ui:/usr/share/man/man3$ lib
libdynd-config libpng12-config libreoffice
libgvc6-config-update libpng16-config libtool
libnetcfg libpng-config libtoolize
and in anaconda:
ui@ui:~/anaconda2/lib$ lib
libdynd-config libpng12-config libreoffice
libgvc6-config-update libpng16-config libtool
libnetcfg libpng-config libtoolize
so can you tell why there is a bug ? and how to fix it.
In my .bashrc file, I add,
added by Anaconda2 2.5.0 installer
export PATH="/home/ui/anaconda2/bin:$PATH"
for Delphes
export ROOTSYS=/home/ui/tools/root
export PATH=$PATH:$ROOTSYS/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$ROOTSYS/lib
export PYTHONDIR=/home/ui/anaconda2
export LD_LIBRARY_PATH=$ROOTSYS/lib:$PYTHONDIR/lib:$LD_LIBRARY_PATH
export PYTHONPATH=$ROOTSYS/lib:$PYTHONPATH
Best,
Li