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

openpose_body_estimation 运行段错误 Segmentation fault (core dumped) #1301

Closed
iotctech opened this issue Mar 10, 2021 · 6 comments
Closed
Assignees
Labels
cv Issues of computer vision model

Comments

@iotctech
Copy link

环境

  • ubuntu18.04
  • paddlepaddle-gpu 2.0.0
  • paddlehub 2.0.0rc0

日志

simpleai@40e54547101b:~/.paddlehub/modules/ernie_gen_poetry$ hub run openpose_body_estimation --input_path "/home/simpleai/workspace/mask_serving/2.jpeg"
/usr/local/lib/python3.6/dist-packages/pip/_vendor/packaging/version.py:130: DeprecationWarning: Creating a LegacyVersion has been deprecated and will be removed in the next major release
  DeprecationWarning,
/usr/local/lib/python3.6/dist-packages/pip/_vendor/packaging/version.py:130: DeprecationWarning: Creating a LegacyVersion has been deprecated and will be removed in the next major release
  DeprecationWarning,
W0310 05:39:42.219971 33891 device_context.cc:362] Please NOTE: device: 0, GPU Compute Capability: 6.1, Driver API Version: 11.0, Runtime API Version: 10.2
W0310 05:39:42.420359 33891 device_context.cc:372] device: 0, cuDNN Version: 8.1.
load pretrained checkpoint success


--------------------------------------
C++ Traceback (most recent call last):
--------------------------------------
0   paddle::framework::SignalHandle(char const*, int)
1   paddle::platform::GetCurrentTraceBackString[abi:cxx11]()

----------------------
Error Message Summary:
----------------------
FatalError: `Segmentation fault` is detected by the operating system.
  [TimeInfo: *** Aborted at 1615354801 (unix time) try "date -d @1615354801" if you are using GNU date ***]
  [SignalInfo: *** SIGSEGV (@0x0) received by PID 33891 (TID 0x7f2c4dc45740) from PID 0 ***]

Segmentation fault (core dumped)
@haoyuying
Copy link
Contributor

您好,建议使用opencv-python版本为4.4.0.42

@haoyuying haoyuying self-assigned this Mar 10, 2021
@haoyuying haoyuying added the cv Issues of computer vision model label Mar 10, 2021
@iotctech
Copy link
Author

您好,建议使用opencv-python版本为4.4.0.42

更换opencv-python的版本后,仍然这个错误

@haoyuying
Copy link
Contributor

您好,我尝试了下paddlepaddle-gpu 2.0.0, paddlehub2.0,opencv-python 4.4.0.42, CUDA Version: 10.2是可以的,建议可以将paddle和paddlehub卸载之后重新安装,应该是安装问题。

@iotctech
Copy link
Author

您好,我尝试了下paddlepaddle-gpu 2.0.0, paddlehub2.0,opencv-python 4.4.0.42, CUDA Version: 10.2是可以的,建议可以将paddle和paddlehub卸载之后重新安装,应该是安装问题。

和你的版本都是一样的,问题仍然存在

