Audio qjackctl does not start

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
deepakdeshp
Level 16
Level 16
Posts: 6882
Joined: Sun Aug 09, 2015 10:00 am

Audio qjackctl does not start

Post by deepakdeshp »

Hello,

Some information about Jack .https://libremusicproduction.com/articl ... arted-jack
I try to start qjackctl program but I get error. The start of the error message(its a big message, I truncated it) is

Code: Select all

System Information
----------------

* Sonic Pi version: 2.10.0
* OS: Linux Mint 19.2


GUI Log
-------

**/home/uma/.sonic-pi/log/gui.log**
```
[GUI] - using default editor colours
[GUI] - shutting down any old audio servers...
[GUI] - starting UDP OSC Server on port 4558...
[GUI] - UDP OSC Server ready and listening
[GUI] - booting live coding server
[GUI] - waiting for server to boot...
............................................................
[GUI] - Critical error! Could not boot server.

```


Server Errors
-------------

**/home/uma/.sonic-pi/log/server-errors.log**
```
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
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
Regards,
Deepak

I am using Mint 19.3 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

User avatar
trytip
Level 12
Level 12
Posts: 4425
Joined: Tue Jul 05, 2016 1:20 pm

Re: Audio qjackctl does not start

Post by trytip »

pulseaudio -k then open sound settings click all your outputs ending on the one that is your current generic sound then open your qjackctl. hopefully you didn't change any settings in qjackctl like mixing 48,000 with 44,100
Image

deepakdeshp
Level 16
Level 16
Posts: 6882
Joined: Sun Aug 09, 2015 10:00 am

Re: Audio qjackctl does not start

Post by deepakdeshp »

trytip wrote:
Mon Nov 18, 2019 10:36 am
pulseaudio -k then open sound settings click all your outputs ending on the one that is your current generic sound then open your qjackctl. hopefully you didn't change any settings in qjackctl like mixing 48,000 with 44,100
Thank you butit didnt help .I ran pulseaudio -k.
jack.png
There is only one output as per the figure, analog stereo output. I can test the sound with "Test sound "button.I havent changed any of the qjackctl settings.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
Regards,
Deepak

I am using Mint 19.3 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

deepakdeshp
Level 16
Level 16
Posts: 6882
Joined: Sun Aug 09, 2015 10:00 am

Re: Audio qjackctl does not start

Post by deepakdeshp »

I ran the following code but it gave error.

Code: Select all

pulseaudio --kill &
[1] 10864
jackd -R -d alsa
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
no message buffer overruns
no message buffer overruns
no message buffer overruns
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
Released audio card Audio0
audio_reservation_finish
Cannot initialize driver
JackServer::Open failed with -1
Failed to open server

If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
Regards,
Deepak

I am using Mint 19.3 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

User avatar
MrEen
Level 17
Level 17
Posts: 7818
Joined: Mon Jun 12, 2017 8:39 pm

Re: Audio qjackctl does not start

Post by MrEen »

I occasionally had issues like that. See if starting it right after rebooting works.

You could also check sudo fuser -v /dev/snd/* to see if something is grabbing the sound card like speech-dispatcher or Timidity.

deepakdeshp
Level 16
Level 16
Posts: 6882
Joined: Sun Aug 09, 2015 10:00 am

Re: Audio qjackctl does not start

Post by deepakdeshp »

MrEen wrote:
Mon Nov 18, 2019 9:32 pm
I occasionally had issues like that. See if starting it right after rebooting works.

You could also check sudo fuser -v /dev/snd/* to see if something is grabbing the sound card like speech-dispatcher or Timidity.
Right after reboot it didnt work . for fuser its a nice tip but didnt work

Code: Select all

sudo fuser -v /dev/snd/*
/dev/snd/controlC0:  uma        4051 F.... pulseaudio
/dev/snd/controlC1:  uma        4051 F.... pulseaudio
(base) uma@mint-18-uma ~ $ sudo kill -9 4051
(base) uma@mint-18-uma ~ $ qjackctl
I want the sonic-pi to run for which qjackctl should be able to run.
The following command runs ok but yet I dont have a clue how I can make qjackctl to run.

Code: Select all

jackd -R -d alsa -d hw:1
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
no message buffer overruns
no message buffer overruns
no message buffer overruns
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 Audio1
creating alsa driver ... hw:1|hw:1|1024|2|48000|0|0|nomon|swmeter|-|32bit
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 2 periods for playback

If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
Regards,
Deepak

I am using Mint 19.3 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

User avatar
MrEen
Level 17
Level 17
Posts: 7818
Joined: Mon Jun 12, 2017 8:39 pm

Re: Audio qjackctl does not start

Post by MrEen »

Ohh, I get it (I think.)

Run QjackCtl, click on Start, THEN run sonic-pi.

Does that work?

QjackCtl may still require some setup, but that's almost certainly the cause of the errors in the OP.

User avatar
trytip
Level 12
Level 12
Posts: 4425
Joined: Tue Jul 05, 2016 1:20 pm

Re: Audio qjackctl does not start

Post by trytip »

do you have apt install pulseaudio-module-jack ???
Image

deepakdeshp
Level 16
Level 16
Posts: 6882
Joined: Sun Aug 09, 2015 10:00 am

Re: Audio qjackctl does not start

Post by deepakdeshp »

trytip wrote:
Tue Nov 19, 2019 9:51 am
do you have apt install pulseaudio-module-jack ???
Yes I have it.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
Regards,
Deepak

I am using Mint 19.3 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

deepakdeshp
Level 16
Level 16
Posts: 6882
Joined: Sun Aug 09, 2015 10:00 am

Re: Audio qjackctl does not start

Post by deepakdeshp »

MrEen wrote:
Tue Nov 19, 2019 8:09 am
Ohh, I get it (I think.)

Run QjackCtl, click on Start, THEN run sonic-pi.

Does that work?

QjackCtl may still require some setup, but that's almost certainly the cause of the errors in the OP.
Yes thats what I wanted to do but qjackctl didnt start as the subject says. So I changed in setup of qjackctl advanced tab to hw:generic which is hw:1. Now qjackctl starts. So I started qjackctl,THEN started sonic-pi, yet no joy.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
Regards,
Deepak

I am using Mint 19.3 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

deepakdeshp
Level 16
Level 16
Posts: 6882
Joined: Sun Aug 09, 2015 10:00 am

Re: Audio qjackctl does not start

Post by deepakdeshp »

The error when I start sonic pi after starting qjackctl is

Code: Select all

**/home/uma/.sonic-pi/log/gui.log**
```
[GUI] - using default editor colours
[GUI] - shutting down any old audio servers...
[GUI] - starting UDP OSC Server on port 4558...
[GUI] - UDP OSC Server ready and listening
[GUI] - booting live coding server
[GUI] - waiting for server to boot...
................................[GUI] - server failed to start with this error message: 
      > Server Exception:
 Boot - Unable to connect to SuperCollider
