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

Fix memory leak in decode_webp #8712

Merged
merged 3 commits into from
Nov 7, 2024

empty

14324f6
Select commit
Loading
Failed to load commit list.
Merged

Fix memory leak in decode_webp #8712

empty
14324f6
Select commit
Loading
Failed to load commit list.
PyTorch Bot / Dr.CI completed Nov 7, 2024 in 0s

Dr.CI classification results

{"FAILED":[{"workflowId":11722710677,"workflowUniqueId":50675671,"id":32652829635,"runnerName":"i-016c84b6e48138bef","authorEmail":"[email protected]","name":"Lint / c-source / linux-job","jobName":"c-source / linux-job","conclusion":"failure","completed_at":"2024-11-07T12:13:27.000000000Z","html_url":"https://github.com/pytorch/vision/actions/runs/11722710677/job/32652829635","head_branch":"leakkkkkkk","pr_number":8712,"head_sha":"14324f6d13c7888294e40c486a92444cc67e44fe","head_sha_timestamp":"2024-11-07T12:10:52Z","failure_captures":["RuntimeError: Command docker exec -t 34267766f58c11a157ec16b735ff2e02cd007d2ed4f41fcf79a155d2a1e9cd8d /exec failed with exit code 1"],"failure_lines":["RuntimeError: Command docker exec -t 34267766f58c11a157ec16b735ff2e02cd007d2ed4f41fcf79a155d2a1e9cd8d /exec failed with exit code 1"],"failure_context":["+++ torchvision/csrc/io/image/cpu/encode_jpeg.cpp\t(reformatted)","+ -> int {","+ -> int {","+++ torchvision/csrc/io/decoder/sync_decoder_test.cpp\t(reformatted)","+ -> int {","+++ torchvision/csrc/io/decoder/memory_buffer.cpp\t(reformatted)","+ ./.github/scripts/run-clang-format.py -r torchvision/csrc --exclude 'torchvision/csrc/io/image/cpu/giflib/*'","+ set +e","+ echo '::group::Lint C source'","+ echo ::endgroup::","+ hash -r","+ '[' -n '' ']'"],"time":"2024-11-07T12:11:03.000000000Z"},{"workflowId":11722710687,"workflowUniqueId":50780891,"id":32652829615,"runnerName":"i-07062020a96c6db1e","authorEmail":"[email protected]","name":"Docs / build / linux-job","jobName":"build / linux-job","conclusion":"failure","completed_at":"2024-11-07T12:16:29.000000000Z","html_url":"https://github.com/pytorch/vision/actions/runs/11722710687/job/32652829615","head_branch":"leakkkkkkk","pr_number":8712,"head_sha":"14324f6d13c7888294e40c486a92444cc67e44fe","head_sha_timestamp":"2024-11-07T12:10:52Z","failure_captures":["RuntimeError: Command docker exec -t 9376c824e66f72f71f0113e77287a7c2af905957529b8f179ba749edb00c2417 /exec failed with exit code 2"],"failure_lines":["RuntimeError: Command docker exec -t 9376c824e66f72f71f0113e77287a7c2af905957529b8f179ba749edb00c2417 /exec failed with exit code 2"],"failure_context":["+ make html","+ sed -i -e 's/-j auto/-j 1/' Makefile","+ [[ pull_request == push ]]","+ echo ::endgroup::","+ pip install --progress-bar=off -r requirements.txt","+ echo '::group::Install doc requirements'","+ cd docs","+ LD_LIBRARY_PATH=/opt/conda/envs/ci/lib:/opt/rh/devtoolset-9/root/usr/lib64:/opt/rh/devtoolset-9/root/usr/lib:","+ export LD_LIBRARY_PATH=/opt/conda/envs/ci/lib:/opt/rh/devtoolset-9/root/usr/lib64:/opt/rh/devtoolset-9/root/usr/lib:","+ hash -r","+ '[' -n '' ']'","+ '[' -n '' ']'"],"time":"2024-11-07T12:11:03.000000000Z"},{"workflowId":11722710681,"workflowUniqueId":65738554,"id":32652840809,"runnerName":"i-077011aaeefefa7a0","authorEmail":"[email protected]","name":"Build Aarch64 Linux Wheels / pytorch/vision / wheel-py3_9-cpu-aarch64","jobName":"pytorch/vision / wheel-py3_9-cpu-aarch64","conclusion":"failure","completed_at":"2024-11-07T12:11:57.000000000Z","html_url":"https://github.com/pytorch/vision/actions/runs/11722710681/job/32652840809","head_branch":"leakkkkkkk","pr_number":8712,"head_sha":"14324f6d13c7888294e40c486a92444cc67e44fe","head_sha_timestamp":"2024-11-07T12:10:52Z","failure_captures":["/__w/_temp/65554edc-ff95-401d-a6ea-75ca731f6ef3.sh: line 2: conda: command not found"],"failure_lines":["/__w/_temp/65554edc-ff95-401d-a6ea-75ca731f6ef3.sh: line 2: conda: command not found"],"failure_context":[],"time":"2024-11-07T12:11:17.000000000Z"},{"workflowId":11722710681,"workflowUniqueId":65738554,"id":32652841498,"runnerName":"i-0aa096940e5efc994","authorEmail":"[email protected]","name":"Build Aarch64 Linux Wheels / pytorch/vision / wheel-py3_9-cuda-aarch64cuda-aarch64","jobName":"pytorch/vision / wheel-py3_9-cuda-aarch64cuda-aarch64","conclusion":"failure","completed_at":"2024-11-07T12:11:46.000000000Z","html_url":"https://github.com/pytorch/vision/actions/runs/11722710681/job/32652841498","head_branch":"leakkkkkkk","pr_number":8712,"head_sha":"14324f6d13c7888294e40c486a92444cc67e44fe","head_sha_timestamp":"2024-11-07T12:10:52Z","failure_captures":["/__w/_temp/b1b58b47-a252-420a-92e1-7f5fdde6b459.sh: line 2: conda: command not found"],"failure_lines":["/__w/_temp/b1b58b47-a252-420a-92e1-7f5fdde6b459.sh: line 2: conda: command not found"],"failure_context":[],"time":"2024-11-07T12:11:18.000000000Z"},{"workflowId":11722710681,"workflowUniqueId":65738554,"id":32652877062,"runnerName":"GitHub Actions 482","authorEmail":"[email protected]","name":"Build Aarch64 Linux Wheels / pytorch/vision / upload / wheel-py3_9-cpu-aarch64","jobName":"pytorch/vision / upload / wheel-py3_9-cpu-aarch64","conclusion":"failure","completed_at":"2024-11-07T12:12:24.000000000Z","html_url":"https://github.com/pytorch/vision/actions/runs/11722710681/job/32652877062","head_branch":"leakkkkkkk","pr_number":8712,"head_sha":"14324f6d13c7888294e40c486a92444cc67e44fe","head_sha_timestamp":"2024-11-07T12:10:52Z","failure_captures":["##[error]Unable to find any artifacts for the associated workflow"],"failure_lines":["##[error]Unable to find any artifacts for the associated workflow"],"failure_context":[],"time":"2024-11-07T12:11:58.000000000Z"},{"workflowId":11722710681,"workflowUniqueId":65738554,"id":32652877373,"runnerName":"GitHub Actions 101","authorEmail":"[email protected]","name":"Build Aarch64 Linux Wheels / pytorch/vision / upload / wheel-py3_9-cuda-aarch64cuda-aarch64","jobName":"pytorch/vision / upload / wheel-py3_9-cuda-aarch64cuda-aarch64","conclusion":"failure","completed_at":"2024-11-07T12:12:25.000000000Z","html_url":"https://github.com/pytorch/vision/actions/runs/11722710681/job/32652877373","head_branch":"leakkkkkkk","pr_number":8712,"head_sha":"14324f6d13c7888294e40c486a92444cc67e44fe","head_sha_timestamp":"2024-11-07T12:10:52Z","failure_captures":["##[error]Unable to find any artifacts for the associated workflow"],"failure_lines":["##[error]Unable to find any artifacts for the associated workflow"],"failure_context":[],"time":"2024-11-07T12:11:58.000000000Z"},{"workflowId":11722710685,"workflowUniqueId":56905118,"id":32656114100,"runnerName":"i-0f891ad72aa4cd8e6","authorEmail":"[email protected]","name":"Tests / unittests-linux (3.11, linux.12xlarge, cpu) / linux-job","jobName":"unittests-linux (3.11, linux.12xlarge, cpu) / linux-job","conclusion":"failure","completed_at":"2024-11-07T13:39:17.000000000Z","html_url":"https://github.com/pytorch/vision/actions/runs/11722710685/job/32656114100","head_branch":"leakkkkkkk","pr_number":8712,"head_sha":"14324f6d13c7888294e40c486a92444cc67e44fe","head_sha_timestamp":"2024-11-07T12:10:52Z","failure_captures":["test/test_ops.py::TestDeformConv::test_backward[0-True-cpu]"],"failure_lines":["FAILED test/test_ops.py::TestDeformConv::test_backward[0-True-cpu] - MemoryError: std::bad_alloc"],"failure_context":["+ echo ::endgroup::","+ python -m torch.utils.collect_env","+ /opt/conda/bin/conda list","+ __conda_exe list","+ case "$cmd" in","+ local cmd=list","+ conda list","+ echo '::group::Collect environment information'","+ echo ::endgroup::","+ python setup.py develop","+ echo '::group::Install TorchVision'","+ echo ::endgroup::"],"time":"2024-11-07T13:15:27.000000000Z"},{"workflowId":11722710685,"workflowUniqueId":56905118,"id":32656114458,"runnerName":"i-0277ae1b96bac8395","authorEmail":"[email protected]","name":"Tests / unittests-linux (3.10, linux.12xlarge, cpu) / linux-job","jobName":"unittests-linux (3.10, linux.12xlarge, cpu) / linux-job","conclusion":"failure","completed_at":"2024-11-07T13:40:50.000000000Z","html_url":"https://github.com/pytorch/vision/actions/runs/11722710685/job/32656114458","head_branch":"leakkkkkkk","pr_number":8712,"head_sha":"14324f6d13c7888294e40c486a92444cc67e44fe","head_sha_timestamp":"2024-11-07T12:10:52Z","failure_captures":["test/test_ops.py::TestDeformConv::test_backward[0-True-cpu]"],"failure_lines":["FAILED test/test_ops.py::TestDeformConv::test_backward[0-True-cpu] - MemoryError: std::bad_alloc"],"failure_context":["+ echo ::endgroup::","+ python -m torch.utils.collect_env","+ /opt/conda/bin/conda list","+ __conda_exe list","+ case "$cmd" in","+ local cmd=list","+ conda list","+ echo '::group::Collect environment information'","+ echo ::endgroup::","+ python setup.py develop","+ echo '::group::Install TorchVision'","+ echo ::endgroup::"],"time":"2024-11-07T13:15:27.000000000Z"},{"workflowId":11722710685,"workflowUniqueId":56905118,"id":32656114800,"runnerName":"i-0df6642734707d1f4","authorEmail":"[email protected]","name":"Tests / unittests-linux (3.12, linux.12xlarge, cpu) / linux-job","jobName":"unittests-linux (3.12, linux.12xlarge, cpu) / linux-job","conclusion":"failure","completed_at":"2024-11-07T13:39:57.000000000Z","html_url":"https://github.com/pytorch/vision/actions/runs/11722710685/job/32656114800","head_branch":"leakkkkkkk","pr_number":8712,"head_sha":"14324f6d13c7888294e40c486a92444cc67e44fe","head_sha_timestamp":"2024-11-07T12:10:52Z","failure_captures":["test/test_ops.py::TestDeformConv::test_backward[0-True-cpu]"],"failure_lines":["FAILED test/test_ops.py::TestDeformConv::test_backward[0-True-cpu] - MemoryError: std::bad_alloc"],"failure_context":["+ echo ::endgroup::","+ python -m torch.utils.collect_env","+ /opt/conda/bin/conda list","+ __conda_exe list","+ case "$cmd" in","+ local cmd=list","+ conda list","+ echo '::group::Collect environment information'","+ echo ::endgroup::","+ python setup.py develop","+ echo '::group::Install TorchVision'","+ echo ::endgroup::"],"time":"2024-11-07T13:15:28.000000000Z"},{"workflowId":11722710685,"workflowUniqueId":56905118,"id":32656115125,"runnerName":"i-077a01264ee5e5062","authorEmail":"[email protected]","name":"Tests / unittests-linux (3.9, linux.12xlarge, cpu) / linux-job","jobName":"unittests-linux (3.9, linux.12xlarge, cpu) / linux-job","conclusion":"failure","completed_at":"2024-11-07T13:40:41.000000000Z","html_url":"https://github.com/pytorch/vision/actions/runs/11722710685/job/32656115125","head_branch":"leakkkkkkk","pr_number":8712,"head_sha":"14324f6d13c7888294e40c486a92444cc67e44fe","head_sha_timestamp":"2024-11-07T12:10:52Z","failure_captures":["test/test_ops.py::TestDeformConv::test_backward[0-True-cpu]"],"failure_lines":["FAILED test/test_ops.py::TestDeformConv::test_backward[0-True-cpu] - MemoryError: std::bad_alloc"],"failure_context":["+ echo ::endgroup::","+ python -m torch.utils.collect_env","+ /opt/conda/bin/conda list","+ __conda_exe list","+ case "$cmd" in","+ local cmd=list","+ conda list","+ echo '::group::Collect environment information'","+ echo ::endgroup::","+ python setup.py develop","+ echo '::group::Install TorchVision'","+ echo ::endgroup::"],"time":"2024-11-07T13:15:28.000000000Z"},{"workflowId":11722710697,"workflowUniqueId":38836865,"id":32653671394,"runnerName":"GitHub Actions 370","authorEmail":"[email protected]","name":"Build Linux Wheels / pytorch/vision / upload / manywheel-py3_9-cpu","jobName":"pytorch/vision / upload / manywheel-py3_9-cpu","conclusion":"failure","completed_at":"2024-11-07T12:28:24.000000000Z","html_url":"https://github.com/pytorch/vision/actions/runs/11722710697/job/32653671394","head_branch":"leakkkkkkk","pr_number":8712,"head_sha":"14324f6d13c7888294e40c486a92444cc67e44fe","head_sha_timestamp":"2024-11-07T12:10:52Z","failure_captures":["##[error]Unable to find an artifact with the name: pytorch_vision__3.9_cpu_x86_64"],"failure_lines":["##[error]Unable to find an artifact with the name: pytorch_vision__3.9_cpu_x86_64"],"failure_context":[],"time":"2024-11-07T12:28:09.000000000Z"},{"workflowId":11722710697,"workflowUniqueId":38836865,"id":32653671821,"runnerName":"GitHub Actions 188","authorEmail":"[email protected]","name":"Build Linux Wheels / pytorch/vision / upload / manywheel-py3_9-cuda11_8","jobName":"pytorch/vision / upload / manywheel-py3_9-cuda11_8","conclusion":"failure","completed_at":"2024-11-07T12:28:31.000000000Z","html_url":"https://github.com/pytorch/vision/actions/runs/11722710697/job/32653671821","head_branch":"leakkkkkkk","pr_number":8712,"head_sha":"14324f6d13c7888294e40c486a92444cc67e44fe","head_sha_timestamp":"2024-11-07T12:10:52Z","failure_captures":["##[error]Unable to find an artifact with the name: pytorch_vision__3.9_cu118_x86_64"],"failure_lines":["##[error]Unable to find an artifact with the name: pytorch_vision__3.9_cu118_x86_64"],"failure_context":[],"time":"2024-11-07T12:28:10.000000000Z"},{"workflowId":11722710697,"workflowUniqueId":38836865,"id":32653672075,"runnerName":"GitHub Actions 422","authorEmail":"[email protected]","name":"Build Linux Wheels / pytorch/vision / upload / manywheel-py3_9-cuda12_1","jobName":"pytorch/vision / upload / manywheel-py3_9-cuda12_1","conclusion":"failure","completed_at":"2024-11-07T12:28:29.000000000Z","html_url":"https://github.com/pytorch/vision/actions/runs/11722710697/job/32653672075","head_branch":"leakkkkkkk","pr_number":8712,"head_sha":"14324f6d13c7888294e40c486a92444cc67e44fe","head_sha_timestamp":"2024-11-07T12:10:52Z","failure_captures":["##[error]Unable to find an artifact with the name: pytorch_vision__3.9_cu121_x86_64"],"failure_lines":["##[error]Unable to find an artifact with the name: pytorch_vision__3.9_cu121_x86_64"],"failure_context":[],"time":"2024-11-07T12:28:10.000000000Z"},{"workflowId":11722710697,"workflowUniqueId":38836865,"id":32653672484,"runnerName":"GitHub Actions 71","authorEmail":"[email protected]","name":"Build Linux Wheels / pytorch/vision / upload / manywheel-py3_9-cuda12_4","jobName":"pytorch/vision / upload / manywheel-py3_9-cuda12_4","conclusion":"failure","completed_at":"2024-11-07T12:28:31.000000000Z","html_url":"https://github.com/pytorch/vision/actions/runs/11722710697/job/32653672484","head_branch":"leakkkkkkk","pr_number":8712,"head_sha":"14324f6d13c7888294e40c486a92444cc67e44fe","head_sha_timestamp":"2024-11-07T12:10:52Z","failure_captures":["##[error]Unable to find an artifact with the name: pytorch_vision__3.9_cu124_x86_64"],"failure_lines":["##[error]Unable to find an artifact with the name: pytorch_vision__3.9_cu124_x86_64"],"failure_context":[],"time":"2024-11-07T12:28:11.000000000Z"},{"workflowId":11722710697,"workflowUniqueId":38836865,"id":32653672800,"runnerName":"GitHub Actions 464","authorEmail":"[email protected]","name":"Build Linux Wheels / pytorch/vision / upload / manywheel-py3_9-rocm6_1","jobName":"pytorch/vision / upload / manywheel-py3_9-rocm6_1","conclusion":"failure","completed_at":"2024-11-07T12:28:25.000000000Z","html_url":"https://github.com/pytorch/vision/actions/runs/11722710697/job/32653672800","head_branch":"leakkkkkkk","pr_number":8712,"head_sha":"14324f6d13c7888294e40c486a92444cc67e44fe","head_sha_timestamp":"2024-11-07T12:10:52Z","failure_captures":["##[error]Unable to find an artifact with the name: pytorch_vision__3.9_rocm6.1_x86_64"],"failure_lines":["##[error]Unable to find an artifact with the name: pytorch_vision__3.9_rocm6.1_x86_64"],"failure_context":[],"time":"2024-11-07T12:28:11.000000000Z"},{"workflowId":11722710697,"workflowUniqueId":38836865,"id":32653673079,"runnerName":"GitHub Actions 462","authorEmail":"[email protected]","name":"Build Linux Wheels / pytorch/vision / upload / manywheel-py3_9-rocm6_2","jobName":"pytorch/vision / upload / manywheel-py3_9-rocm6_2","conclusion":"failure","completed_at":"2024-11-07T12:28:31.000000000Z","html_url":"https://github.com/pytorch/vision/actions/runs/11722710697/job/32653673079","head_branch":"leakkkkkkk","pr_number":8712,"head_sha":"14324f6d13c7888294e40c486a92444cc67e44fe","head_sha_timestamp":"2024-11-07T12:10:52Z","failure_captures":["##[error]Unable to find an artifact with the name: pytorch_vision__3.9_rocm6.2_x86_64"],"failure_lines":["##[error]Unable to find an artifact with the name: pytorch_vision__3.9_rocm6.2_x86_64"],"failure_context":[],"time":"2024-11-07T12:28:11.000000000Z"}],"FLAKY":[],"BROKEN_TRUNK":[{"workflowId":11722710685,"workflowUniqueId":56905118,"id":32656118977,"runnerName":"i-0f9fdd7a1f99c885f","authorEmail":"[email protected]","name":"Tests / unittests-windows (3.9, windows.g5.4xlarge.nvidia.gpu, cuda, 11.8) / windows-job","jobName":"unittests-windows (3.9, windows.g5.4xlarge.nvidia.gpu, cuda, 11.8) / windows-job","conclusion":"failure","completed_at":"2024-11-07T13:19:39.000000000Z","html_url":"https://github.com/pytorch/vision/actions/runs/11722710685/job/32656118977","head_branch":"leakkkkkkk","pr_number":8712,"head_sha":"14324f6d13c7888294e40c486a92444cc67e44fe","head_sha_timestamp":"2024-11-07T12:10:52Z","failure_captures":["AttributeError: '_OpNamespace' 'image' object has no attribute '_jpeg_version'"],"failure_lines":["AttributeError: '_OpNamespace' 'image' object has no attribute '_jpeg_version'"],"failure_context":["+ echo ::endgroup::","+ python -m torch.utils.collect_env","+ /c/Jenkins/Miniconda3/Scripts/conda.exe list","+ __conda_exe list","+ case "$cmd" in","+ local cmd=list","+ conda list","+ echo '::group::Collect environment information'","+ echo ::endgroup::","+ python setup.py develop","+ echo '::group::Install TorchVision'","+ echo ::endgroup::"],"time":"2024-11-07T13:15:32.000000000Z"}],"UNSTABLE":[]}