NextPVR Forums

Full Version: nPVR Unhandled Exception
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I upgraded my server where my Videos reside (not TV Recordings). Now, when trying to access a directory on that server with nPVR, I get an Unhandled Exception. Happens on the clients too. There isn't a bit of info in the logs either.

-Win 7. -Server is mapped (MSmile. I *can* browser the server drive and play anything with WMP or VNC. Drive is read/writable.

Here's the error from the dialog:

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

************** Exception Text **************
System.IO.IOException: The filename, directory name, or volume label syntax is incorrect.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
at NextPVR.Libraries.BaseLibrary.LoadList(Boolean shuffle)
at NextPVR.Libraries.VideoLibrary.LoadList()
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.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/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.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/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
----------------------------------------
SSPlus
Assembly Version: 0.9.1.9
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/NPVR/NUtility.dll
----------------------------------------
System
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/NPVR/NUtility.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
----------------------------------------
TV Listings
Assembly Version: 3.5.0.14803
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/NPVR/NUtility.dll
----------------------------------------
MusicBox4
Assembly Version: 9.2.1.36892
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/NPVR/NUtility.dll
----------------------------------------
Interfaces
Assembly Version: 9.1.3.39295
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/NPVR/NUtility.dll
----------------------------------------
Interop.WMPLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/NPVR/NUtility.dll
----------------------------------------
UltraID3Lib
Assembly Version: 0.9.6.8
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/NPVR/NUtility.dll
----------------------------------------
SlimDX
Assembly Version: 2.0.8.42
Win32 Version:
CodeBase: file:///C:/Program%20Files/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/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.
It looks like you've got a media directory setup for a directory that no longer exists. Go into the Settings screen and check your directories.
Yeah, that's the first thing I did. Should have mentioned that. I even created a new share on the server with nothing in it called "TEST", verified I could get to that with Windows connecting to the server.

I added it in Settings and got the same result. Remember, I can browse and play in Windows/WMP okay using the same drive mapped shares.

I strongly suspect that my new install of OS X Server is passing something that nPVR doesn't like for the directory listing, yet everything else I do with Windows on that server is okay.

I've seen a few posts that since Apple moved away from Samba in 10.7, their homegrown SMB has issues. I may just compile Samba myself and put that back.
It definitely looks like something about the filename or directory or something similar.

Maybe reproduce the error then post the npvr.log
There isn't anything in the log about it, just my last key press. Any extra debugging we can enable?

I'm going to compile Samba from source tomorrow and bypass Apple's kludge. It'll only take me 15 minutes and will be a simple, easy test.
If it was earlier in the release cycle, I could give you a patch with extra logging. At this stage though, my build is no longer compatible with 2.2.6, so that's not possible.

What do you think the exact path and filename is of the file you're trying to play?
Hi sub, it's not a particular file. I'm one of those that keeps a lot of movies in a directory e.g. "SciFi" "Action" etc. Each one of those directories are a media folder in Videos.

It is getting that error upon trying to list the contents of the directory. I never get so far as to even see a file to attempt to play it.

For now, I've booted from a drive that has my original server on it and will regroup. It's trivial to boot from the upgraded server disk (and I use the word upgrade loosely!) if you have something to try. Else, I'll wait until the next release for more logging or, hopefully, a magic server OS update that fixes everything.
You'll probably need to wait until the next release is out so can a line of debugging for you. Its pretty clear from the error message though that Window's is unhappy with the name.
sub Wrote:You'll probably need to wait until the next release is out so can a line of debugging for you. Its pretty clear from the error message though that Window's is unhappy with the name.

I agree. I just can't work out why it's only causing an error in PVR. As mentioned, I can browse to the same share and copy/delete and play items just fine with Windows.