Closed plissken1138 closed 2 years ago
Yeah, same here.
are you using a static youtube-dl location?
are you using a static youtube-dl location?
I do.
If you run youtube-dl-gui with youtube-dl in the same directory and static youtube-dl disabled, does it still occur?
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:
This screenshot at second successful try:
As you can see problem somehow related to Microsoft .NET Framework. Files can't be found, but then app ignores them.
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".
This screenshot at second successful try. No "Load image" operation.
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.
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.
Closed due to not being able to replicated and no additional data being provided. Re-open if it persists.
Ditching the old settings.ini seems to have helped here.
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