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

ubports-pdk.pdk run yields "qemu-system-x86_64: OpenGL is not supported by the display" #21

Open
ruedigerkupper opened this issue Aug 9, 2021 · 9 comments

Comments

@ruedigerkupper
Copy link

This is on a not-so-old Lenovo X230T Notebook. glxgears runs fine, so OpenGL obviously is supported by my display. Attaching output of glxinfo.
What am I doing wrong?
glxinfo.txt

@fredldotme
Copy link
Collaborator

Is dmesg giving any information about AppArmor denials? Also, are you using the full-Snap version or the version from git with qemu-ut-pdk?

@ruedigerkupper
Copy link
Author

dmesg has
audit: type=1400 audit(1628777485.446:546): apparmor="DENIED" operation="connect" profile="snap.ubports-pdk.pdk" name="/run/user/1000/wayland-0" pid=64153 comm="qemu-system-x86" requested_mask="wr" denied_mask="wr" fsuid=1000 ouid=1000
It's the full-snap version.

@ruedigerkupper
Copy link
Author

Ah, right. It's Wayland. Everything works on X.

@jonnius
Copy link
Contributor

jonnius commented Sep 11, 2021

I have the same issue with Wayland. There is a bit more to the error message though:

Running in unprivileged passthrough mode.
virtio_session_mount: Waiting for vhost-user socket connection...
qemu-system-x86_64: OpenGL is not supported by the display

What is this unprivileged passthrough mode? Maybe user needs to be in some group to get the necessary privileges?

@fredldotme
Copy link
Collaborator

"Unprivileged passthrough mode" is a message by virtiofsd, which provides the file sharing capabilities.
I had to patch it to not require yet another bunch of permissions, so that's that.

I'm surprised the GDK_BACKEND environment variable is not picked up properly, even though I enforce it in the snap's environment: https://github.com/ubports/ubports-pdk/blob/main/snap/snapcraft.yaml#L23

Maybe you want to run the command with the GDK_BACKEND=x11 environment variable prepended, so that it at least works on Wayland until a fix is implemented.

@jonnius
Copy link
Contributor

jonnius commented Sep 12, 2021

GDK_BACKEND=x11 ubports-pdk.pdk run fails with the same error message.

What about the pid error message?

@jonnius
Copy link
Contributor

jonnius commented Feb 23, 2022

I don't see this issue any more running from the script directly, but still with snap. Is the snap outdated?

@toehold
Copy link

toehold commented Nov 29, 2022

I also run into this issue, running Ubuntu 22.04.1 LTS

GDK_BACKEND=x11 ubports-pdk.pdk run
...
...
Running in unprivileged passthrough mode.
Cannot lock pid file: Resource temporarily unavailable
qemu-system-x86_64: OpenGL is not supported by the display

snap version
snap 2.57.6
snapd 2.57.6
series 16
ubuntu 22.04
kernel 5.15.0-53-generic

@jonnius
Copy link
Contributor

jonnius commented Nov 30, 2022

@fredldotme, should we change the README to suggest installing from the edge channel as the beta channel is very outdated and non-functional for many?

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

4 participants