Page 1 of 1
Ubuntu studio - jack audio issue
Posted: Mon May 15, 2023 1:38 am
by smokinjo
I have instaled ubuntu studio to try make it easier to have all the linux music toolsall installed.
I have decided to learn rosegarden.
But, lately I get the followng message:
The JACK Audio subsystem has stopped Rosegarden from processing audio, probably because of an overload.
An attempt to restart the audio service has been made, but some problems still remain.
Quitting other running application might improve Rosegarden's performance.
The message pops up right after the computer boots up.
The only thing running is rosegarden and firefox.
What might be causing this issue?
I can basically not use rosegarden because no sound comes out.
The only thing running is firefox.
Thanks for ideas.
Joseph
Re: Ubuntu studio - jack audio issue
Posted: Mon May 15, 2023 6:39 am
by tavasti
How you start Jack? What kind of config?
Re: Ubuntu studio - jack audio issue
Posted: Mon May 15, 2023 8:27 am
by Linuxmusician01
tavasti wrote: ↑Mon May 15, 2023 6:39 am
How you start Jack? What kind of config?
Maybe he uses PipeWire which is emulating Jack. Or maybe both with one "pestering" the other.
@smokinjo: What Linux distribution do you use and which version? Do you already know what PipeWire and Jack are?
Re: Ubuntu studio - jack audio issue
Posted: Mon May 15, 2023 10:14 pm
by smokinjo
Hi
I am using Ubuntu Studio.
I do not recall installing JACK, and I do not know what the config of it is.
JACK seems to auto start upon boot up.
Thanks for the questions.
Joseph
Re: Ubuntu studio - jack audio issue
Posted: Tue May 16, 2023 8:42 am
by tavasti
smokinjo wrote: ↑Mon May 15, 2023 10:14 pm
Hi
I am using Ubuntu Studio.
I do not recall installing JACK, and I do not know what the config of it is.
JACK seems to auto start upon boot up.
Thanks for the questions.
Joseph
Now question is that is that started on boot or is rosegarden starting it.
Re: Ubuntu studio - jack audio issue
Posted: Tue May 16, 2023 9:55 am
by Linuxmusician01
tavasti wrote: ↑Tue May 16, 2023 8:42 am
smokinjo wrote: ↑Mon May 15, 2023 10:14 pm
Hi
I am using Ubuntu Studio.
I do not recall installing JACK, and I do not know what the config of it is.
JACK seems to auto start upon boot up.
Thanks for the questions.
Joseph
No question is that is that started on boot or is rosegarden starting it.
So no Pipewire?
@smokinjo: which version of Ubuntu Studio? PipeWire is relatively new. So depending on your U. Studio version PW might not have been installed or a somewhat older version that people here don't use.
Anyway, to test if Jackaudio (if it is started at all instead of PipeWire) is the problem one might try the following. First stop the current instance of Jack:
Then start Jack with standard options (i.e. nothing special!) like so:
That is, if you have one audio device in your computer which will be number zero (hw:0). The second audio device will be hw:1 andsoforth.
Re: Ubuntu studio - jack audio issue
Posted: Thu May 18, 2023 2:42 am
by smokinjo
I have Ubuntu Studio 22.04
I tried killing ll jack related software.
It did not seem have have an affect. After I killed it it still did not work.
I did however close firefix, which I had done in th epast, and the music came pack.
Strange to say is that when opening firefox again the music did nto go away.
I did note another thing that is bugging me. When firefox is open at the same time as rosegarden youtube can display, but never play a video It hangs until I turn off Rosegarden.
Maybe the issues are related?
Thanks for any feedback.
Joseph
Re: Ubuntu studio - jack audio issue
Posted: Thu May 18, 2023 6:46 am
by tavasti
smokinjo wrote: ↑Thu May 18, 2023 2:42 am
I have Ubuntu Studio 22.04
I tried killing ll jack related software.
It did not seem have have an affect. After I killed it it still did not work.
I did however close firefix, which I had done in th epast, and the music came pack.
Strange to say is that when opening firefox again the music did nto go away.
I did note another thing that is bugging me. When firefox is open at the same time as rosegarden youtube can display, but never play a video It hangs until I turn off Rosegarden.
Maybe the issues are related?
That sounds like you have jack and pulseaudio, and they aren't configured. My suggestion:
Code: Select all
sudo apt install qjackctl pulseaudio-module-jack
Start qjackctl, open setup->Misc. Selelect D-Bus and jack D-bus enabled. Start jack.
After that you might have audio form firefox and jack programs working. HTH,
Re: Ubuntu studio - jack audio issue
Posted: Thu May 18, 2023 12:36 pm
by Linuxmusician01
smokinjo wrote: ↑Thu May 18, 2023 2:42 am
[...]
I did note another thing that is bugging me. When firefox is open at the same time as rosegarden youtube can display, but never play a video It hangs until I turn off Rosegarden.
Maybe the issues are related?
[...]
I don't use Ubuntu Studio. I always use a distro that is used by many, many people around the world so I can ask. What you describe might be an Ubuntu Studio problem, might be a PipeWire problem (if U.S. uses that, which I still don't know) might be a Rosegarden problem. Rosegarden appears to use JackAudio per definition tho.
For my own reference, the error to be solved is this one:
Code: Select all
The JACK Audio subsystem has stopped Rosegarden from processing audio, probably because of an overload.
An attempt to restart the audio service has been made, but some problems still remain.
Quitting other running application might improve Rosegarden's performance.
I do not know what that cryptic error message means. Has Jack crashed? Is your computer too old to run Firefox and Rosegarden at the same time?
Good luck puzzeling. I'd start w/ asking a Rosegarden expert if I were you. 
Re: Ubuntu studio - jack audio issue
Posted: Fri May 19, 2023 1:26 am
by smokinjo
@tavasti
Thansk for the idea to look at qjackctl.
Neither of the two items you mentioned were enabled. I turned them on, and things seem to be working for now.
@linuxmusician I had the great ambition of just installing ubuntu and adding the carious software that i would need. But, I had(stillhave) no idea what all the options out there are, and then on top of it trying to install all the pieces to make it work.
Ubuntu Studio works, for the most part, and installs many of the audio development software out there, so it is easy to select.
One day, when I kind of know what I am doing, then I will venture out and build my own linux studio, but for now, I want to find less with installation and trying learning how to use the actual software:)
Thanks again.
I will go dabble a little more and come back with more questions:)
Joseph
Re: Ubuntu studio - jack audio issue
Posted: Fri May 19, 2023 12:20 pm
by Linuxmusician01
smokinjo wrote: ↑Fri May 19, 2023 1:26 am
[...]
@linuxmusician I had the great ambition of just installing ubuntu and adding the carious software that i would need. But, I had(stillhave) no idea what all the options out there are, and then on top of it trying to install all the pieces to make it work.
Ubuntu Studio works, for the most part, and installs many of the audio development software out there, so it is easy to select.
[...]
I always say the opposite, funny ain't it? I advice people to not use "special" distro's that make things easy for you (like Windows) becuase you don't know how it works under the hood. I advice "specialized" distro's for experienced users. Your average basic (X)Ubuntu or Debian make it very easy to install stuff. Either via the good old command 'sudo apt-get install' or a fancy shmancy graphical installer. Jack is installed in heartbeat. And you can start it yourself. If I were a beginner I'd never ever let some piece of software like Rosegarden or Ubuntu Studio start Jack for me: no idea whatsoever how they configured Jack. Jack should always work just fine if your computer is fast enough and has only one audio device (or: audio card, or: audio chip in your PC) with:
They can't make it any easier than that for us. Remeber that in Windows you have to fiddle too, w/ AISIO (or whatever it's called, I don't use Windows). Audio is a bit of a pitfall. People think it's easier than it is.
My final advice: make sure nothing is started automatically, not Jack, not Firefox and not Rosegaren. Nothing! Then start Jack yourself then start Roegarden.
This is how the Status window of QJackCtl looks on my modest machine after starting Jack with aforementioned command:

