Crashing on Missing Check

primüs

10-02-2009 22:43:15

Hi guys, i am still around suprisingly havent posted in a whiel though =)

This bug has happened a few times before but always at an inconvenient time for me to post about it, basically the backstory:

My media is stored on a mapped network drive requiring authentication after i have logged into windows, sometimes i forget to do this.

When doing a missing search before i have logged in of course it cant find my folders so starts asking me to create them.

I log in, hit retry, and a bug seems to occur with the progress bar, stacktrace below:


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

************** Exception Text **************
System.ArgumentOutOfRangeException: Value of '200' is not valid for 'Value'. 'Value' should be between 'minimum' and 'maximum'.
Parameter name: Value
at System.Windows.Forms.ProgressBar.set_Value(Int32 value)
at TVRename.TVDoc.DoMissingCheck(ProgressBar pbProgress)
at TVRename.UI.bnDoMissingCheck_Click(Object sender, EventArgs e)
at TVRename.UI.tabControl1_DoubleClick(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnDoubleClick(EventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.TabControl.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.1434 (REDBITS.050727-1400)
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.21022.8
Win32 Version: 9.00.21022.8
CodeBase: file:///C:/Windows/WinSxS/x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91/msvcm90.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
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.1434 (REDBITS.050727-1400)
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.1434 (REDBITS.050727-1400)
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.1434 (REDBITS.050727-1400)
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.1434 (REDBITS.050727-1400)
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.1434 (REDBITS.050727-1400)
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

10-02-2009 22:58:38

I was secretly hoping that bug never affected anyone else! For now, when it occurs try hitting "continue", "ignore" or whatever it is, and it will carry on ok. I'll fix it in the next version so that it doesn't happen again.

primüs

10-02-2009 23:08:16

I was secretly hoping that bug never affected anyone else! For now, when it occurs try hitting "continue", "ignore" or whatever it is, and it will carry on ok. I'll fix it in the next version so that it doesn't happen again.

*rains on parade* =)

I'm about to post another thread with some indiscrepencies between info int he program and tvdb website =) So i should give you a good lot to work on soon :p

sstteevvee

10-02-2009 23:27:26

If it's deleted episodes and/or seasons, its not my fault. Right-click the show and "Force Refresh". :) Otherwise, yeah, let me know. *battens down the hatches*

Also, changes to thetvdb can sometimes take a while to come through (5-10 minutes the one time I paid attention). Not sure how long it officially takes to get from the main website, to appearing in the API data that I fetch.

sstteevvee

15-02-2009 18:52:05

Give the latest alpha a go, which should fix that progress bar exception.

primüs

15-02-2009 21:46:03

uh-oh, doing a missing check right now since getting alpha 3, it crashes the whole program :( No exceptions, it doesnt quite get to the missing check sitll downloading updates...so no stacktraces, hard to troubleshoot i know :(

it COULD be my PC though so will restart later (waiting for some compiles at the moment :p) and try again.

sstteevvee

15-02-2009 21:47:47

If it persists, try setting the number of downloads at once to 1 in the preferences, and see if that fixes it.

Edit: Also, to see if it is the downloading side of things (rather than any later file checking), go to the "My Shows" tab and hit "Refresh" at the bottom. If that works ok, then its not the downloading of stuff.

Worst case, just reinstall an earlier version of TVRename, and give that a go. It should be ok with settings files written by later versions. See if it crashes too.

Edit 2: It just did it to me! Working on fixing it now.

Edit 3: Fixed, hopefully. Download link is here.

primüs

16-02-2009 17:47:22

You sir are a champion, Alpha 4 fixed my problem, i didnt get a chance to try anything else cos i was working all day and you had already re-released ^_^

One last issue i have noticed:

Although sometimes i have logged in via Windows authentication for my shared (mapped) media drive, it sometimes does not show as authed in TVRename, so it pops up the first folder saying cannot find to fix i have to go Browse, then try browse to the mapped drive where it will ask me to login again, then hit cancel on browse, then retry and it goes from there. Dont know what the issue may be there, maybe a difference in the 2 explorer types between Windows Explorer and the exploerr you use in TVRename (which i thought piggybacked of explorer.exe).

I will leave that with you for a while, low priority though of course ;)

sstteevvee

16-02-2009 21:07:37

Yeah, all the file browsers in TVRename are Windows standard dialogs, provided by the OS. I'll have a think about how to deal with mapped drives not being totally logged in - I've had it happen to me occasionally, but not enough to annoy me into fixing it.