-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
double call to channel change script #584
Comments
|
Looks like others are experiencing the same issue: https://forum.mythtv.org/viewtopic.php?f=29&t=5289&p=25490#p25490 |
|
I'm experiencing the same thing. |
|
I can explain why it's happening. Your script is invoked by The SetChannelByString() is called in several places, but I Notice that for normal operation of the TuningFrequency() It's difficult for me to code up a solution because Issue |
|
FWIW I use a script that includes a check for this. This can save time by avoiding retuning. |
|
I ended up putting a lock function on my script to prevent two instances from running simultaneously. When they ran simultaneously channel digits from the two calls ended up being interleaved messing up the channel change. This was discussed on the user's mailing list back in 2022 when I originally generated the issue. I'd post a link but the archive search function is down at the moment. |
Upon restart, mythbackend appears to be issuing two calls to the channel change script when scheduling the first recording after the backend starts. The same occurs if entering Live TV after the backend restarts.
This is occurring with an external recorder .
Platform: Ubuntu 22.04 (Linux mythtv 5.15.0-37-generic 39-Ubuntu SMP Wed Jun 1 19:16:45 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux)
MythTV version: fixes/32
Package version: mythbuntu ppa: v32.0+fixes.202206060103.7077a824d2~ubuntu22.04.1
Component: mythbackend
What steps will reproduce the bug?
or
How often does it reproduce? Is there a required condition?
Every time after mythbackend restarts
What is the expected behaviour?
Only a single call to the channel change script
What do you see instead?
Two calls to the channel change script
Jun 11 16:09:55 mythtv mythbackend: mythbackend[3537]: I MetadataDownload metadatagrabber.cpp:377 (RunGrabber) Running Grabber: /usr/share/mythtv/metadata/Television/ttvdb4.py -l en -a US -N Chicago Fire Retaliation Hit
Jun 11 16:09:55 mythtv mythbackend: mythbackend[3537]: D MetadataDownload mythsystemunix.cpp:808 (Fork) Launching: /usr/share/mythtv/metadata/Television/ttvdb4.py -l en -a US -N Chicago Fire Retaliation Hit
Jun 11 16:09:55 mythtv mythbackend: mythbackend[3537]: I MetadataDownload mythsystemunix.cpp:965 (Fork) Managed child (PID: 3623) has started! command=/usr/share/mythtv/metadata/Television/ttvdb4.py -l en -a US -N Chicago Fire Retaliation Hit, timeout=0
Jun 11 16:09:55 mythtv mythbackend: mythbackend[3537]: I SystemManager mythsystemunix.cpp:354 (run) Managed child (PID: 3552) has exited! command=/usr/local/bin/ir_channel_change.bash 510, status=0, result=0
Jun 11 16:09:59 mythtv mythbackend: mythbackend[3537]: D TVRecEvent mythsystemunix.cpp:808 (Fork) Launching: /usr/local/bin/ir_channel_change.bash 550
Jun 11 16:09:59 mythtv mythbackend: mythbackend[3537]: I TVRecEvent mythsystemunix.cpp:965 (Fork) Managed child (PID: 3638) has started! *& command=/usr/local/bin/ir_channel_change.bash 550, timeout=0
Jun 11 16:09:59 mythtv mythbackend: mythbackend[3537]: D TVRecEvent mythsystemunix.cpp:808 (Fork) Launching: /usr/local/bin/ir_channel_change.bash 550
Jun 11 16:09:59 mythtv mythbackend: mythbackend[3537]: I TVRecEvent mythsystemunix.cpp:965 (Fork) Managed child (PID: 3641) has started! *& command=/usr/local/bin/ir_channel_change.bash 550, timeout=0
Additional information
I've been seeing missed channel changes for several months, and unfortunately only now tracked down the culprit.
The text was updated successfully, but these errors were encountered: