PDA

View Full Version : dot net unhandled exception error



KryptoNyte
February 3rd, 2012, 05:38 PM
I've had this pop up three or four times now over the course of the last few weeks, any ideas what could be causing it?


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

************** Exception Text **************
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.SortedDictionary`2.get_ Item(TKey key)
at VideoFileList.ClassVideoFileList.ReplaceVprjFolder (ProcessStepInfo pInfo, Boolean isComSkipAutoScan)
at VideoReDoAutoProcessor.Form1.ProcessingLoop()
at VideoReDoAutoProcessor.Form1.button1_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(MouseEventAr gs 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.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(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.5448 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
VideoReDoAutoProcessor
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/VAP/VideoReDoAutoProcessor.exe
----------------------------------------
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
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.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
----------------------------------------
Interop.tivocomLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/VAP/Interop.tivocomLib.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.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
----------------------------------------
Toub.MediaCenter.Dvrms
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/VAP/Toub.MediaCenter.Dvrms.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
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.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.

dlflannery
February 4th, 2012, 01:44 AM
Thanks for the detailed debug message. It tells me where in the code the exception is occuring. Unfortunately, I cannot imagine the conditions that would cause the exception and there is no sensible way to handle the exception without knowing what caused it.

Please give me as complete a set of details as you can the next time you see this, including:
1. Screen shot of VAP (not the error dialog box but VAP itself).
2. What file you were processing and the process flow, unless this is obvious from the screen shot.
3. A copy of the <ConfigurationItems> section of the VideoFileManager.xml file, and also the <VideoFileData> section for the file being processed.
4. The last page or two of the VRDAutoProcessLog.txt.
Thanks.

KryptoNyte
February 4th, 2012, 10:06 AM
Understood. I'll see what I can get the next time it occurs. I can tell you that I won't be able to grab a screenshot of VAP as it's gone, even though the VAP icon still remains in the system tray (even after hoovering over it), but can't bring the main window back up.

So far, when this has occurred, I have noticed that [to my knowledge] all files that were in the monitored files list prior to the exception were in fact fully processed, so it may be something happening after the end of the last file that has no noticable affects.

dlflannery
February 4th, 2012, 10:14 AM
To the degree possible from memory and the log and xml files, could you please supply right now as much as you can of the items I requested? Are you configured to delete or move input files when done processing?

KryptoNyte
February 4th, 2012, 10:16 AM
Input files are set to move to recycle bin. I'll see what I can get for you right now.

KryptoNyte
February 4th, 2012, 10:27 AM
Attached is the Autoprocesslog.txt file. I believe we're looking for the exception at about "2/2/2012 8:20:24 PM".

Once you tell me you have the attached file, I'll be deleting the attachment from this post.

KryptoNyte
February 4th, 2012, 10:30 AM
PersonofInterest (partial) is still sitting in the temp folder, only about 45,000kb, so I'll assume this was when the problem occurred.

KryptoNyte
February 4th, 2012, 10:34 AM
the XML file did not go back far enough to pick up that show. Here is the config section:
-----------------------------------------------
XML file attached.

dlflannery
February 4th, 2012, 10:55 AM
I've downloaded your log and xml attachments - OK to delete. Thanks.

I noticed you're using a rather old version of VRD (Build 600). I don't think that would be related to the .net exceptions but unless you have a reason not to upgrade it might be good to do so. (Build 629d is current I think.)

Have you had any stalled files?

I think the exception is caused by an attempt to access the video file info for a file name that has been deleted from the dictionary of such info, basically what is in the VideoFileData sections of the xml file. The original file name is the key to the in-memory dictionary. How this could be occuring is totally baffling me so far.

KryptoNyte
February 4th, 2012, 10:57 AM
Stalled files are quite rare, but I have seen them once in a while.

I'm currently running V 0.92 according to the VAP main window title bar.

When I did my last upgrade, I basically just installed 0.92 over top of whatever older version I was using. Perhaps that was a no-no.

dlflannery
February 4th, 2012, 11:02 AM
Stalled files are quite rare, but I have seen them once in a while.

I'm currently running V 0.92 according to the VAP main window title bar.

When I did my last upgrade, I basically just installed 0.92 over top of whatever older version I was using. Perhaps that was a no-no.
Always cleaner to uninstall any previous VAP version before installing a new one, but I don't know of any significant harm from not doing so. Although I don't think VAP 0.93 would fix your .net exceptions, it's always best to be using the latest version.

I was wondering about the VRD version being somewhat old.

KryptoNyte
February 4th, 2012, 11:06 AM
I just re-created the PersonofInterest scenario, although I didn't have the original file, so I renamed another mpg file to the same. It ran fine, so perhaps it was just this file that was the culprit. Next time it happens, I'll see if I can get better info on the exception from the files you mention.

KryptoNyte
February 4th, 2012, 11:09 AM
Always cleaner to uninstall any previous VAP version before installing a new one, but I don't know of any significant harm from not doing so. Although I don't think VAP 0.93 would fix your .net exceptions, it's always best to be using the latest version.

I was wondering about the VRD version being somewhat old.

Ah, whoops, my bad, I get VRD and VAP mixed up all the time. I didn't know there was a newer version, but I'll be sure to get it right now. I will also uninstall and reinstall the latest VAP version.

Okay, so when we do a VAP upgrade, the best procedure is to uninstall and reinstall the latest. Once the new version is installed, is it basically a manual process to reconfigure each and every setting, including all the "advanced configuration?"

dlflannery
February 4th, 2012, 12:04 PM
No, the installer won't touch your configuration files, which are all located in the VAP data folder, not in Program Files. It will ask if you want to replace ComSkip.exe. This is only for folks who use a comskip.exe that is different than what's provided by the installer. For most people it makes no difference how you answer that question.

KryptoNyte
February 4th, 2012, 12:17 PM
Oh, sweet. Thank you.