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

segmentation fault (core dumped) #125

Closed
ElToro13 opened this issue Mar 26, 2022 · 2 comments
Closed

segmentation fault (core dumped) #125

ElToro13 opened this issue Mar 26, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@ElToro13
Copy link

ElToro13 commented Mar 26, 2022

I am using AWS EC2 Ubuntu 18.04. I was able to install everything successfully. While I was trying to load Detectron2LayoutModel, I get following error

python3: Relink `/lib/x86_64-linux-gnu/libsystemd.so.0' with `/lib/x86_64-linux-gnu/librt.so.1' for IFUNC symbol `clock_gettime'
python3: Relink `/lib/x86_64-linux-gnu/libudev.so.1' with `/lib/x86_64-linux-gnu/librt.so.1' for IFUNC symbol `clock_gettime'
Segmentation fault (core dumped)

To Reproduce
Steps to reproduce the behavior:
I launched a t2.large AWS Ubuntu 18.04 and ran following command

  1. sudo apt-get update
  2. sudo apt install python3-pip -y
  3. python3 -m pip install --upgrade pip
  4. pip3 install scikit-build
  5. pip3 install layoutparser torchvision && pip3 install "detectron2@git+https://github.com/facebookresearch/[email protected]#egg=detectron2"

and then ran the following script.

import layoutparser as lp
model = lp.Detectron2LayoutModel('lp://PubLayNet/mask_rcnn_X_101_32x8d_FPN_3x/config',extra_config=["MODEL.ROI_HEADS.SCORE_THRESH_TEST", 0.65],
                                 label_map={0: "Text", 1: "Title", 2: "List", 3:"Table", 4:"Figure"})

Output -

python3: Relink `/lib/x86_64-linux-gnu/libsystemd.so.0' with `/lib/x86_64-linux-gnu/librt.so.1' for IFUNC symbol `clock_gettime'
python3: Relink `/lib/x86_64-linux-gnu/libudev.so.1' with `/lib/x86_64-linux-gnu/librt.so.1' for IFUNC symbol `clock_gettime'
Segmentation fault (core dumped)

Environment

  1. Ubuntu 18.04 - AWS t2.large Instance
  2. layout parser version = 0.3.2
  3. Python 3.6.9

Any one else facing this issue?

@ElToro13 ElToro13 added the bug Something isn't working label Mar 26, 2022
@FalconGold
Copy link

This should help

pip3 install opencv-python-headless==4.5.4.60

@ElToro13
Copy link
Author

This should help

pip3 install opencv-python-headless==4.5.4.60

Thanks. It worked!

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

No branches or pull requests

2 participants