............................
[GUI] - Critical error! Could not boot server.

```


Server Errors
-------------

**/home/uma/.sonic-pi/log/server-errors.log**
```
Failed to start server: Boot - Unable to connect to SuperCollider
/usr/lib/sonic-pi/server/sonicpi/lib/sonicpi/scsynthexternal.rb:292:in `boot_and_wait'
/usr/lib/sonic-pi/server/sonicpi/lib/sonicpi/scsynthexternal.rb:392:in `boot_server_linux'
/usr/lib/sonic-pi/server/sonicpi/lib/sonicpi/scsynthexternal.rb:181:in `boot'
/usr/lib/sonic-pi/server/sonicpi/lib/sonicpi/scsynthexternal.rb:29:in `initialize'
/usr/lib/sonic-pi/server/sonicpi/lib/sonicpi/server.rb:73:in `new'
/usr/lib/sonic-pi/server/sonicpi/lib/sonicpi/server.rb:73:in `initialize'
/usr/lib/sonic-pi/server/sonicpi/lib/sonicpi/studio.rb:102:in `new'
/usr/lib/sonic-pi/server/sonicpi/lib/sonicpi/studio.rb:102:in `init_studio'
/usr/lib/sonic-pi/server/sonicpi/lib/sonicpi/studio.rb:43:in `initialize'
/usr/lib/sonic-pi/server/sonicpi/lib/sonicpi/lang/sound.rb:123:in `new'
/usr/lib/sonic-pi/server/sonicpi/lib/sonicpi/lang/sound.rb:123:in `block (2 levels) in included'
/usr/lib/sonic-pi/server/bin/sonic-pi-server.rb:99:in `new'
/usr/lib/sonic-pi/server/bin/sonic-pi-server.rb:99:in `<main>'

```


Server Output
-------------

**/home/uma/.sonic-pi/log/server-output.log**
```
Sonic Pi server booting...
Using protocol: udp
Server is exiting.
Shutting down GUI...
Goodbye :-)

```


Scsynth Output
--------------

