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

Linux guest: in GPU mode + Xwayland, X apps do not work and display a black rectangle #6968

Open
mvysny opened this issue Jan 15, 2025 · 4 comments

Comments

@mvysny
Copy link

mvysny commented Jan 15, 2025

Describe the issue
When running Ubuntu 24.10 arm64 guest in Wayland mode with 3d/gpu acceleration enabled, the X apps do not render correctly: they only render black rectangles and start display strange artifacts as windows are moved over them.

The easiest way to reproduce is to run xeyes, but a number of apps will cause the same behavior, e.g. vice (C64 emulator) when run from terminal via x64sc, the fs-uae Amiga emulator, all Java apps running in Xwayland mode.

Thank you so much for your excellent work on UTM, it's an amazing piece of software that enables me to continue using Linux on Mac 👍 🙏

Configuration

  • UTM Version: 4.6.4
  • macOS Version: 15.2
  • Mac Chip (Intel, M1, ...): M3 Max
  • Guest OS: Ubuntu 24.10 arm64 in Wayland mode
  • Display card: virtio-gpu-gl-pci with GPU Acceleration enabled

Please see the screenshot attached; video will be uploaded shortly.
Screenshot 2025-01-15 at 9 48 41

@mvysny
Copy link
Author

mvysny commented Jan 15, 2025

Screen recording:

Screen.Recording.2025-01-15.at.9.47.50.mov

@mvysny
Copy link
Author

mvysny commented Jan 15, 2025

After searching issues, I found that this could be a known issue: Xwayland never worked well with GPU accelerated displays as per #5749 (comment)

@mvysny mvysny changed the title Linux guest: in GPU mode + wayland, X apps do not work and display a black rectangle Linux guest: in GPU mode + Xwayland, X apps do not work and display a black rectangle Jan 15, 2025
@flanter21
Copy link

After searching issues, I found that this could be a known issue: Xwayland never worked well with GPU accelerated displays as per #5749 (comment)

For me, it’s working on fedora. Maybe it’s this issue with mesa. I do note also that curiously it’s broken in flatpaks under kde for me but not in cosmic de. Maybe related: flathub/flathub#5938 (comment)

@mvysny
Copy link
Author

mvysny commented Jan 29, 2025

You're right - in newest Ubuntu 24.10, xeyes seem to be working at first. But when I launch some other Xwayland app (perhaps some that requires 3d acceleration or such), xeyes stops working. This looks like a bug in Mesa rather than in UTM; let's observe this.

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

2 participants