Re: Fatal in <operator new>: storage exhausted

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Feb 20 1998 - 09:12:48 MET


Patrice Lebrun wrote:
> 
> Hello,
> 
> I work on 10 files. This is about 150 Mo size.
> For this, I use TChain objects created by load_bg(), see bellow.
> 
> When the following commands are entered, root crashes and this is
> reproductible.
> After each draw the process data size increase.
> Starting at 25 Mo to end at about 62 Mo before the crashe.
> Do you have a solution to solve this ?
> 
> Thank you dear Rooters.
> 

Patrice,
In your example below, you create 8 chains of Root files in memory.
You should delete the chains when you do not need them anymore.
Each chain in memory will load one Tree header. In case your Tree
has been created with many branches and large buffer sizes, this
may take a lot of space in memory.
You are very likely running on a system with a maximum address space of
64 Mbytes per process.

Rene Brun


> root [1] .L util.C; load_bg();
> root [2] bhab->Draw("mdilept",elec);
> root [3] dimu->Draw("mdilept",elec);
> root [4] ditau->Draw("mdilept",elec);
> root [5] dinu->Draw("mdilept",elec);
> root [6] zz->Draw("mdilept",elec);
> root [7] ww->Draw("mdilept",elec);
> root [8] zee->Draw("mdilept",elec);
> root [9] eemm->Draw("mdilept",elec);
> 
> 
> Fatal in <operator new>: storage exhausted
> aborting
> 
> ------------------------------------------------------
> util.C
> {
> TChain *bhab;
> TChain *dimu;
> TChain *ditau;
> TChain* dinu;
> TChain *eeee;
> TChain *eemm;
> TChain *eett;
> TChain *zz;
> TChain *ww;
> TChain *zee;
> 
> load_bg()
> {
>   bhab = new TChain("h10");
>   bhab->Add("Root/fonds/bge53.root");
>   bhab->Add("Root/fonds/bge56.root");
> 
>   dimu = new TChain("h10");
>   dimu->Add("Root/fonds/kam28.root");
> 
>   ditau = new TChain("h10");
>   ditau->Add("Root/fonds/kat40.root");
> 
>   dinu = new TChain("h10");
>   dinu->Add("Root/fonds/kan09.root");
> 
>   eeee = new TChain("h10");
>   eeee->Add("Root/fonds/pae16.root");
> 
>   eemm = new TChain("h10");
>   eemm->Add("Root/fonds/pam17.root");
> 
>   eett = new TChain("h10");
>   eett->Add("Root/fonds/pat14.root");
> 
>   zz = new TChain("h10");
>   zz->Add("Root/fonds/qpz38.root");
>   zz->Add("Root/fonds/qpz45.root");
> 
>   ww = new TChain("h10");
>   ww->Add("Root/fonds/wk020.root");
> 
>   zee = new TChain("h10");
>   zee->Add("Root/fonds/qpz46.root");
> 
> }
> 
> }
> 
> --
> Patrice Lebrun
> Charge de recherche au CNRS.
> Institut de Physique Nucleaire de Lyon.
> Groupe HEE1.
> tel : 04 72 44 84 43



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:30 MET