Sanaxen / tecoGAN_app

tecoGAN Windows application ( EXE )
MIT License
120 stars 19 forks source link

Crash if super resolution fails #17

Open mirh opened 2 years ago

mirh commented 2 years ago

Or at least, that's my educate guess. Due to OOM reasons, super-resolution is crashing for me before it can start making the first result frames, and when I click OK on "All processing is finished" I'm getting this.

Application: super_resolution_Application.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
   in System.IO.__Error.WinIOError(Int32, System.String)
   in System.IO.File.InternalCopy(System.String, System.String, Boolean, Boolean)
   in System.IO.File.Copy(System.String, System.String, Boolean)
   in super_resolution_Application.Form1.tecoGAN_Exited(System.Object, System.EventArgs)
   in System.Diagnostics.Process.OnExited()
   in System.Diagnostics.Process.RaiseOnExited()
   in System.Diagnostics.Process.CompletionCallback(System.Object, Boolean)
   in System.Threading._ThreadPoolWaitOrTimerCallback.WaitOrTimerCallback_Context(System.Object, Boolean)
   in System.Threading._ThreadPoolWaitOrTimerCallback.WaitOrTimerCallback_Context_f(System.Object)
   in System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   in System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   in System.Threading._ThreadPoolWaitOrTimerCallback.PerformWaitOrTimerCallback(System.Object, Boolean)
Sanaxen commented 1 year ago

This is a bug. There is a lack of consideration for what to do when the magnification process fails.