Re: insufficient memory

"Walter C. Pelissero" <[email protected]> Mon, 22 Oct 2007 10:54:05 +0200
Newsgroups gmane.lisp.clg.devel
Message-ID <[email protected]>
Chisheng Huang writes:
 > > but these three lines will run out of memory?
 > >
 > > (gtk:clg-init)
 > > (gdk:pixbuf-load "/path/to/a/large/file.jpg")
 > > (gdk:pixbuf-load "/path/to/a/large/file.jpg")
 > >
 > > Failed to load image '/path/to/a/large/file.jpg': Insufficient memory to load image, try exiting some applications to free memory
 > >    [Condition of type GLIB:GLIB-ERROR]
 > >
 > > Note that the error comes from GTK and the garbage collector doesn't
 > > even get a chance to run.
 > >
 > > Does it have to do with the overhead of the Lisp image and its
 > > preallocated memory (I'm using CMUCL)?  If yes, how can I work around
 > > this limitation?
 > 
 > Not sure if this will help, but have you tried to start CMUCL 
 > with -dynamic-space-size to get a bigger heap?

I'd be surprised if it did: that would mean GTK is using the Lisp
allocator.

I tried, instead the opposite.  I reduced the Lisp heap size, hoping
GTK would get more room for itself, but the behaviour didn't change at
all.

[BTW, I discovered that CLG needs at least 64MB to load on CMUCL.]

-- 
walter pelissero
http://www.pelissero.de

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/