[CM] CLM/Snd problems

Dave Phillips dlphilp@bright.net
Mon, 02 Dec 2002 10:07:12 -0500


Bill Schottstaedt wrote:
 
> > * (snd-edit () (with-sound () (mix (snd-sound)) (fm-violin .1 .1 660 .1)))
> > Unbound variable: snd-edit
> 
> "unbound variable" is a Scheme error indication -- somehow Snd has
> taken over the lisp listener -- this happens in ACL as well.  And
> if you call start-snd from an emacs subjob, emacs hangs!  This gets
> the worst-bug-of-the-year award for 2002.  I've added the Snd invocation
> switch -nostdin, and changed sc.c (the CLM side of the business) to
> use it.  I notice that CLM/Snd error handling is pessimal.

Hi Bill:

  I'm working with Rick's latest 2.4.0, and the latest CCRMA stuff.
Things are getting better, but I'm still running into some troubles.
I've built the cm.core according to the new instructions, and things are
much improved. However, I'm still having problems with the CLM/Snd
connectivity. Here's the breakdown:


[dlphilp@localhost CCRMA]$ lisp -core
/home/dlphilp/CCRMA/cm-2.4.0/bin/cm.core -init
/home/dlphilp/CCRMA/cm-2.4.0/bin/cminit.lisp 
; Loading #p"/home/dlphilp/CCRMA/cm-2.4.0/bin/cminit.lisp".
* (load "/home/dlphilp/CCRMA/clm-2/v.cmucl")

; Loading #p"/home/dlphilp/CCRMA/clm-2/v.cmucl".
;;; Running /usr/bin/ld...
;;; Done.
;; Loading #p"/home/dlphilp/CCRMA/clm-2/v.x86f".


Error in function C::BYTE-INTERPRET-BYTE:  Unbound variable:
*INS-FILE-LOADING*

Restarts:
  0: [CONTINUE] Return NIL from load of "/home/dlphilp/CCRMA/clm-2/v".
  1:            Return NIL from load of
"/home/dlphilp/CCRMA/clm-2/v.cmucl".
  2: [ABORT   ] Return to Top-Level.

Debug  (type H for help)

(C::BYTE-INTERPRET-BYTE #<Code Object "Top-Level Form" {4807341F}> 162 4
229)
Source: Error finding source: 
Error in function DEBUG::GET-FILE-TOP-LEVEL-FORM:  Source file no longer
exists:
  target:code/byte-interp.lisp.
0] 2
* (in-package :clm)

#<The CLM package, 1713/2386 internal, 770/1184 external>
* (load "/home/dlphilp/CCRMA/clm-2/v.cmucl")

; Loading #p"/home/dlphilp/CCRMA/clm-2/v.cmucl".
;;; Running /usr/bin/ld...
;;; Done.
;; Loading #p"/home/dlphilp/CCRMA/clm-2/v.x86f".
T

* (send-snd "(open-sound \"/home/dlphilp/comment_instr.wav\")")
-1	;;; <--- Snd does start here but without loading the soundfile

* (start-snd)
NIL	;;; <--- Snd opens as expected

* (send-snd "(open-sound \"/home/dlphilp/comment_instr.wav\")")
NIL	;;; <--- file loads as expected

* (snd-edit () (with-sound () (mix (snd-sound)) (fm-violin .1 .1 660
.1)))        

Error in KERNEL::UNDEFINED-SYMBOL-ERROR-HANDLER:  the function
CLM-RECEIVE-SND is undefined.

Restarts:
  0: [ABORT] Return to Top-Level.

Debug  (type H for help)

(KERNEL::UNDEFINED-SYMBOL-ERROR-HANDLER "<error finding name>"
                                        #.(SYSTEM:INT-SAP #x3FFFE9BC)
                                        #<Alien (* #) at #x3FFFE658>
                                        (14))
Source: Error finding source: 
Error in function DEBUG::GET-FILE-TOP-LEVEL-FORM:  Source file no longer
exists:
  target:code/interr.lisp.
0] 0
*



   Am I missing anything obvious ?

== dp