Dear ROOT team,
In a previous thread, a couple of years ago, I reported a problem drawing a certain histogram although it worked if I specified the option “colz”. The bug was then fixed by the ROOT team. See [url]Crash when drawing a TH2F, but not if colz is specified
Unfortunately, I have come accross the same bug once more. To reproduce do :
- connect to lxplus
- get the test.root file attached to this post
- start ROOT
- Type in :
TFile f("test.root")
TIter nextkey(f.GetListOfKeys());
TKey *key = (TKey*)nextkey()
TObject *obj = key->ReadObj();
TH2F* h2 = dynamic_cast<TH2F*>(obj)
h2->Draw("colz"); // --> fine
h2->Draw(); // --> crash
I paste the stack trace at the end of the post.
Could you have a look at it ?
Thank you very much.
Barth
PS: once, and only once, the code worked seamlessly on lxplus. All my other attempts failed. Maybe a different machine ?
The crash reads :
[quote]===========================================================
There was a crash.
This is the entire stack trace of all threads:
#0 0x00002b90c34f61a5 in waitpid () from /lib64/libc.so.6
#1 0x00002b90c34984a1 in do_system () from /lib64/libc.so.6
#2 0x00002b90c113aea2 in TUnixSystem::StackTrace() ()
from /afs/cern.ch/alice/offline/afs_volumes/vol12/.amd64_linux24/root/lib/libCore.so
#3 0x00002b90c1137b6a in TUnixSystem::DispatchSignals(ESignals) ()
from /afs/cern.ch/alice/offline/afs_volumes/vol12/.amd64_linux24/root/lib/libCore.so
#4
#5 0x0000000000000000 in ?? ()
#6 0x00002b90c8fb2f5f in THistPainter::PaintTable(char const*) ()
from /afs/cern.ch/alice/offline/afs_volumes/vol12/.amd64_linux24/root/lib/libHistPainter.so
#7 0x00002b90c8fbd629 in THistPainter::Paint(char const*) ()
from /afs/cern.ch/alice/offline/afs_volumes/vol12/.amd64_linux24/root/lib/libHistPainter.so
#8 0x00002b90c66b563f in TPad::PaintModified() ()
from /afs/cern.ch/alice/offline/afs_volumes/vol12/.amd64_linux24/root/lib/libGpad.so
#9 0x00002b90c6699365 in TCanvas::Update() ()
from /afs/cern.ch/alice/offline/afs_volumes/vol12/.amd64_linux24/root/lib/libGpad.so
#10 0x00002b90c10f3bef in TCint::UpdateAllCanvases() ()
from /afs/cern.ch/alice/offline/afs_volumes/vol12/.amd64_linux24/root/lib/libCore.so
#11 0x00002b90c10f5246 in TCint::ProcessLine(char const*, TInterpreter::EErrorCode*) ()
from /afs/cern.ch/alice/offline/afs_volumes/vol12/.amd64_linux24/root/lib/libCore.so
#12 0x00002b90c10f5133 in TCint::ProcessLineSynch(char const*, TInterpreter::EErrorCode*) ()
from /afs/cern.ch/alice/offline/afs_volumes/vol12/.amd64_linux24/root/lib/libCore.so
#13 0x00002b90c26669cf in TRint::HandleTermInput() ()
from /afs/cern.ch/alice/offline/afs_volumes/vol12/.amd64_linux24/root/lib/libRint.so
#14 0x00002b90c2665217 in TTermInputHandler::Notify() ()
from /afs/cern.ch/alice/offline/afs_volumes/vol12/.amd64_linux24/root/lib/libRint.so
#15 0x00002b90c2667a4d in TTermInputHandler::ReadNotify() ()
from /afs/cern.ch/alice/offline/afs_volumes/vol12/.amd64_linux24/root/lib/libRint.so
#16 0x00002b90c11377a3 in TUnixSystem::CheckDescriptors() ()
from /afs/cern.ch/alice/offline/afs_volumes/vol12/.amd64_linux24/root/lib/libCore.so
#17 0x00002b90c1137cde in TUnixSystem::DispatchOneEvent(bool) ()
from /afs/cern.ch/alice/offline/afs_volumes/vol12/.amd64_linux24/root/lib/libCore.so
#18 0x00002b90c10ae686 in TSystem::InnerLoop() ()
from /afs/cern.ch/alice/offline/afs_volumes/vol12/.amd64_linux24/root/lib/libCore.so
#19 0x00002b90c10b18e1 in TSystem::Run() ()
from /afs/cern.ch/alice/offline/afs_volumes/vol12/.amd64_linux24/root/lib/libCore.so
#20 0x00002b90c104e25f in TApplication::Run(bool) ()
from /afs/cern.ch/alice/offline/afs_volumes/vol12/.amd64_linux24/root/lib/libCore.so
#21 0x00002b90c26676df in TRint::Run(bool) ()
from /afs/cern.ch/alice/offline/afs_volumes/vol12/.amd64_linux24/root/lib/libRint.so
#22 0x000000000040100d in main ()
[/quote]
test.root (12.4 KB)