musikinformatik / SuperDirt

Tidal Audio Engine
GNU General Public License v2.0
523 stars 76 forks source link

Startup failling, audio driver cannot initialize #125

Closed theomeuh closed 5 years ago

theomeuh commented 5 years ago

Hi I am a very beginner in Tidal, Supercollider and SuperDirt environment. I am trying to install and use Tidal BUT the audio server does not want to work. I follow this tutos: step1 step2

Step1 seems ok but step2 fails with me. I downloaded the script superdirt_startup.scd and run sclang superdirt_startup.scd. As a result, I have

➜  live_coding sclang superdirt_startup.scd
compiling class library...
    Found 845 primitives.
    Compiling directory '/usr/local/share/SuperCollider/SCClassLibrary'
    Compiling directory '/usr/local/share/SuperCollider/Extensions'
    Compiling directory '/home/theo/.local/share/SuperCollider/Extensions'
    Compiling directory '/home/theo/.local/share/SuperCollider/downloaded-quarks/Vowel'
    Compiling directory '/home/theo/.local/share/SuperCollider/downloaded-quarks/Dirt-Samples'
    Compiling directory '/home/theo/.local/share/SuperCollider/downloaded-quarks/SuperDirt'
    numentries = 1266526 / 19297956 = 0.066
    5723 method selectors, 3372 classes
    method table size 20632904 bytes, big table size 154383648
    Number of Symbols 14888
    Byte Code Size 441851
    compiled 552 files in 0.43 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.01 seconds

*** Welcome to SuperCollider 3.10.2. *** For help type ctrl-c ctrl-h (Emacs) or :SChelp (vim) or ctrl-U (sced/gedit).
Booting server 'localhost' on address 127.0.0.1:57110.
Faust: supercollider.cpp: sc_api_version = 3
Faust: FaustGreyholeRaw numControls=7
Found 0 LADSPA plugins
Faust: supercollider.cpp: sc_api_version = 3
Faust: FaustJPverbRaw numControls=11
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
no message buffer overruns
no message buffer overruns
no message buffer overruns
jackdmp 1.9.12
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
Copyright 2016-2017 Filipe Coelho.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
audio_reservation_init
Acquire audio card Audio0
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
JackTemporaryException : now quits...
Released audio card Audio0
audio_reservation_finish
Cannot initialize driver
JackServer::Open failed with -1
Failed to open server
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
could not initialize audio.
terminate called without an active exception
Server 'localhost' exited with exit code 0.

I have pretty much the same if I use the supercollider IDE.
It seems some kind of audio jack server cannot be launched because of a driver. I am affraid of breaking something. I do not know if it matters but I currently can listen music.

I work on Ubuntu18.04

Thanks for your answer

theomeuh commented 5 years ago

https://github.com/supercollider/supercollider/issues/3709

Ok seems to be a failure with Jack but if you have any futher idea, it's ok

theomeuh commented 5 years ago

Finally, I just had to change hwo in hw1 in QjackCtl