GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » Memory consumption grow using genfit
Memory consumption grow using genfit [message #7504] Fri, 07 November 2008 15:18 Go to next message
Aleksandra Wronska is currently offline  Aleksandra Wronska
Messages: 38
Registered: May 2006
Location: Cracow
continuous participant
From: *
Dear genfiters,

when testing genfit on dch hits I noticed that memory consumption grows steadily with the number of analysed events. In a fast check on stt data I observed the same behaviour, that's why I think it might be a problem in genfit itself (memory leak?). Can anyone have a look?

Re: Memory consumption grow using genfit [message #7506 is a reply to message #7504] Fri, 07 November 2008 16:35 Go to previous message
asanchez is currently offline  asanchez
Messages: 350
Registered: March 2006
first-grade participant
From: *
Hi Ola,
Actually i have the same problem as you have now.
I solved( at the moment works) by doing the following

In the directory of genfit
if you go to the class Track.cxx
at the line 26
add the line
delete trackReps

Track::~Track() {
22 if(trackReps!=NULL){
23 for(int i=0;i<getNumReps();i++) {
24 delete trackReps->At(i);
25 }
26 delete trackReps; }
27 for(unsigned int i=0;i<hits.size();i++) {
28 delete hits[i];
29 }
30 }

if you have a task to extract the information
from the track object,
PNDDchKalmanQATask for example

at line 150 add also fTrackarray->Delete();

i hope it works

best regrads
Alicia S.

Previous Topic: Update in
Next Topic: Problems compiling external packages on ubuntu 8.10
Goto Forum:

Current Time: Sat Apr 20 21:36:19 CEST 2024

Total time taken to generate the page: 0.00807 seconds