Hassio_audio high CPU

Hey Guys,

since yesterday the load on my system has increased suddenly.

The screenshot shows an nearly 100% CPU of the hassio_audio container.

I use HA only for zigbee, nothing else, no video, no audio

Any ideas ?

1 Like

My CPU is currently burning.

Is there a way to stop the docker hassio_audio ?

1 Like

Here is the audio Log

D: [pulseaudio] alsa-util.c:   format       : S16_LE
D: [pulseaudio] alsa-util.c:   subformat    : STD
D: [pulseaudio] alsa-util.c:   channels     : 2
D: [pulseaudio] alsa-util.c:   rate         : 44100
D: [pulseaudio] alsa-util.c:   exact rate   : 44100 (44100/1)
D: [pulseaudio] alsa-util.c:   msbits       : 16
D: [pulseaudio] alsa-util.c:   buffer_size  : 32768
D: [pulseaudio] alsa-util.c:   period_size  : 32768
D: [pulseaudio] alsa-util.c:   period_time  : 743038
D: [pulseaudio] alsa-util.c:   tstamp_mode  : ENABLE
D: [pulseaudio] alsa-util.c:   tstamp_type  : MONOTONIC
D: [pulseaudio] alsa-util.c:   period_step  : 1
D: [pulseaudio] alsa-util.c:   avail_min    : 32768
D: [pulseaudio] alsa-util.c:   period_event : 0
D: [pulseaudio] alsa-util.c:   start_threshold  : -1
D: [pulseaudio] alsa-util.c:   stop_threshold   : 1073741824
D: [pulseaudio] alsa-util.c:   silence_threshold: 0
D: [pulseaudio] alsa-util.c:   silence_size : 0
D: [pulseaudio] alsa-util.c:   boundary     : 1073741824
D: [pulseaudio] alsa-util.c:   appl_ptr     : 0
D: [pulseaudio] alsa-util.c:   hw_ptr       : 0
D: [pulseaudio] alsa-sink.c: Read hardware volume: front-left: 56210 /  86% / -4.00 dB,   front-right: 56210 /  86% / -4.00 dB
D: [alsa-sink-bcm2835 Headphones] alsa-sink.c: Thread starting up
I: [alsa-sink-bcm2835 Headphones] util.c: Failed to acquire real-time scheduling: Not supported
D: [pulseaudio] sink.c: alsa_output.platform-bcm2835_audio.stereo-fallback.2: state: INIT -> IDLE
I: [alsa-sink-bcm2835 Headphones] alsa-sink.c: Starting playback.
D: [pulseaudio] source.c: alsa_output.platform-bcm2835_audio.stereo-fallback.2.monitor: state: INIT -> IDLE
D: [pulseaudio] module-device-restore.c: Could not set format on sink alsa_output.platform-bcm2835_audio.stereo-fallback.2
D: [pulseaudio] module-switch-on-connect.c: Trying to switch to new sink alsa_output.platform-bcm2835_audio.stereo-fallback.2
I: [pulseaudio] core.c: configured_default_sink: alsa_output.platform-bcm2835_audio.stereo-fallback -> alsa_output.platform-bcm2835_audio.stereo-fallback.2
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
I: [pulseaudio] core.c: default_sink: alsa_output.platform-bcm2835_audio.stereo-fallback -> alsa_output.platform-bcm2835_audio.stereo-fallback.2
I: [pulseaudio] core.c: default_source: alsa_output.platform-bcm2835_audio.stereo-fallback.monitor -> alsa_output.platform-bcm2835_audio.stereo-fallback.2.monitor
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
I: [pulseaudio] module.c: Loaded "module-alsa-card" (index: #7; argument: "device_id="1" name="platform-bcm2835_audio" card_name="alsa_card.platform-bcm2835_audio" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"").
I: [pulseaudio] module-udev-detect.c: Card /devices/platform/soc/fe00b840.mailbox/bcm2835_audio/sound/card1 (alsa_card.platform-bcm2835_audio) module loaded.
I: [pulseaudio] module-udev-detect.c: Found 2 cards.
I: [pulseaudio] module.c: Loaded "module-udev-detect" (index: #5; argument: "").
D: [pulseaudio] module.c: Checking for existence of '/usr/lib/pulse-14.2/modules/module-bluez5-discover.so': success
D: [pulseaudio] dbus-util.c: Successfully connected to D-Bus system bus 0c799126d34904298a11f409602946e4 as :1.98
I: [pulseaudio] module.c: Loaded "module-bluez5-discover" (index: #9; argument: "").
I: [pulseaudio] module.c: Loaded "module-bluetooth-discover" (index: #8; argument: "").
I: [pulseaudio] module.c: Loaded "module-native-protocol-unix" (index: #10; argument: "auth-anonymous=1 auth-cookie-enabled=0 socket=/data/external/pulse.sock").
I: [pulseaudio] module-default-device-restore.c: Manually configured default sink, not overwriting.
I: [pulseaudio] module-default-device-restore.c: No previous default source setting, ignoring.
I: [pulseaudio] module.c: Loaded "module-default-device-restore" (index: #11; argument: "").
E: [pulseaudio] module-rescue-streams.c: module-rescue-stream is obsolete and should no longer be loaded. Please remove it from your configuration.
I: [pulseaudio] module.c: Loaded "module-rescue-streams" (index: #12; argument: "").
I: [pulseaudio] module.c: Loaded "module-always-sink" (index: #13; argument: "").
I: [pulseaudio] module.c: Loaded "module-position-event-sounds" (index: #14; argument: "").
D: [pulseaudio] main.c: Got org.pulseaudio.Server!
I: [pulseaudio] main.c: Daemon startup complete.
I: [pulseaudio] module.c: Unloading "module-rescue-streams" (index: #12).
I: [pulseaudio] module.c: Unloaded "module-rescue-streams" (index: #12).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
D: [pulseaudio] bluez5-util.c: Unknown interface org.freedesktop.DBus.Introspectable found, skipping
D: [pulseaudio] bluez5-util.c: Unknown interface org.bluez.AgentManager1 found, skipping
D: [pulseaudio] bluez5-util.c: Unknown interface org.bluez.ProfileManager1 found, skipping
D: [pulseaudio] bluez5-util.c: Unknown interface org.freedesktop.DBus.Introspectable found, skipping
D: [pulseaudio] bluez5-util.c: Adapter /org/bluez/hci0 found
D: [pulseaudio] bluez5-util.c: Registering /MediaEndpoint/A2DPSink/sbc on adapter /org/bluez/hci0
D: [pulseaudio] bluez5-util.c: Registering /MediaEndpoint/A2DPSource/sbc on adapter /org/bluez/hci0
D: [pulseaudio] bluez5-util.c: Unknown interface org.freedesktop.DBus.Properties found, skipping
D: [pulseaudio] bluez5-util.c: Unknown interface org.bluez.GattManager1 found, skipping
D: [pulseaudio] bluez5-util.c: Unknown interface org.bluez.LEAdvertisingManager1 found, skipping
D: [pulseaudio] bluez5-util.c: Unknown interface org.bluez.Media1 found, skipping
D: [pulseaudio] bluez5-util.c: Unknown interface org.bluez.NetworkServer1 found, skipping
D: [pulseaudio] backend-native.c: Bluetooth Headset Backend API support using the native backend
D: [pulseaudio] backend-native.c: Registering Profile /Profile/HSPAGProfile 00001112-0000-1000-8000-00805f9b34fb
D: [pulseaudio] module-udev-detect.c: /dev/snd/controlC0 is accessible: yes
D: [pulseaudio] module-udev-detect.c: Resuming all sinks and sources of card alsa_card.platform-bcm2835_audio.
D: [pulseaudio] module-udev-detect.c: /dev/snd/controlC1 is accessible: yes
D: [pulseaudio] module-udev-detect.c: Resuming all sinks and sources of card alsa_card.platform-bcm2835_audio.
I: [pulseaudio] backend-ofono.c: Failed to register as a handsfree audio agent with ofono: org.freedesktop.DBus.Error.ServiceUnknown: The name org.ofono was not provided by any .service files
D: [pulseaudio] bluez5-util.c: oFono is running: no
D: [pulseaudio] backend-native.c: Registering Profile /Profile/HSPHSProfile 00001108-0000-1000-8000-00805f9b34fb
D: [pulseaudio] bluez5-util.c: Properties changed in adapter /org/bluez/hci0
D: [pulseaudio] bluez5-util.c: Properties changed in adapter /org/bluez/hci0
D: [pulseaudio] bluez5-util.c: Properties changed in adapter /org/bluez/hci0
D: [pulseaudio] bluez5-util.c: Properties changed in adapter /org/bluez/hci0
D: [pulseaudio] bluez5-util.c: Properties changed in adapter /org/bluez/hci0
D: [pulseaudio] bluez5-util.c: Properties changed in adapter /org/bluez/hci0
D: [pulseaudio] bluez5-util.c: Properties changed in adapter /org/bluez/hci0
I: [alsa-sink-bcm2835 HDMI 1] alsa-sink.c: Decreasing wakeup watermark to 15.01 ms
I: [alsa-sink-bcm2835 Headphones] alsa-sink.c: Decreasing wakeup watermark to 15.01 ms
I: [alsa-sink-bcm2835 HDMI 1] alsa-sink.c: Decreasing wakeup watermark to 10.02 ms
I: [alsa-sink-bcm2835 Headphones] alsa-sink.c: Decreasing wakeup watermark to 10.02 ms
I: [alsa-sink-bcm2835 HDMI 1] alsa-sink.c: Decreasing wakeup watermark to 5.03 ms
I: [alsa-sink-bcm2835 Headphones] alsa-sink.c: Decreasing wakeup watermark to 5.03 ms
I: [alsa-sink-bcm2835 HDMI 1] alsa-sink.c: Decreasing wakeup watermark to 3.99 ms
I: [alsa-sink-bcm2835 Headphones] alsa-sink.c: Decreasing wakeup watermark to 3.99 ms
I: [pulseaudio] client.c: Created 0 "Native client (UNIX socket client)"
I: [pulseaudio] protocol-native.c: Client authenticated anonymously.
D: [pulseaudio] protocol-native.c: Protocol version: remote 34, local 34
D: [pulseaudio] protocol-native.c: SHM possible: no
D: [pulseaudio] protocol-native.c: Negotiated SHM: no
D: [pulseaudio] protocol-native.c: Disabling srbchannel, reason: No SHM support
I: [pulseaudio] client.c: Freed 0 "supervisor"
I: [pulseaudio] protocol-native.c: Connection died.

Same happent to me yesterday, out of the blue, without anything going on or me doing any change, load increased to 2 from 0.2, 2 cores loaded 100% and temp spiked, culprit, pulseaudio.
After some digging, I found a temporary fix by loading an add-on which fix somehow the problemn can be found at:

1 Like

Had the same issue, applied @milford64 recommendation and worked for me. Thanks Alexandru!!

I have the same issue since 7pm yesterday, for whatever reason. Cpu usage from approx 10% up to 35% on my Tinkerboard S. Restart does not solve it.

I’ll try this addon and see if it works, but hopefully this issue will be addressed with a point update.

For me, the problem disappeared by itself today by itself, I was restarted the host without loading add-on and it worked again with no problems.
Anyway, the problem was reported in March 2020 and closed in May without any change in HA code after above addon was published as seen on this

Cheers

You can find that as closed issue #12
Also I had to add that while the problem was present a few days ago, rebooting or completely reset the host had no impact.
I still have add-on installed just in case I’ll need it again, but it’s not loading on start.

Hello guys,

I have a pretty similar issue with the hassio_audio container.
I’m running HA Supervised on Docker with a Raspberry Pi4 4GB.

My SMB transfer to and from the HDD connected to the Pi now is really slow. If I stop the container, it return to the normal transfer rate.

I tried the Add-On suggested here, but I can’t install it:

Failed to install addon

The command '/bin/bash -o pipefail -c apk add --no-cache alsa-plugins-pulse alsa-utils pulseaudio-utils python3' returned a non-zero code: 4

The same problem here.
Is it possible to temporarily stop pulseaudio?

1 Like

Hello guys,

I opened an issue on Github, but they closed it cause I don’t have a vanilla install.
I’m pretty sure the problem is caused by the Audio plug in, and not by one of my containers.

Please, if someone here has a vanilla setup, open an issue on the official Github Page of the Audio Plug in.

Thank you!

1 Like

Same problem here and suggest to have the possibility to shutdown pulseaudio too.