Re: Ubuntu studio - jack audio issue
Posted: Fri May 19, 2023 12:28 pm
by Linuxmusician01
Re: Ubuntu studio - jack audio issue
Posted: Wed May 24, 2023 6:21 am
by RyanH
I can be of only limited help here because I don't understand much, lol, but I use Ubuntu Studio 22.04. Maybe this can help someone else home in on a solution.
When I boot up my system, Jack doesn't start automatically, but the following processes do auto-start:
-autojack
-autojack-start
-pipewire
-pipewire-media-session
-pulseaudio
In Ubuntu Studio 22.04, the user doesn't interact with Pipewire at all - I only know that some part of it is installed from looking at System Monitor. I interact with Pulse, ALSA (when necessary), and Jack (after I've started it with QjackCtl). I don't know what autojack is.
I've never used Rosegarden and don't have it installed, so can't speak to that specifically. I'm pretty sure, though, that I never uninstalled it - I don't think it came with the distro.
One other thing I can say is that, in the default Ubuntu Studio setup, when Jack is started, Youtube videos won't play in Firefox. Not just the audio - pressing Play makes the video window jitter for a split second and then nothing happens. Stopping Jack allows it to play. I did get them to work simultaneously somehow using one of QjackCtl's d-bus options, but can't remember how.
@smokinjo did you install Rosegarden yourself, and, if so, do you remember if you had a video playing in Firefox as you were installing it? Maybe the system got confused during installation and that has caused this issue. I know that I've had lots of similarly weird issues with 22.04 (which I didn't have with 20.04 - which had no Pipewire anything).
Re: Ubuntu studio - jack audio issue
Posted: Mon May 29, 2023 11:35 pm
by thetotalchaos
smokinjo wrote: ↑Mon May 15, 2023 1:38 am
....The only thing running is firefox.
Thanks for ideas.
Joseph
Maybe Firefox is trying to connect to Jack natively. Firefox can do that, but it really sucks at it! The fact that Ubuntu is using a snap version of Firefox is making it even worse. In my experience, Epiphany browser is more jack-server-friendly.