SenexCrenshaw / StreamMaster

MIT License
159 stars 20 forks source link

Bug: repeated message on channel exit. #155

Closed johnhelt closed 7 months ago

johnhelt commented 7 months ago

Describe the Bug When exiting a stream, sometimes I get a repeated console message:

Exiting ChannelWatcher loop due to quit condition for channel: *****

Stream Master Info

Link to logs (required)

streammaster | 2023-11-14T22:21:34.358090538Z dbug: StreamMasterInfrastructure.VideoStreamManager.Channels.ChannelManager[0] streammaster | 2023-11-14T22:21:34.358164582Z Exiting ChannelWatcher loop due to quit condition for channel: *****

johnhelt commented 7 months ago

I did a little more testing, and found that sometimes the stream wont start. IN that case the logs show something like this:

streammaster  | 2023-11-14T22:35:09.441263614Z dbug: StreamMasterInfrastructure.VideoStreamManager.Streams.StreamSwitcher[0]
streammaster  | 2023-11-14T22:35:09.441309280Z       Exiting FetchNextChildVideoStream with toReturn: StreamMasterDomain.Dto.ChildVideoStreamDto
streammaster  | 2023-11-14T22:35:09.444137053Z info: StreamMasterInfrastructure.VideoStreamManager.Streams.StreamManager[0]
streammaster  | 2023-11-14T22:35:09.444188658Z       Reusing handler for stream: 1a6d4518802b82ef5c4b30796f67017f
streammaster  | 2023-11-14T22:35:09.454692729Z info: StreamMasterInfrastructure.VideoStreamManager.Streams.StreamHandler[0]
streammaster  | 2023-11-14T22:35:09.454749231Z       UnRegisterClientStreamer ClientId: e3f77b43-100f-4041-a509-b5a67a677319
streammaster  | 2023-11-14T22:35:09.459785128Z info: StreamMasterApplication.Common.Interfaces.ICircularRingBuffer[0]
streammaster  | 2023-11-14T22:35:09.459810376Z       UnRegisterClient for clientId: e3f77b43-100f-4041-a509-b5a67a677319  UK Sky Sports Football 1 (P)
streammaster  | 2023-11-14T22:35:09.462037799Z info: StreamMasterApplication.Common.Interfaces.ICircularRingBuffer[0]
streammaster  | 2023-11-14T22:35:09.462053406Z       RegisterClient for Circular.Id: 071c3061-d86a-4549-a2df-e0cb2cd432f1 ClientId: e3f77b43-100f-4041-a509-b5a67a677319 UK Sky Sports Football 1 (P) 0
streammaster  | 2023-11-14T22:35:09.463340010Z info: StreamMasterInfrastructure.VideoStreamManager.Buffers.RingBufferReadStream[0]
streammaster  | 2023-11-14T22:35:09.463351507Z       Setting buffer delegate for Buffer.Id: 612beb6a-2617-4f3b-6b9-0bcce87c4259 Circular.Id: 071c3061-d86a-4549-a2df-e0cb2cd432f1 ClientId: e3f77b43-100f-4041-a509-b5a67a677319 VideoStreamId: 1a6d4518802b82ef5c4b30796f67017f
streammaster  | 2023-11-14T22:35:09.465346527Z info: StreamMasterInfrastructure.VideoStreamManager.Streams.StreamHandler[0]
streammaster  | 2023-11-14T22:35:09.465368374Z       RegisterClientStreamer for Client ID e3f77b43-100f-4041-a509-b5a67a677319 to Video Stream Id 1a6d4518802b82ef5c4b30796f67017f
streammaster  | 2023-11-14T22:35:09.467179058Z warn: StreamMasterInfrastructure.VideoStreamManager.Streams.StreamManager[0]
streammaster  | 2023-11-14T22:35:09.467201202Z       Stopping stream of 1a6d4518802b82ef5c4b30796f67017f
streammaster  | 2023-11-14T22:35:09.469441215Z dbug: StreamMasterInfrastructure.VideoStreamManager.Streams.StreamSwitcher[0]
streammaster  | 2023-11-14T22:35:09.469453462Z       Finished SwitchToNextVideoStream
streammaster  | 2023-11-14T22:35:09.471738161Z dbug: StreamMasterInfrastructure.VideoStreamManager.Channels.ChannelManager[0]
streammaster  | 2023-11-14T22:35:09.471761555Z       ProcessStreamStatus handled: True after stopping streaming and handling next video stream
streammaster  | 2023-11-14T22:35:09.524402128Z dbug: StreamMasterInfrastructure.VideoStreamManager.Channels.ChannelManager[0]
streammaster  | 2023-11-14T22:35:09.524443972Z       Exiting ChannelWatcher loop due to quit condition for channel: 1a6d4518802b82ef5c4b3  
johnhelt commented 7 months ago

some additional info: Some of my streams are not working. That means, both inside and outside of SM (raw m3u file). I can recreate the issue if I open my playlist with VLC, using the m3u playlist from SM, and try to open the stream that is not working. VLC will then continue until a new channel comes up, which is working. If I try to re-open the stream that wasn't working, then I get this exact error.

SenexCrenshaw commented 7 months ago

should be good in latest