I encountered a crash when running the attached macro (MEMd1.C) on lxplus with the latest version of ROOT but I’m not sure about the reason behind.
I have set some breakpoints using cout and noticed the crash occurred when TCanvas::Print is called at line 162. Yet everything works when I use a different definition of the variables to be filled into the histograms (that is to uncomment lines 124 and 134 and comment out 125 and 135).
Please also find the stack trace attached. I would be thankful if anyone could explain what went wrong.
in addition make sure that none of the branch are containing ‘arrays’. See the output of TTree::Print or TTree::MakeClass on your TTree for a way to check.
I’ve tried switching to different versions (from the latest root to root 5 or some recent but not newest builds) and running on different places (lxplus and my local machines) and the same behaviour happened in all cases…