Hi,
I'm receiving the following error when trying to start slime with CCL:
Debugger entered: (("Error in timer" slime-attempt-connection (#<process inferior-lisp> nil 2) (wrong-type-argument bufferp nil))) (condition-case data (apply fun args) (error (debug nil (list "Error in timer" fun args data)))) slime-timer-call(slime-attempt-connection #<process inferior-lisp> nil 2) apply(slime-timer-call (slime-attempt-connection #<process inferior-lisp> nil 2)) byte-code("r\301\302H\303H"\210)\301\207" [timer apply 5 6] 4) timer-event-handler([t 20635 3417 574689 0.3 slime-timer-call (slime-attempt-connection #<process inferior-lisp> nil 2) nil]) input-pending-p() auto-revert-buffers() apply(auto-revert-buffers nil) byte-code("r\301\302H\303H"\210)\301\207" [timer apply 5 6] 4) timer-event-handler([t 20635 3422 268435 5 auto-revert-buffers nil nil])
Emacs: GNU Emacs 24.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2012-08-27 on bob.porkrind.org slime is lates from CVS. CCL is Version 1.9-dev-r15478M-trunk (DarwinX8632)
Any ideas as to what the problem is? I can provide any other information needed.
Thanks, Chris.
Same thing happens to me about 1/12 times with Lispworks on OSX Aquamacs.
On Thu, Nov 08 2012, Chris Van Dusen wrote:
Hi,
I'm receiving the following error when trying to start slime with CCL:
Debugger entered: (("Error in timer" slime-attempt-connection (#<process inferior-lisp> nil 2) (wrong-type-argument bufferp nil))) (condition-case data (apply fun args) (error (debug nil (list "Error in timer" fun args data)))) slime-timer-call(slime-attempt-connection #<process inferior-lisp> nil 2) apply(slime-timer-call (slime-attempt-connection #<process inferior-lisp> nil 2)) byte-code("r\301\302H\303H"\210)\301\207" [timer apply 5 6] 4) timer-event-handler([t 20635 3417 574689 0.3 slime-timer-call (slime-attempt-connection #<process inferior-lisp> nil 2) nil]) input-pending-p() auto-revert-buffers() apply(auto-revert-buffers nil) byte-code("r\301\302H\303H"\210)\301\207" [timer apply 5 6] 4) timer-event-handler([t 20635 3422 268435 5 auto-revert-buffers nil nil])
Emacs: GNU Emacs 24.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2012-08-27 on bob.porkrind.org slime is lates from CVS. CCL is Version 1.9-dev-r15478M-trunk (DarwinX8632)
Any ideas as to what the problem is? I can provide any other information needed.
What's the content in the *inferior-lisp* buffer?
Helmut
On Nov 8, 2012, at 12:58 AM, Helmut Eller wrote:
On Thu, Nov 08 2012, Chris Van Dusen wrote:
Hi,
I'm receiving the following error when trying to start slime with CCL:
Debugger entered: (("Error in timer" slime-attempt-connection (#<process inferior-lisp> nil 2) (wrong-type-argument bufferp nil))) (condition-case data (apply fun args) (error (debug nil (list "Error in timer" fun args data)))) slime-timer-call(slime-attempt-connection #<process inferior-lisp> nil 2) apply(slime-timer-call (slime-attempt-connection #<process inferior-lisp> nil 2)) byte-code("r\301\302H\303H"\210)\301\207" [timer apply 5 6] 4) timer-event-handler([t 20635 3417 574689 0.3 slime-timer-call (slime-attempt-connection #<process inferior-lisp> nil 2) nil]) input-pending-p() auto-revert-buffers() apply(auto-revert-buffers nil) byte-code("r\301\302H\303H"\210)\301\207" [timer apply 5 6] 4) timer-event-handler([t 20635 3422 268435 5 auto-revert-buffers nil nil])
Emacs: GNU Emacs 24.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2012-08-27 on bob.porkrind.org slime is lates from CVS. CCL is Version 1.9-dev-r15478M-trunk (DarwinX8632)
Any ideas as to what the problem is? I can provide any other information needed.
What's the content in the *inferior-lisp* buffer?
Helmut
(progn (load "/Users/chrisvandusen/elisp/slime/swank-loader.lisp" :verbose t) (funcall (read-from-string "swank-loader:init")) (funcall (read-from-string "swank:start-server") "/var/folders/uV/uVGmJgy32RaM-U+F75cfWU+++TI/-Tmp-/slime.85711"))
Welcome to Clozure Common Lisp Version 1.9-dev-r15491M-trunk (DarwinX8664)! ? ;Loading #P"/Users/chrisvandusen/elisp/slime/swank-loader.lisp"... ;Loading #P"/Users/chrisvandusen/.slime/fasl/2012-11-02/clozure-version_1.9-dev-r15491m-trunk__(darwinx8664)-darwin-x86-64/swank-backend.dx64fsl"... ;Loading #P"/Users/chrisvandusen/.slime/fasl/2012-11-02/clozure-version_1.9-dev-r15491m-trunk__(darwinx8664)-darwin-x86-64/metering.dx64fsl"... ;Loading #P"/Users/chrisvandusen/.slime/fasl/2012-11-02/clozure-version_1.9-dev-r15491m-trunk__(darwinx8664)-darwin-x86-64/swank-ccl.dx64fsl"... ;Loading #P"/Users/chrisvandusen/.slime/fasl/2012-11-02/clozure-version_1.9-dev-r15491m-trunk__(darwinx8664)-darwin-x86-64/swank-gray.dx64fsl"... ;Loading #P"/Users/chrisvandusen/.slime/fasl/2012-11-02/clozure-version_1.9-dev-r15491m-trunk__(darwinx8664)-darwin-x86-64/swank-match.dx64fsl"... ;Loading #P"/Users/chrisvandusen/.slime/fasl/2012-11-02/clozure-version_1.9-dev-r15491m-trunk__(darwinx8664)-darwin-x86-64/swank-rpc.dx64fsl"... ;Loading #P"/Users/chrisvandusen/.slime/fasl/2012-11-02/clozure-version_1.9-dev-r15491m-trunk__(darwinx8664)-darwin-x86-64/swank.dx64fsl"... ; Warning: These Swank interfaces are unimplemented: ; (ACTIVATE-STEPPING ADD-FD-HANDLER ADD-SIGIO-HANDLER ; BACKGROUND-SAVE-IMAGE DUP EXEC-IMAGE MAKE-FD-STREAM ; REMOVE-FD-HANDLERS REMOVE-SIGIO-HANDLERS SLDB-BREAK-AT-START ; SLDB-BREAK-ON-RETURN SLDB-STEP-INTO SLDB-STEP-NEXT SLDB-STEP-OUT ; WAIT-FOR-INPUT) ; While executing: SWANK-BACKEND::WARN-UNIMPLEMENTED-INTERFACES, in process listener(1). ;; Swank started at port: 57561. 57561 ?
On Thu, Nov 08 2012, Chris Van Dusen wrote:
Any ideas as to what the problem is? I can provide any other information needed.
Please download the latest version, enable debugging in Emacs with M-x toggle-debug-on-error and start Slime. I haven't fixed anything but the latest version should show a more complete backtrace.
Helmut
On Nov 8, 2012, at 6:41 AM, Helmut Eller wrote:
On Thu, Nov 08 2012, Chris Van Dusen wrote:
Any ideas as to what the problem is? I can provide any other information needed.
Please download the latest version, enable debugging in Emacs with M-x toggle-debug-on-error and start Slime. I haven't fixed anything but the latest version should show a more complete backtrace.
Helmut
The backtrace is below, but as soon as I saw it, I realized what the problem is.
I had a library loaded (for the curious, geben) that advises open-network-stream. The package seems to have been abandoned, and also causes problems with erc.
Removing it removed the problem starting slime.
Sorry for the noise, Chris.
Debugger entered--Lisp error: (wrong-type-argument bufferp nil) buffer-local-value(dbgp-buffer-process nil) open-network-stream("SLIME Lisp" nil "127.0.0.1" 58064) (let* ((inhibit-quit nil) (proc (open-network-stream "SLIME Lisp" nil host port)) (buffer (slime-make-net-buffer " *cl-connection*"))) (push proc slime-net-processes) (set-process-buffer proc buffer) (set-process-filter proc (quote slime-net-filter)) (set-process-sentinel proc (quote slime-net-sentinel)) (slime-set-query-on-exit-flag proc) (when (fboundp (quote set-process-coding-system)) (set-process-coding-system proc (quote binary) (quote binary))) (when-let (secret (slime-secret)) (slime-net-send secret proc)) proc) slime-net-connect("127.0.0.1" 58064) (let* ((process (slime-net-connect host port)) (slime-dispatching-connection process)) (slime-setup-connection process)) slime-connect("127.0.0.1" 58064 iso-latin-1-unix) (let ((c (slime-connect slime-lisp-host port (plist-get args :coding-system)))) (slime-set-inferior-process c process)) (let ((port (slime-read-swank-port)) (args (slime-inferior-lisp-args process))) (slime-delete-swank-port-file (quote message)) (let ((c (slime-connect slime-lisp-host port (plist-get args :coding-system)))) (slime-set-inferior-process c process))) (cond ((and (file-exists-p file) (> (nth 7 (file-attributes file)) 0)) (slime-cancel-connect-retry-timer) (let ((port (slime-read-swank-port)) (args (slime-inferior-lisp-args process))) (slime-delete-swank-port-file (quote message)) (let ((c (slime-connect slime-lisp-host port (plist-get args :coding-system)))) (slime-set-inferior-process c process)))) ((and retries (zerop retries)) (slime-cancel-connect-retry-timer) (message "Gave up connecting to Swank after %d attempts." attempt)) ((eq (process-status process) (quote exit)) (slime-cancel-connect-retry-timer) (message "Failed to connect to Swank: inferior process exited.")) (t (when (and (file-exists-p file) (zerop (nth 7 (file-attributes file)))) (message "(Zero length port file)") (unless retries (setq retries 3))) (unless slime-connect-retry-timer (setq slime-connect-retry-timer (run-with-timer 0.3 0.3 (function slime-timer-call) (function slime-attempt-connection) process (and retries (1- retries)) (1+ attempt)))))) (let ((file (slime-swank-port-file))) (unless (active-minibuffer-window) (message "Polling %S.. (Abort with `M-x slime-abort-connection'.)" file)) (cond ((and (file-exists-p file) (> (nth 7 (file-attributes file)) 0)) (slime-cancel-connect-retry-timer) (let ((port (slime-read-swank-port)) (args (slime-inferior-lisp-args process))) (slime-delete-swank-port-file (quote message)) (let ((c (slime-connect slime-lisp-host port ...))) (slime-set-inferior-process c process)))) ((and retries (zerop retries)) (slime-cancel-connect-retry-timer) (message "Gave up connecting to Swank after %d attempts." attempt)) ((eq (process-status process) (quote exit)) (slime-cancel-connect-retry-timer) (message "Failed to connect to Swank: inferior process exited.")) (t (when (and (file-exists-p file) (zerop (nth 7 (file-attributes file)))) (message "(Zero length port file)") (unless retries (setq retries 3))) (unless slime-connect-retry-timer (setq slime-connect-retry-timer (run-with-timer 0.3 0.3 (function slime-timer-call) (function slime-attempt-connection) process (and retries (1- retries)) (1+ attempt))))))) slime-attempt-connection(#<process inferior-lisp> nil 2) apply(slime-attempt-connection (#<process inferior-lisp> nil 2)) (condition-case data (apply fun args) ((debug error) (debug nil (list "Error in timer" fun args data)))) slime-timer-call(slime-attempt-connection #<process inferior-lisp> nil 2) apply(slime-timer-call (slime-attempt-connection #<process inferior-lisp> nil 2)) byte-code("r\301\302H\303H"\210)\301\207" [timer apply 5 6] 4) timer-event-handler([t 20637 45584 992419 0.3 slime-timer-call (slime-attempt-connection #<process inferior-lisp> nil 2) nil])
Chris.
slime-devel site list slime-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/slime-devel
On Nov 9, 2012, at 9:05 PM, Chris Van Dusen cavandusen@gmail.com wrote:
On Nov 8, 2012, at 6:41 AM, Helmut Eller wrote:
On Thu, Nov 08 2012, Chris Van Dusen wrote:
Any ideas as to what the problem is? I can provide any other information needed.
Please download the latest version, enable debugging in Emacs with M-x toggle-debug-on-error and start Slime. I haven't fixed anything but the latest version should show a more complete backtrace.
Helmut
The backtrace is below, but as soon as I saw it, I realized what the problem is.
I had a library loaded (for the curious, geben) that advises open-network-stream. The package seems to have been abandoned, and also causes problems with erc.
Removing it removed the problem starting slime.
I get a startup failure that I think is like yours, but it occurs randomly. About 1/12 times when I start slime for Lispworks. I don't have "geben" loaded or anything. I think there is a race condition somewhere.
On Sat, Nov 10 2012, Christopher Stacy wrote:
I get a startup failure that I think is like yours, but it occurs randomly. About 1/12 times when I start slime for Lispworks. I don't have "geben" loaded or anything. I think there is a race condition somewhere.
On Linux I don't see such a problem. I don't know the state of Aqua Emacs but GNU Emacs had this problem when opening a connection: the code would close and reconnect if a signal was received at a bad moment. If that's the case then you should see in the *inferior-lisp* buffer that Emacs closed the connection. If the *inferior-lisp* contains nothing unusual then please provide a backtrace (with the latest SLIME version and debug-on-error enabled).
Helmut