[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] headless arm sclang fails
Hi Fredrik,
> to get rid of the 'ERROR: Primitive 'none' failed.' do this...
> sudo nano /usr/local/share/SuperCollider/SCClassLibrary/Common/GUI/Base/QtGUI.sc #comment out:
> //this.style = "Plastique";
//this.style = "Fusion";
it is on my system.
That's the current 3.7 branch (about to become beta) @ 8d1167
however, it doesn't help. *)
> i usually exit with the sclang command 0.exit
me too, from within code. but in a shell … the urge to hit ctrl-d is to overwhelming. ;)
> (sorry i don’t have a rpi2 but the is how it works on my bbb).
it's only an r-pi … from the first batch. but I don't think that matters, in this respect.
> the 'ERROR: Could not open file "/archive.sctxar" for writing’ is new to me. did you change the extension folder in your startup or something?
I didn't touch anything. That was from scratch.
I'm not used to SC on Linux, yet have to dig the structure.
This was from the first run from a clean-install … starting with a blank sd card.
> or is it a permission problem? try starting sclang as root.
looks like that. it was reproducible until the root load.
After the sudo session the error was gone.
Will have to reproduce it and see what's going on.
But this is the easy part, I suspect. ;)
> good to see that downgrading gcc made that atIdentityHash error go away.
well yeah, but it still smells fishy.
I'm not a dev, but intuitively I'd say if that really was a compiler problem,
some hard-core devs what have given notice.
Of course, never say never ...
Thanks, Michael.
*)
$ sclang
init_OSC
empty
compiling class library...
NumPrimitives = 590
compiling dir: '/usr/local/share/SuperCollider/SCClassLibrary'
compiling dir: '/usr/local/share/SuperCollider/Extensions'
pass 1 done
ERROR: Class extension for nonexistent class 'Document'
In file:'/deprecated/3.7/deprecated-3.7.sc'
numentries = 813518 / 11140016 = 0.073
5009 method selectors, 2224 classes
method table size 6108924 bytes, big table size 44560064
Number of Symbols 11629
Byte Code Size 352769
compiled 311 files in 5.79 seconds
Info: 3 methods are currently overwritten by extensions. To see which, execute:
MethodOverride.printAll
compile done
Couldn't set realtime scheduling priority 1: Operation not permitted
Class tree inited in 0.27 seconds
Cleaning up temp synthdefs...
ERROR: A primitive was not bound. 0 589
Instance of Method { (0x1054620, gc=01, fmt=00, flg=11, set=04)
instance variables [15]
raw1 : Float 0.000000 00000000 0030000C
raw2 : Float 0.000000 00000100 01000001
code : instance of Int8Array (0x10546e0, size=4, set=3)
selectors : nil
constants : nil
prototypeFrame : instance of Array (0xb66e2ea0, size=1, set=3)
context : nil
argNames : instance of SymbolArray (0xb66e2f20, size=1, set=3)
varNames : nil
sourceCode : nil
ownerClass : class Meta_QtGUI (0x104caa0)
name : Symbol 'palette'
primitiveName : Symbol '_Qt_GlobalPalette'
filenameSymbol : Symbol '/usr/local/share/SuperCollider/SCClassLibrary/Common/GUI/Base/QtGUI.sc'
charPos : Integer 2507
}
ERROR: Primitive 'none' failed.
Failed.
RECEIVER:
nil
CALL STACK:
MethodError:reportError 0xb65d8f30
arg this = <instance of PrimitiveFailedError>
Nil:handleError 0xb6609610
arg this = nil
arg error = <instance of PrimitiveFailedError>
Thread:handleError 0x7a5df0
arg this = <instance of Thread>
arg error = <instance of PrimitiveFailedError>
Object:throw 0xb6606610
arg this = <instance of PrimitiveFailedError>
Object:primitiveFailed 0xb65d83f0
arg this = nil
< closed FunctionDef > (no arguments or variables)
Function:doOnStartUp 0xb65d44f0
arg this = <instance of Function>
ArrayedCollection:do 0x82fd90
arg this = [*6]
arg function = <instance of Function>
var i = 5
List:do 0x82fdf0
arg this = <instance of List>
arg function = <instance of Function>
Meta_StartUp:run 0x8305d0
arg this = <instance of Meta_StartUp>
Main:startup 0x8a1b10
arg this = <instance of Main>
var didWarnOverwrite = false
^^ The preceding error dump is for ERROR: Primitive 'none' failed.
Failed.
RECEIVER: nil
Couldn't set realtime scheduling priority 1: Operation not permitted
sc3> "bla".postln
bla
-> bla
sc3>
sc3>
sc3>
Exiting sclang (ctrl-D)
main: quit request 0
main: waiting for input thread to join...
sc3> main: quitting...
empty
cleaning up OSC
terminate called without an active exception
Aborted
>> 16 dec 2015 kl. 07:45 skrev Michael Zacherl <sdiy-mz01@xxxxxxxxxxxxx>:
>>
>> Hi, in another attempt to get sclang up and running on an original Raspberry Pi w/ Raspbian Jessie Lite I downgraded gcc to 4.8.4 (for a test and workaround) and now get this:
>>
>> pi@sc-pi:~ $ sclang
>> init_OSC
>> empty
>> compiling class library...
>> NumPrimitives = 590
>> compiling dir: '/usr/local/share/SuperCollider/SCClassLibrary'
>> compiling dir: '/usr/local/share/SuperCollider/Extensions'
>> pass 1 done
>> ERROR: Class extension for nonexistent class 'Document'
>> In file:'/deprecated/3.7/deprecated-3.7.sc'
>> numentries = 813518 / 11140016 = 0.073
>> 5009 method selectors, 2224 classes
>> method table size 6108924 bytes, big table size 44560064
>> Number of Symbols 11629
>> Byte Code Size 352800
>> compiled 311 files in 5.78 seconds
>>
>> Info: 3 methods are currently overwritten by extensions. To see which, execute:
>> MethodOverride.printAll
>>
>> compile done
>> Couldn't set realtime scheduling priority 1: Operation not permitted
>> ERROR: A primitive was not bound. 0 589
>> Instance of Method { (0x15c7120, gc=01, fmt=00, flg=11, set=04)
>> instance variables [15]
>> raw1 : Float 0.000000 00000000 0038000C
>> raw2 : Float 0.000000 00000200 02010002
>> code : instance of Int8Array (0x15c72e0, size=4, set=3)
>> selectors : nil
>> constants : nil
>> prototypeFrame : instance of Array (0x15c7260, size=2, set=3)
>> context : nil
>> argNames : instance of SymbolArray (0x15c71e0, size=2, set=3)
>> varNames : nil
>> sourceCode : nil
>> ownerClass : class Meta_QtGUI (0x15bea60)
>> name : Symbol 'prSetStyle'
>> primitiveName : Symbol '_Qt_SetStyle'
>> filenameSymbol : Symbol '/usr/local/share/SuperCollider/SCClassLibrary/Common/GUI/Base/QtGUI.sc'
>> charPos : Integer 3072
>> }
>> ERROR: Primitive 'none' failed.
>> Failed.
>> RECEIVER:
>> nil
>>
>> PROTECTED CALL STACK:
>> Meta_MethodError:new 0xf3bea0
>> arg this = PrimitiveFailedError
>> arg what = Failed.
>> arg receiver = nil
>> Meta_PrimitiveFailedError:new 0xf3f7a0
>> arg this = PrimitiveFailedError
>> arg receiver = nil
>> Object:primitiveFailed 0xb6677ca0
>> arg this = nil
>> Function:prTry 0x1097ba0
>> arg this = a Function
>> var result = nil
>> var thread = a Thread
>> var next = nil
>> var wasInProtectedFunc = false
>>
>> CALL STACK:
>> MethodError:reportError 0xe29790
>> arg this = <instance of PrimitiveFailedError>
>> Nil:handleError 0xe297f0
>> arg this = nil
>> arg error = <instance of PrimitiveFailedError>
>> Thread:handleError 0xe29850
>> arg this = <instance of Thread>
>> arg error = <instance of PrimitiveFailedError>
>> Object:throw 0xe29910
>> arg this = <instance of PrimitiveFailedError>
>> Function:protect 0xe2b450
>> arg this = <instance of Function>
>> arg handler = <instance of Function>
>> var result = <instance of PrimitiveFailedError>
>> Meta_QtGUI:style_ 0xe2b570
>> arg this = <instance of Meta_QtGUI>
>> arg styleName = "Fusion"
>> Meta_QtGUI:initClass 0xe2d330
>> arg this = <instance of Meta_QtGUI>
>> Meta_Class:initClassTree 0xe2d750
>> arg this = <instance of Meta_Class>
>> arg aClass = <instance of Meta_QtGUI>
>> var implementsInitClass = nil
>> ArrayedCollection:do 0xe15a30
>> arg this = [*204]
>> arg function = <instance of Function>
>> var i = 56
>> Meta_Class:initClassTree 0xe15230
>> arg this = <instance of Meta_Class>
>> arg aClass = <instance of Meta_Object>
>> var implementsInitClass = nil
>> Process:startup 0xe148f0
>> arg this = <instance of Main>
>> var time = 5.813281624
>> Main:startup 0xe13b10
>> arg this = <instance of Main>
>> var didWarnOverwrite = false
>> ^^ The preceding error dump is for ERROR: Primitive 'none' failed.
>> Failed.
>> RECEIVER: nil
>>
>>
>> Couldn't set realtime scheduling priority 1: Operation not permitted
>> sc3>
>> sc3> a=1
>> -> 1
>> sc3> a
>> -> 1
>> sc3> a=[1,2,3,4]
>> -> [ 1, 2, 3, 4 ]
>> sc3> b=a*2
>> -> [ 2, 4, 6, 8 ]
>> sc3> b.scramble
>> -> [ 2, 8, 6, 4 ]
>> sc3> b.scramble
>> -> [ 4, 6, 8, 2 ]
>>
>> // after hitting ctrl-D to get out
>>
>> sc3>
>> Exiting sclang (ctrl-D)
>> main: quit request 0
>> main: waiting for input thread to join...
>> sc3> main: quitting...
>> ERROR: Could not open file "/archive.sctxar" for writing
>> RECEIVER:
>> nil
>> CALL STACK:
>> MethodError:reportError 0xd9d1d0
>> arg this = <instance of MethodError>
>> Nil:handleError 0xd9d230
>> arg this = nil
>> arg error = <instance of MethodError>
>> Thread:handleError 0xd9d290
>> arg this = <instance of Thread>
>> arg error = <instance of MethodError>
>> Object:throw 0xd9d2f0
>> arg this = <instance of MethodError>
>> Object:writeTextArchive 0xe20110
>> arg this = nil
>> arg pathname = "/archive.sctxar"
>> var text = "nil
>> "
>> var file = <instance of File>
>> Meta_Archive:write 0xd9db90
>> arg this = <instance of Meta_Archive>
>> arg filename = nil
>> var expandedFileName = "/archive.sctxar"
>> Process:shutdown 0xd9dd70
>> arg this = <instance of Main>
>> Main:shutdown 0xd9e010
>> arg this = <instance of Main>
>> ^^ The preceding error dump is for ERROR: Could not open file "/archive.sctxar" for writing
>> RECEIVER: nil
>>
>> empty
>> cleaning up OSC
>> terminate called without an active exception
>> Aborted
>> pi@sc-pi:~ $
>>
>> On 15.Oct 2014, at 10:32 , mrdevis <mrdevis@xxxxxxxxxx> wrote:
>>
>>> I have been trying to get my head around running sclang on a cubian headless
>>> arm board. This is a git pull done three days ago. Apart from this error:
>>>
>>> ERROR: Class extension for nonexistent class 'Document'
>>> In file:'/deprecated/3.7/deprecated-3.7.sc'
>>>
>>> which seems to have to do with the absence of qt and could sort of be
>>> ignored, but I keep getting this atIdentityHash error, which I cannot trace
>>> down. It doesn't prevent sclang from starting though.
>>> Any ideas? Impact?
>>>
>>> Thanks!
>>>
>>> Jeroen
>>>
>>> ERROR: Message 'atIdentityHash' not understood.
>>
>>
>>
>> --
>> http://mz.klingt.org
>>
>>
>> _______________________________________________
>> sc-users mailing list
>>
>> info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
>> archive: https://listarc.bham.ac.uk/marchives/sc-users/
>> search: https://listarc.bham.ac.uk/lists/sc-users/search/
>
>
> #|
> fredrikolofsson.com musicalfieldsforever.com
> |#
>
--
http://mz.klingt.org
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/