void read_canvas() { TFile f("test.root"); TCanvas *c = (TCanvas*)f.Get("testCan"); // Uncommenting the following line makes the crash go away //c->Draw(); gStyle->SetOptStat(0); }