Re: CLG-DISPLAY ?

Espen S Johnsen <[email protected]> 23 Dec 2007 20:27:46 +0100
Newsgroups gmane.lisp.clg.devel
Message-ID <[email protected]>
Dave Phillips <[email protected]> writes:

> WARNING: Error calling finalizer #<CLOSURE (LAMBDA #) {989590D}>:
>   #<SB-SYS:MEMORY-FAULT-ERROR {D5D5089}>

This warning is probably caused by a reference to a foreign object which
was in existence when the image was saved. Since foreign objects does
not survive in a saved image, this could lead to some nasty memory
corruption when the image is reloaded. Before saving the image it would
be wise to do a full GC by typing:

(sb-exc:gc :full t)

and then check if all references to foreign objects are gone by entering:

(gffi:list-cached-instances)

>   When running clg in Slime, the communication style FD-HANDLER must be 
> used in combination with asynchronous event handling on this platform. 
> See the README file and 
> <http://common-lisp.net/project/slime/doc/html/slime_45.html> for more 
> information.

This seems to be the real show stopper, but adding 

(setq swank:*communication-style* :fd-handler)

to the file ~/.swank.lisp should probably fix the problem.

> PS: My apologies for being so dull-witted. Debugging Lisp is not 
> something I'm at all good at...

No problem, I hope this helps.

-- 
Espen

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/