This project is read-only.

Stranded Queue Jobs cause crash on "edit"


I put several jobs in the queue before I realized I had the settings wrong.

I cannot delete the existing jobs. If I try and use the edit function on the existing queue jobs to change the settings I get a crash with the following output.

System.NullReferenceException: Object reference not set to an instance of an object.
at VidCoder.ViewModel.MainViewModel.get_EncodeJob() in D:\docs\projects\VidCoder\VidCoder\ViewModel\MainViewModel.cs:line 1744
at VidCoder.ViewModel.PicturePanelViewModel.RefreshOutputSize() in D:\docs\projects\VidCoder\VidCoder\ViewModel\Panels\PicturePanelViewModel.cs:line 618
at VidCoder.ViewModel.PicturePanelViewModel.NotifySelectedTitleChanged() in D:\docs\projects\VidCoder\VidCoder\ViewModel\Panels\PicturePanelViewModel.cs:line 659
at VidCoder.ViewModel.EncodingViewModel.OnMainPropertyChanged(Object sender, PropertyChangedEventArgs e) in D:\docs\projects\VidCoder\VidCoder\ViewModel\EncodingViewModel.cs:line 517
at System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
at VidCoder.ViewModel.MainViewModel.ApplyEncodeJobChoices(EncodeJobViewModel jobVM) in D:\docs\projects\VidCoder\VidCoder\ViewModel\MainViewModel.cs:line 2238
at VidCoder.ViewModel.MainViewModel.<>c__DisplayClass4e.<StartScan>b__4d() in D:\docs\projects\VidCoder\VidCoder\ViewModel\MainViewModel.cs:line 2011
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)


RandomEngy wrote Nov 5, 2011 at 3:38 AM

Thanks for the report... still not sure how this is happening but I put in a few more checks and some diagnostic code. Hopefully it will be gone or caught in the next version.

deltaecho5 wrote Nov 14, 2011 at 8:03 PM

Same issue here...

RandomEngy wrote Nov 14, 2011 at 8:32 PM

Blarg, hopefully the Debug build will unmask what's causing this junk. Another annoyingly unhelpful source line here :(.

cardocpdx wrote Nov 14, 2011 at 9:29 PM

As a short term fix would it be possible to code a short utility to delete all queued jobs without having to delete the entire setup file? I've been deleting the entire file to get around this issue but that also deletes my "setups". Fortunately I don't use anything too complex so rebuilding the setups is pretty trivial. Users with more complex setups might enjoy a "clear queue" button that parses the setup file, removes pending jobs and leaves the setups intact.

RandomEngy wrote Nov 15, 2011 at 12:21 AM

I thought I fixed this in 1.2.2. Here's a manual workaround for now:

1) Open %appdata%\VidCoder\VidCoder.sqlite with a tool that can edit SQLite files like SQLite Manager.
2) Open the settings table
3) Delete the value under EncodeJobs2