Hi all,
I am having errors with the following simplified macro (running on the
attached root file) which:
- creates two chains from the two trees saved inside a root file
(new_event_tree and new_run_tree with respectively 10 and 1 entries)
- open a treeviewer that contains both trees
///////////////////////////////////////////////////////////////////////////////////////////////////////
#include "TROOT.h"
#include "TTree.h"
#include "TFile.h"
#include "TChain.h"
#include "TTreeViewer.h"
#include "TTVLVContainer.h"
void example(){
TChain *event_chain=new TChain("new_event_tree");
TChain *run_chain=new TChain("new_run_tree");
event_chain->Add("run1208_new.root");
run_chain->Add("run1208_new.root");
TTreeViewer *treeview=new TTreeViewer(event_chain);
treeview->AppendTree(run_chain);
}
///////////////////////////////////////////////////////////////////////////////////////////////////////
The treeviewer is opened without problems BUT IF:
- I do a plot by double clicking on a leaf of new_run_tree;
- I select through the GUI the second tree and double click on a leaf
of new_event_tree;
- I select through the GUI the previo tree and try to do a plot of a
leaf of new_event_tree;
I GET the following error:
root [1] <TCanvas::MakeDefCanvas>: created default TCanvas with name c1
(class TTree*)0x9ee6fb8
(class TTree*)0x9ee5f90
- Break *** segmentation violation
(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
Attaching to program: /proc/12944/exe, process 12944
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled]
[New Thread -1208793408 (LWP 12944)]
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
0x00ba07a2 in _dl_sysinfo_int80 ()
from /lib/ld-linux.so.2
#1 0x00ab1ff3 in __waitpid_nocancel () from /lib/tls/libc.so.6
#2 0x00a5c469 in do_system () from /lib/tls/libc.so.6
#3 0x0088d84d in system () from /lib/tls/libpthread.so.0
#4 0x002f6f23 in TUnixSystem::Exec ()
from /cern/root_v5.22.00/lib/libCore.so.5.22
#5 0x002fcbbb in TUnixSystem::StackTrace ()
from /cern/root_v5.22.00/lib/libCore.so.5.22
#6 0x002f95b6 in TUnixSystem::DispatchSignals ()
from /cern/root_v5.22.00/lib/libCore.so.5.22
#7 0x002f9644 in SigHandler () from /cern/root_v5.22.00/lib/
libCore.so.5.22
#8 0x002f88c1 in sighandler () from /cern/root_v5.22.00/lib/
libCore.so.5.22
#9 <signal handler called>
#10 0x00000000 in ?? ()
#11 0x02fb0e1a in TTVLVContainer::HandleButton ()
from /cern/root_v5.22.00/lib/libTreeViewer.so
#12 0x01422ebc in TGFrame::HandleEvent ()
from /cern/root_v5.22.00/lib/libGui.so
#13 0x013efe5f in TGClient::HandleEvent ()
from /cern/root_v5.22.00/lib/libGui.so
#14 0x013eff79 in TGClient::ProcessOneEvent ()
from /cern/root_v5.22.00/lib/libGui.so
#15 0x013f002a in TGClient::HandleInput ()
from /cern/root_v5.22.00/lib/libGui.so
#16 0x013f005e in TGInputHandler::Notify ()
from /cern/root_v5.22.00/lib/libGui.so
#17 0x002f99dc in TUnixSystem::DispatchOneEvent ()
from /cern/root_v5.22.00/lib/libCore.so.5.22
#18 0x002767a4 in TSystem::InnerLoop ()
from /cern/root_v5.22.00/lib/libCore.so.5.22
#19 0x0027656b in TSystem::Run () from /cern/root_v5.22.00/lib/
libCore.so.5.22
#20 0x0021e026 in TApplication::Run ()
from /cern/root_v5.22.00/lib/libCore.so.5.22
#21 0x0076bf5a in TRint::Run () from /cern/root_v5.22.00/lib/
libRint.so.5.22
#22 0x08048d5a in main ()
Received on Wed Jun 17 2009 - 11:07:47 CEST