Re: [ROOT] memory leak in X

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Mar 15 2001 - 19:02:35 MET


Hi Damir,

I repeat what we already reported on this topic.
The memory leak is on the X server side, not on the application process.
This had been traced to XCopyArea. When using bitmaps intensively, the
effect becomes important after many screen updates.
You can verify this by running the server on a different machine and monitoring
the memory growth on the client and server side.

Rene Brun

Damir Buskulic wrote:
> 
> Hi all,
> 
> Some time ago, there was a thread about a memory leak in XFree86
> (XCopyArea). As A. Zvyagin pointed out, running
> 
> > root [0] TCanvas *c = new TCanvas("c","c",100,100);
> > root [1] while(1) c->Update();
> 
> consumes memory.
> 
> I have the same behaviour on Alpha/OSF1. Did somebody already noticed it
> ?
> 
> This may become a big problem, since an online program displaying
> varying plots cannot be run more than a few hours without restarting (in
> my case, the average leak is a 5-10 MB per hour).
> How do people overcome this problem ?
> 
> Cheers
> 
> Damir
> 
> --
> =====================================================================
> | Damir Buskulic                  | Universite de Savoie/LAPP       |
> |                                 | Chemin de Bellevue, B.P. 110    |
> | Tel : +33 (0)450091600          | F-74941 Annecy-le-Vieux Cedex   |
> | e-mail: buskulic@lapp.in2p3.fr  | FRANCE                          |
> =====================================================================
> mailto:buskulic@lapp.in2p3.fr



This archive was generated by hypermail 2b29 : Fri Jun 08 2001 - 11:51:21 MEST