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

Process finished with exit code -1073741819 (0xC0000005) #5722

Closed
1 of 2 tasks
jzod opened this issue Nov 19, 2021 · 12 comments
Closed
1 of 2 tasks

Process finished with exit code -1073741819 (0xC0000005) #5722

jzod opened this issue Nov 19, 2021 · 12 comments
Labels
bug Something isn't working Stale

Comments

@jzod
Copy link

jzod commented Nov 19, 2021

Search before asking

  • I have searched the YOLOv5 issues and found no similar bug report.

YOLOv5 Component

PyTorch Hub

Bug

The following line of code:
model = torch.hub.load('ultralytics/yolov5', 'yolov5s')
Produces this error in PyCharm:
Process finished with exit code -1073741819 (0xC0000005)

When I run from the command prompt it just exits with no code:
cmd

Environment

  • Yolov5 - No CUDA, CPU only
  • Windows 10 Enterprise Ver 20H2, Build 19042.1348
  • Python 3.8
  • Installed Packages from requirements.txt on GitHub:
  • pip install -r requirements.txt

Base ----------------------------------------

matplotlib>=3.2.2
numpy>=1.18.5
opencv-python>=4.1.2
Pillow>=7.1.2
PyYAML>=5.3.1
requests>=2.23.0
torch>=1.7.0
torchvision>=0.8.1
tqdm>=4.41.0

Logging -------------------------------------

wandb

Plotting ------------------------------------

pandas>=1.1.4
seaborn>=0.11.0

Export --------------------------------------

coremltools>=4.1 # CoreML export

onnx>=1.9.0 # ONNX export

onnx-simplifier>=0.3.6 # ONNX simplifier

scikit-learn==0.19.2 # CoreML quantization

tensorflow>=2.4.1 # TFLite export

tensorflowjs>=3.9.0 # TF.js export

Extras --------------------------------------

albumentations>=1.0.3

Cython # for pycocotools cocodataset/cocoapi#172

pycocotools>=2.0 # COCO mAP

roboflow

thop~=0.0.31.post2005241907

pip~=21.3.1
wheel~=0.37.0
setuptools~=59.1.1
Flask~=2.0.2
val~=0.6-

Minimal Reproducible Example

Here is the code:
code

Additional

I created a clean venv with Python 3.8.0 as it stated in the docs and I use PyCharm so I sync'd with the requirements.txt provided.

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@jzod jzod added the bug Something isn't working label Nov 19, 2021
@glenn-jocher
Copy link
Member

glenn-jocher commented Nov 20, 2021

@jzod 👋 hi, thanks for letting us know about this possible problem with YOLOv5 🚀. I'm not able to reproduce any problems with your command in PyCharm on MacOS. In any case if this is reproducible with other torch hub repos then this may be a torch issue which should be raised at https://github.com/pytorch/pytorch

Screenshot 2021-11-20 at 12 35 29

We've created a few short guidelines below to help users provide what we need in order to get started investigating a possible problem.

How to create a Minimal, Reproducible Example

When asking a question, people will be better able to provide help if you provide code that they can easily understand and use to reproduce the problem. This is referred to by community members as creating a minimum reproducible example. Your code that reproduces the problem should be:

  • Minimal – Use as little code as possible to produce the problem
  • Complete – Provide all parts someone else needs to reproduce the problem
  • Reproducible – Test the code you're about to provide to make sure it reproduces the problem

For Ultralytics to provide assistance your code should also be:

  • Current – Verify that your code is up-to-date with GitHub master, and if necessary git pull or git clone a new copy to ensure your problem has not already been solved in master.
  • Unmodified – Your problem must be reproducible using official YOLOv5 code without changes. Ultralytics does not provide support for custom code ⚠️.

If you believe your problem meets all the above criteria, please close this issue and raise a new one using the 🐛 Bug Report template with a minimum reproducible example to help us better understand and diagnose your problem.

Thank you! 😃

@github-actions
Copy link
Contributor

github-actions bot commented Dec 21, 2021

👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs.

Access additional YOLOv5 🚀 resources:

Access additional Ultralytics ⚡ resources:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLOv5 🚀 and Vision AI ⭐!

@github-actions github-actions bot added the Stale label Dec 21, 2021
@jzod
Copy link
Author

jzod commented Dec 21, 2021 via email

@github-actions github-actions bot removed the Stale label Dec 22, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 2022

👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs.

Access additional YOLOv5 🚀 resources:

Access additional Ultralytics ⚡ resources:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLOv5 🚀 and Vision AI ⭐!

@jzod
Copy link
Author

jzod commented Feb 11, 2022

I finally tracked down the problem to the version of Pillow I had in my venv. I had v9.0.1 and when I reverted to 7.1.2 it worked.

I would be interested in knowing why this worked.

@glenn-jocher
Copy link
Member

@jzod see requirements:

Pillow>=7.1.2

@jzod
Copy link
Author

jzod commented Feb 12, 2022 via email

@glenn-jocher
Copy link
Member

@jzod ah got you, didn't read your message clearly. So you're saying there's a bug in current Pillow package? https://pypi.org/project/Pillow/

Should we exclude 9.0.1? i.e.:

Pillow>=7.1.2,<9.0.1

@glenn-jocher
Copy link
Member

@jzod everything works correctly for me in Colab with Pillow==9.0.1. I'm unable to see any errors:

!git clone https://github.com/ultralytics/yolov5  # clone
%cd yolov5
%pip install Pillow==9.0.1
%pip install -qr requirements.txt  # install

@glenn-jocher
Copy link
Member

glenn-jocher commented Feb 12, 2022

@jzod Colab validation of Pillow==9.0.1 (restart runtime for install to take effect).

Screenshot 2022-02-12 at 14 24 47

@jzod
Copy link
Author

jzod commented Feb 12, 2022 via email

@bladjiang
Copy link

@jzod thks.
it really works after i reinstalled pillow package!!! it's the pillow packege's problem.

pip uninstall pillow
pip install pillow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

3 participants