NextPVR Forums

Full Version: Videos Menu - Poor Network Behavior (Unhandled Exception)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
This is only a minor problem.

In "Videos" I have a folder on a network share.
If the other computer is off or falls asleep, it takes about 20 seconds to access the Videos Menu - either from the main Menu or reversing out from another local folder.
If I try to access the network folder while the other computer is off-line it generates an unhandled exception error - path is invalid.

Obviously this is correct, - but could it be handled more gracefully? (There is not this problem with off-line external hard drives)
Or should I be mapping the network drive instead?
Just a quick update
External hard drive does actually cause an unhandled exception error when off-line but there is no delay when traversing the videos folder as with the network share.
Post the text of the error and I'll take a look.
Visited Videos (aprox 10 seconds wait)
Tried to enter New Downloads on Network Folder (Remote Computer was off)
Unhandled Exception Error and log attached (not much in log)

If remote computer is running there is no problem - I think GBPVR just ignored off line links, perhaps a pop-up telling you the folder was off-line would be nicer (I am usin wave skin)
See if this helps. It disables the use of the file system watcher on UNC paths. The file system watcher is used to allow dynamic updates of the file list if you're looking at the list of files when a new file is dropped in the directory. (so no major loss having it disabled on UNC paths)
Didn't quite do it for me.
In some circumstances the delay disappears but on others it returns e.g. (main menu - videos = delay) (videos - main menu - videos = no delay) (videos - main menu - Program Guide - main menu - Videos = Delay) (One level past Videos - return = no delay) (Two levels past Videos - return - return = delay)
Also still get the unhandled exception if trying to open the sleeping computer.

On a good note the Video resume was a nice addition Big Grin
Lao Pan Wrote:On a good note the Video resume was a nice addition Big Grin

Yeah, thanks a lot for that Sub, I'v really missed that function :o
Lao Pan Wrote:Didn't quite do it for me.
In some circumstances the delay disappears but on others it returns e.g. (main menu - videos = delay) (videos - main menu - videos = no delay) (videos - main menu - Program Guide - main menu - Videos = Delay) (One level past Videos - return = no delay) (Two levels past Videos - return - return = delay)
Also still get the unhandled exception if trying to open the sleeping computer.
What does the exception say now? That same exception you posted should not be possible with that patch I posted, so this makes me think the exception message is different, or you dont have the patch installed.
NextPVR.exe date modified: 01/10/2010 06.22

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

************** Exception Text **************
System.ArgumentException: The directory name \\SUPER-LAO-PAN-1\eMule Incoming\ is invalid.
   at System.IO.FileSystemWatcher..ctor(String path, String filter)
   at System.IO.FileSystemWatcher..ctor(String path)
   at NextPVR.Libraries.BaseLibrary.ActivateItem(ListObject selectedObject)
   at NextPVR.Libraries.VideoLibrary.ActivateItem(ListObject selectedObject)
   at NUtility.Controls.ListRenderers.UiListList.OnKeyDown(KeyEventArgs e)
   at NUtility.Controls.UiList.OnKeyDown(KeyEventArgs e)
   at NextPVR.Libraries.BaseLibrary.OnKeyDown(KeyEventArgs e)
   at NextPVR.Libraries.VideoLibrary.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.4206 (VistaSP2GDR.050727-4200)
    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/NPVR/NextPVR.exe
----------------------------------------
NShared
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/NPVR/NShared.DLL
----------------------------------------
NUtility
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/NPVR/NUtility.DLL
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    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.4205 (VistaSP2GDR.050727-4200)
    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.4016 (NetFxQFE.050727-4000)
    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.4016 (NetFxQFE.050727-4000)
    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/NPVR/System.Data.SQLite.DLL
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    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.1 built by: SP
    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.1 built by: SP
    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.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/NPVR/NUtility.dll
----------------------------------------
Test1
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/NPVR/NUtility.dll
----------------------------------------
Test2
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/NPVR/NUtility.dll
----------------------------------------
Test3
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/NPVR/NUtility.dll
----------------------------------------
SearchLite
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/NPVR/NUtility.dll
----------------------------------------
System.Web.Services
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
----------------------------------------
SlimDX
    Assembly Version: 2.0.8.42
    Win32 Version:
    CodeBase: file:///C:/Program%20Files/NPVR/SlimDX.DLL
----------------------------------------
msvcm90
    Assembly Version: 9.0.30729.4148
    Win32 Version: 9.00.30729.4148
    CodeBase: file:///C:/Windows/WinSxS/x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4148_none_5090ab56bcba71c2/msvcm90.dll
----------------------------------------
taglib-sharp
    Assembly Version: 2.0.3.0
    Win32 Version: 2.0.3.0
    CodeBase: file:///C:/Program%20Files/NPVR/taglib-sharp.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.
Can you see if this helps?
Pages: 1 2