Crashes when scanning for new folders

pzam

11-07-2009 18:47:19

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

************** Exception Text **************
System.Xml.XmlException: 'http' is an unexpected token. The expected token is '"' or '''. Line 10, position 9.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.ThrowUnexpectedToken(String expectedToken1, String expectedToken2)
at System.Xml.XmlTextReaderImpl.ParseAttributes()
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlReader.InternalReadContentAsString()
at System.Xml.XmlReader.ReadContentAsString()
at System.Xml.XmlSubtreeReader.ReadContentAsString()
at System.Xml.XmlReader.ReadElementContentAsString()
at TVRename.SeriesInfo.LoadXml(XmlReader r)
at TVRename.TheTVDB.ProcessTVDBResponse(Stream ms)
at TVRename.TheTVDB.Search(String text)
at TVRename.UI.bnFMFullAuto_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.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.3069 (QFE.050727-3000)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
TVRename
Assembly Version: 1.0.0.0
Win32 Version:
CodeBase: file:///C:/Program%20Files%20(x86)/TVRename/TVRename.exe
----------------------------------------
msvcm90
Assembly Version: 9.0.30729.1
Win32 Version: 9.00.30729.1
CodeBase: file:///C:/Windows/WinSxS/x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.1_none_e163563597edeada/msvcm90.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3069 (QFE.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3069 (QFE.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3069 (QFE.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Deployment
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3069 (QFE.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Deployment/2.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3069 (QFE.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3069 (QFE.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
Ionic.Utils.Zip
Assembly Version: 1.5.2.1
Win32 Version: 1.5.2.1
CodeBase: file:///C:/Program%20Files%20(x86)/TVRename/Ionic.Utils.Zip.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.

sstteevvee

13-07-2009 22:51:05

Looks like TVRename is searching for one of the folder (show) names on TheTVDB, and is getting back something it doesn't like. We'll need to track down which show in particular is the problem - TVRename doesn't have anything in it at the moment to help pinpoint the problem.

There are two options:

(1) You figure out which show it is by elimination:

Do the folder monitor scan, then delete half the entries from the "New Folders" list (select them, then click "Remove" at the bottom). Hit "Full auto" and see if it still crashes. If it does, the problem was with one of the shows in the half left, otherwise it was the other (removed) half. Restart TVRename, redo the scan, and delete half from the half set of shows you now know the crash is in. Repeat until you're down to one show, and let me know which show it is, along with the folder name.

e.g. if you have eight folders: A,B,C,D,E,F,G,H, and one of those causes a crash, keep A,B,C,D, run a scan. If that passes ok, so the problem is in E,F,G,H. Re-do the scan, and keep only half of the E-H range (say E,F). If that crashes, the problem is one of E,F. Remove half of those (e.g. E), run the scan. If that passes, the problem was E. if that crashes, problem is F.

Tracking it down by halving it in this way will be fairly quick. One problem show out of 1000 can be tracked down in 10 rounds.

(2) Alternatively: I need to be able to rebuild the directory structure of your media library, so I can try the folder scan here. Send me the output of:


dir /b /s s:\. > "%USERPROFILE%\Desktop\tvsearchfolders.txt"

...either in a PM or email to tvrename [at] tvrename.com . That'll show just the directories, which is what the folder monitor mostly works from. "S:\" is the base of your media library that you're checking (i.e. the "Monitor Folder" on the folder monitor tab), and that "." is there to make it show just directories. The full command line will make a text file on your desktop called "tvsearchfolders.txt".