Giter Club home page Giter Club logo

Comments (13)

0xC1A551C avatar 0xC1A551C commented on May 12, 2024 7

I ran the flatpak update & it started working.

from moonlight-qt.

logix2 avatar logix2 commented on May 12, 2024 3

You need to install the Nvidia drivers from Flatpak (same version as your regular install drivers) to get apps that use OpenGL to work with proprietary Nvidia drivers. See here: https://www.linuxuprising.com/2018/06/how-to-get-flatpak-apps-and-games-built.html

from moonlight-qt.

cgutman avatar cgutman commented on May 12, 2024

Can you try the following commands and paste their output here:
flatpak --version
flatpak run --command=sh com.moonlight_stream.Moonlight -c export
flatpak update

from moonlight-qt.

myamanaka avatar myamanaka commented on May 12, 2024

Here is the output from the requested commands:

flatpak --version

Flatpak 0.11.7

flatpak run --command=sh com.moonlight_stream.Moonlight -c export

export AT_SPI_BUS_ADDRESS="unix:path=/run/user/1000/at-spi-bus"
export CINNAMON_VERSION="3.8.8"
export COLORTERM="truecolor"
export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"
export DCONF_USER_CONFIG_DIR=".config/dconf"
export DEFAULTS_PATH="/usr/share/gconf/cinnamon.default.path"
export DESKTOP_SESSION="cinnamon"
export DISPLAY=":99.0"
export FLATPAK_SANDBOX_DIR="/home/myamanaka/.var/app/com.moonlight_stream.Moonlight/sandbox"
export GDMSESSION="cinnamon"
export GDM_LANG="en_US"
export GI_TYPELIB_PATH="/app/lib/girepository-1.0"
export GJS_DEBUG_OUTPUT="stderr"
export GJS_DEBUG_TOPICS="JS ERROR;JS LOG"
export GNOME_DESKTOP_SESSION_ID="this-is-deprecated"
export GNOME_TERMINAL_SCREEN="/org/gnome/Terminal/screen/a2d85d98_bf47_4a11_9146_47072b77ccb4"
export GNOME_TERMINAL_SERVICE=":1.57"
export GPG_AGENT_INFO="/run/user/1000/gnupg/S.gpg-agent:0:1"
export GST_PLUGIN_SYSTEM_PATH="/app/lib/gstreamer-1.0:/usr/lib/extensions/gstreamer-1.0:/usr/lib/gstreamer-1.0"
export GTK_MODULES="gail:atk-bridge"
export GTK_OVERLAY_SCROLLING="1"
export HOME="/home/myamanaka"
export KDE_FORK_SLAVES="1"
export LANG="en_US.UTF-8"
export LANGUAGE="en_US"
export LESSCLOSE="/usr/bin/lesspipe %s %s"
export LESSOPEN="| /usr/bin/lesspipe %s"
export LIBVIRT_DEFAULT_URI="qemu:///system"
export LOGNAME="myamanaka"
export LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:"
export MANDATORY_PATH="/usr/share/gconf/cinnamon.mandatory.path"
export OLDPWD
export PATH="/app/bin:/usr/bin"
export PULSE_CLIENTCONFIG="/run/user/1000/pulse/config"
export PULSE_SERVER="unix:/run/user/1000/pulse/native"
export PWD="/home/myamanaka"
export QML2_IMPORT_PATH="/app/lib64/qml:/app/lib/qml"
export QT_ACCESSIBILITY="1"
export QT_PLUGIN_PATH="/app/lib64/plugins:/app/lib/plugins:/usr/share/runtime/lib/plugins"
export QT_QPA_PLATFORMTHEME="qt5ct"
export SESSION_MANAGER="local/adell:@/tmp/.ICE-unix/1545,unix/adell:/tmp/.ICE-unix/1545"
export SHELL="/bin/sh"
export SHLVL="2"
export SSH_AGENT_PID="1609"
export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"
export TERM="xterm-256color"
export USER="myamanaka"
export VTE_VERSION="5202"
export XAUTHORITY="/run/user/1000/Xauthority"
export XDG_CACHE_HOME="/home/myamanaka/.var/app/com.moonlight_stream.Moonlight/cache"
export XDG_CONFIG_DIRS="/app/etc/xdg:/etc/xdg"
export XDG_CONFIG_HOME="/home/myamanaka/.var/app/com.moonlight_stream.Moonlight/config"
export XDG_CURRENT_DESKTOP="X-Cinnamon"
export XDG_DATA_DIRS="/app/share:/usr/share:/usr/share/runtime/share:/run/host/share"
export XDG_DATA_HOME="/home/myamanaka/.var/app/com.moonlight_stream.Moonlight/data"
export XDG_GREETER_DATA_DIR="/var/lib/lightdm-data/myamanaka"
export XDG_RUNTIME_DIR="/run/user/1000"
export XDG_SEAT="seat0"
export XDG_SEAT_PATH="/org/freedesktop/DisplayManager/Seat0"
export XDG_SESSION_DESKTOP="cinnamon"
export XDG_SESSION_ID="c2"
export XDG_SESSION_PATH="/org/freedesktop/DisplayManager/Session0"
export XDG_SESSION_TYPE="x11"
export XDG_VTNR="7"
export _="/usr/bin/flatpak"

