NextPVR Forums

Full Version: Index errors stopping a video
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

Been finding some index errors coming up after stopping a video. Seems to happen on from the video library and from existing a recording.

Here's the JIT error:
Code:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at NextPVR.TV.TVGuide.UpdateGuide()
   at NextPVR.TV.TVGuide.Notify(String eventName, Object eventArg)
   at NUtility.EventBus.Notify(String eventName, Object eventArg)
   at NUtility.EventBus.Notify(String eventName)
   at NextPVR.Players.VideoPlayer.Stop(Boolean informController)
   at NextPVR.Players.VideoPlayer.Stop()
   at NextPVR.Players.VideoPlayer.HandleCommand(String command)
   at NextPVR.ControllerForm.HandleCommand(String command)
   at NextPVR.VideoWindow.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.5446 (Win7SP1GDR.050727-5400)
    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
----------------------------------------
NShared
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/NPVR/NShared.DLL
----------------------------------------
NUtility
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/NPVR/NUtility.DLL
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    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.5447 (Win7SP1GDR.050727-5400)
    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.5446 (Win7SP1GDR.050727-5400)
    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.5420 (Win7SP1.050727-5400)
    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.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Data.Entity
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.5420 built by: Win7SP1
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Data.Entity/3.5.0.0__b77a5c561934e089/System.Data.Entity.dll
----------------------------------------
System.Core
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.5420 built by: Win7SP1
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
Test1
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/NPVR/NUtility.dll
----------------------------------------
Test2
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/NPVR/NUtility.dll
----------------------------------------
Test3
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/NPVR/NUtility.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.4940
    Win32 Version: 9.00.30729.4940
    CodeBase: file:///C:/Windows/WinSxS/x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4940_none_50916076bcb9a742/msvcm90.dll
----------------------------------------
taglib-sharp
    Assembly Version: 2.0.3.0
    Win32 Version: 2.0.3.0
    CodeBase: file:///C:/Program%20Files%20(x86)/NPVR/taglib-sharp.DLL
----------------------------------------
System.Transactions
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
Unmanaged
    Assembly Version: 1.0.4209.34330
    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.

There's nothing in the npvr.log but here's the stop:
Code:
2011-09-26 21:00:41.162    [DEBUG][1]    OnKeyDown() done. Took 208.984298706055 ms
2011-09-26 21:08:00.853    [DEBUG][1]    OnKeyDown() called: {CTRL}ControlKey, Control
2011-09-26 21:08:00.853    [DEBUG][1]    OnKeyDown() called: {CTRL}S, Control
2011-09-26 21:08:00.854    [DEBUG][1]    About to store playback position information
2011-09-26 21:08:00.856    [DEBUG][1]    PlaybackPositionHelper.StorePlaybackPosition(G:\Recordings\Shortland Street\Shortland Street_20110926_19001930.ts, 2236, 2928)
2011-09-26 21:08:00.987    [DEBUG][1]    UiStatic.Dispose()
2011-09-26 21:08:00.989    [DEBUG][1]    Stopping graph@1
2011-09-26 21:08:01.227    [DEBUG][1]    Stopping graph@2
2011-09-26 21:08:01.228    [DEBUG][1]    Stopping graph@2.1
2011-09-26 21:08:01.245    [DEBUG][1]    Stopping graph@3
2011-09-26 21:08:01.262    [DEBUG][1]    Removing filter  EVR Renderer
2011-09-26 21:08:01.272    [DEBUG][1]    Removing filter  NPVR PES Collector (Teletext)
2011-09-26 21:08:01.273    [DEBUG][1]    Removing filter  NPVR PES Collector (DVBSubs)
2011-09-26 21:08:01.273    [DEBUG][1]    Removing filter  AAC Audio Renderer
2011-09-26 21:08:01.274    [DEBUG][1]    Removing filter  Microsoft DTV-DVD Video Decoder
2011-09-26 21:08:01.321    [DEBUG][1]    Removing filter  MONOGRAM AAC Decoder
2011-09-26 21:08:01.322    [DEBUG][1]    Removing filter  MPEG-2 Demultiplexer
2011-09-26 21:08:01.322    [DEBUG][1]    Removing filter  NPVR TS Reader
2011-09-26 21:08:01.389    [DEBUG][1]    LoadList@0
2011-09-26 21:08:01.390    [DEBUG][1]    LoadList@1
2011-09-26 21:08:01.573    [DEBUG][1]    LoadList@2
2011-09-26 21:08:01.573    [DEBUG][1]    LoadList@3
2011-09-26 21:08:01.605    [DEBUG][1]    LoadList@setobjects
Are you able to reproduce this at will?

I've narrowed it down to a specific function, but its a big function so not sure exactly where the problem might be. If you can reproduce it, I'll several log messages through that function to help narrow it down.
Strangely the exception and log message dont seem to agree on where the problem is happening.
I gave npvr a restart yesterday. So I'll see if it's doing it again. I have a sneaking suspicion it might be to do with deleting recordings from the db without restarting services.

If it doesn't do it tonight then that will be it.
Hi. So it wasn't happening tonight. I suspect it was to do with removing entries from the database without giving npvr a restart.