INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Solved: MC not releasing TV tuner device after recording  (Read 4201 times)

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2556
Solved: MC not releasing TV tuner device after recording
« on: June 01, 2016, 12:18:11 pm »

I've been having problems recently with MC not releasing the TV tuner device after a scheduled recording. If I stop playback manually from a TV channel, there are no problems and MC releases the device.

This manifests as a "tv tuner device not available" error if I try to open a TV channel. It also causes playback to fail for regular video files since it appears that MC still has the TV channel open ("Live") in the playback status display and will not release it even when trying to play a different file.

The remedy for me is to kill and restart MC via the Task Manager. MC freezes when trying to close it in this state, although I can otherwise navigate the UI as long as I don't try to shut down the program.

I'm using a Pinnacle PCTV HD Stick.
Logged

Yaobing

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10865
  • Dogs of the world unite!
Re: MC not releasing TV tuner device after recording
« Reply #1 on: June 01, 2016, 03:57:22 pm »

Please capture a log and email to me.  yaobing at jriver dot com

Turn on logging, and repeat what you described.
Logged
Yaobing Deng, JRiver Media Center

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2556
Re: MC not releasing TV tuner device after recording
« Reply #2 on: June 02, 2016, 07:23:46 pm »

Logs sent.
Logged

Yaobing

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10865
  • Dogs of the world unite!
Re: MC not releasing TV tuner device after recording
« Reply #3 on: June 06, 2016, 03:52:31 pm »

I saw two things in the log.  One of the tuners was in un-released state, and when MC tried to use it for viewing a channel live it failed to accept the tuning parameters.  The tuner had been in that state before you reset the log.  So I am not able to tell how it got in that state.  The second thing I saw in the log, which I can reproduce easily, was a bug introduced in build 86.  I have fixed it for the next new build:

Fixed: During live TV playback running "Restart Player" context menu command would lead to loss of video (black screen).

I can not tell if these two things are related.  Please let me know whether the above also fixes the tuner not-released problem.

Logged
Yaobing Deng, JRiver Media Center

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2556
Re: MC not releasing TV tuner device after recording
« Reply #4 on: June 09, 2016, 08:19:14 am »

I saw two things in the log.  One of the tuners was in un-released state, and when MC tried to use it for viewing a channel live it failed to accept the tuning parameters.  The tuner had been in that state before you reset the log.  So I am not able to tell how it got in that state.  The second thing I saw in the log, which I can reproduce easily, was a bug introduced in build 86.  I have fixed it for the next new build:

Fixed: During live TV playback running "Restart Player" context menu command would lead to loss of video (black screen).

I can not tell if these two things are related.  Please let me know whether the above also fixes the tuner not-released problem.



OK, sending another log now.
Logged

Yaobing

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10865
  • Dogs of the world unite!
Re: MC not releasing TV tuner device after recording
« Reply #5 on: June 09, 2016, 05:05:39 pm »

Did you setup EPG to load in background every two hours?  I see attempts every two hours.
Logged
Yaobing Deng, JRiver Media Center

Yaobing

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10865
  • Dogs of the world unite!
Re: MC not releasing TV tuner device after recording
« Reply #6 on: June 09, 2016, 07:22:57 pm »

Here is what I found out:

Your second tuner appears to be malfunctioning.  No matter what we try to load it for, watching a channel live, loading EPG, or recording a channel, it fails to tune.  The EPG loading does not have a graceful recovery.  So the faulting tuner simply is stuck in EPG loading process, but can not do anything because it failed to tune.
Logged
Yaobing Deng, JRiver Media Center

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2556
Re: MC not releasing TV tuner device after recording
« Reply #7 on: June 13, 2016, 06:47:43 pm »

Would it be helpful to send additional logs when this happens, or is the problem not being logged?
Logged

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: MC not releasing TV tuner device after recording
« Reply #8 on: June 13, 2016, 07:38:32 pm »

Your second tuner appears to be malfunctioning.

I believe that means your tuner is broken.

