Hi
unfortunatelly, my script is to big (actually it is a set of scripts calling each other) that reads many histogram files and plot them on top of the other.
I wrote a simple python script which does the same in a simplified way, and it almost works (no crash), only I was expecting to see only markers for the histograms, and there is one histogram that is drawn with a solid line. No idea why. If you may have a look 
Comming back to the crash I have with 6.04 and 6.06, as said it is hard to debug as I create many canvases. They are properly saved until it crashes after saving an arbitrary number of canvases. It is quite reproducible. I mean, If I try to create 50 canvases, it works well, up to canvas number 30 something, then it crashes. If I retry, it crashes again exactly on the same, not in a different one.
This is the bit of code that crashes:
print " going to save file … as ", outputName
if makeOutput:
print " can --> ", can
can.Print()
can.SaveAs(outputName)
print " <DrawPlots> file ", outputName, " succesfuly stored "
This is the output when crashes:
going to save file … as /Users/martis/projectes/atlas/alineament/webmonitoringtest/InDetAlignmentWebMonitor/trunk/WebPage/detailed_plots/2016//nPIXHits.png
can --> <ROOT.TCanvas object ("/Users/martis/projectes/atlas/alineament/webmonitoringtest/InDetAlignmentWebMonitor/trunk/WebPage/detailed_plots/2016//nPIXHits.png") at 0x7fed2215c5b0>
*** Break *** segmentation violation
Traceback (most recent call last):
File “MakeMajorAlignMonPlots.py”, line 209, in
if (doHits): execfile(“MakeHitPlots.py”)
File “MakeHitPlots.py”, line 29, in
canvasText,makeOutput)
File “/Users/martis/projectes/atlas/alineament/webmonitoringtest/InDetAlignmentWebMonitor/trunk/database/Monitor/utilities.py”, line 515, in DrawPlots
can.Print()
TypeError: none of the 2 overloaded methods succeeded. Full details:
void TPad::Print(const char* filename = “”) =>
problem in C++; program state has been reset
void TPad::Print(const char* filename, const char* option) =>
takes at least 2 arguments (0 given)
Cheers
Salva
mytest.py (1.62 KB)