这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » 国产MCU » QT运行程序时出现walyland2个错误要怎么解决呢

共2条 1/1 1 跳转至

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

工程师
2023-09-11 16:23:26     打赏

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

另请问下,Wayland 被关闭了怎么不重启能重新开启这个?




关键词: QT          walyland2    

助工
2023-09-11 16:23:46     打赏
2楼

1. 不确定,google 一下吧;
2. 看信息是 weston 挂了;
3. 启动桌面执行这个脚本,/etc/init.d/S50launcher 


共2条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]