flatpak update

Looking for updates...
Updating: org.freedesktop.Platform/x86_64/18.08 from flathub
[####################] 8 delta parts, 4 loose fetched; 64650 KiB transferred in 224 seconds
Now at b85155963350.
Updating: org.freedesktop.Platform.VAAPI.Intel/x86_64/18.08 from flathub
[####################] 1 delta parts, 1 loose fetched; 277 B transferred in 120 seconds
Now at a914fd4dabc0.
Updating: org.freedesktop.Platform.html5-codecs/x86_64/18.08 from flathub
[####################] 1 delta parts, 2 loose fetched; 2451 KiB transferred in 181 seconds
Now at 6e3e9f613bdd.
Updating: org.freedesktop.Platform.Compat.i386/x86_64/18.08 from flathub
[####################] 3 delta parts, 3 loose fetched; 24969 KiB transferred in 204 seconds
Now at 5ef1f120bbb2.

from moonlight-qt.

cgutman avatar cgutman commented on May 12, 2024

Hmm, perhaps updating Flatpak might help things? Can you see if your distro has an updated package for Flatpak 1.0.0? Then try doing another flatpak update

Otherwise, I'll try to reproduce this myself when I get some time.

from moonlight-qt.

myamanaka avatar myamanaka commented on May 12, 2024

I've installed flatpak from the official flatpak Ubuntu PPA which brought me up to 1.0.0, but unfortunately I still see the same issue.

myamanaka@adell:~$ apt-cache policy flatpak
flatpak:
  Installed: 1.0.0-flatpak2~bionic
  Candidate: 1.0.0-flatpak2~bionic
  Version table:
 *** 1.0.0-flatpak2~bionic 500
        500 http://ppa.launchpad.net/alexlarsson/flatpak/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status
     0.11.7-0ubuntu0.1 500
        500 http://mirror.csclub.uwaterloo.ca/ubuntu bionic-updates/universe amd64 Packages
     0.11.3-3 500
        500 http://mirror.csclub.uwaterloo.ca/ubuntu bionic/universe amd64 Packages
myamanaka@adell:~$ flatpak run com.moonlight_stream.Moonlight 
00:00:00 - Qt Warning: Qt: Session management error: None of the authentication protocols specified are supported
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
00:00:00 - Qt Fatal: Could not initialize GLX

from moonlight-qt.

0xC1A551C avatar 0xC1A551C commented on May 12, 2024

I have the same exact issue on ubuntu 18.04. Happened after I installed the latest nvidia driver 390. fresh install

from moonlight-qt.

sandzhaj avatar sandzhaj commented on May 12, 2024

@logix2
it doesn't work.

flatpak list:

com.moonlight_stream.Moonlight/x86_64/stable          system,current
org.freedesktop.Platform.GL.nvidia-340-106/x86_64/1.4 system,runtime
org.freedesktop.Platform.ffmpeg/x86_64/1.6            system,runtime
org.gtk.Gtk3theme.Breeze/x86_64/3.22                  system,runtime
org.kde.Platform/x86_64/5.11                          system,runtime

nvidia:

apt-cache policy nvidia-340
nvidia-340:
Установлен: 340.106-0ubuntu3
Кандидат: 340.106-0ubuntu3
Таблица версий:
*** 340.106-0ubuntu3 500

As you see, version the same

Still getting error while flatpak run com.moonlight_stream.Moonlight:

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
00:00:00 - Qt Fatal: Could not initialize GLX

A also can't build moonlight from source - https://i.imgur.com/yHHSB5r.png
Cause ubuntu doesn's have ffmpeg-devel. I installed all dev packages from this page: https://launchpad.net/ubuntu/+source/ffmpeg
But without result.

from moonlight-qt.

cgutman avatar cgutman commented on May 12, 2024

@sandzhaj Ubuntu doesn't ship FFmpeg 4.0 which is required to build and run Moonlight. However, you can still build Moonlight from source on Ubuntu by downloading FFmpeg and building it from source or installing a PPA that contains FFmpeg 4 like https://launchpad.net/~jonathonf/+archive/ubuntu/ffmpeg-4 (which our Travis CI config uses to build on Ubuntu).

If you install that PPA (and remove any existing older ffmpeg stuff), you can just apt install libavcodec-dev libavutil-dev and you should be good to go.

from moonlight-qt.

sandzhaj avatar sandzhaj commented on May 12, 2024

@cgutman Oh, yeah, it works! Thank you!

from moonlight-qt.

cgutman avatar cgutman commented on May 12, 2024

I wonder if this issue is related to the ancient GeForce GPUs in your machines (200-series that's long out of official support).

Maybe the flatpak runtimes don't have support for such old hardware or the OpenGL support is too low for Qt.

from moonlight-qt.

cgutman avatar cgutman commented on May 12, 2024

A developer from Canonical has built a Snap package for Moonlight (which I haven't tested myself). I wonder if it doesn't have this issue.

https://snapcraft.io/moonlight

from moonlight-qt.

no-response avatar no-response commented on May 12, 2024

This issue has been automatically closed because there was no response to a request for more information from the issue opener. Please leave a comment or open a new issue if you have additional information related to this issue.

from moonlight-qt.

Related Issues (20)

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.