xruns in Reaper (via Jack) when pulse audio bridge is enabled

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

Post Reply
User avatar
lilith
Established Member
Posts: 1698
Joined: Fri May 27, 2016 11:41 pm
Location: bLACK fOREST
Has thanked: 117 times
Been thanked: 57 times
Contact:

xruns in Reaper (via Jack) when pulse audio bridge is enabled

Post by lilith »

Don't know if this is a Reaper issue or something else or even an issue at all. It's not a problem as the xruns are not audible, but I never observed them and like to know the reason. When using Renoise with Jack (Cadence), everything is fine. I rarely get a xrun with Renoise, but with Reaper I get a lot of xruns, but only when the Pulse audio bridge in Cadence is started. There's no sound played through Pulse, so that makes absolutely no sense to me. The xruns can be triggered when changing the position of the playhead in reaper for instance. But what has Reaper to do with pulse audio?

I've seen that pulse is running with RT priority of 9 while Reaper is running with 70 and some U-he plugins (in Reaper) even with 95.

Code: Select all

30 02:48:38 2019: Connecting 'REAPER:out1' to 'system:playback_1'
Sun Jun 30 02:48:38 2019: Connecting 'REAPER:out2' to 'system:playback_2'
Sun Jun 30 02:48:38 2019: Connecting 'system:capture_1' to 'REAPER:in1'
Sun Jun 30 02:48:38 2019: Connecting 'system:capture_2' to 'REAPER:in2'
Sun Jun 30 02:48:40 2019: ERROR: JackEngine::XRun: client = REAPER was not finished, state = Running
Sun Jun 30 02:48:40 2019: ERROR: JackEngine::XRun: client = PulseAudio JACK Source was not finished, state = Running
Sun Jun 30 02:48:40 2019: ERROR: JackEngine::XRun: client = PulseAudio JACK Sink was not finished, state = Running
Sun Jun 30 02:48:40 2019: ERROR: JackAudioDriver::ProcessGraphAsyncMaster: Process error
Sun Jun 30 02:48:46 2019: ERROR: JackEngine::XRun: client = PulseAudio JACK Source was not finished, state = Triggered
Sun Jun 30 02:48:46 2019: ERROR: JackEngine::XRun: client = PulseAudio JACK Sink was not finished, state = Running
Sun Jun 30 02:48:46 2019: ERROR: JackAudioDriver::ProcessGraphAsyncMaster: Process error
Sun Jun 30 02:54:04 2019: ERROR: JackEngine::XRun: client = PulseAudio JACK Source was not finished, state = Triggered
Sun Jun 30 02:54:04 2019: ERROR: JackEngine::XRun: client = PulseAudio JACK Sink was not finished, state = Triggered
Sun Jun 30 02:54:04 2019: ERROR: JackAudioDriver::ProcessGraphAsyncMaster: Process error
Sun Jun 30 02:54:05 2019: ERROR: JackEngine::XRun: client = PulseAudio JACK Source was not finished, state = Triggered
Sun Jun 30 02:54:05 2019: ERROR: JackEngine::XRun: client = PulseAudio JACK Sink was not finished, state = Triggered
Sun Jun 30 02:54:05 2019: ERROR: JackAudioDriver::ProcessGraphAsyncMaster: Process error
User avatar
bluebell
Established Member
Posts: 1910
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 111 times
Been thanked: 116 times

Re: xruns in Reaper (via Jack) when pulse audio bridge is enabled

Post by bluebell »

How is the CPU-usage (top)? How is the realtime CPU load (jack_cpu_load) for each DAW? Is there a difference?

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

User avatar
lilith
Established Member
Posts: 1698
Joined: Fri May 27, 2016 11:41 pm
Location: bLACK fOREST
Has thanked: 117 times
Been thanked: 57 times
Contact:

Re: xruns in Reaper (via Jack) when pulse audio bridge is enabled

Post by lilith »

bluebell wrote:How is the CPU-usage (top)? How is the realtime CPU load (jack_cpu_load) for each DAW? Is there a difference?
I don't think so, but I will look the next days. Too hot today, even for sitting infront of the PC . I think the Renoise project used more CPU. When Pulse audio bridge is off I don"t get any single xrun.
User avatar
lilith
Established Member
Posts: 1698
Joined: Fri May 27, 2016 11:41 pm
Location: bLACK fOREST
Has thanked: 117 times
Been thanked: 57 times
Contact:

Re: xruns in Reaper (via Jack) when pulse audio bridge is enabled

Post by lilith »

The Reaper Project has a Jack CPU load of 10% and the Renoise project around 30%. I tested an Ardour project that has 40% and also no xruns there. Must be reaper specific. It's for sure not a "real" xrun as it's also not audible and not related to CPU usage.
User avatar
lilith
Established Member
Posts: 1698
Joined: Fri May 27, 2016 11:41 pm
Location: bLACK fOREST
Has thanked: 117 times
Been thanked: 57 times
Contact:

Re: xruns in Reaper (via Jack) when pulse audio bridge is enabled

Post by lilith »

Found out some more things. I made a short test and recorded the result (vimeo link, see below).
Reaper is running through Jack (Cadence) and the Pulse Audio Bridge is enabled in Cadence. When I minimize the master volume in Reaper and play something through Chromium I get pulse audio xruns when I move the play head in Reaper. The RT CPU usage of that project is ~9% only.
Image

https://vimeo.com/345774754
User avatar
lilith
Established Member
Posts: 1698
Joined: Fri May 27, 2016 11:41 pm
Location: bLACK fOREST
Has thanked: 117 times
Been thanked: 57 times
Contact:

Re: xruns in Reaper (via Jack) when pulse audio bridge is enabled

Post by lilith »

This!!: https://www.youtube.com/watch?v=-m30aaI5Yf8

I increased the buffer size to 1056 samples and all is fine! I guess I'm just hitting (again!) what's possible with my settings and CPU. Also changing the playhead position seems to increase the CPU load a lot for a very short time, causing a xrun. I also loaded an older project from last year and it played fine with 528 samples, however this project used not so many demanding VSTs like U-he DIVA or Repro.

Seems that even when RT CPU load is only ~20% it can exceed ~95% for short times and these spikes are not seen in the CPU load of Jack or Reaper as it's strongly averaged.

See also this thread: viewtopic...average#p99669

Next PC I buy will be an I7 and at least 16 GB RAM if not 32 GB.
__________________
Post Reply