天天看點

在Ubuntu上運作PPOCRLabel啟動錯誤:FatalError: `Process abort signal` is detected by the operating system.問題描述問題分析解決方案

問題描述

執行啟動的時候報錯

(38) de[email protected]:~$ PPOCRLabel 
QObject::moveToThread: Current thread (0xb75d00) is not the object's thread (0x4cb65f0).
Cannot move to target thread (0xb75d00)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/dev/anaconda3/envs/38/lib/python3.8/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, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, 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 1674100539 (unix time) try "date -d @1674100539" if you are using GNU date ***]
  [SignalInfo: *** SIGABRT (@0x3e8000016d7) received by PID 5847 (TID 0x7f5ea5cc0740) from PID 5847 ***]

已放棄 (核心已轉儲)

           
在Ubuntu上運作PPOCRLabel啟動錯誤:FatalError: `Process abort signal` is detected by the operating system.問題描述問題分析解決方案

問題分析

看錯誤提示應該是缺少了Qt的環境變量設定,按照要求設定一下。

解決方案

設定環境變量

export QT_QPA_PLATFORM=wayland

echo $QT_QPA_PLATFORM
wayland
           

然後再次啟動

PPOCRLabel --lang ch --kie True
           
在Ubuntu上運作PPOCRLabel啟動錯誤:FatalError: `Process abort signal` is detected by the operating system.問題描述問題分析解決方案
在Ubuntu上運作PPOCRLabel啟動錯誤:FatalError: `Process abort signal` is detected by the operating system.問題描述問題分析解決方案

繼續閱讀