sunvox and qjackctl crashing (rpi3)

Found a bug? Post it here.
Post Reply
TheMonopluralist
Posts: 48
Joined: Tue Jul 04, 2017 12:40 am

sunvox and qjackctl crashing (rpi3)

Post by TheMonopluralist » Sun Oct 15, 2017 2:28 am

Not sure where the root of this problem lies, would love to find a way round it...

SYMPTOMS & INFO:
-- I have had sunvox installed on a few different raspbian OS installs on different microSD cards, and have found similar behaviour quite a few times. I assumed it was down to something I had done, so decided to do fresh installs of raspbian stretch, and raspbian stretch lite, on different cards. And noticed with even the most minimal install I was still getting the same behaviour.
-- I am using the "official raspberry pi 7-inch touchscreen" and a raspberry pi 3, along with a Behringer UCA222 USB sound card.
-- The problem is, despite going through many tutorials and changing every setting I can think of changing, when I try to use qjackctl to route the audio (and set sunvox to use JACK for audio) it pretty much invariably crashes/hangs after a short while of working fine, leaving sunvox producing no sound. Sunvox also appears to "hang" in that although I can interact with it in most ways it will not play any more sound, or respond to any note input, and although I can choose shutdown via the menu, or hit the x in the top right and it will offer me the option to "exit to OS", the GUI remains firmly visible until I close down the terminal I used to start it (I am used to this now, and it is really a side-issue I guess).
-- I have tried this without any MIDI controllers set up, as I had originally thought they might be part of the problem, but the symptoms are still the same.
-- Although it happens under minimal theoretical strain (even using only one basic generator module will only work for a few minutes at best) I find it happens straight away EVERY time I try to choose load from the modules menu and preview an additional instrument.
-- The audio outputs a repeated "click" noise every second or two once it has crashed, until I select "stop" in the qjackctl controls.
-- With Sunvox's Audio preferences set to use ALSA (with all other audio settings set to "default", the problem does not seem to occur. Of course, that means I am stuck using ALSA, when I would rather use JACK.
-- I am aware that this may just be user error, but I am totally stumped and my lack of knowledge doesn't really help. It is noteworthy that others have used raspbian stretch with qjackctl, sunvox, and a behringer USB interface without seemingly having the problems I am having. I also had these problems in raspbian jessie, but figured I would hope they went away with a clean install of stretch or stretch lite, but sadly they did not.

--------------------------------------------------------------

qjacklctl messages: (annotated with #'s)
# the next few lines had happened a few times with no apparent problem
22:02:42.021 JACK connection graph change.
22:02:42.143 JACK active patchbay scan...
22:02:42.147 jack1: system:capture_1 -> SunVox:Left In checked.
22:02:42.149 jack1: system:capture_2 -> SunVox:Right In checked.
22:02:42.152 jack1: SunVox:Left Out -> system:playback_1 checked.
22:02:42.154 jack1: SunVox:Right Out -> system:playback_2 checked.
#problem seems to start somewhere here
22:03:06.552 XRUN callback (1).
22:03:07.871 XRUN callback (109 skipped).
22:03:09.883 XRUN callback (167 skipped).
22:03:11.896 XRUN callback (167 skipped).
22:03:13.912 XRUN callback (167 skipped).
22:03:15.926 XRUN callback (167 skipped).
22:03:17.938 XRUN callback (166 skipped).
22:03:19.953 XRUN callback (167 skipped).
22:03:21.965 XRUN callback (167 skipped).
22:03:23.977 XRUN callback (166 skipped).
22:03:25.992 XRUN callback (167 skipped).
22:03:28.006 XRUN callback (167 skipped).
22:03:30.020 XRUN callback (166 skipped).
22:03:32.032 XRUN callback (167 skipped).
22:03:34.046 XRUN callback (167 skipped).
22:03:36.067 XRUN callback (167 skipped).
22:03:38.080 XRUN callback (167 skipped).
22:03:40.094 XRUN callback (167 skipped).
22:03:42.108 XRUN callback (166 skipped).
22:03:44.121 XRUN callback (167 skipped).
22:03:46.134 XRUN callback (167 skipped).
22:03:48.170 XRUN callback (168 skipped).
22:03:50.183 XRUN callback (167 skipped).
22:03:52.198 XRUN callback (167 skipped).
22:03:54.213 XRUN callback (167 skipped).
22:03:56.231 XRUN callback (167 skipped).
22:03:57.215 Client deactivated.
#tried stopping JACK via qjackctl here
22:03:57.224 JACK is stopping...
JackPosixProcessSync::LockedTimedWait error usec = 232180 err = Connection timed out
JackEngine::ClientDeactivate wait error ref = 2 name = qjackctl
JackPosixProcessSync::LockedTimedWait error usec = 46436 err = Connection timed out
JackEngine::ClientCloseAux wait error ref = 2
Jack main caught signal 15
22:04:02.871 JACK is stopping...
22:04:19.633 JACK is stopping...
22:04:19.692 ALSA connection graph change.
22:04:19.701 JACK was stopped
22:04:19.705 JACK has crashed.
22:04:19.735 ALSA active patchbay scan...
22:04:19.742 ALSA connection graph change.
22:04:19.939 ALSA active patchbay scan...


--------------------------------------------------------------

Sunvox terminal text:
pi@raspberrypi:~ $ /home/pi/sunvox/sunvox/linux_arm_armhf_raspberry_pi/sunvox
Language: en_GB.UTF-8
SunDog Engine / Nov 4 2016 06:59:13
WM: device start
WM: screen_zoom = 1
WM: screen_ppi = 110
WM: screen_scale = 384 / 256
WM: screen size = 800 x 480
WM: flags SCALABLE OPTIMIZE_MOVE_EVENTS FRAMEBUFFER
WM: system palette init...
WM: initialized
Audio buffer size: 2048 frames
Stack ptr: 0
Cannot read socket fd = 7 err = Success
CheckRes error
JackSocketClientChannel read fail

--------------------------------------------------------------

Post Reply