**/home/uma/.sonic-pi/log/scsynth.log**
```
# Starting SuperCollider 2019-11-19 21:19:42
Found 0 LADSPA plugins
JackDriver: client name is 'SuperCollider'
SC_AudioDriver: sample rate = 44100.000000, driver's block size = 1024
SuperCollider 3 server ready.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
Regards,
Deepak

I am using Mint 19.3 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

User avatar
MrEen
Level 17
Level 17
Posts: 7818
Joined: Mon Jun 12, 2017 8:39 pm

Re: Audio qjackctl does not start

Post by MrEen »

I don't know anything about sonic-pi. Their website has downloads for the Pi, Windows and macOS. It is however in the default repositories (at least on my 18.3 Mint) so I guess it's supposed to work. The only review there (from last June) says it doesn't work with Mint 19.

The one thing I wondered from your outputs was this difference:

Code: Select all

     > Server Exception:
 Boot - Unable to connect to SuperCollider
vs:

Code: Select all

JackDriver: client name is 'SuperCollider'
SC_AudioDriver: sample rate = 44100.000000, driver's block size = 1024
SuperCollider 3 server ready.
What the heck is the 3 about?

You might have better luck getting appropriate help at the sonic-pi forum here: https://in-thread.sonic-pi.net/

I did see a Ubuntu 19.04 thread there.

I'm sorry I can't help any more than that. With the unknown to me software, as well as my rare use of JACK, I'm just not sure where the issue lies.

deepakdeshp
Level 16
Level 16
Posts: 6882
Joined: Sun Aug 09, 2015 10:00 am

Re: Audio qjackctl does not start

Post by deepakdeshp »

[quote=MrEen post_id=1717028

I'm sorry I can't help any more than that. With the unknown to me software, as well as my rare use of JACK, I'm just not sure where the issue lies.
[/quote]
I am thankful as you have tried to help me. I tried compiling from the source from one of the links but after some hours it gave error, adding some 3gb extra space to the HDD, so I rolled back with my CZ image.
When the server doesn't start , I get a link to open an issue at github with the developer. I will go this route and report the result, I don't have much hope though.
I have an old model of Raspberry Pi Model 2 rev 1 it's 32 bit. It doesn't work with it. While it works with Model 4 64 bit.
I have tried for 3 days without any success. Only success to show is qjackctl works now,but Sonic doesn't so qj working is of no use.
That said ,it's a lovely software offering tremendous possibilities of composing music with very simple programs and can run on cheap raspberry pi. The pi uses Debian Buster.As an audio guru you would find it very interesting.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
Regards,
Deepak

I am using Mint 19.3 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

User avatar
MrEen
Level 17
Level 17
Posts: 7818
Joined: Mon Jun 12, 2017 8:39 pm

Re: Audio qjackctl does not start

Post by MrEen »

Good luck with the developer. It did look quite interesting when I went to the website, and I may take another look at it when time allows.

Do let us know if any success comes from your raised issue.

User avatar
trytip
Level 12
Level 12
Posts: 4425
Joined: Tue Jul 05, 2016 1:20 pm

Re: Audio qjackctl does not start

Post by trytip »

Only success to show is qjackctl works now,but Sonic doesn't so qj working is of no use.
so jack does work then? the issue is not jack or qjackctl and you are confusing the issue with connections, you need to be specific and do some research on how to connect your audio apps to jack.

so what's the real issue? does you app support jackaudio? audacious and smplayer do for example so does vlc.

Image

Image
Image

deepakdeshp
Level 16
Level 16
Posts: 6882
Joined: Sun Aug 09, 2015 10:00 am

Re: Audio qjackctl does not start

Post by deepakdeshp »

I want that sonic-pi should run that's my goal. For that qjackctl running is pre requisite. It runs now but sonic-pi doesn't.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
Regards,
Deepak

I am using Mint 19.3 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

deepakdeshp
Level 16
Level 16
Posts: 6882
Joined: Sun Aug 09, 2015 10:00 am

Re: Audio qjackctl does not start

Post by deepakdeshp »

Sonic pi just works in Windows 10, no configuration was required. But I hardly logon to Win and would like it to run in Mint.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
Regards,
Deepak

I am using Mint 19.3 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

User avatar
trytip
Level 12
Level 12
Posts: 4425
Joined: Tue Jul 05, 2016 1:20 pm

Re: Audio qjackctl does not start

Post by trytip »

i see you're going to make me download and install this sonic app and test it huh, i know nothing about it but have you at least gone through the issues at the developer page? https://github.com/samaaron/sonic-pi/issues where all the issues should be reported, not here? is this thing a midi synth a sequencer that needs another audio app for it to work or is it stand alone? also are you sure you need it to work with jackaudio? many apps like audacious can work with alsa or jack or other output plugins.

Image

you should not assume that any user here knows anything about what you are trying to do. well this weekend i'll have time to build it and test it, see what it is and what it does.
Image

deepakdeshp
Level 16
Level 16
Posts: 6882
Joined: Sun Aug 09, 2015 10:00 am

Re: Audio qjackctl does not start

Post by deepakdeshp »

trytip wrote:
Wed Nov 20, 2019 9:30 am
i see you're going to make me download and install this sonic app and test it huh, i know nothing about it but have you at least gone through the issues at the developer page? https://github.com/samaaron/sonic-pi/issues where all the issues should be reported, not here? is this thing a midi synth a sequencer that needs another audio app for it to work or is it stand alone? also are you sure you need it to work with jackaudio? many apps like audacious can work with alsa or jack or other output plugins

My system is Mint 19.2 Cinnamon. I installed sonic packages from the Mint repositories. The packages I installed are

Code: Select all

sonic                sonic-pi-samples     sonic-pi-server-doc
sonic-pi             sonic-pi-server      sonic-visualiser
the sonic-pi-server-doc is installed but am not sure how to access the docs on the system.

There is a thread open at Sonic forums which explains what all I have done too.
https://in-thread.sonic-pi.net/t/sonic- ... os/2933/10
I have dropped the idea of runnig Sonic on Raspberry as my Raspberry Pi doesnt have good enough hardware to run it. Hence I am concentrating on Sonic on Mint 19.2.
If indeed you install sonic on your machine and test, it will be great. I dont know anything on the audio front and the terms. Sonic is my effort to learn it.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
Regards,
Deepak

I am using Mint 19.3 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

User avatar
MrEen
Level 17
Level 17
Posts: 7818
Joined: Mon Jun 12, 2017 8:39 pm

Re: Audio qjackctl does not start

Post by MrEen »

Well I went ahead and installed and ran it. On my 18.3 Xfce system, I got the 2.9 version of sonic-pi.

I went ahead and ran it without starting QJackCtl first. Errors galore, and closing sonic-pi didn't stop a log file from continually increasing in size. A quick check of top showed ruby running so I did killall ruby, fired up QJackCtl and clicked on Start. Once that was running I restarted sonic-pi and it works!

I ran pactl list modules short to see what jack stuff was there and here is the output:

Code: Select all

scott@scott-HP ~ $ pactl list modules short
0	module-device-restore		
1	module-stream-restore		
2	module-card-restore		
3	module-augment-properties		
4	module-switch-on-port-available		
5	module-udev-detect		
6	module-alsa-card	device_id="0" name="pci-0000_00_01.1" card_name="alsa_card.pci-0000_00_01.1" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1"	
8	module-alsa-card	device_id="2" name="pci-0000_00_14.2" card_name="alsa_card.pci-0000_00_14.2" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1"	
9	module-alsa-card	device_id="1" name="platform-snd_aloop.0" card_name="alsa_card.platform-snd_aloop.0" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1"	
10	module-jackdbus-detect	channels=2	
11	module-bluetooth-policy		
12	module-bluetooth-discover		
13	module-bluez5-discover		
14	module-native-protocol-unix		
15	module-gconf		
16	module-default-device-restore		
17	module-rescue-streams		
18	module-always-sink		
19	module-intended-roles		
20	module-suspend-on-idle		
21	module-systemd-login		
22	module-position-event-sounds		
23	module-filter-heuristics		
24	module-filter-apply		
25	module-cli-protocol-unix		
28	module-jack-sink	connect=yes channels=2	
29	module-jack-source	connect=yes channels=2	
You might want to see if yours is similar when trying to run sonic-pi.

Also, check sudo fuser -v /dev/snd/* for output similar to this:

Code: Select all

scott@scott-HP ~ $ sudo fuser -v /dev/snd/*
[sudo] password for scott: 
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  scott      2122 F.... pulseaudio
/dev/snd/controlC1:  scott      2122 F.... pulseaudio
/dev/snd/controlC2:  scott      2122 F.... pulseaudio
                     scott      7755 F.... jackdbus
/dev/snd/pcmC2D0c:   scott      7755 F...m jackdbus
/dev/snd/pcmC2D0p:   scott      7755 F...m jackdbus
/dev/snd/seq:        scott     29300 F.... qjackctl
                     scott     29322 F.... a2jmidid
Hope that might help a little.

Post Reply

Return to “Software & Applications”