NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 182 183 184 185 186 … 433 Next »
The Tuner you were using was required for a recording.

The Tuner you were using was required for a recording.
joeyberkovitz
Offline

Junior Member

Posts: 7
Threads: 1
Joined: May 2015
#1
2015-05-24, 11:16 PM (This post was last modified: 2015-05-26, 01:59 PM by joeyberkovitz.)
I am using NPVR with an HDHR3-US, and after about 25 minutes the stream freezes and says, "The tuner you were using was required for a recording. Would you like to switch to watching a recording, or exit back to the menu?" The only option it gives it to exit to the menu.

When this occurs there is no recording set, and there are 2 tuners available, while only 1 is being used.

The log for when it fails is below:

2015-05-24 19:10:47.347 [DEBUG][31] Waiting for file to grow. Segment position now 618941496, length now 618714392
2015-05-24 19:10:47.347 [DEBUG][31] FileInfo reports file length as: 618714392
2015-05-24 19:10:47.347 [DEBUG][31] DriveInfo reports available space as: 1172132171776
2015-05-24 19:10:47.598 [DEBUG][31] Not all bytes read@2
2015-05-24 19:10:47.598 [DEBUG][31] About to switch files. The current file is H:\live-WCBS-HD-5949-3.ts
2015-05-24 19:10:47.598 [DEBUG][31] Unable to find file using method(1)
2015-05-24 19:10:47.598 [DEBUG][31] Switching to file(2): H:\live-WCBS-HD-5949-3.ts
2015-05-24 19:10:47.598 [DEBUG][31] currentFiles.Count = 3
2015-05-24 19:10:47.598 [DEBUG][31] - H:\live-WCBS-HD-5949-3.ts
2015-05-24 19:10:47.598 [DEBUG][31] - H:\live-WCBS-HD-5949-2.ts
2015-05-24 19:10:47.598 [DEBUG][31] - H:\live-WCBS-HD-5949.ts
2015-05-24 19:10:47.599 [ERROR][31] Unexpected exception in ClientConnectionHandler: System.Net.Sockets.SocketException (0x80004005): An established connection was aborted by the software in your host machine
at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 size, SocketFlags socketFlags)
at NShared.ClientConnectionHandler.WorkerThread()
2015-05-24 19:10:47.599 [DEBUG][31] CLOSING file (client connection gone)
2015-05-24 19:10:47.599 [DEBUG][31] RollingFile.Close()
2015-05-24 19:10:47.599 [DEBUG][31] About to delete temp file: H:\live-WCBS-HD-5949-3.ts
2015-05-24 19:10:47.599 [DEBUG][31] About to delete temp file: H:\live-WCBS-HD-5949-2.ts
2015-05-24 19:10:47.599 [DEBUG][31] About to delete temp file: H:\live-WCBS-HD-5949.ts
2015-05-24 19:10:47.603 [DEBUG][31] Cleaning up: H:\live-WCBS-HD-5949.ts
2015-05-24 19:10:47.604 [DEBUG][31] Cleaning up: H:\live-WCBS-HD-5949-3.ts
2015-05-24 19:10:47.756 [DEBUG][31] ClientConnectionHandler exiting...


Any help would be appreciated.


Update:
I tried again, but it no longer throws an error. Now it just freezes after about 25 minutes.
The log entry for when it froze is below:
2015-05-25 18:04:30.609 [DEBUG][91] Remaining bytes required=55648
2015-05-25 18:04:40.672 [DEBUG][26] Renew lease ok (0x150004)
2015-05-25 18:04:50.736 [DEBUG][26] Renew lease ok (0x150004)

This issue only occurs on the client PC's. On the server it never freezes. I disabled the firewall on the server, but it didn't help.

The logs are attached.

Looking at the client logs it looks like the client tries to renew the lease, and the server renews it, but the client never receives the renewal from the server.
In the client log NPVR.log.2 - 2015-05-25 18:04:40.664 [DEBUG][1] Client about to request renewal of handle: 150004 repeats until the program is closed.

The client logs are also attached.
joeyberkovitz
Offline

Junior Member

Posts: 7
Threads: 1
Joined: May 2015
#2
2015-05-26, 02:40 PM
When I ran the stream through X-Newa I got a different error in the log.
The logs from when it was streaming through Kodi also suggest a failure in the lease renewal.
It looks like the database ends up locked when it tries to renew the lease even though it isn't locked at other times.

Logs are attached
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,981
Threads: 956
Joined: May 2006
#3
2015-05-27, 12:47 AM
Because of the spam in web.log I can't diagnose the problem without kodi.log but based on what I wrote here http://forums.nextpvr.com/showthread.php...quot/page4 it's the same problem I've reported to sub before with some proof of concept code, he needs to shorten the time on the lock for the temp file when other things are going on especially from a PC client

Martin
joeyberkovitz
Offline

Junior Member

Posts: 7
Threads: 1
Joined: May 2015
#4
2015-05-27, 10:45 PM
Thank You

