No sound on Ubuntu

Hi, I'm trying to make Tidal work again after it stopped making sound. It worked perfectly until a few days ago, when I made some changes in my audio configuration... I installed pulseaudio-module-jack to get sound at the same time from browser and other applications when i have Supercollider or Sonic Pi running. Now that problem is solved and I can get sound simultaneously from SC, Sonic Pi and other applications, but I get no sound from Tidal.

I'm on Ubuntu 18.04.4 and use VS Code as editor with the Tidal extension.

This is my process:

  1. Launch Supercollider IDE and run 'SuperDirt.start'. Here's the output:

     *** Welcome to SuperCollider 3.9.1. *** For help press Ctrl-D.
     SCDoc: Indexing help-files...
     SCDoc: Indexed 1828 documents in 1.01 seconds
     -> SuperDirt
     booting server 'localhost' on address: 127.0.0.1:57110
     RESULT = 0
    
  2. Open a Tidal file in vscode and try to run some code. Here's the output:

     GHCi, version 8.0.2: http://www.haskell.org/ghc/  :? for help
     Prelude> Prelude> Warning: GHCi | Some flags have not been recognized: prompt-cont, 
     Listening for controls on 127.0.0.1:6010
     Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| tidal> Prelude Sound.Tidal.Context| Prelude Sound.Tidal.Context| tidal> 
    

Software is up to date:

Ubuntu 18.04.4
Supercollider 3.9.1
ghc 8.0.2
ghci 8.0.2
tidal 1.5.2
pulseaudio 11.1

JACK server is running, the connections are set up like this:

I don't get any signal on the SC meter when I run the code on tidal:

Sound settings:

Audio on all other applications works fine.
Could be the mismatch between the port on Supercollider (57110) and the port on vscode (6010)? Any idea? :confused:

Update: contrary to what I thought Supercollider is not producing sound:

I tried to kill all servers eventually hang up, boot again and run some code, but I get a "server 'localhost' not running" warning. That might be the problem.

This is what I get when I launch SC and try to run these 3 lines individually:

Server.killAll

s.boot

{SinOsc.ar(440, 0 , 0.1)}.play



compiling class library...
	Found 715 primitives.
	Compiling directory '/usr/local/share/SuperCollider/SCClassLibrary'
	Compiling directory '/usr/local/share/SuperCollider/Extensions'
	Compiling directory '/home/davide/.local/share/SuperCollider/Extensions'
	Compiling directory '/home/davide/.local/share/SuperCollider/downloaded-quarks/BatLib'
Open ended symbol started on line 35 of file '/home/davide/.local/share/SuperCollider/downloaded-quarks/BatLib/LessKeys.sc'
	Compiling directory '/home/davide/.local/share/SuperCollider/downloaded-quarks/FoxDot'
	Compiling directory '/home/davide/.local/share/SuperCollider/downloaded-quarks/Vowel'
	Compiling directory '/home/davide/.local/share/SuperCollider/downloaded-quarks/Dirt-Samples'
	Compiling directory '/home/davide/.local/share/SuperCollider/downloaded-quarks/SuperDirt'
	numentries = 1187619 / 17971108 = 0.066
	5623 method selectors, 3196 classes
	method table size 18525840 bytes, big table size 143768864
	Number of Symbols 14355
	Byte Code Size 417823
	compiled 468 files in 0.56 seconds

Info: 4 methods are currently overwritten by extensions. To see which, execute:
MethodOverride.printAll

compile done
localhost : setting clientID to 0.
internal : setting clientID to 0.
Class tree inited in 0.02 seconds


*** Welcome to SuperCollider 3.9.1. *** For help press Ctrl-D.
SCDoc: Indexing help-files...
SCDoc: Indexed 1828 documents in 1.23 seconds
-> Server
RESULT = 1
-> localhost
booting server 'localhost' on address: 127.0.0.1:57110
RESULT = 0
WARNING: server 'localhost' not running.
-> nil

No sound from Supercollider.

Trying fiddling with jack settings, selecting audio device etc using qjackctl or similar

Ah sorry didn't read the top post. I see jack is running fine now.

As you suspect, I think this is the problem:

 booting server 'localhost' on address: 127.0.0.1:57110
 RESULT = 0

The supercollider server isn't starting. "RESULT = 0" isn't much to go on though :confused: To state the obvious - have you tried rebooting?

Ok, I got it to work by completely removing Supercollider 3.8 and then installing the latest version (3.11.0) compiling the sources. I still have to manually stop and relaunch sc server 4-5 times before it correctly boots, don't know why :roll_eyes:

Try editing your superdirt startup, moving the sample loading after the dirt.start line. Does it load reliably then?

I did a quick test: with sample loading after dirt.start it loaded 5/10 times, with sample loading before dirt.start it loads 7/10, so no substantial difference.

I think it might be some kind of resources problem maybe, hard to tell...