-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not starting w/o jackd activated beforehand #396
Comments
I'm using USDX with ALSA. No Pulseaudio, no Jack. |
i disabled pulseaudio run under gdm on login so that no pulseaudio process is active now. also to be really sure pulseaudio is not started i ran
now the log is a bit shorter but it still does not work:
#395 is the same installation but it uses the arch-recommended way of starting jackd. specifically the following pre-start:
and post-start commands:
the following procedure makes it possible to run:
|
this is weird. as soon as i build UDX with debug ( |
@jose1711 thanks a lot for that piece of information. USDX ceased to work here after updating from Ubuntu 18.04 to 20.04, and I've been tearing my hair for a while. But just as you mention, building with debug enabled magically makes it work again. |
@GunnarDahlgren thank you, it's kinda reassuring to learn that I am not the only one having the issue :-) |
Your ~/.asoundrc may be empty, but distributions nowadays install lots of files in /etc/alsa/conf.d/ that get included by /usr/share/alsa/alsa.conf. One of these files usually defines a device called "jack" that connects to a local jackd. On startup USDX checks which capture devices can be opened. That's why it tries to connect to jack. The question is why it crashes when there is no jackd. Can you change UAudioCore_Portaudio.pas to execute the else branch of As a workaround you can also try ./configure --without-portaudio. USDX will then use SDL for capture, which will most likely ask PulseAudio for available devices. And PulseAudio will only use real hardware ALSA devices unless you explicitly configure it to use something like jackd. |
Thanks @s09bQ5 for your suggestions. Here's the console output with ..
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5170:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5170:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM bluealsa
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
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
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
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
ERROR: Error: Audio callback is not called [TAudioCore_Portaudio.TestDevice]
ERROR: Device "HDA Intel: ALC888 Digital (hw:0,1)" does not work [TAudioInput_Portaudio.EnumDevices]
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1811
ERROR: Error checking format: Unanticipated host error [TAudioCore_Portaudio.TestDevice]
ERROR: Device "samplerate" does not work [TAudioInput_Portaudio.EnumDevices]
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1811
ERROR: Error checking format: Unanticipated host error [TAudioCore_Portaudio.TestDevice]
ERROR: Device "speexrate" does not work [TAudioInput_Portaudio.EnumDevices]
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1735
Expression 'AlsaOpen( hostApi, parameters, streamDir, &pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1767
ERROR: Error checking format: Device unavailable [TAudioCore_Portaudio.TestDevice]
ERROR: Device "speex" does not work [TAudioInput_Portaudio.EnumDevices]
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1735
Expression 'AlsaOpen( hostApi, parameters, streamDir, &pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1767
ERROR: Error checking format: Device unavailable [TAudioCore_Portaudio.TestDevice]
ERROR: Device "upmix" does not work [TAudioInput_Portaudio.EnumDevices]
An unhandled exception occurred at $00007FAAD412E3C3:
EAccessViolation: Access violation
$00007FAAD412E3C3
An unhandled exception occurred at $00007FAADB27AAD2:
EAccessViolation:
$00007FAADB27AAD2 I can also confirm that using |
Actual behaviour
Currently USDX only works for me if I start jackd server prior to invoking it.
Expected behaviour
I don't see jackd listed as a hard dependency for USDX so I am wondering if this is a misconfiguration on my part or a compatibility issue.
Steps to reproduce
pulseaudio is running, jackd is NOT running
No luck with
pasuspender
either.Details
Provide some additional information:
.asoundrc
is emptyThe text was updated successfully, but these errors were encountered: