Open SmileLikeGod opened 1 week ago
Hello, it seems that FC2 has changed the login API, ~which no longer allows you to connect~ (actually you can still connect, but the logs doesn't say anything anymore).
As for why there is 100% CPU, I'm looking into it... but it will be quite difficult to find. I will probably refactor the whole codebase to try to add new test cases. This will also permits me to easily add contract testing, which will permits me to avoid drifting from future API changes.
The deadlock has been found and an infinite for
loop is causing 100% CPU:
If the channel playlists
is closed, the program will immediatly enter the <- playlists
case with ok=false
. Usual behavior is that the hls.Downloader.Read
returns the err
to the errChan
(few lines below, in the same function), which move the program to the <-errChan
case and avoid the <-playlists
case. Because no err
is in the errChan
, the loop continues.
The continue
increase the CPU cycle, causing 100% CPU. The fix is being worked on at the same time with the refactor.
Good evening, when recording a broadcast that switches to paid streaming during the live session, fc2-live-dl-go starts consuming 100% of the CPU capacity. Here is the log:
and a screenshot https://imgur.com/a/B67W1Ue Here are the settings:
I tried waiting for 5 minutes, but it just kept using 100% of the CPU.