[Gtk-sharp-list] Too many open files

Radek Doulík rodo@ximian.com
08 Dec 2002 12:10:27 +0100

On Ne, 2002-12-08 at 00:31, Miguel de Icaza wrote:
> On Sat, 2002-12-07 at 14:36, Martin Baulig wrote:
> > for some strange reason, gtk#'s api generation code opens way too many files.
> > 
> > On my system, the default limit on open file descriptors is 1096 and compiling
> > gtk-sharp/api aborts with an "no more open files" error message.  After increasing the
> > limit to 8192, it works fine.
> This is interesting, Radek Doulik reported this, but he tracked this
> down to be the refcount on the WapiHandle starting at zero instead of
> starting at -1.
> Now, I looked at this, and it seemed to me like there was no WapiHandle
> leak (or file descriptor leak) on my system.  Am running Red Hat 7.3

It stopped act like this here too. I think rm ~/.wapi/* fixed the
warning about shared memory (or whatever it was). If you look into
handles.c, unref is handled differently for shared and non-shared cases,
so this could be the reason?

Martin, could you try rm ~/.wapi/* and report if it stops leaking file