flathub / com.spotify.Client

https://flathub.org/apps/details/com.spotify.Client
74 stars 35 forks source link

Spotify crashes when adding a music source #140

Open soaringowl2145 opened 4 years ago

soaringowl2145 commented 4 years ago

I am using Debian 10 Buster with Gnome XORG with Nvidia proprietary graphics driver.

When I click "ADD A SOURCE" from the LOCAL FILES submenu the entire app closes.

betocoutinho commented 3 years ago

This is happening to me also on ubuntu 20.04 in the flatpak version.

natejank commented 3 years ago

This also happens on Fedora Workstation 33, with Intel graphics, on GNOME wayland and x11. From my perspective, it tries to spawn a file browser window, but fails to load it and kills both windows. There is no log output by spotify itself upon the crash, even when the --show-console flag is used.

soaringowl2145 commented 3 years ago

Even the Snap version does this on Ubuntu

tosziro commented 3 years ago

Same on Ubuntu 20.10

soaringowl2145 commented 3 years ago

Upon further inspection, this might be a GNOME issue as I have tried on MATE and openbox and those both work fine. Only GNOME seems to not work.

natejank commented 3 years ago

Now on Ubuntu 20.04, this happens to me on the snap, deb, and flatpak. I think it's an upstream problem where at some point GNOME's xdg desktop portal support was broken, and it hasn't been fixed because Linux is an unsupported platform. There doesn't seem to be a way to manually add a path using plain text configuration, but I have been able to downgrade to a version before the portal was broken, set a path, and upgrade again.

Zlopez commented 3 years ago

I can confirm this is also happening on Fedora 33 Silverblue.

shaicoleman commented 3 years ago

This is an upstream bug in the latest version of the app (not caused by Flatpak). The workaround is to temporarily revert to an older version:

# Clear Spotify configuration if downgrading from a newer version
rm -rf ~/.var/app/com.spotify.Client/
# Revert to version 1.1.26.501.gbe11e53b
sudo flatpak update --commit=ca4fd2d20d5b3188e31d7ecff120ed8be818cd7d4b32b56229c97db12c65a1ea com.spotify.Client
# Allow access to the home directory
sudo flatpak override com.spotify.Client --filesystem=home
# Optionally, prevent automatic updates
sudo flatpak mask com.spotify.Client

Optionally, upgrade to a newer version after configuring the local directory:

# Enable automatic updates
sudo flatpak mask --remove com.spotify.Client
# Update spotify
sudo flatpak update
shaicoleman commented 3 years ago

With the latest version, it seems to be fixed now. You still need to grant access to the filesystem

sudo flatpak override com.spotify.Client --filesystem=home