LS restarting after crossfades - sporadically #4272
fkane
started this conversation in
User Support
Replies: 1 comment 2 replies
-
Hi @fkane, New process% gdb /path/to/liquidsoap
> r <arguments>
...crash..
> thread apply all bt Running process% gdb -p <liquidsoap process PID>
> thread apply all bt |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just posting this in case it helps anyone else. I've run into this behavior in both LS 2.2.5 and 2.3.0 running on Ubuntu 24.04.01 (built from opam), where once every few hours, once a day... it's hard to predict... the script will restart for no apparent reason. There's nothing in the logs indicating an error, even at level 4 - it just shows that everything was going fine, and then the service restarts. From a listener standpoint, they are disconnected when this happens as the existing streams are stopped and restarted. The only pattern I've found is that it usually happens a few seconds after a crossfade transition.
In my case, I think it was just taxing my EC2 server a little too hard. Upgrading from a t3.medium instance to a t3.large did not help matters, though.
What finally did seem to help was reducing the sample rate conversion quality. I stream at 24-bit / 48kHz from hi-res sources, so this is a bit of a CPU hog. I've been running successfully now after commenting out these lines in my script:
...thereby going back to the default "fast" setting. My ears can't tell the difference.
Anyhow, if you've bumped up your sample rate quality settings and are wondering why your server keeps restarting after updating LS beyond 2.1.x... that might be why.
Beta Was this translation helpful? Give feedback.
All reactions