kiall / android-tvheadend

Android + TV Headend + TV Input Framework
Apache License 2.0
192 stars 61 forks source link

Channel subscription locks #169

Closed habr05 closed 7 years ago

habr05 commented 7 years ago

TVH LC v3.10 TVH v4.2.1-7~g4d4bf14

Some (problematic) channels cause TVH LC to lock and/or create multiple subscriptions to the channel. Network where channels are configured have limit of 2 on number of streams. That, of course, is causing the limit to be exhausted almost immediately.

Let me know if you need more info/testing. logcat.txt

`2017-05-05 22:29:55.654 htsp: 192.168.11.202: Welcomed client software: android-tvheadend (TV) (HTSPv23)

2017-05-05 22:29:55.654 htsp: 192.168.11.202 [ android-tvheadend (TV) ]: Identified as user 'shield'

2017-05-05 22:29:55.654 htsp: 192.168.11.202 [ shield | android-tvheadend (TV) ]: Privileges updated

2017-05-05 22:29:55.813 mpegts: akamaihd/CBSNHD in IPTV Mixed - tuning on IPTV

2017-05-05 22:29:56.393 subscription: 0294: "192.168.11.202 [ shield | android-tvheadend (TV) ]" subscribing on channel "CBS News", weight: 150, adapter: "IPTV", network: "IPTV Mixed", mux: "akamaihd/CBSNHD", service: "CBS News", profile="htsp", hostname="192.168.11.202", username="shield", client="android-tvheadend (TV)"

2017-05-05 22:30:21.132 mpegts: get.php - SYFY in tpk Automatic - tuning on IPTV

2017-05-05 22:30:21.441 subscription: 0295: "192.168.11.202 [ shield | android-tvheadend (TV) ]" subscribing on channel "Syfy HD", weight: 150, adapter: "IPTV", network: "tpk Automatic", mux: "get.php - SYFY", provider: "FFmpeg", service: "Service01", profile="htsp", hostname="192.168.11.202", username="shield", client="android-tvheadend (TV)"

2017-05-05 22:30:21.683 subscription: 0294: "192.168.11.202 [ shield | android-tvheadend (TV) ]" unsubscribing from "CBS News", hostname="192.168.11.202", username="shield", client="android-tvheadend (TV)"

2017-05-05 22:30:37.476 mpegts: get.php - TNT in tpk Automatic - tuning on IPTV

2017-05-05 22:30:37.477 subscription: 0296: "192.168.11.202 [ shield | android-tvheadend (TV) ]" subscribing on channel "TNT", weight: 150, adapter: "IPTV", network: "tpk Automatic", mux: "get.php - TNT", provider: "FFmpeg", service: "Service01", profile="htsp", hostname="192.168.11.202", username="shield", client="android-tvheadend (TV)"

2017-05-05 22:30:37.481 subscription: 0295: "192.168.11.202 [ shield | android-tvheadend (TV) ]" unsubscribing from "Syfy HD", hostname="192.168.11.202", username="shield", client="android-tvheadend (TV)"

2017-05-05 22:30:47.434 mpegts: get.php - TRU TV in tpk Automatic - tuning on IPTV

2017-05-05 22:30:47.435 subscription: 0297: "192.168.11.202 [ shield | android-tvheadend (TV) ]" subscribing on channel "truTV", weight: 150, adapter: "IPTV", network: "tpk Automatic", mux: "get.php - TRU TV", provider: "FFmpeg", service: "Service01", profile="htsp", hostname="192.168.11.202", username="shield", client="android-tvheadend (TV)"

2017-05-05 22:30:47.470 subscription: 0296: "192.168.11.202 [ shield | android-tvheadend (TV) ]" unsubscribing from "TNT", hostname="192.168.11.202", username="shield", client="android-tvheadend (TV)"

2017-05-05 22:30:58.622 mpegts: get.php - TBS in tpk Automatic - tuning on IPTV

2017-05-05 22:30:58.623 subscription: 0298: "192.168.11.202 [ shield | android-tvheadend (TV) ]" subscribing on channel "TBS", weight: 150, adapter: "IPTV", network: "tpk Automatic", mux: "get.php - TBS", provider: "FFmpeg", service: "Service01", profile="htsp", hostname="192.168.11.202", username="shield", client="android-tvheadend (TV)"

2017-05-05 22:31:03.618 subscription: 0298: "192.168.11.202 [ shield | android-tvheadend (TV) ]" unsubscribing from "TBS", hostname="192.168.11.202", username="shield", client="android-tvheadend (TV)"

2017-05-05 22:31:03.618 mpegts: get.php - FX in tpk Automatic - tuning on IPTV

2017-05-05 22:31:03.619 subscription: 0299: "192.168.11.202 [ shield | android-tvheadend (TV) ]" subscribing on channel "FX HD", weight: 150, adapter: "IPTV", network: "tpk Automatic", mux: "get.php - FX", provider: "FFmpeg", service: "Service01", profile="htsp", hostname="192.168.11.202", username="shield", client="android-tvheadend (TV)"

2017-05-05 22:31:08.665 subscription: 0299: "192.168.11.202 [ shield | android-tvheadend (TV) ]" unsubscribing from "FX HD", hostname="192.168.11.202", username="shield", client="android-tvheadend (TV)"

2017-05-05 22:31:08.665 mpegts: get.php - TBS in tpk Automatic - tuning on IPTV

2017-05-05 22:31:08.666 subscription: 029A: "192.168.11.202 [ shield | android-tvheadend (TV) ]" subscribing on channel "TBS", weight: 150, adapter: "IPTV", network: "tpk Automatic", mux: "get.php - TBS", provider: "FFmpeg", service: "Service01", profile="htsp", hostname="192.168.11.202", username="shield", client="android-tvheadend (TV)"

2017-05-05 22:31:12.498 subscription: 029A: "192.168.11.202 [ shield | android-tvheadend (TV) ]" unsubscribing from "TBS", hostname="192.168.11.202", username="shield", client="android-tvheadend (TV)"

2017-05-05 22:31:12.498 subscription: 029B: "192.168.11.202 [ shield | android-tvheadend (TV) ]" subscribing on channel "truTV", weight: 150, adapter: "IPTV", network: "tpk Automatic", mux: "get.php - TRU TV", provider: "FFmpeg", service: "Service01", profile="htsp", hostname="192.168.11.202", username="shield", client="android-tvheadend (TV)"

2017-05-05 22:31:17.343 mpegts: get.php - TNT in tpk Automatic - tuning on IPTV

2017-05-05 22:31:17.344 subscription: 029C: "192.168.11.202 [ shield | android-tvheadend (TV) ]" subscribing on channel "TNT", weight: 150, adapter: "IPTV", network: "tpk Automatic", mux: "get.php - TNT", provider: "FFmpeg", service: "Service01", profile="htsp", hostname="192.168.11.202", username="shield", client="android-tvheadend (TV)"

2017-05-05 22:31:20.332 subscription: 029C: "192.168.11.202 [ shield | android-tvheadend (TV) ]" unsubscribing from "TNT", hostname="192.168.11.202", username="shield", client="android-tvheadend (TV)"

2017-05-05 22:31:20.332 mpegts: get.php - SYFY in tpk Automatic - tuning on IPTV

2017-05-05 22:31:20.333 subscription: 029D: "192.168.11.202 [ shield | android-tvheadend (TV) ]" subscribing on channel "Syfy HD", weight: 150, adapter: "IPTV", network: "tpk Automatic", mux: "get.php - SYFY", provider: "FFmpeg", service: "Service01", profile="htsp", hostname="192.168.11.202", username="shield", client="android-tvheadend (TV)"

2017-05-05 22:31:25.051 subscription: 029E: No input source available for subscription "192.168.11.202 [ shield | android-tvheadend (TV) ]" to channel "TNT"

2017-05-05 22:31:27.051 subscription: 029E: No input source available for subscription "192.168.11.202 [ shield | android-tvheadend (TV) ]" to channel "TNT"

2017-05-05 22:31:28.096 subscription: 029E: No input source available for subscription "192.168.11.202 [ shield | android-tvheadend (TV) ]" to channel "TNT"

2017-05-05 22:31:30.096 subscription: 029F: No input source available for subscription "192.168.11.202 [ shield | android-tvheadend (TV) ]" to channel "truTV"

2017-05-05 22:31:30.096 subscription: 029E: No input source available for subscription "192.168.11.202 [ shield | android-tvheadend (TV) ]" to channel "TNT"

2017-05-05 22:31:32.096 subscription: 029F: No input source available for subscription "192.168.11.202 [ shield | android-tvheadend (TV) ]" to channel "truTV"

2017-05-05 22:31:32.096 subscription: 029E: No input source available for subscription "192.168.11.202 [ shield | android-tvheadend (TV) ]" to channel "TNT"

2017-05-05 22:31:34.096 subscription: 029F: No input source available for subscription "192.168.11.202 [ shield | android-tvheadend (TV) ]" to channel "truTV"`

image

habr05 commented 7 years ago

Just noticed that there is v3.13. I've updated and I'm testing it now.

kiall commented 7 years ago

I think I got the last of these "leaking subscription" bugs in v0.3.13 / v0.3.12... let me know of you still see this.

xi784 commented 7 years ago

Would like to confirm, looks as if this would happen if the encrypted stream is not transmitted in time.

kiall commented 7 years ago

Oh, we do have an issue around channels that take a long time to tune (more than 2 seconds), that would probably leak a subscription. I'd need to double check!

habr05 commented 7 years ago

Tested v3.13 for about 8 hrs - could not reproduce the problem. Now I'm on v3.13-5 - so far so good.

habr05 commented 7 years ago

Not seeing the issue anymore.