PFCCLab / PPOCRLabel

PPOCRLabelv2 is a semi-automatic graphic annotation tool suitable for OCR field, with built-in PP-OCR model to automatically detect and re-recognize data.
100 stars 31 forks source link

关于系统提示FatalError: `Process abort signal` is detected by the operating system. #108

Open WilliamGrant opened 2 days ago

WilliamGrant commented 2 days ago

我发现我在启动PPOCRLabel时,出现了如下情况

Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/home/Mashiro/.pyenv/versions/3.10.10/bin/platforms" ...
qt.qpa.plugin: Could not find the Qt platform plugin "dxcb" in "/media/Mashiro/inst_47/Project/python/PPOCRLabel/.venv/lib/python3.10/site-packages/cv2/qt/plugins"
loaded library "/media/Mashiro/inst_47/Project/python/PPOCRLabel/.venv/lib/python3.10/site-packages/cv2/qt/plugins/platforms/libqxcb.so"
QObject::moveToThread: Current thread (0x55a96abfda50) is not the object's thread (0x55a9704e3da0).
Cannot move to target thread (0x55a96abfda50)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/media/Mashiro/inst_47/Project/python/PPOCRLabel/.venv/lib/python3.10/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb, linuxfb, minimal, offscreen, vnc, webgl.

--------------------------------------
C++ Traceback (most recent call last):
--------------------------------------
No stack trace in paddle, may be caused by external reasons.

----------------------
Error Message Summary:
----------------------
FatalError: `Process abort signal` is detected by the operating system.
  [TimeInfo: *** Aborted at 1731403692 (unix time) try "date -d @1731403692" if you are using GNU date ***]
  [SignalInfo: *** SIGABRT (@0x3e80001ebcb) received by PID 125899 (TID 0x7f1700863b80) from PID 125899 ***]

然后在pip中的依赖如下列所示

albucore==0.0.13
albumentations==1.4.10
annotated-types==0.7.0
anyio==4.6.2.post1
astor==0.8.1
beautifulsoup4==4.12.3
cachetools==5.5.0
certifi==2024.8.30
charset-normalizer==3.4.0
contourpy==1.3.0
cssselect==1.2.0
cssutils==2.11.1
cycler==0.12.1
Cython==3.0.11
decorator==5.1.1
et_xmlfile==2.0.0
exceptiongroup==1.2.2
fire==0.7.0
fonttools==4.54.1
h11==0.14.0
httpcore==1.0.6
httpx==0.27.2
idna==3.10
imageio==2.36.0
imgaug==0.4.0
joblib==1.4.2
kiwisolver==1.4.7
lazy_loader==0.4
lmdb==1.5.1
lxml==5.3.0
matplotlib==3.9.2
more-itertools==10.5.0
networkx==3.4.2
numpy==1.26.4
opencv-contrib-python==4.10.0.84
opencv-python==4.10.0.84
opencv-python-headless==4.10.0.84
openpyxl==3.1.5
opt-einsum==3.3.0
packaging==24.2
paddleocr==2.9.1
paddlepaddle==3.0.0b2
pandas==2.2.3
pillow==11.0.0
PPOCRLabel==2.1.11
premailer==3.10.0
protobuf==5.28.3
pyclipper==1.3.0.post6
pydantic==2.9.2
pydantic_core==2.23.4
pyparsing==3.2.0
PyQt5==5.15.11
PyQt5-Qt5==5.15.15
PyQt5_sip==12.15.0
python-dateutil==2.9.0.post0
python-docx==1.1.2
pytz==2024.2
PyYAML==6.0.2
RapidFuzz==3.10.1
requests==2.32.3
scikit-image==0.24.0
scikit-learn==1.5.2
scipy==1.14.1
shapely==2.0.6
six==1.16.0
sniffio==1.3.1
soupsieve==2.6
termcolor==2.5.0
threadpoolctl==3.5.0
tifffile==2024.9.20
tomli==2.1.0
tqdm==4.67.0
typing_extensions==4.12.2
tzdata==2024.2
urllib3==2.2.3

使用的环境是deepin v23 社区版本,不知道是否跟本机或者和开发环境有关,我不太会搭这个配置环境,还望指出问题所在。

haimat commented 2 days ago

I have exactly the same issue with the same error message here.

GreatV commented 2 days ago

Please refer to the historical issues.

haimat commented 2 days ago

Please refer to the historical issues.

Thanks - after uninstalling opencv-python and installing opencv-python-headless it works now for me 👍