simpleai@40e54547101b:~$ pip3 list
Package                        Version
------------------------------ ----------
albumentations                 0.5.2
appdirs                        1.4.4
argon2-cffi                    20.1.0
astor                          0.8.1
async-generator                1.10
attrs                          20.3.0
Babel                          2.9.0
backcall                       0.2.0
bce-python-sdk                 0.8.53
bleach                         3.3.0
cached-property                1.5.2
certifi                        2020.12.5
cffi                           1.14.5
cfgv                           3.2.0
chardet                        4.0.0
click                          7.1.2
colorama                       0.4.4
colorlog                       4.7.2
cycler                         0.10.0
decorator                      4.4.2
defusedxml                     0.6.0
distlib                        0.3.1
easydict                       1.9
entrypoints                    0.3
filelock                       3.0.12
flake8                         3.8.4
Flask                          1.1.2
Flask-Babel                    2.0.0
future                         0.18.2
gast                           0.3.3
gitdb                          4.0.5
GitPython                      3.1.14
gplearn                        0.4.1
gunicorn                       20.0.4
h5py                           3.1.0
identify                       2.1.0
idna                           2.10
imageio                        2.9.0
imbalanced-learn               0.8.0
imgaug                         0.4.0
importlib-metadata             3.7.0
importlib-resources            5.1.2
ipykernel                      5.5.0
ipython                        7.16.1
ipython-genutils               0.2.0
itsdangerous                   1.1.0
jedi                           0.18.0
jieba                          0.42.1
Jinja2                         2.11.3
joblib                         1.0.1
json5                          0.9.5
jsonschema                     3.2.0
jupyter-client                 6.1.11
jupyter-core                   4.7.1
jupyter-server                 1.0.11
jupyterlab                     3.0.0rc9
jupyterlab-language-pack-zh-CN 0.0.1.dev0
jupyterlab-pygments            0.1.2
jupyterlab-server              2.0.0rc7
kiwisolver                     1.3.1
llvmlite                       0.35.0
MarkupSafe                     1.1.1
matplotlib                     3.3.3
mccabe                         0.6.1
mistune                        0.8.4
nbclassic                      0.2.4
nbclient                       0.5.3
nbconvert                      6.0.7
nbformat                       5.1.2
nest-asyncio                   1.5.1
networkx                       2.5
nodeenv                        1.5.0
notebook                       6.2.0
numba                          0.52.0
numpy                          1.19.5
opencv-python                  4.4.0.42
opencv-python-headless         4.5.1.48
packaging                      20.9
paddlehub                      2.0.0
paddlenlp                      2.0.0rc12
paddlepaddle-gpu               2.0.0
pandas                         1.1.5
pandocfilters                  1.4.3
parso                          0.8.1
pexpect                        4.8.0
pickleshare                    0.7.5
Pillow                         8.1.1
pip                            21.0.1
pre-commit                     2.11.0
prometheus-client              0.9.0
prompt-toolkit                 3.0.16
protobuf                       3.15.4
ptyprocess                     0.7.0
pyarrow                        3.0.0
pybase64                       1.1.4
pycodestyle                    2.6.0
pycparser                      2.20
pycryptodome                   3.10.1
pyflakes                       2.2.0
Pygments                       2.8.0
pyparsing                      2.4.7
pyrsistent                     0.17.3
python-dateutil                2.8.1
pytz                           2021.1
PyWavelets                     1.1.1
PyYAML                         5.4.1
pyzmq                          22.0.3
rarfile                        4.0
requests                       2.25.1
scikit-image                   0.17.2
scikit-learn                   0.24.0
scipy                          1.5.4
Send2Trash                     1.5.0
seqeval                        1.2.2
setuptools                     54.0.0
Shapely                        1.7.1
shellcheck-py                  0.7.1.1
simplejson                     3.17.2
simplenote-chat-extension      1.0.0
six                            1.15.0
smmap                          3.0.5
subprocess.run                 0.0.8
terminado                      0.9.2
testpath                       0.4.4
threadpoolctl                  2.1.0
tifffile                       2020.9.3
toml                           0.10.2
tornado                        6.1
tqdm                           4.55.0
traitlets                      4.3.3
typing-extensions              3.7.4.3
urllib3                        1.26.3
virtualenv                     20.4.2
visualdl                       2.1.1
wcwidth                        0.2.5
webencodings                   0.5.1
Werkzeug                       1.0.1
wheel                          0.36.2
zipp                           3.4.0
simpleai@40e54547101b:~$ hub run openpose_body_estimation --input_path "/home/simpleai/workspace/2.jpeg"
/usr/local/lib/python3.6/dist-packages/pip/_vendor/packaging/version.py:130: DeprecationWarning: Creating a LegacyVersion has been deprecated and will be removed in the next major release
  DeprecationWarning,
/usr/local/lib/python3.6/dist-packages/pip/_vendor/packaging/version.py:130: DeprecationWarning: Creating a LegacyVersion has been deprecated and will be removed in the next major release
  DeprecationWarning,
W0311 04:14:09.087685 35566 device_context.cc:362] Please NOTE: device: 0, GPU Compute Capability: 6.1, Driver API Version: 11.0, Runtime API Version: 10.2
W0311 04:14:09.242343 35566 device_context.cc:372] device: 0, cuDNN Version: 8.1.
load pretrained checkpoint success


--------------------------------------
C++ Traceback (most recent call last):
--------------------------------------
0   paddle::framework::SignalHandle(char const*, int)
1   paddle::platform::GetCurrentTraceBackString[abi:cxx11]()

----------------------
Error Message Summary:
----------------------
FatalError: `Segmentation fault` is detected by the operating system.
  [TimeInfo: *** Aborted at 1615436061 (unix time) try "date -d @1615436061" if you are using GNU date ***]
  [SignalInfo: *** SIGSEGV (@0x0) received by PID 35566 (TID 0x7f45f6a42740) from PID 0 ***]

Segmentation fault (core dumped)
simpleai@40e54547101b:~$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Wed_Oct_23_19:24:38_PDT_2019
Cuda compilation tools, release 10.2, V10.2.89

@haoyuying
Copy link
Contributor

您好,我使用的cudnn为7.6,看您的报错栈信息您使用的cudnn为8.1.
请在https://www.paddlepaddle.org.cn/install/quick?docurl=/documentation/docs/zh/install/pip/windows-pip.html
选择与您相匹配cuda版本的paddle,如果仍有问题,请安装版本为7.6的cudnn。

@iotctech
Copy link
Author

您好,我使用的cudnn为7.6,看您的报错栈信息您使用的cudnn为8.1.
请在https://www.paddlepaddle.org.cn/install/quick?docurl=/documentation/docs/zh/install/pip/windows-pip.html
选择与您相匹配cuda版本的paddle,如果仍有问题,请安装版本为7.6的cudnn。

cudnn版本更换成7.6确实可以了,paddle的版本没找到cuda10.2+cudnn8的呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cv Issues of computer vision model
Projects
None yet
Development

No branches or pull requests

2 participants