Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.
brew install (or upgrade, reinstall) a single, official formula (not cask)? If it's a general brew problem please file this issue at Homebrew/brew: https://github.com/Homebrew/brew/issues/new/choose. If it's a brew cask problem please file this issue at https://github.com/caskroom/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.brew update and can still reproduce the problem?brew doctor, fixed all issues and can still reproduce the problem?brew gist-logs <formula> (where <formula> is the name of the formula that failed) and included the output link?brew gist-logs didn't work: ran brew config and brew doctor and included their output with your issue?To help us debug your issue please explain:
Use HandBrakeCLI to convert an MKV to an MP4.
The HandBrakeCLI built via brew segfaults:
% /brew/bin/HandBrakeCLI --input=SampleVideo_1280x720_1mb.mkv --output=SampleVideo_1280x720_1mb.mp4
# ...
zsh: segmentation fault /brew/bin/HandBrakeCLI --input=SampleVideo_1280x720_1mb.mkv
brew gits-logs: https://gist.github.com/ddribin/dc06154004b9769ce93b43ad31b4beb3
HandBrakeCLI should not crash.
brew install commands)Download a sample MKV file from https://sample-videos.com, for example SampleVideo_1280x720_1mb.mkv
# brew install handbrake
# HandBrakeCLI --input=SampleVideo_1280x720_1mb.mkv --output=SampleVideo_1280x720_1mb.mp4
Using the official HandbrakeCLI v1.1.0 binary directly from handbrake.fr does not crash.
Decided to try this out on my own computer, and couldn't reproduce the issue. More details included on the other repository's issue!
@vinyldarkscratch I assume you were testing with the bottle. I cannot reproduce the problem with the bottle. The segfault is reproducible with a fresh source build, though.
@ilovezfs Your assumption is accurate -- I've learned my lesson and almost never build from source after the hassle it created for OneShot macOS. 😛
I just tried building from source myself. During Encoding: task 1 of 1, I got a segfault, just like the described issue.
Seems like to -march=native optimisation… I confirm that a build outside Homebrew works fine.
yup
Reported upstream https://github.com/HandBrake/HandBrake/issues/1351
There's a workaround in the formula now @ddribin. So if you brew reinstall handbrake the problem should go away.
@ilovezfs Thanks much! I can confirm it works fine now, after reinstalling.
Most helpful comment
There's a workaround in the formula now @ddribin. So if you
brew reinstall handbrakethe problem should go away.