Giter VIP home page Giter VIP logo

Comments (5)

maxiberta avatar maxiberta commented on June 10, 2024

Hey! Thanks for the investigation. A rebuilt snap with qtwayland5 is already available on the edge channel. I was able to reproduce the issue on a Plasma Wayland session on Kubuntu 19.04 (kde 5.16.3).

$ moonlight -platform wayland

Noticed the Qt Debug: Using Wayland-EGL message and tried with -platform wayland-egl, with an almost identical output, and the added Qt Warning: Cannot find EGLConfig, returning null config:

$ moonlight -platform wayland-egl
00:00:00 - SDL Info (0): Compiled with SDL 2.0.8
00:00:00 - SDL Info (0): Running with SDL 2.0.8
00:00:00 - Qt Debug: Using Wayland-EGL
00:00:00 - Qt Warning: EGL not available
00:00:00 - SDL Info (0): Detected Wayland. Performance may be worse than X11.
00:00:00 - Qt Info: Found "gamecontrollerdb.txt" at ":/data/gamecontrollerdb.txt"
00:00:00 - SDL Info (0): Loaded 149 new gamepad mappings
00:00:00 - SDL Error (0): Failed to create window for hardware decode test: failed to create a window surface
00:00:00 - Qt Info: Found "gamecontrollerdb.txt" at ":/data/gamecontrollerdb.txt"
00:00:00 - SDL Info (0): Loaded 149 new gamepad mappings
00:00:00 - Qt Warning: Cannot find EGLConfig, returning null config
00:00:00 - Qt Debug: Using the 'xdg-shell-v6' shell integration
(...)
00:00:00 - Qt Warning: "Object path cannot be empty"
00:00:00 - Qt Debug: Current Moonlight version: "1.0.1"
00:00:00 - Qt Warning: Cannot find EGLConfig, returning null config
00:00:00 - Qt Warning: QWaylandGLContext: failed to create EGLContext, error=3008
00:00:00 - Qt Fatal: Failed to create EGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, profile  QSurfaceFormat::OpenGLContextProfile(NoProfile))

Installing with --devmode makes no difference, so I guess it's not an issue with confinement permissions.

Unsure how to debug/fix this atm. Might need help from someone more familiar with wayland and/or snaps, honestly.

from moonlight-snap.

q4z1 avatar q4z1 commented on June 10, 2024

Thx for taking a look and good to know that it's a reproducable issue.

I tested a bit with the flatpak release. Wayland is by far not a productive to use solution at this moment. Too many bugs. I'm fine using x11 as main session for now.

from moonlight-snap.

cgutman avatar cgutman commented on June 10, 2024

I root-caused the issue to __EGL_VENDOR_LIBRARY_DIRS not being set properly, so no EGL implementation could be found. It turns out that the Qt5 Wayland breakage was already reported as ubuntu/snapcraft-desktop-helpers#172 and I've submitted a PR to fix it ubuntu/snapcraft-desktop-helpers#194

from moonlight-snap.

maxiberta avatar maxiberta commented on June 10, 2024

Brilliant! Thanks @cgutman.

from moonlight-snap.

cgutman avatar cgutman commented on June 10, 2024

@maxiberta After fixing the EGL issue, I now hit https://bugs.launchpad.net/ubuntu/+source/intel-vaapi-driver/+bug/1813131 which breaks VAAPI hardware decoding on Wayland.

from moonlight-snap.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.