You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating system, environment and configuration details
Windows 10 21H2
Description
Streams that ended and closed automatically are sometimes detected as online by Twitch GUI in "You're Watching" panel and still count the online time, until either manually closed from You're Watching window or the stream comes back online again and is closed from the usual prompt that shows up when trying to launch already opened stream.
This appears to happen only(?) on streams that have been launched for few hours, streams that end quickly (1h~) after launch don't seem to have this problem or at least it's less prevalent.
Closing the player manually seems to be always detected properly no matter how long the stream was turned on for.
When this happens Debug Log always outputs this at the end:
[2023-02-25T14:44:51.491Z][error][Application]
unhandledrejection: Error: Missing data while normalizing single response
{}
[2023-02-25T14:44:58.208Z][error][StreamingService]
Error: error: Error when reading from stream: Read timeout, exiting
First error shows even when Twich GUI properly detects that stream finished, but none of them are present when player is closed manually.
I've found second error referenced previously as 'normal / expected' [#1] [#2] on Streamlink repository, so at this point i'm not completely sure if this more of a Streamlink based problem or if there's additional detection on Twitch GUI side that isn't working correctly in certain scenarios.
It's a known bug that existed for a couple of years now. I can't find the original thread right now because I believe it was just a regular comment in another thread. I've tried reproducing it back at the time, but wasn't able to, so it was never fixed and then forgotten about. Since it's a rather rare occurrence, it's not super important.
This has something to do with the Stream record's state after the Streamlink process has terminated, which doesn't get set correctly by either the StreamingService implementation or the Stream record implementation. I can have another look at this some time, but my motivation isn't particularly high right now when dealing with minor issues in Streamlink Twitch GUI because I'm much more invested with Streamlink nowadays.
The error: Error when reading from stream: Read timeout, exiting message is just the stdout message from the Streamlink process which gets written when streams don't end gracefully and result in the ringbuffer not being filled for 60 seconds (default value). This is a known issue with Twitch streams. Twitch should indicate in the HLS playlist that the stream has ended by setting the EXT-X-ENDLIST HLS tag, but they don't, so Streamlink's HLSStreamWorker keeps polling the HLS playlist, waiting for new segments to be added to the HLSStreamWriter, which then causes the timeout eventually. See the relevant issue here: streamlink/streamlink#2198
Checklist
Streamlink Twitch GUI version
v2.2.0
Streamlink version
5.1.2
Operating system, environment and configuration details
Windows 10 21H2
Description
Streams that ended and closed automatically are sometimes detected as online by Twitch GUI in "You're Watching" panel and still count the online time, until either manually closed from You're Watching window or the stream comes back online again and is closed from the usual prompt that shows up when trying to launch already opened stream.
This appears to happen only(?) on streams that have been launched for few hours, streams that end quickly (1h~) after launch don't seem to have this problem or at least it's less prevalent.
Closing the player manually seems to be always detected properly no matter how long the stream was turned on for.
When this happens Debug Log always outputs this at the end:
First error shows even when Twich GUI properly detects that stream finished, but none of them are present when player is closed manually.
I've found second error referenced previously as 'normal / expected' [#1] [#2] on Streamlink repository, so at this point i'm not completely sure if this more of a Streamlink based problem or if there's additional detection on Twitch GUI side that isn't working correctly in certain scenarios.
Full Debug Log
Debug log
No response
The text was updated successfully, but these errors were encountered: