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

Skip building torchvision with ffmpeg when python==3.9 #4417

Merged

Conversation

prabhat00155
Copy link
Contributor

@prabhat00155 prabhat00155 commented Sep 15, 2021

Building torchvision with ffmpeg 4.3 causes seg fault with python 3.9. Initial debugging shows crash in ffmpeg's sws_scale(). Until this issue is resolved, it's better to avoid building torchvision with ffmpeg for python 3.9.

cc @pmeier

Copy link
Member

@NicolasHug NicolasHug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @prabhat00155 , I think this is indeed the safest option for now. LGTM. Do you think we should reopen #3367?

setup.py Outdated Show resolved Hide resolved
setup.py Show resolved Hide resolved
@prabhat00155 prabhat00155 merged commit 3380c00 into pytorch:main Sep 16, 2021
@prabhat00155 prabhat00155 deleted the prabhat00155/ignore_ffmpeg_with_py39 branch September 16, 2021 10:05
@fmassa
Copy link
Member

fmassa commented Sep 17, 2021

One thing it would be good to understand is why only Python 3.9 is failing. IIUC the python version has no influence on the ffmpeg version we are installing, so maybe this is an issue with our binding code (torchbind?)

@prabhat00155
Copy link
Contributor Author

One thing it would be good to understand is why only Python 3.9 is failing. IIUC the python version has no influence on the ffmpeg version we are installing, so maybe this is an issue with our binding code (torchbind?)

Yeah, makes sense. I've created this issue: #4430 to track this, will debug this further.

facebook-github-bot pushed a commit that referenced this pull request Sep 30, 2021
Summary:
* Skip building torchvision with ffmpeg when python==3.9

* Add FIXME to comments

Reviewed By: datumbox

Differential Revision: D31268057

fbshipit-source-id: 71d3ee6c2e0f5cc373bf730804e1d5172a2d6a9d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants