philippe44 / AirConnect

Use AirPlay to stream to UPnP/Sonos & Chromecast devices
Other
3.52k stars 218 forks source link

Constant 100% CPU consumption #409

Closed scaarup closed 2 years ago

scaarup commented 2 years ago

Maybe this is just by design, but the aircast process is constantly at around 100% CPU

image

I am on a virtualbox'ed Ubuntu 20.04.4 LTS (x86_64 arch) - running aircast-x86-64.

scaarup commented 2 years ago

strace'ing the process, seems to be a loop of this: image

Nothing is playing.

philippe44 commented 2 years ago

How did you launch it?

scaarup commented 2 years ago

How did you launch it?

Super basic, from roots crontab like this: * * * * * pidof aircast-x86-64 || /root/aircast-x86-64 -f /root/aircast.log image

philippe44 commented 2 years ago

Thats the issue. The README explains this: use systemd launch config or if you want to make that manually and background it, you must disable stdin access otherwise cpu is used at 100%.

scaarup commented 2 years ago

Thats the issue. The README explains this: use systemd launch config or if you want to make that manually and background it, you must disable stdin access otherwise cpu is used at 100%.

Oops, very sorry. Didn't catch that. Thanks for the assistance though.