failing to run Sclang from cli (Macario Ortega Ram?rez)

View: New views
2 Messages — Rating Filter:   Alert me  

Parent Message unknown failing to run Sclang from cli (Macario Ortega Ram?rez)

by Macario Ortega Ramírez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



I managed to compile sclang for console usage following this instructions:

But now I am getting this error:

$ ./sclang adf
Usage:
   sclang [options] [file..] [-]

init_OSC
compiling class library..
NumPrimitives = 540
compiling dir: '/Users/macario/Downloads/SuperCollider-Source/build/SCClassLibrary'
pass 1 done
numentries = 779351 / 9841266 = 0.079
Method Table Size 5669340 bytes
Number of Method Selectors 4437
Number of Classes 2218
big table size 39365064
Number of Symbols 10128
Byte Code Size 285207
compiled 363 files in 2.18 seconds 
compile done
// History.logFolder: /Users/macario/Library/Application Support/SuperCollider/HistoryLogs
Class tree inited in 0.04 seconds
StartUp done.
Welcome to SuperCollider, type cmd-d for help
file "adf" does not exist.
ERROR: A primitive was not bound. 0 539
Instance of Method {    (0074FE20, gc=01, fmt=00, flg=11, set=04)
  instance variables [15]
    raw1 : Float 8.900397289826772e-308   0030000C 00000000
    raw2 : Float 7.29112897291262e-304   01000001 00000100
    code : instance of Int8Array (0074FED0, size=1, set=1)
    selectors : nil
    constants : nil
    prototypeFrame : instance of Array (01020FC0, size=1, set=1)
    context : nil
    argNames : instance of SymbolArray (01021000, size=1, set=1)
    varNames : nil
    sourceCode : nil
    ownerClass : class Meta_CocoaDocument (0074C010)
    name : Symbol 'prGetIndexOfListener'
    primitiveName : Symbol '_TextWindow_GetIndexOfListener'
    filenameSymbol : Symbol '/Users/macario/Downloads/SuperCollider-Source/build/SCClassLibrary/Platform/osx/CocoaDocument.sc'
    charPos : Integer 3010
}
ERROR: Primitive '_BasicAt' failed.
Index not an Integer
RECEIVER:
Instance of Array {    (010578A0, gc=3C, fmt=01, flg=00, set=00)
  indexed slots [0]
}
CALL STACK:
MethodError:reportError   017CC190
arg this = <instance of PrimitiveFailedError>
Nil:handleError   01051C90
arg this = nil
arg error = <instance of PrimitiveFailedError>
Thread:handleError   017CBC40
arg this = <instance of Thread>
arg error = <instance of PrimitiveFailedError>
Thread:handleError   017C2DC0
arg this = <instance of Routine>
arg error = <instance of PrimitiveFailedError>
Object:throw   011A7850
arg this = <instance of PrimitiveFailedError>
Object:primitiveFailed   011A77F0
arg this = [*0]
< FunctionDef in Method Meta_CocoaDocument:startup >  (no arguments or variables)
Routine:prStart   01069080
arg this = <instance of Routine>
arg inval = 2.187730106

I asume it has nothing to do with the binary but with the SCClassLibrary. Allso sclang sits there doing nothing and consumes all my CPU. Anyone has the same problem? Can anyone help me?

PD. I'm new to the list and I don't know how to follow a thread posting my previous mail.

 

_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

Re: failing to run Sclang from cli (Macario Ortega Ram?rez)

by nescivi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hiho,

On Sunday 04 May 2008 12:46:10 Macario Ortega Ramírez wrote:
> I managed to compile sclang for console usage following this
> instructions:
> http://swiki.hfbk-hamburg.de/MusicTechnology/848

The swiki details two different ways to do this. Which one did you use.

>
> But now I am getting this error:
>
> $ ./sclang adf

two things seem to happen:
the file "adf" is not found:

> file "adf" does not exist.

> ERROR: A primitive was not bound. 0 539

and... CocoaDocument tries to initialize which is probably not correct when
using sclang from the command line...

> I asume it has nothing to do with the binary but with the
> SCClassLibrary. Allso sclang sits there doing nothing and consumes all
> my CPU. Anyone has the same problem? Can anyone help me?

I'm not sure whether anyone has come across this.
A simple solution would be to move CocoaDocument out of the SCClassLibrary.


Note that there have been some problems reported on memory slowly building up
when using just the cli. None of the devs have yet found a solution to this
problem.

> PD. I'm new to the list and I don't know how to follow a thread
> posting my previous mail.

Use reply-to in your email program and make sure you reply to the mailinglist
address and not to someone else in private. Some email programs have an
option reply-to-list.
Only use reply-to though when you stay on the same topic.

sincerely,
Marije
_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users