Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation is broken? #1114

Closed
wicatfly opened this issue Apr 12, 2022 · 18 comments
Closed

installation is broken? #1114

wicatfly opened this issue Apr 12, 2022 · 18 comments

Comments

@wicatfly
Copy link

Hi,
When I opened LosslessCut.exe first time it show me the follow words:

LosslessCut is installation is broken
Command failed with EPERM: C:\Tools\LosslessCut-win-x64\resources\ffmpeg.exe -hide_banner -f lavfi -i nullsrc=s=256x256:d=1 -f null - spawn EPERM

And when I opened a file, it show me this

Failed to open file
Command failed with EPERM: C:\Tools\LosslessCut-win-x64\resources\ffprobe.exe -of json -show_chapters -show_format -show_entries stream -i I:\xxxxxxx.mp4 -hide_banner spawn EPERM

I'm running win10 on PC, thank you

In order to make it easier for me to help you, I ask that you please try these things first:

Share information to help me understand

  • If you have an issue cutting a particular file, please also share the file, if possible. (or mail a link to [email protected] if private.) Also please try to cut it with the ffmpeg command line directly.
  • If you have a problem or an unexpected bug or crash, please open developer tools after starting LosslessCut and before doing the failing operation. Then share the output from the javascript Console. (Menu: Tools > Toggle Developer Tools)
  • Please provide the error report if you got one (Menu: Help -> Report an error)

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Open file '...'
  2. Click on '...'
  3. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. Windows 10]

Additional context
Add any other context about the problem here.

@mifi
Copy link
Owner

mifi commented Apr 13, 2022

Hi
I assume you’re running the .exe download version. Can you try to zip version?

@wicatfly
Copy link
Author

Hi I assume you’re running the .exe download version. Can you try to zip version?

I've tried both two versions, the same issues.

@mifi
Copy link
Owner

mifi commented Apr 13, 2022

Ah ok. Can you see if the file «C:\Tools\LosslessCut-win-x64\resources\ffprobe.exe» indeed exists or it’s missing? If it’s there, try to run it by double clicking. Maybe you need to click through some dialogs by Windows blocking unsafe executable. Same for ffmpeg.exe

Unfortunately there are issues with unsigned executables on windows, so not much I can do about it. The Windows Store version is signed and will not have this problem.

@mifi
Copy link
Owner

mifi commented Apr 13, 2022

Alternatively if you cannot make it work, maybe you need to allow the exe files in your anti virus

@mifi mifi closed this as completed Apr 13, 2022
@mifi mifi reopened this Apr 13, 2022
@wicatfly
Copy link
Author

Ah ok. Can you see if the file «C:\Tools\LosslessCut-win-x64\resources\ffprobe.exe» indeed exists or it’s missing? If it’s there, try to run it by double clicking. Maybe you need to click through some dialogs by Windows blocking unsafe executable. Same for ffmpeg.exe

Unfortunately there are issues with unsigned executables on windows, so not much I can do about it. The Windows Store version is signed and will not have this problem.

Thanks, I'll try it later.

@kotep
Copy link

kotep commented Jul 25, 2022

I also got this error, and solved it by replacing the binaries in LosslessCut/resources with the latest ffmpeg/ffprobe executables from https://www.gyan.dev/ffmpeg/builds/. Both the 7/21 git master build and the 5.1 release build executables fixed the error when extracted over the existing ffmpeg/ffprobe.

@mifi
Copy link
Owner

mifi commented Jul 25, 2022

@kotep which version of losslesscut?

@kotep
Copy link

kotep commented Jul 25, 2022

This is the current release, v3.46.2. The two computers I replicated the bug on were Windows 10 64-bit, both with a freshly downloaded/extracted .7z, and both of which successfully ran LosslessCut without that error in the past.

@mifi
Copy link
Owner

mifi commented Jul 25, 2022

you're getting EPERM error from ffprobe.exe right?

do previous versions of llc work? if so, which version starts failing?

