Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2000:
[Freeciv-Dev] Re: out of disk space? (PR#615)
Home

[Freeciv-Dev] Re: out of disk space? (PR#615)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Paul Dean <Paul@xxxxxxxxxxxxxxx>
Cc: Thue <thue@xxxxxxx>, Paul Dean <Paul@xxxxxxxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: out of disk space? (PR#615)
From: Thue <thue@xxxxxxx>
Date: Mon, 4 Dec 2000 14:40:12 +0100

On Mon, 04 Dec 2000 14:35:25 Paul Dean wrote:
> Thue <thue@xxxxxxx> writes:
> 
> > On Mon, 04 Dec 2000 13:41:19 Paul Dean wrote:
> > > Thue <thue@xxxxxxx> writes:
> > > 
> > > > It is known there is a memory leak in the windows client. It is
> > > > probably in windows gdk. Someone go fix. :)
> > > 
> > > Also in the gtk client.  I have 250MB of swap space and it gradually
> > > gets used up while playing.  I quite the client, restart and it's
> back
> > > to normal.
> > > 
> > > How do I go about tracking a memory leak?
> > 
> > Umm, the gtk client uses gdk, so we are talking about the same thing.
> > We know from earlier that the leak occurs when a unit blinks. By
> tracing
> > the calls that function makes it seems likely to happen somewhere in
> > client/gui-gtk/mapview.c:update_map_canvas() . And from there it seems
> > likely to happen in gdk_draw_pixmap(). So start by checking if that is
> > correct by modyfying the code there to call that function 10000 times
> in a
> > row. If the leak is there you will then know :)
> 
> I just did, and I didn't know.  :)

Well, look at the memory usage. If the leak is in a specific function
calling it 10000 times will use all your memory. You should of course use
the windows version when you test this...

> > Assuming that really is the problem, get the gdk source code for
> windows
> > and start looking at it :).
> 
> I must be missing something... why would the source code for windows
> matter when the bug is in the linux library?

Well, obviously (?) the memory leak bug was introduced when porting the gdk
lib from linux to windows. And I guess it is a windows lib now that it is
ported.

> -- 
> Paul
> http://www.redeemed.org.uk/

-Thue



[Prev in Thread] Current Thread [Next in Thread]