Lots of tuner locks lately (HDHomerun)

@troyhough Please try the latest pre-release and let us know if it's any better.

@eric Just installed 2024.05.26.0350. Will let you know if they stick going forward. Thanks

Hi @eric channel 51.1 is locked up right now. Just sent over logs. Thanks

de75bce7-473a-40af-8947-db3c725c39b9

Just for fun I grabbed my phone and tuned to Ch 51.1 using Channels. It used (shared) the tuner slot that was already locked up, not using a different available slot. I clicked the 'Done' button. The tuner slot is still locked. So apparently tuning to that same channel and stopping it doesn't unlock it. Just an FYI.

Can you send diagnostics again after you did that?

2a617675-19e7-42b2-8c9c-9eda13ef826c

I don't have any solid theories on what is happening for you and unfortunately all of my testing of concurrently opening transcoding streams of the same channel over and over again has been unable to reproduce the issue with a channel never being closed, so there's something going on for you that I'm not seeing in the logs and code.

That said, I have discovered a few places where the situation around concurrently opening streams can be cleaned up to reduce the opportunity for using extra tuners and have some changes to remedy that. I'm not going to be available to monitor for problems with any of the changes for the next few days, so I'm likely going to hold off on putting them into a pre-release until this weekend.

1 Like

I was having issues with locked channels using only one device (remote Apple TV) and can confirm the latest pre-release fixed things for me.

As far as not sharing a tuner that is already being used when another device is asking for the same channel and it instead tying up an additional slot has been an issue forever. I have reported it and was told that's just how it is type of a thing. I kind of gave up on that issue. If you can get that fixed up then great.

However this new thing of tuner locks has NEVER been an issue since I started using Channels close to 2.5 years. It was rock solid on releasing tuners under every possible scenario. My devices and the way I use Channels has not changed. I am guessing the issue started happening around 3-4 weeks ago.

The thing I'm describing that I have a fix for is slightly different. If two clients hit "play" at exactly the same moment, there is a short window where they can both open a new stream before either of them has had a chance to see the other stream, and thus don't use sharing.

The issue you're describing has to do with what happens when your highest priority tuner is completely full, a stream starts on the second priority tuner, all of the streams stop on the highest priority tuner and then someone starts to play the channel that is currently on the second priority tuner.

@eric Right now slots 3.1, 6.1, 7.1, and 51.1 are tied up. I am only watching 1 of them, 7.1.

06530b36-559d-4c42-9bbd-8228d310ed59

Logs sent, thanks.

At this point I don't think I'll need any more diagnostics until I can roll out the fixes I have ready. Thank you for your patience.

1 Like

Ok no problem. Appreciate you looking into it @eric !

@troyhough Please try out this new pre-release build and let me know if you see any improved behavior.

1 Like

I'm on it. Thanks @eric

Hi @eric

Just checked. I have 4 TV's tuned into Ch 6.1 (HDHR).

However there are currently 4 HDHR tuner slots locked up... 3.1, 6.1, 6.1, 7.1

Just sent over logs. Thanks!

8d68991d-ce78-48c1-9e8c-d8ff948a59ec

I think I've figured out the circumstances that are causing the issue. It looks like it has to do with channel surfing while remote (or otherwise starting and stopping playback of a channel multiple times while remote).

This fix should solve that you're running into. Please try it out and let us know:

1 Like

On it. Thanks for your great work!

@troyhough Sorry, I made a mistake and that last build did not have all of the fixes I intended for it to have. A new release that is being built now v2024.06.04.0104 will be the one that I hope will work for you. It should be out in 20 minutes or so.

1 Like

Just updated. If you don't hear from me (about this one lol) consider it fixed :smiley:

Thanks @eric