Kodi Community Forum

Full Version: [SOLVED - Kindof] 17.6 Audio stuttering after certain amount of uptime.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
https://paste.ee/p/hWz7r

Current HTPC uptime -  09:08:50 up 11 days, 21:27,  2 users,  load average: 0.51, 0.49, 0.46

All info on H/W is in log. Kodi 17.6 on Ubuntu 16.04.5

This morning audio started skipping a beat every few minutes. Restarting Kodi and the issue is gone. I'm not sure how long till it will start skipping again. Before I restarted it Kodi had been up and running for a couple days or so. Last restart was because of a change to pulseaudio I made in hopes of resolving this problem. It worked fine, till this morning. At a loss. Don't see anything in the log but I know practically nothing.

*EDIT* Stopwatch shows this happening every 30 seconds on the dot.

I'm fairly certain I've solved my previous issue of read errors. This stuttering though has been a problem a long time. Never posted about it because the logs were to big.
Still working on this. However as a workaround I have written a small script that I run daily at 3:30 am via crontab. The problem is fixed after a kodi restart so this is my resolution for now.

Code:
for seconds in 30 20 10 ; do
  kodi-send --action "Notification(kodi restart in ${seconds} seconds,standby!)"
  sleep 10
done
kodi-send --action RestartApp