How to resolve the problem when SC-IDE does not show Help Document contents

Hello,

On macOS, after using sclang via

SC-IDE’s help browser sometimes does not display its contents and only shows the following message at the top of the SC help browser:

sending request ......

The only way I found is to reboot the OS.

Is there any way to solve this problem?

I have tried the following two commands in a terminal, but they do not work:

  1. typing

    sudo lsof -i :57120
    

    It returns for example:

    COMMAND   PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
    say     25473 prko   21u  IPv4 0x1493e9ac86873831      0t0  UDP *:57120
    
  2. typing

    sudo killAll say
    

Did you try SCDoc.renderAll in the IDE?

Sometimes VSCode gets like this and restarting the OS fixes it. I also think logging out the user and logging back in works. What would these processes be doing that would make things work again?

Sam

1 Like

@Sam_Pluta
Um… I am not sure if I did it.
If I encounter this problem again next time, I will test it and report the result here.

Thank you very much!

I cannot evaluate SCDoc.renderAll because sclang seems to be looping. The colour of SCDoc is not blue:
Screenshot 2024-05-07 at 15.33.40

I noticed today that I get an error message when this happens:

ERROR: ScIDE not connected
ERROR: Primitive '_ScIDE_Send' failed.
Failed.
RECEIVER:
class ScIDE (0x130214a00) {
  instance variables [19]
    name : Symbol 'ScIDE'
    nextclass : instance of Meta_Scala (0x130e71980, size=19, set=5)
    superclass : Symbol 'Object'
    subclasses : nil
    methods : nil
    instVarNames : nil
    classVarNames : instance of SymbolArray (0x130214b80, size=7, set=2)
    iprototype : nil
    cprototype : instance of Array (0x130214c40, size=7, set=3)
    constNames : nil
    constValues : nil
    instanceFormat : Integer 0
    instanceFlags : Integer 0
    classIndex : Integer 2001
    classFlags : Integer 0
    maxSubclassIndex : Integer 2001
    filenameSymbol : Symbol '/Users/prko/Dropbox/prko/__myDocs/Writings/Making Sound using Open Sources/mixed/dev - Bleeding edge/SuperCollider.app/Contents/Resources/SCClassLibrary/scide_scqt/ScIDE.sc'
    charPos : Integer 0
    classVarIndex : Integer 185
}

PROTECTED CALL STACK:
	Meta_MethodError:new	0x142ae0180
		arg this = PrimitiveFailedError
		arg what = Failed.
		arg receiver = ScIDE
	Meta_PrimitiveFailedError:new	0x142ae8040
		arg this = PrimitiveFailedError
		arg receiver = ScIDE
	Object:primitiveFailed	0x1422bc0c0
		arg this = ScIDE
	Meta_ScIDE:prSend	0x13022d640
		arg this = ScIDE
		arg id = openHelpUrl
		arg data = file:///Users/prko/Library/Application Support/SuperCollider/Help/Search.html
	Function:defer	0x12224bc40
		arg this = a Function
		arg delta = nil
	Meta_ScIDE:send	0x13022cec0
		arg this = ScIDE
		arg id = openHelpUrl
		arg data = file:///Users/prko/Library/Application Support/SuperCollider/Help/Search.html
	Function:prTry	0x12224f400
		arg this = a Function
		var result = nil
		var thread = a Routine
		var next = nil
		var wasInProtectedFunc = true
	
CALL STACK:
	MethodError:reportError
		arg this = <instance of PrimitiveFailedError>
	< closed FunctionDef >
		arg error = <instance of PrimitiveFailedError>
	Integer:forBy
		arg this = 0
		arg endval = 0
		arg stepval = 2
		arg function = <instance of Function>
		var i = 0
		var j = 0
	SequenceableCollection:pairsDo
		arg this = [*2]
		arg function = <instance of Function>
	Scheduler:seconds_
		arg this = <instance of Scheduler>
		arg newSeconds = 1970.698032792
	Meta_AppClock:tick
		arg this = <instance of Meta_AppClock>
		var saveClock = <instance of Meta_SystemClock>
	Process:tick
		arg this = <instance of Main>
^^ The preceding error dump is for ERROR: Primitive '_ScIDE_Send' failed.
Failed.
RECEIVER: ScIDE

@prko say is a accessibility text-to-speech program shipped with macOS. Maybe disable it?

1 Like

Thanks, I will try it!

1 Like