murrty / youtube-dl-gui

Download/Convert videos from websites without needing to learn command line
GNU General Public License v3.0
430 stars 44 forks source link

Version 2.21 - Error #27

Closed smaragdus closed 4 years ago

smaragdus commented 4 years ago

While using youtube-dl-gui with an older version of youtube-dl- 2020.01.24 I got the following error message:

Feel free to copy + paste this entire text wall into a new issue on Github

Version: 2.21
Reported Exception: An exception occured
Message: The system cannot find the file specified
Stacktrace:    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at youtube_dl_gui.frmDownloader.<>c__DisplayClass9.<BeginDownload>b__4()
Source: System
TargetSite: Boolean StartWithCreateProcess(System.Diagnostics.ProcessStartInfo)
Full report:
System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at youtube_dl_gui.frmDownloader.<>c__DisplayClass9.<BeginDownload>b__4()

screen:

youtube-dl-gui 2 21 - 2020-02-28 - error - 001

When I updated youtube-dl-gui to the latest version- 2020.02.16, I didn't get this error any more. Yet I decided to report the problem as it might provide some useful information for you.

I am using youtube-dl-gui on Windows 8 x64.

murrty commented 4 years ago

Did the youtube-dl you use before be named "youtube-dl.exe" exactly? This doesn't account for executables with different names, and it looks like it didn't exist wherever you had it.

smaragdus commented 4 years ago

@murrty

Did the youtube-dl you use before be named "youtube-dl.exe" exactly? This doesn't account for executables with different names, and it looks like it didn't exist wherever you had it.

Yes, the name was youtube-dl.exe which I downloaded from releases. But I think that first time when I started the executable (youtube-dl-gui.exe) I had forgotten to put youtube-dl.exe in the program folder. Later I put it there but perhaps the configuration file (user.config) was not updated.

Now I tried to recreate the condition and I succeeded to reproduce the error:

  1. start youtube-dl-gui without youtube-dl.exe present in program folder;
  2. try to download a video;
  3. put youtube-dl.exe in program folder later;
  4. error message appears;
  5. exit youtube-dl-gui;
  6. restart youtube-dl-gui;
  7. the error message no longer appears;

So after I put youtube-dl.exe in program folder I need to restart youtube-dl-gui and the problem is resolved. So I am closing this issue.

murrty commented 4 years ago

I probably fixed it. I know it stems from not re-scanning every download, because that's a lot of overhead, and I figured I'd remove a verification method because it wasn't very stable, and redundant at best. It'll re-scan every time it tries to download but couldn't find youtube-dl, that's a fair middle-ground.