在Ubuntu上运行PPOCRLabel启动错误:FatalError: `Process abort signal` is detected by the operating system.

Posted 没刮胡子

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在Ubuntu上运行PPOCRLabel启动错误:FatalError: `Process abort signal` is detected by the operating system.相关的知识,希望对你有一定的参考价值。

问题描述

执行启动的时候报错

(38) dev@aiserver:~$ 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 ***]

已放弃 (核心已转储)

问题分析

看错误提示应该是缺少了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.的主要内容,如果未能解决你的问题,请参考以下文章

PPOCRLabel在windows启动错误处理

PPOCRLabel在windows启动错误处理

Ubuntu 13.10不能启动VirtualBox怎么办

在 ubuntu14.04 上启动 qt

如何在 Ubuntu 上使用电容器在 android-studio 上运行 Ionic 应用程序?

解决Ubuntu启动错误一例