pytorch / pytorch/vision

video_reader test crashes on Windows

Open
#4,429 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

module: video
Dominant language
Python
Stars
17.9k
Forks
7.3k
Avg merge
1d 15h
Merged PRs (30d)
13

Description

🐛 Describe the bug

User@WinDev2108Eval MINGW64 ~/Documents/repos/vision (main)
$ pytest test/test_video_reader.py

============================= test session starts =============================
platform win32 -- Python 3.8.11, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: C:\Users\User\Documents\repos\vision, configfile: pytest.ini
collected 21 items

test\test_video_reader.py sFWindows fatal exception: access violation

Current thread 0x00000320 (most recent call first):
File "C:\Users\User\Documents\repos\vision\test\test_video_reader.py", line 491 in test_read_video_from_file_read_single_stream_only
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages_pytest\python.py", line 183 in pytest_pyfunc_call
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages\pluggy_callers.py", line 39 in _multicall
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages\pluggy_manager.py", line 80 in _hookexec
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages\pluggy_hooks.py", line 265 in call
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages_pytest\python.py", line 1641 in runtest
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages_pytest\runner.py", line 162 in pytest_runtest_call
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages\pluggy_callers.py", line 39 in _multicall
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages\pluggy_manager.py", line 80 in _hookexec
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages\pluggy_hooks.py", line 265 in call
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages_pytest\runner.py", line 255 in
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages_pytest\runner.py", line 311 in from_call
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages_pytest\runner.py", line 254 in call_runtest_hook
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages_pytest\runner.py", line 215 in call_and_report
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages_pytest\runner.py", line 126 in runtestprotocol
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages_pytest\runner.py", line 109 in pytest_runtest_protocol
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages\pluggy_callers.py", line 39 in _multicall
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages\pluggy_manager.py", line 80 in _hookexec
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages\pluggy_hooks.py", line 265 in call
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages_pytest\main.py", line 348 in pytest_runtestloop
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages\pluggy_callers.py", line 39 in _multicall
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages\pluggy_manager.py", line 80 in _hookexec
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages\pluggy_hooks.py", line 265 in call
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages_pytest\main.py", line 323 in main
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages_pytest\main.py", line 269 in wrap_session
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages_pytest\main.py", line 316 in pytest_cmdline_main
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages\pluggy_callers.py", line 39 in multicall
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages\pluggy_manager.py", line 80 in hookexec
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages\pluggy_hooks.py", line 265 in call
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages_pytest\config_init
.py", line 162 in main
File "C:\Users\User\anaconda3\envs\py38_env1\lib\site-packages_pytest\config_init
.py", line 185 in console_main
File "C:\Users\User\anaconda3\envs\py38_env1\Scripts\pytest.exe_main
.py", line 7 in
File "C:\Users\User\anaconda3\envs\py38_env1\lib\runpy.py", line 87 in _run_code
File "C:\Users\User\anaconda3\envs\py38_env1\lib\runpy.py", line 194 in _run_module_as_main
Segmentation fault

Versions

$ python collect_env.py
Collecting environment information...
PyTorch version: 1.10.0.dev20210910
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: Microsoft Windows 10 Enterprise Evaluation
GCC version: Could not collect
Clang version: Could not collect
CMake version: Could not collect
Libc version: N/A

Python version: 3.8.11 (default, Aug 6 2021, 09:57:55) [MSC v.1916 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-10-10.0.19043-SP0
Is CUDA available: False
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] numpy==1.21.2
[pip3] torch==1.10.0.dev20210910
[pip3] torchvision==0.11.0a0+719e120
[conda] Could not collect

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Windows crash with pytest test/test_video_reader.py, focusing on test/test_video_reader.py line 491 in test_read_video_from_file_read_single_stream_only. Investigate the access violation in this test and its video-reader path. Done means the test completes without a Windows access violation or segmentation fault.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
computer-vision, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.