[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] headless arm sclang fails



On 16.Dec 2015, at 14:04 , Fredrik Olofsson <f@xxxxxxxxxxxxxxxxxxx> wrote:

> in the best of worlds that would be an elegant solution, but i’m pretty sure it will not cut it here.  QFont (and thereby Font) is initialized elsewhere.  it’s a rabbit hole and editing the main class library was the only sane solution i ended up with (running sc headless over ssh on debian arm without any window manager installed).
> 
> and could Michael’s path to archive.sctxar have been lost because of the primitive failure?

apparently, yes. (see prev. mail)

>> 16 dec 2015 kl. 13:30 skrev Chris Sattinger <crucialfelix@xxxxxxxxx>:
>> 
>> 
>> or alternatively do this, so you don't have to edit the distribution version:
>> 
>> // your-classes/SystemOverwrites/plusQtGUI.sc
>> +QtGUI {
>>    *initClass {}
>> }


… whereas this seems to work, telling from the fact, that archive.sctxar got it's path now.
IOW, it looks the same as if I commented out the style and palette inits.

Then again, it doesn't buy it all, alas.
I tried commenting out other, potentially, error-related Qt methods, but that just caused different problems.
For me that's too much of poking around, I'm going in circles, I'm afraid.

Below that's what I get now.
There are no customisations at all, BTW, everything - including the OS - is like out of the box:

$ 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 11630
	Byte Code Size 352816
	compiled 312 files in 5.83 seconds

Info: 4 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.28 seconds
Cleaning up temp synthdefs...
ERROR: A primitive was not bound. 0 589
Instance of Method {    (0x1d68a20, 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 (0x1d68ae0, size=4, set=3)
    selectors : nil
    constants : nil
    prototypeFrame : instance of Array (0xb6782ea0, size=1, set=3)
    context : nil
    argNames : instance of SymbolArray (0xb6782f20, size=1, set=3)
    varNames : nil
    sourceCode : nil
    ownerClass : class Meta_QtGUI (0x1d60e20)
    name : Symbol 'palette'
    primitiveName : Symbol '_Qt_GlobalPalette'
    filenameSymbol : Symbol '/usr/local/share/SuperCollider/SCClassLibrary/Common/GUI/Base/QtGUI.sc'
    charPos : Integer 2502
}
ERROR: Primitive 'none' failed.
Failed.
RECEIVER:
   nil
CALL STACK:
	MethodError:reportError   0xb66827b0
		arg this = <instance of PrimitiveFailedError>
	Nil:handleError   0xb66b0270
		arg this = nil
		arg error = <instance of PrimitiveFailedError>
	Thread:handleError   0x1ffc5b0
		arg this = <instance of Thread>
		arg error = <instance of PrimitiveFailedError>
	Object:throw   0x1445b30
		arg this = <instance of PrimitiveFailedError>
	Object:primitiveFailed   0x1ff7bd0
		arg this = nil
	< closed FunctionDef >  (no arguments or variables)
	Function:doOnStartUp   0x1f8f7d0
		arg this = <instance of Function>
	ArrayedCollection:do   0x154bb30
		arg this = [*6]
		arg function = <instance of Function>
		var i = 5
	List:do   0x154bd70
		arg this = <instance of List>
		arg function = <instance of Function>
	Meta_StartUp:run   0x154c490
		arg this = <instance of Meta_StartUp>
	Main:startup   0x15b5b10
		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> 
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




_______________________________________________
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/