瑞芯微Rockchip开发者社区
直播中

张伟

7年用户 1637经验值
私信 关注
[问答]

QT运行程序时出现walyland2个错误要怎么解决呢

1.jpg

问题描述及复现步骤:

QT运行程序,经常碰到下边这2个错误,不晓得要怎么规避或解决。很难重现,偶然性的。

错误1:经常是鼠标滚轮造成如下这个错误:

listener function for opcode 4 of wl_pointer is NULL
Aborted

错误2:不懂什么原因造成的

The Wayland connection broke. Did the Wayland compositor die?
Aborted

该错误后,再运行程序报错

QObject::startTimer: Timers can only be used with threads started with QThread
QObject::startTimer: Timers can only be used with threads started with QThread
Failed to create wl_display (Connection refused)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" 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: linuxfb, minimal, offscreen, vnc, wayland-egl, wayland.

Aborted

回帖(3)

张伟

2022-11-10 17:28:42
另请问下,Wayland 被关闭了怎么不重启能重新开启这个?
举报

王斌

2022-11-10 17:29:08
1. 不确定,google 一下吧;
2. 看信息是 weston 挂了;
3. 启动桌面执行这个脚本,/etc/init.d/S50launcher
举报

h1654155275.5614

2022-11-10 17:29:44
answer here
https://dev.t-firefly.com/forum. ... light=qt.qpa.plugin
举报

更多回帖

发帖
×
20
完善资料,
赚取积分