what happens if you run the included ffprobe.exe in the resources folder from the command line e.g. C:\Tools\LosslessCut-win-x64\resources\ffprobe.exe -version?

Maybe right click ffprobe.exe, open Properties and see if the execute permission is enabled, or which permissions are enabled?

@kotep
Copy link

kotep commented Jul 25, 2022

I'm getting Command failed with EPERM: C:\Users\Kotep\Downloads\LC Bug\resources\ffmpeg.exe -hide_banner -f lavfi -i nullsrc=s=256x256:d=1 -f null - spawn EPERM from ffmpeg.exe when opening the program. I don't get an EPERM from ffprobe.exe when opening a file, even when I get the EPERM from ffmpeg.exe.

I tried versions 3.36.0, 3.42.0, 3.44.0, 3.45.0, and 3.46.2. Only 3.46.2 gave me an EPERM error on startup.

Both of the executables included with LC 3.46.2 respond normally when run from the command line.
ffmpeg version 5.0.1-essentials_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
ffprobe version 5.0.1-essentials_build-www.gyan.dev Copyright (c) 2007-2022 the FFmpeg developers
The same is true of the replacement executables from gyan.dev, except they're on v5.1 instead.

Both ffmpeg.exe and ffprobe.exe have full permissions and aren't blocked.

@mifi
Copy link
Owner

mifi commented Jul 25, 2022

that's very odd. I can only think of windows' built in executable or virus protection preventing executing the new ffmpeg.exe because losslesscut recently upgraded to ffmpeg 5.0.1 in v3.46.2. (in 3.45.0 it was ffmpeg v4). Maybe it takes a while for windows to consider ffmpeg.exe v5.0.1 to be "safe". I know this is how MacOS works with its protection system for apps downloaded from the internet, so I assume Windows works similarly.

Just to be sure: You're also getting the error popup "LosslessCut is installation is broken" when opening losslesscut, right?

@kotep
Copy link

kotep commented Jul 25, 2022

Yes, it's this that pops up after load:

image

Something could be blocking ffmpeg 5.0.1, but whatever it is must be allowing both ffmpeg's 5.1 and dev builds to work, because that's what keeps the error from appearing.

@mifi
Copy link
Owner

mifi commented Jul 25, 2022

do you have anti-virus? does it work if you disable antivirus, or flag the ffmpeg.exe/ffprobe.exe files as "safe/whitelisted" in the antivirus software?

One theory I have is that it's something about your anti-virus or windows defender flagging the file you downloaded from gyan.dev as "safe" because it knows that many other people have downloaded that before (that URL or hash signature). But this new losslesscut version it has never seen before, so it flags the ffmpeg.exe as potentially a virus, because it doesn't know it as a safe origin.

@kotep
Copy link

kotep commented Jul 25, 2022

I only have the built-in Windows Security program. I turned off every setting I could toggle, rebooted, and tried running LC 3.46.2. I still get the error. Also, the 5.0.1 ffmpeg build downloaded from gyan.dev directly (and extracted on top of the "working" ffmpeg 5.1 exe's) still triggers the error message.

@mifi
Copy link
Owner

mifi commented Jul 25, 2022

so there's really something about that version. do you also get the error if you run 5.0.1 ffmpeg build downloaded from gyan.dev from the command line?

mifi added a commit that referenced this issue Jul 25, 2022
@mifi
Copy link
Owner

mifi commented Jan 2, 2023

closing due to lack of response

@mifi mifi closed this as completed Jan 2, 2023
@sujfuy
Copy link

sujfuy commented Jul 31, 2024

Yep, love the program but I tried to update to the newest update and now I can't install it. Can't uninstall the old one either... windows doesn't find it to uninstall. Won't let me just delete the folder/directory. I'll just have to switch back to the undesired program.

@mifi
Copy link
Owner

mifi commented Aug 4, 2024

there is no installer for losslesscut, so there is no uninstall either. you just extract the folder in the zip and run it. then you delete the folder when you want to get rid of losslesscut

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants