View previous topic :: View next topic |
Author |
Message |
DeIM Guru
Joined: 11 Apr 2006 Posts: 429
|
Posted: Tue Dec 22, 2020 2:24 pm Post subject: jack2 many Xruns suddenly |
|
|
Hi,
I'm using jack2 with pulseaudio bridge several months without problems.
Suddenly now I booted PC and sound was with breaks, so cause I didn't find reason I rebooted.
Now I have problems to run Jack as usual:
I have Cadence autostart after login, then I clicked Start (to start Jack) and then on JACK Bridges PulseAudio Card - Start.
It worked fine till now.
Now I get 3 Xruns every second.
Thanks in advance |
|
Back to top |
|
|
DeIM Guru
Joined: 11 Apr 2006 Posts: 429
|
Posted: Tue Dec 22, 2020 8:06 pm Post subject: |
|
|
Maybe DBus problem? I upgraded system to python3.8 (standard portage system, world update)
Code: | $ cadence
Using Tray Engine 'Qt'
/usr/bin/python3.8 /usr/share/cadence/src/logs.py &
JackSettingsW::saveServerSettings() - Cannot save clock-source value
/usr/bin/python3.8 /usr/share/cadence/src/logs.py &
Traceback (most recent call last):
File "/usr/share/cadence/src/cadence.py", line 1682, in slot_JackServerConfigure
jacksettingsW = jacksettings.JackSettingsW(self)
File "/usr/share/cadence/src/jacksettings.py", line 205, in __init__
driverList = gJackctl.ReadContainer(["drivers"])[1]
File "/usr/lib/python3.8/site-packages/dbus/proxies.py", line 141, in __call__
return self._connection.call_blocking(self._named_service,
File "/usr/lib/python3.8/site-packages/dbus/connection.py", line 652, in call_blocking
reply_message = self.send_message_with_reply_and_block(
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. |
log:
Code: | Tue Dec 22 20:52:45 2020: Starting jack server...
Tue Dec 22 20:52:45 2020: JACK server starting in realtime mode with priority 10
Tue Dec 22 20:52:45 2020: self-connect-mode is "Don't restrict self connect requests"
Tue Dec 22 20:52:46 2020: Acquired audio card Audio1
Tue Dec 22 20:52:46 2020: creating alsa driver ... hw:ICUSBAUDIO7D,0|hw:ICUSBAUDIO7D,0|1024|2|48000|0|0|hwmon|hwmeter|-|32bit
Tue Dec 22 20:52:46 2020: configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
Tue Dec 22 20:52:46 2020: ALSA: final selected sample format for capture: 16bit little-endian
Tue Dec 22 20:52:46 2020: ALSA: use 2 periods for capture
Tue Dec 22 20:52:46 2020: ALSA: final selected sample format for playback: 16bit little-endian
Tue Dec 22 20:52:46 2020: ALSA: use 2 periods for playback
Tue Dec 22 20:52:51 2020: ERROR: JackPosixProcessSync::LockedTimedWait error usec = 5000000 err = Connection timed out
Tue Dec 22 20:52:51 2020: ERROR: Driver is not running
Tue Dec 22 20:52:51 2020: ERROR: Cannot open client name = dbusapi
Tue Dec 22 20:52:51 2020: ERROR: failed to create dbusapi jack client
Tue Dec 22 20:52:51 2020: ERROR: Unknown request 4294967295
Tue Dec 22 20:52:51 2020: ERROR: CheckSize error size = 0 Size() = 12
Tue Dec 22 20:52:51 2020: ERROR: CheckRead error |
|
|
Back to top |
|
|
DeIM Guru
Joined: 11 Apr 2006 Posts: 429
|
Posted: Tue Dec 22, 2020 9:15 pm Post subject: |
|
|
Seem HW problem - I used USB Sound Card and this is in dmesg now (didn't notice before):
Code: | [22466.149893] usb 3-12.1: new full-speed USB device number 12 using xhci_hcd
[22466.228508] usb 3-12.1: New USB device found, idVendor=0d8c, idProduct=0102, bcdDevice= 0.10
[22466.228510] usb 3-12.1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[22466.228511] usb 3-12.1: Product: USB Sound Device
[22466.234356] usb 3-12.1: current rate 30464 is different from the runtime rate 96000
[22466.236295] usb 3-12.1: Warning! Unlikely big volume range (=8065), cval->res is probably wrong.
[22466.236297] usb 3-12.1: [9] FU [Mic Playback Volume] ch = 2, val = -6144/1921/1
[22466.237012] usb 3-12.1: Warning! Unlikely big volume range (=8065), cval->res is probably wrong.
[22466.237014] usb 3-12.1: [11] FU [Line Playback Volume] ch = 2, val = -6144/1921/1
[22466.239453] usb 3-12.1: Warning! Unlikely big volume range (=6928), cval->res is probably wrong.
[22466.239455] usb 3-12.1: [8] FU [Mic Capture Volume] ch = 2, val = -4096/2832/1
[22466.240227] usb 3-12.1: Warning! Unlikely big volume range (=6928), cval->res is probably wrong.
[22466.240228] usb 3-12.1: [15] FU [Line Capture Volume] ch = 2, val = -4096/2832/1
[22466.240944] usb 3-12.1: Warning! Unlikely big volume range (=6928), cval->res is probably wrong.
[22466.240945] usb 3-12.1: [2] FU [PCM Capture Volume] ch = 2, val = -4096/2832/1
[22466.241716] input: USB Sound Device as /devices/pci0000:00/0000:00:14.0/usb3/3-12/3-12.1/3-12.1:1.3/0003:0D8C:0102.0009/input/input21
[22466.293032] hid-generic 0003:0D8C:0102.0009: input,hidraw0: USB HID v1.00 Device [USB Sound Device ] on usb-0000:00:14.0-12.1/input3 |
Integrated Sound Card works with no Xruns.
It's from China shop - using quality chip but it's possible it's wrong after just several months :-/
Have another with same chip but quality brand. I'll test it soon if it's OK.
(also noticed in log I posted before:)
Code: | Tue Dec 22 20:52:51 2020: ERROR: Driver is not running |
What scares me - alsamixer on this "wrong" card works OK. |
|
Back to top |
|
|
neyuru Apprentice
Joined: 21 Mar 2020 Posts: 191
|
Posted: Wed Dec 23, 2020 1:42 am Post subject: |
|
|
As you pointed out, probably the problem lies in the USB sound card. Polling a USB audio device has a greater distance (or has less priority/bandwidth/etc on a system's buses) compared to a Pcie attached sound card (or the built in sound card). Ultimately what this means is that the USB device can't catch up with the CPU polling. You could increment the buffer size and/or periods/buffer in Cadence until you see no xruns with the USB audio device attached. This will be always be higher than with no USB attached. Unless (maybe) if the audio device is of high quality and is able to communicate with the PC at good enough speeds. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|