fifonik / FFMetrics

Visualizes Video Quality Metrics (PSNR, SSIM & VMAF) calculated by ffmpeg.exe
616 stars 25 forks source link

application error event viewer #134

Closed alexeik closed 6 months ago

alexeik commented 7 months ago

After put filepath it starting to analize and then crashes... all versions :release and last beta.

Application: FFMetrics.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.ArgumentException at System.Windows.DependencyObject.ValidateSources(System.Windows.DependencyObject, System.Windows.DependencySource[], System.Windows.Expression) at System.Windows.Expression.ChangeSources(System.Windows.DependencyObject, System.Windows.DependencyProperty, System.Windows.DependencySource[]) at System.Windows.Data.BindingExpressionBase.ChangeSources(MS.Internal.Data.WeakDependencySource[]) at MS.Internal.Data.ClrBindingWorker.ReplaceDependencySources() at MS.Internal.Data.ClrBindingWorker.NewValueAvailable(Boolean, Boolean, Boolean) at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32, System.ComponentModel.ICollectionView, System.Object, Boolean) at MS.Internal.Data.PropertyPathWorker.RefreshValue() at MS.Internal.Data.ClrBindingWorker.ScheduleTransferOperation(System.Object) at MS.Internal.Data.DataBindEngine.ProcessCrossThreadRequests() at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr) at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef) at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame) at System.Windows.Application.RunDispatcher(System.Object) at System.Windows.Application.RunInternal(System.Windows.Window) at FFMetrics.App.Main()

alexeik commented 7 months ago

hmm after renamed conf.example to conf and set tempdir to real it works now after pasting file path in Reference block.

fifonik commented 6 months ago

If this issue is re-producable on your system, it would be nice if you try to find what causing the crash, so I will be able to fix it. It is possible that the issue caused by inability to save something in temp dir. If this is the case, specifying --temp="c:\path\to\temp" should help.

alexeik commented 6 months ago

after renamed conf.example to conf and set tempdir to real

yes it is :)

fifonik commented 6 months ago

I wish I undesrtand what do you mean. Yes, you mentioned that you did both. But do not sure what actually helped. My suggestion was to remove the FFMetrics.conf and specify temp dir as program parameter. However, if no temp dir cpecified as an option or in conf, the system temp dir should be used (it is usially somewhere in C:\Users[USER]\AppData...) and it expected to be available. So do not know why default temp dire is causinf the issue.

fifonik commented 6 months ago

Re-produced and adding more checks on startup. Thanks.

fifonik commented 6 months ago

Temp dir existance and permission checks implemented in 1.5.0 beta 1 (just released).