Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt platform error on yarpmanager #1568

Open
lindalastrico opened this issue Jan 9, 2024 · 8 comments
Open

Qt platform error on yarpmanager #1568

lindalastrico opened this issue Jan 9, 2024 · 8 comments

Comments

@lindalastrico
Copy link

lindalastrico commented Jan 9, 2024

Hello,
We are using the latest superbuild stable release with yarp 3.8.1 on Ubuntu 22.04.
When launching yarpmanager, we face this warning:
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Yarpmanager works fine anyway, except when trying to launch a command from the GUI:
Screenshot from 2024-01-09 16-00-54
While the Yarpmanager GUI reports "command successfully executed on... ", the command is not actually executed and there is the following error in the yarpmanager terminal:

t.qpa.xcb: could not connect to display
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, xcb.

It looks like a Qt issue, what do you suggest?
Thank you!

@traversaro
Copy link
Member

I am not really familiar with that functionality of the clusterwidget.

Just to understand, are you able to run yarpview in icub15 if you do not pass via the yarpmanager? Does it work if instead of running it via the "Type the command you wish to execute" you run it via as a module as part of a regular application of yarpmanager?

FYI @Nicogene or @randaz81 do you have any idea on this?

@randaz81
Copy link
Member

randaz81 commented Jan 9, 2024

Not familiar with this error. Maybe some apt get install libxcb (or similar) is missing?

Check these as well:

sudo apt-get install qtbase5-dev \
 qtdeclarative5-dev \
 qtmultimedia5-dev \
 qml-module-qtquick2 \
 qml-module-qtquick-window2 \
 qml-module-qtmultimedia \
 qml-module-qtquick-dialogs \
 qml-module-qtquick-controls

@randaz81
Copy link
Member

@lindalastrico any update on your issue?

@lindalastrico
Copy link
Author

@randaz81 not yet. I haven’t had the chance to access the lab pc to test it again! I will update you on Thursday, thank you!

@lindalastrico
Copy link
Author

Hello @randaz81, @traversaro
Here's some very late updates, I apologize.
We are having problems opening yarpview (and all the other GUIs such as the skinManager) from yarpmanager regular applications as well (this is new, but happening on different PCs in the same way).
I confirm that the same commands work fine when launched from a terminal or when launched from a yarpmanager application on the node "localhost". Instead, they are not executed (with the error stated before) when launched on the node specific name (e.g. icub16, icub15, icubsrv and so on).
Could it be a problem with the ssh? The display option in yarpmanager is correctly set, as in the screenshot attached
Screenshot from 2024-01-30 16-22-59
Thanks!
Linda

@randaz81
Copy link
Member

randaz81 commented Jan 30, 2024

Can you run via manger a non-qt, non-yarp GUI? For example gedit, which should be based on GTK

@lindalastrico
Copy link
Author

lindalastrico commented Jan 30, 2024

No! On the terminal it says:
(gedit:3836): Gtk-WARNING **: 18:01:58.624: cannot open display:
@randaz81 if you have any suggestion let me know!

@traversaro
Copy link
Member

To debug further the problem, can you try to launch yarprun on the machine that is creating problems manually, instead of launching it via the yarpmanager?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants