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 … 208 209 210 211 212 … 433 Next »
Divide By Zero Error happening a lot...

Divide By Zero Error happening a lot...
schneideris
Offline

Junior Member

Posts: 38
Threads: 6
Joined: Jan 2013
#1
2013-03-04, 01:18 AM
I am getting a divide by zero error that is throwing the following trace log. This is happening a lot when I go to change channels.

Code:
************** Exception Text **************
System.DivideByZeroException: Attempted to divide by zero.
   at Native.PlaybackNative.SwitchToStream(String filename)
   at NextPVR.Players.PlaybackProxyFactory.SwitchToStream(String newFile)
   at NextPVR.Players.LiveTvPlayer.StartLiveTV(Channel channel, String& reason)
   at NextPVR.Players.LiveTvPlayer.PluginCallback(Object source, String command, Object args)
   at NextPVR.Players.NowNextPlugin.OnKeyDown(KeyEventArgs e)
   at NextPVR.Players.LiveTvPlayer.OnKeyDown(KeyEventArgs e)
   at NextPVR.ControllerForm.OnKeyDown(Object sender, KeyEventArgs e)
   at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e)
   at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
   at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
   at System.Windows.Forms.Control.WmKeyChar(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at NextPVR.ControllerForm.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.6400 (Win8RTMGDR.050727-6400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
NextPVR
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/NPVR/NextPVR.exe
----------------------------------------
NUtility
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/NPVR/NUtility.DLL
----------------------------------------
NShared
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/NPVR/NShared.DLL
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.6387 (Win8RTM.050727-6300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.6402 (Win8RTMGDR.050727-6400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Data.SQLite
    Assembly Version: 1.0.65.0
    Win32 Version: 1.0.65.0
    CodeBase: file:///C:/Program%20Files%20(x86)/NPVR/System.Data.SQLite.DLL
----------------------------------------
System.Data.Entity
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.6387 built by: Win8RTM
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Data.Entity/3.5.0.0__b77a5c561934e089/System.Data.Entity.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.6387 (Win8RTM.050727-6300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.6387 (Win8RTM.050727-6300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.6387 (Win8RTM.050727-6300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
SlimDX
    Assembly Version: 2.0.8.42
    Win32 Version:
    CodeBase: file:///C:/Program%20Files%20(x86)/NPVR/SlimDX.DLL
----------------------------------------
msvcm90
    Assembly Version: 9.0.30729.6871
    Win32 Version: 9.00.30729.6871
    CodeBase: file:///C:/WINDOWS/WinSxS/x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6871_none_50944e7cbcb706e5/msvcm90.dll
----------------------------------------
taglib-sharp
    Assembly Version: 2.0.4.0
    Win32 Version: 2.0.4.0
    CodeBase: file:///C:/Program%20Files%20(x86)/NPVR/taglib-sharp.DLL
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.6387 (Win8RTM.050727-6300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Management
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.6387 (Win8RTM.050727-6300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
System.Transactions
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.6387 (Win8RTM.050727-6300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.6387 (Win8RTM.050727-6300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
Unmanaged
    Assembly Version: 1.0.4658.10495
    Win32 Version:
    CodeBase: file:///C:/Program%20Files%20(x86)/NPVR/Unmanaged.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Not sure if there is anything that can be done to this end. Is it possible to get a copy of the code and submit corrections?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#2
2013-03-04, 01:26 AM
Sorry, the source code is not available.

Can you post the logs immediately after it happens? I'll see if anything stands out.

What type of tuner are you using?
schneideris
Offline

Junior Member

Posts: 38
Threads: 6
Joined: Jan 2013
#3
2013-03-04, 01:41 AM
The tuners are Hauppauge 1600 and 2250 on the backend server. The frontend machine where the error is happening does not have a tuner and needs to be rebooted afterwards or an error reaching the db3 file is reported. Both front and backend machines are running Windows 8 Pro.

The next time it happens and I am around I will try to grab the logs and post them.

From memory this does appear to happen when changing channels from within LiveTV using the smaller guide (accessed with the up and down arrows).
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#4
2013-03-04, 02:21 AM
Does this happen if you try from NextPVR running directly on the server? ie, is it a client-specific bug?
schneideris
Offline

Junior Member

Posts: 38
Threads: 6
Joined: Jan 2013
#5
2013-03-04, 02:38 AM
Not sure. I never watch from the backbend. It is in a server closet with no intention of being used to be a primary viewer.
schneideris
Offline

Junior Member

Posts: 38
Threads: 6
Joined: Jan 2013
#6
2013-03-10, 06:22 PM (This post was last modified: 2013-03-10, 06:27 PM by schneideris.)
Just got the crash again and am trying to figure out where the logs are stored. I looked in the fronted machines Program Files (x86) folder with no success. Where should I be looking?

Edit: Just did a search and got a location for the NRecord.log and NPVR.log files. The dates on the files are one and two days old so it does not look like anything has been recorded to them.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#7
2013-03-10, 06:24 PM
On Vista/Win7/Win8, the logs are in c:\users\public\npvr\logs.
schneideris
Offline

Junior Member

Posts: 38
Threads: 6
Joined: Jan 2013
#8
2013-03-10, 06:32 PM
Here is an interesting entry in the backend log.

Code:
2013-03-10 12:12:25.359    [DEBUG][6]    about to read 169200 from location 169200  (current length = 1928504)
2013-03-10 12:12:25.359    [DEBUG][6]    read@3.1
2013-03-10 12:12:25.359    [DEBUG][6]    READ:@after read
2013-03-10 12:12:25.362    [DEBUG][6]    READ:@about to get length
2013-03-10 12:12:25.362    [DEBUG][6]    RollingFile.Length returning 1928780
2013-03-10 12:12:25.362    [DEBUG][6]    READ:@after get length
2013-03-10 12:12:25.362    [DEBUG][6]    READ:@after to get duration
2013-03-10 12:12:25.362    [DEBUG][6]    GetDurationMS() live: 858
2013-03-10 12:12:25.362    [DEBUG][6]    In-progress duration is now: 858
2013-03-10 12:12:25.362    [DEBUG][6]    READ: data read, about to send
2013-03-10 12:12:25.362    [DEBUG][6]    READ:@about to send
2013-03-10 12:12:25.362    [DEBUG][6]    READ: complete
2013-03-10 12:12:25.362    [DEBUG][6]    RollingFile.Length returning 1928780
2013-03-10 12:12:25.362    [DEBUG][6]    File length: 1928780
2013-03-10 12:12:25.363    [DEBUG][6]    RollingFile.Length returning 1928780
2013-03-10 12:12:25.363    [DEBUG][6]    CLIENT-READ: 169200 bytes from offset 338400
2013-03-10 12:12:25.363    [DEBUG][6]    RollingFile.Length returning 1928780
2013-03-10 12:12:25.363    [DEBUG][6]    RollingFile.Seek(338400)
2013-03-10 12:12:25.363    [DEBUG][6]    RollingFile base offset is now: 0
2013-03-10 12:12:25.363    [DEBUG][6]    <Files>
  <Length>1928780</Length>
  <File offset="0">D:\Temp\live-Global - Calgary-4807.ts</File>
  <Duration>858</Duration>
  <Complete>0</Complete>
</Files>

2013-03-10 12:12:25.363    [DEBUG][6]    about to read 169200 from location 338400  (current length = 1928504)
2013-03-10 12:12:25.363    [DEBUG][6]    read@3.1
2013-03-10 12:12:25.363    [DEBUG][6]    READ:@after read
2013-03-10 12:12:35.051    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:12:45.094    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:12:55.143    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:13:05.185    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:13:15.233    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:13:25.282    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:13:35.347    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:13:45.391    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:13:55.437    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:14:05.483    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:14:15.532    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:14:25.576    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:14:35.623    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:14:45.668    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:14:55.712    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:15:05.763    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:15:15.806    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:15:25.872    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:15:35.920    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:15:45.978    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:15:56.023    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:16:06.075    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:16:16.114    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:16:26.179    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:16:36.229    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:16:46.273    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:16:56.322    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:17:06.366    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:17:16.413    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:17:26.457    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:17:36.509    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:17:46.554    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:17:56.597    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:18:06.642    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:18:16.689    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:18:26.739    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:18:36.782    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:18:46.828    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:18:56.879    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:19:06.922    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:19:16.972    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:19:27.019    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:19:37.062    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:19:47.110    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:19:57.154    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:20:07.200    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:20:17.251    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:20:27.293    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:20:37.343    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:20:47.390    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:20:57.433    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:21:07.479    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:21:17.529    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:21:27.572    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:21:37.624    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:21:47.669    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:21:57.719    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:22:07.763    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:22:17.807    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:22:27.853    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:22:37.898    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:22:47.943    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:22:57.992    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:23:08.040    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:23:18.083    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:23:28.133    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:23:38.178    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:23:48.233    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:23:58.276    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:24:08.316    [DEBUG][3]    Renew lease ok (0x140021)
2013-03-10 12:24:16.830    [DEBUG][3]    StopStream
2013-03-10 12:24:17.379    [ERROR][6]    Unexpected exception in ClientConnectionHandler: System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
   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()
2013-03-10 12:24:17.379    [DEBUG][6]    CLOSING file (client connection gone)
2013-03-10 12:24:17.379    [DEBUG][6]    RollingFile.Close()
2013-03-10 12:24:17.380    [DEBUG][6]    About to delete temp file: D:\Temp\live-Global - Calgary-4807.ts
2013-03-10 12:24:17.380    [DEBUG][6]    Cleaning up: D:\Temp\live-Global - Calgary-4807.ts
2013-03-10 12:24:17.553    [DEBUG][6]    Cleaning up: D:\Temp\live-Global - Calgary-4807-2.ts
2013-03-10 12:24:18.307    [DEBUG][6]    ClientConnectionHandler exiting...

Looks like the mystery is a connection one.
schneideris
Offline

Junior Member

Posts: 38
Threads: 6
Joined: Jan 2013
#9
2013-03-10, 06:35 PM
I should note that at this point I have to kill NPVR on the frontend as it is no-longer responding. After doing so it is able to connect to the backend and play content.
NYPlayer
Offline

Senior Member

Posts: 308
Threads: 22
Joined: Aug 2014
#10
2014-08-30, 06:10 PM
I just recently Installed NPVR everything works great except for the Client when watching LIVETV I keep getting the error described here. In order to duplicate this... Watch LIVETV on the Client hit the up arrow to bring up the guide then select a different channel... this will cause the error.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Mouse Click on TV Guide throws an error mlopez1007 2 1,489 2021-03-22, 11:33 AM
Last Post: Graham
  Unhandled Exception Error Message reedaf4 23 7,596 2020-03-13, 05:03 PM
Last Post: sub
Photo Server database error mnthope 4 2,242 2019-12-23, 11:28 PM
Last Post: sub
  Framework Error Mroctober 1 1,208 2019-09-25, 03:13 PM
Last Post: Graham
  EPG error message djregehr 3 1,683 2019-08-09, 05:50 PM
Last Post: djregehr
  Error in Channel Setup Rich A 17 4,387 2019-05-24, 10:17 PM
Last Post: Rich A
  Recording Error: No errors, but no data delivered. jksmurf 4 1,876 2019-04-08, 04:24 AM
Last Post: jksmurf
  Import Error with Updated NPVR Release Coulen 9 3,023 2019-03-08, 10:00 PM
Last Post: sub
  Recurring page causes exception error metrov 9 2,719 2019-02-07, 09:23 PM
Last Post: metrov
  Invalid character in EPG data/Unicode error ZXGuesser 6 2,677 2019-02-07, 04:24 PM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode