murrty / youtube-dl-gui

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

"Cannot start process because a file name has not been provided" error #115

Closed plissken1138 closed 2 years ago

plissken1138 commented 2 years ago

Updated from 2.27 to 2.3 and getting this error persistently on first download after every program startup. On second try with same YT link, without changing anything, it downloads OK. Below is data from log window:

An exception occured.

Message: Cannot start process because a file name has not been provided. Stacktrace: at System.Diagnostics.Process.Start() at youtube_dl_gui.frmDownloader.<>c__DisplayClass11_0.b__0() Source: System Target Site: Boolean Start() Inner Exception:

========== FULL REPORT ========== System.InvalidOperationException: Cannot start process because a file name has not been provided. at System.Diagnostics.Process.Start() at youtube_dl_gui.frmDownloader.<>c__DisplayClass11_0.b__0() ========== END REPORT ==========

========== OS INFO ========== (Please don't omit this info, it may be important) Current version: 2.3 Current culture: English (United States) OS: Version: 10.0.19044 Service Pack Major: 0 Service Pack Minor: 0 System Caption: Microsoft Windows 10 Education

bw4518 commented 2 years ago

Yeah, same here.

murrty commented 2 years ago

are you using a static youtube-dl location?

bw4518 commented 2 years ago

are you using a static youtube-dl location?

I do.

murrty commented 2 years ago

If you run youtube-dl-gui with youtube-dl in the same directory and static youtube-dl disabled, does it still occur?

Bonoboo commented 2 years ago

For more explicit info I used powerful Process Monitor by Sysinternals. It shows all files that application tries access to. This screenshot shows situation if try to download video after "cold" app start: 1-error

This screenshot at second successful try: 2-ok

As you can see problem somehow related to Microsoft .NET Framework. Files can't be found, but then app ignores them.

Bonoboo commented 2 years ago

Oh, wait, .NET seems not related here. Now I monitored processes operations. And at error youtube-dl-gui.exe even not tries to launch yt-dlp.exe with arguments.

This screenshot shows situation if try to download video after "cold" app start. Take a note on "Load image". 1-bug

This screenshot at second successful try. No "Load image" operation. 2-ok

murrty commented 2 years ago

By any chance, does the first instance have the message "Rescan finished and found, continuing" within the output window? I found that after the youtube-dl path gets refreshed during download that the path to the program isn't actually set after the rescan.

murrty commented 2 years ago

I have to assume that it does send that message. Try the latest version, and if it doesn't work, well then gosh darn it.

murrty commented 2 years ago

Closed due to not being able to replicated and no additional data being provided. Re-open if it persists.

bw4518 commented 2 years ago

Ditching the old settings.ini seems to have helped here.