You are using this USB tuner, correct? http://www.pctvsystems.com/Products/ProductsNorthAmerica/HybridproductsUSA/PCTVHDStick/tabid/173/language/en-US/Default.aspx

Could it have been damaged when a cable was pulled, or the PC moved, or something? Maybe try re-seating it, or a different USB port. Check that the USB port still works with other devices. Sometimes a laptop USB port can be damaged if the device plugged into it is bumped, twisted or inserted too hard. Even a USB port on a motherboard could be damaged. I would always use a USB extension cable with such devices, even short ones, for just that reason.

But it probably just means that the tuner has died, has failed, is broken, and needs replacing. More logging isn't going to help with that.
Logged
What specific version of MC you are running:MC27.0.27 @ Oct 27, 2020 and updating regularly Jim!                        MC Release Notes: https://wiki.jriver.com/index.php/Release_Notes
What OS(s) and Version you are running:     Windows 10 Pro 64bit Version 2004 (OS Build 19041.572).
The JRMark score of the PC with an issue:    JRMark (version 26.0.52 64 bit): 3419
Important relevant info about your environment:     
  Using the HTPC as a MC Server & a Workstation as a MC Client plus some DLNA clients.
  Running JRiver for Android, JRemote2, Gizmo, & MO 4Media on a Sony Xperia XZ Premium Android 9.
  Playing video out to a Sony 65" TV connected via HDMI, playing digital audio out via motherboard sound card, PCIe TV tuner

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2556
Re: MC not releasing TV tuner device after recording
« Reply #9 on: July 12, 2016, 02:19:25 pm »

SOLVED!

My motherboard uses the Asmedia 1042 USB 3.0 chipset, which I've come to find out does not adhere to the USB spec. This is the port that I had my TV tuner connected to since the problems started occurring. I've since moved it to a USB 2.0 port and the problems have gone away.
Logged

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: Solved: MC not releasing TV tuner device after recording
« Reply #10 on: July 12, 2016, 05:22:32 pm »

Well done finding the source of the problem.

Don't you hate it when manufacturers don't follow the standard. My old PC has an NEC USB 3.0 chipset, and while it mostly works, it does suffer from being an early example of the technology.

You would think manufacturers would learn to do it right, given standards are available, but I'm hearing similar issues with USB 3.1 Gen1, and now Gen2 implementations. Ho hum.  ::)

Now enjoy TV without failures!  :D
Logged
What specific version of MC you are running:MC27.0.27 @ Oct 27, 2020 and updating regularly Jim!                        MC Release Notes: https://wiki.jriver.com/index.php/Release_Notes
What OS(s) and Version you are running:     Windows 10 Pro 64bit Version 2004 (OS Build 19041.572).
The JRMark score of the PC with an issue:    JRMark (version 26.0.52 64 bit): 3419
Important relevant info about your environment:     
  Using the HTPC as a MC Server & a Workstation as a MC Client plus some DLNA clients.
  Running JRiver for Android, JRemote2, Gizmo, & MO 4Media on a Sony Xperia XZ Premium Android 9.
  Playing video out to a Sony 65" TV connected via HDMI, playing digital audio out via motherboard sound card, PCIe TV tuner

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2556
Re: Solved: MC not releasing TV tuner device after recording
« Reply #11 on: September 08, 2016, 10:08:55 am »

So this problem resurfaced and I discovered that the main culprit is scanning for OTA EPG data. It seems that whenever I exited a show I had been watching for a while, MC would immediately start to try downloading EPG data, which would block access to the tuner. If you have a tv tuner with multiple tuners, this wouldn't be a huge problem, but I've found that it is best to just disable OTA EPG data altogether. I could not figure out how to disable OTA EPG scanning after it was enabled so I ended up redoing my entire TV setup config and now everything is working correctly.

I would suggest that MC includes a disclaimer in the FAQ or in the TV settings that doing OTA EPG scans with a single TV tuner may prevent access to the tuner during the scan.
Logged
Pages: [1]   Go Up