在 Ubuntu 22.04.2 LTS 上通过在 PyCharm 中启动 PySide2 重型项目冻结光标和黑屏

问题描述 投票:0回答:0

我正在尝试在 PyCharm 中启动一个 GUI 项目,在 Ubuntu 22.04.2 LTS 上使用 PySide2。 首先我有一个错误

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" 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: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

经过研究我发现(用this方法)需要

libxcb-xinerama0
。比项目有点“跑”,但黑色冻结屏幕和冻结光标,绝对无法使用。我试着用
libxcb-cursor0
安装来修复它,比如here。但它没有帮助。

我如何跟踪那里发生了什么?系统日志没有任何可用信息(对我来说)

python ubuntu pyside2 ubuntu-22.04
© www.soinside.com 2019 - 2024. All rights reserved.