Shadow_7
Posts: 39
Joined: Sat Jul 12, 2014 5:50 am

jackdbus crashing regularly in raspbian after update.

Thu Aug 09, 2018 4:16 am

On a RPi 3B+, running raspbian. It was fine in april, but I updated it and now the audio system (pulse over jack) crashes about every 30 minutes of use. It'll idle fine, only after 30-ish minutes of use. Various things seem to affect that time, most of it being network related. The mikrotik 750 hex v3 in router mode and it crashes in about 15 minutes. In bridge mode it crashes in about 30 minutes. Playing audio from two laptops and about 20-ish minutes. It's kind of bizarre, and I have to "kill -9 $(pgrep jackdbus)" to recover it without a reboot. The usual jack_control methods fail until that step after the failure.

What are the usable options for images for the 3B+? I tried the ubuntu-mate 16.04 one and it wont even boot. I'd normally go the arch route when faced with issues like this, but I didn't see an option for that from the download page. It's an RPi 3B+ with the official touchscreen via canokit + screen + case. I added the heat syncs now, maybe that'll help (doubt it). It wasn't an issue before I updated. I'm annoyed enough at this point to try another distro. Probably not enough for debian armel/armhf like I was on the RPi B (v1, non-plus). P.S. the cover for the touchscreen case doesn't fit the 3B+, but it fits fine without the cover. And the premium case from the canokit doesn't fit either. But I got those shortly after release.

Shadow_7
Posts: 39
Joined: Sat Jul 12, 2014 5:50 am

Re: jackdbus crashing regularly in raspbian after update.

Thu Aug 09, 2018 4:48 am

I was hopeful at least. It seems that the heat syncs did help. But it died at about 50 minutes this time around. One 36 min video and about 14 min into another.

Shadow_7
Posts: 39
Joined: Sat Jul 12, 2014 5:50 am

Re: jackdbus crashing regularly in raspbian after update.

Thu Aug 09, 2018 5:41 am

Or not. I added a fan blowing on it, and it died at about 37 minutes. A fresh install or a new distro seems in order at the moment.

Shadow_7
Posts: 39
Joined: Sat Jul 12, 2014 5:50 am

Re: jackdbus crashing regularly in raspbian after update.

Thu Aug 09, 2018 11:14 am

And of course raspbian does NOT include a libdbus-dev so I can compile it myself from source. Perhaps it is time for debian armhf.

User avatar
rpdom
Posts: 12660
Joined: Sun May 06, 2012 5:17 am
Location: Ankh-Morpork

Re: jackdbus crashing regularly in raspbian after update.

Thu Aug 09, 2018 12:23 pm

Which libdbus have you got installed? I think the current package for Raspbian is libdbus-1-3 and the dev version is libdbus-1-dev which is available in Raspbian.

Shadow_7
Posts: 39
Joined: Sat Jul 12, 2014 5:50 am

Re: jackdbus crashing regularly in raspbian after update.

Thu Aug 09, 2018 1:28 pm

So there is. After going old school with apt-file update and installing dselect with dselect update. When searching via dpkg-query --load-avail -l anyway. Odd that it wasn't showing up before. I still find raspbian way more annoying than debian. Just the kernel with nfs IN the kernel so there's 2x+ more ps outputs for stuff I don't even use. Anyways, to the source route.

And from source now, although no clear way to output versioning to tell if I'm using my source version or the distro provided one. More than an hour till the end of this podcast, so I guess if it doesn't fail then I'm likely on my source version. If it does fail, it could be either I guess. Oddly the update that made it annoying didn't update jackdbus.

Shadow_7
Posts: 39
Joined: Sat Jul 12, 2014 5:50 am

Re: jackdbus crashing regularly in raspbian after update.

Thu Aug 09, 2018 8:57 pm

It failed of course. But it took an hour-ish, and 45-ish on subsequent fails. So it's "better". In for an ounce in for pound, so I've also compiled pulseaudio from source, so we'll see how this works. It's frustrating in that it previously worked, until an update. And jackdbus or pulseaudio were not part of that update.

Shadow_7
Posts: 39
Joined: Sat Jul 12, 2014 5:50 am

Re: jackdbus crashing regularly in raspbian after update.

Fri Aug 10, 2018 8:59 am

I gave up on that install. With the source compile it was better, but still consistently crashed hourly (better than bi-hourly). So onto a fresh raspbian lite install beefed up to roughly the same purpose. Less the printer stuff for now. Hopefully it's without the issue. I did do the rpi-update process so if it is fixed, it could be that per say and not the install. A few rough edges on raspbian, like no HID I/O in X, which turned out that xserver-xorg-input-kbd was NOT installed, even though xserver-xorg-input-all IS installed. Sitting at about a 2.6G install at the moment, but I did do a build-essential and devscripts installation. Not that I've needed it much (yet). But the next stage if this continues is a kernel compile. Hopefully it's cured for now. At 10 minutes into a 2.5 hour podcast so we'll "see".

Shadow_7
Posts: 39
Joined: Sat Jul 12, 2014 5:50 am

Re: jackdbus crashing regularly in raspbian after update.

Sat Aug 11, 2018 2:43 pm

It still crashes on the raspbian lite install. My recovery / setup process is this:

$ pulseaudio --kill; sleep 1; kill -9 $(pgrep jack_mixer); sleep 1; kill -9 $(pgrep jackdbus);
$ ./myjackdbus.sh ; sleep 1; jack_control start; sleep 1; pulseaudio --kill; sleep 1; ./myjackdbus.sh ;
$ jack_mixer & sleep 1; wmctrl -r jack_mixer -e 0,0,0,141,300; pulseaudio --kill; sleep 1; pulseaudio --start; sleep 1; qjackctl; speaker-test -c 2 -l 1
$ sudo renice -n -15 $(pgrep jackdbus); sudo renice -n -10 $(pgrep X); sudo renice -n -10 $(pgrep jack_mixer); sudo renice -n -5 $(pgrep pulseaudio)

The renice seems to make it take longer to failure. The jack_mixer is there to lower the volume since the hardware has no software mixer options. I could sub in a calf-plugin of the eq variety for the same functionality, but it still fails on that too. Sometimes the failure is bad enough that I have to reboot to regain the audio interface, but most times the above works. Just 4 one liners, to kill off old fails, start jackdbus, start extras and do routing, then renice. It's very annoying, but at least I've gotten past failing every 15 minutes now.

Shadow_7
Posts: 39
Joined: Sat Jul 12, 2014 5:50 am

Re: jackdbus crashing regularly in raspbian after update.

Sat Aug 11, 2018 2:45 pm

FILE: myjackdbus.sh

Code: Select all

#!/bin/bash

# jack_control start
jack_control dps device hw:1
jack_control ds alsa
jack_control eps driver alsa
jack_control eps temporary false
jack_control eps realtime false
jack_control dps rate 48000
jack_control dps nperiods 2
jack_control dps period 1024

exit 0
For full disclosure

Shadow_7
Posts: 39
Joined: Sat Jul 12, 2014 5:50 am

Re: jackdbus crashing regularly in raspbian after update.

Mon Aug 13, 2018 3:05 am

With the current setup, it is consistently dying at 1 hour of use. Almost exactly 1 hour. Plus 2-ish minutes but that's probably how long it takes me to reload the client to start using audio again. It'll work several hours if it's not using more than an hour of audio. With two audio clients (music videos + podcast), it dies much faster. But with just one audio client, almost exactly 1 hour.

Return to “Troubleshooting”

Who is online

Users browsing this forum: jbudd and 40 guests