GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » Out of memory problem in EmcPoint - FairLink ?
Re: Out of memory problem in EmcPoint - FairLink ? [message #10903 is a reply to message #10897] Thu, 05 August 2010 16:42 Go to previous messageGo to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *117-80-r.retail.telecomitalia.it
Trying to understand what is making our memory explode, under suggestion of Ralf I have run only one event by valgrind.

This is the final log message, with all the "problems":

Toggle Spoiler


Here you are the errors we have found, and the fix commited in the code:

PndTof.cxx line 200:
TList* nodeList = node->getTree();


This information is not used, I have commented out this part.

PndStack::UpdateTrackIndex(TRefArray*) (PndStack.cxx:332)
TIterator* detIter = detList->MakeIterator();

???

FairParRootFileIo::open(char const*, char const*, char const*, int) (FairParRootFileIo.cxx:103)
-> fstream *f = new fstream(fname);

???

PndDrc::Initialize() (PndDrc.cxx:146)
->PndDrcOptDevManager* manager = new PndDrcOptDevManager();


Added in PndDrcOptDevmanager contructor: fgInstance = this;

PndEmcStructure::crystal_name_analysis(TString, int&, int&, int&, int&) (PndEmcStructure.cxx:230)
-> TObjArray *subStrL = TPRegexp("^cave/Emc\\d+_(\\d+)/EmcLayer\\d_0/emc(\\d+)r(\\d+)c(\\d+)_0$ ").MatchS(node_path);


Is it possible to avoid to use TPRegexp? It seems very error prone, in particular for TObjArray.

FairModule::ExpandNode(TGeoNode*) (FairModule.cxx:293)
-> M->SetDefaultName();


This SetDefaultname is giving us a lot of troubles:

95,408 bytes in 16,006 blocks are definitely lost in loss record 373 of 401

in particular for the MVD geometry. Probably we should set each matrix name by hands, instead of using this default option.

---

These are just few of the messages in the log. Just doing the modifications in Dirc and Tof the simulation does not crash anymore at that event.. however also the other points should be checked and somehow fixed.
 
Read Message icon8.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon4.gif
Read Message
Read Message
Read Message
Read Message
Read Message icon7.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Compilation problem of trunk
Next Topic: Error during PndTpcElectronicsTask
Goto Forum:
  


Current Time: Sun Dec 08 15:53:23 CET 2024

Total time taken to generate the page: 0.00912 seconds