Pipe: Too many open files Error in fitting macro

Dear Root experts,

I am running a fitting macro that performs likelihood fits binned over 10 eta windows and 8 centrality classes. The fits are successful until eventually I run into an error

pipe: Too many open files
pipe: Too many open files
pipe: Too many open files
CAUTION: tmpfile /tmp/jk4Ees_cint can't open
Error: could not create file /tmp/jk4Ees_cint

 *** Break *** segmentation violation

any idea on how to fix this? I am saving the fits via

  cdatapt->Print(plotNameLog.ReplaceAll("#","")+".png");
  cdatapt->Print(plotNameLog.ReplaceAll("#","")+".eps");
  cdatapt->Print(plotNameLog.ReplaceAll("#","")+".pdf");
  cdatapt->Print(plotNameLog+".root");
  cdatapt->Close() ;

where cdatapt is a TCanvas*. Thanks.

Hi,

Do you still have this problem? Can you provide a running example showing this problem?

Thanks,
Philippe.

Hi,

Thanks for the reply. I found a work around (to just perform my fits in a modular fashion and merge them by running an additional macro).