Attached are the NPVR and Kodi logs.

Do you know if there is anything that I can do to fix this issue?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,981
Threads: 956
Joined: May 2006
#5
2015-05-28, 12:02 AM
joeyberkovitz Wrote:Thank You

Attached are the NPVR and Kodi logs.

Do you know if there is anything that I can do to fix this issue?

I suspect it fails here because it couldn't lock the database when it needed to

Code:
2015-05-27 18:34:31.505    [DEBUG][23]    Not all bytes read@1 (only got: + 40856). About to do second chance. (file: H:\live-WCBS-HD-13964-2-12.ts)
2015-05-27 18:34:31.505    [DEBUG][23]    Waiting for file to grow. Segment position now 379999136, length now 379999136
2015-05-27 18:34:31.757    [DEBUG][23]    Doing second chance read... (requested 50000 bytes, but only got 40856)
2015-05-27 18:34:31.757    [DEBUG][23]    Segment position now 379999136, length now 380586072
2015-05-27 18:34:31.757    [DEBUG][23]    Remaining bytes required=9144
2015-05-27 18:34:50.562    [DEBUG][23]    Got bytes=9144
2015-05-27 18:34:50.562    [DEBUG][23]    Got all remaining bytes: 50000
2015-05-27 18:34:50.562    [DEBUG][23]    About to send 50000 bytes
2015-05-27 18:34:50.562    [DEBUG][23]    Sent 50000 bytes
2015-05-27 18:34:50.562    [DEBUG][23]    Renewed lease... (150002)
2015-05-27 18:34:52.134    [DEBUG][23]    Renew lease failed. Dropping out.
2015-05-27 18:34:55.135    [DEBUG][23]    StopStream(1376258)...

deadlocked against this thread

Code:
2015-05-27 18:34:31.997    [DEBUG][33]    GetRecordingsList
2015-05-27 18:34:31.997    [DEBUG][33]    GetRecordingsList@1
2015-05-27 18:34:51.090    [DEBUG][33]    GetRecordingsList@2


Martin
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,732
Threads: 767
Joined: Nov 2003
#6
2015-05-28, 12:56 AM
Quote:2015-05-27 18:34:31.997 [DEBUG][33] GetRecordingsList@1
2015-05-27 18:34:51.090 [DEBUG][33] GetRecordingsList@2
Strange it would have taken this long between these two messages.

Are you recording to a network drive, or is the very slow machine slow?
joeyberkovitz
Offline

Junior Member

Posts: 7
Threads: 1
Joined: May 2015
#7
2015-05-28, 11:35 PM
sub Wrote:Strange it would have taken this long between these two messages.

Are you recording to a network drive, or is the very slow machine slow?

It is recording to a WD Red on the local machine, but the machine is very quick.
It is running Windows Server 2012. Would that have any effect on it?
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,732
Threads: 767
Joined: Nov 2003
#8
2015-05-29, 01:10 AM
How many recording have you got?

It basically look liked it took 20 seconds to load your recording list. Normally this take a few milliseconds.
joeyberkovitz
Offline

Junior Member

Posts: 7
Threads: 1
Joined: May 2015
#9
2015-05-29, 02:06 AM
sub Wrote:How many recording have you got?

It basically look liked it took 20 seconds to load your recording list. Normally this take a few milliseconds.

I have 109 recordings. Is that an issue?
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,732
Threads: 767
Joined: Nov 2003
#10
2015-05-29, 02:08 AM
No, that's not very many, and shouldn't take long.

Do you always get this type of delay between the "GetRecordingsList@1" and "GetRecordingsList@2" messages in your log file?
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Recording movies / TV to XBMC directory stucture spinnaker 10 3,571 2024-06-03, 03:56 AM
Last Post: Rod Hutchinson
  Not recording errors vidwiz 4 1,012 2024-04-17, 05:39 PM
Last Post: mvallevand
  Add Series/Episode Info to Recording Metadata andrewj 2 1,086 2023-11-20, 03:42 PM
Last Post: sub
  Unable to access tuner after hibernation bm_00 1 1,234 2022-12-12, 02:00 PM
Last Post: mvallevand
  Tuner not being released when live TV stopped on Kodi dark_half 7 2,843 2022-06-12, 11:59 PM
Last Post: sub
  Recording to a network drive woes. 2leftfeet 12 7,221 2022-04-05, 08:03 PM
Last Post: mvallevand
  Can't find tuner filter in NPVR 4.05 on old XP machine (eee 701) with RTL2832U iamanotheruser 3 1,704 2022-01-03, 04:45 AM
Last Post: mvallevand
  device needed for recording David209 2 1,740 2021-04-04, 08:47 AM
Last Post: David209
  PC not going to sleep after recording LeoL 7 3,289 2021-04-01, 07:17 PM
Last Post: Handy.Man
  HDHomerun recording bizzarely not working Jean0987654321 3 2,043 2021-03-27, 03:23 PM
Last Post: Jean0987654321

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode