Ubuntu 20.04-1 Crashes when "add source" for local songs

Solved!
Reply

Ubuntu 20.04-1 Crashes when "add source" for local songs

Tsukinoma
Casual Listener

Plan

    Premium

Country

    Australia

 

Device

    Desktop

AMD R5 3600

AMD Powercolor RX580 8GB

Thermaltake Tough Ram 16Gb 3200MHz

Operating System

    Ubuntu 20.04-1

 

My Question or Issue

    When I attempt to "add a source" for local files Spotify will crash. You can see the file manager for a split second before both Spotify and it crashes/disappears. Have tried:

Reinstalling
https://community.spotify.com/t5/Desktop-Linux/Linux-Local-files-do-not-play-on-Ubuntu-16-04-SOLVED/...
https://community.spotify.com/t5/Help-Desktop-Linux-Windows-Web/Unable-to-Add-a-Directory-to-Play-Lo...

 

This is the Spotify dump for when I click on the "add source" button

 

Gtk-Message: 17:17:50.151: Failed to load module "gail"
Gtk-Message: 17:17:50.151: Failed to load module "atk-bridge"
Gtk-Message: 17:17:50.153: Failed to load module "canberra-gtk-module"
MESA-LOADER: failed to open radeonsi (search paths /snap/spotify/42/usr/lib/x86_64-linux-gnu/dri)
failed to load driver: radeonsi
MESA-LOADER: failed to open kms_swrast (search paths /snap/spotify/42/usr/lib/x86_64-linux-gnu/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast (search paths /snap/spotify/42/usr/lib/x86_64-linux-gnu/dri)
failed to load swrast driver
MESA-LOADER: failed to open radeonsi (search paths /snap/spotify/42/usr/lib/x86_64-linux-gnu/dri)
failed to load driver: radeonsi
MESA-LOADER: failed to open kms_swrast (search paths /snap/spotify/42/usr/lib/x86_64-linux-gnu/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast (search paths /snap/spotify/42/usr/lib/x86_64-linux-gnu/dri)
failed to load swrast driver

1 ACCEPTED SOLUTION
Solution!

Tsukinoma
Casual Listener

I originally installed via Ubuntu Software Store which gave me a newer version of spotify but has the issue mentioned above, just attempted to reinstall via https://www.spotify.com/us/download/linux/ and so far has been successful in adding a source. Whoop

View solution in original post

37 Replies

k0kubun
Visitor

The latest Spotify client still crashes on my Ubuntu 20.04 machine, but I managed to configure what I want on it.

 

There's a Docker container with an old Spotify client https://hub.docker.com/r/syncomm/spotify/. Modify the docker-spotify.sh in the url to mount a directory you want to configure, and execute the script. You can add the directory to sources, and then close the GUI to save watch-sources.bnk.

 

Once you copy "/home/spotify/.config/spotify/Users/[username]-user/watch-sources.bnk" on Docker to local "~/snap/spotify/current/.config/spotify/Users/[username]-user/watch-sources.bnk` and open a local Spotify client, it will have what you want.

mboitata
Casual Listener
It seem's there's another thread about this topic.
https://community.spotify.com/t5/Desktop-Linux/Spotify-Client-crashes-when-adding-a-directory-to-loc...

I have this exact same problem on Spotify installed with flatpak on Fedora 33.
Solution!

Tsukinoma
Casual Listener

I originally installed via Ubuntu Software Store which gave me a newer version of spotify but has the issue mentioned above, just attempted to reinstall via https://www.spotify.com/us/download/linux/ and so far has been successful in adding a source. Whoop

View solution in original post

Rover0
Regular

Lol I'm running Pop_OS. And when it cried to me that I needed to transition to flatpak everything died. And now when I purge the install and try to reinstall it from the spotify.com repos it won't work. So sad face 😞

unique1o1
Music Fan

same thing here.

Checking the spotify generated log shows songs that I added to my local files from my other laptop(running linux mint). But nothing about the crash.

 

Log looks like:

09:36:06.550 E [local_file_resource.cpp:80      ] Track spotify:local:::Radiohead+-+Fake+Plastic+Trees+_+Live:286: Local file failed
09:36:06.550 E [offline_manager_impl.cpp:3191   ] Offline track error: sync_error_offline_file_failed (7002) (spotify:local:::Radiohead+-+Fake+Plastic+Trees+_+Live:286)
09:36:06.551 I [track_resources_state.cpp:394   ] Track spotify:track:2kRFrWaLWiKq48YYVdGcm8 identifying complete parts.
  Token: 1
  File: eea8ff587eed41c46207ccc0e56610e65abdc450 @320000 bps
  Key: missing
  Head-file: N/A
  Images:
  - Complete: normal, small, large, 

 

Sebasty
Rock Star 18
Rock Star 18

@Rover0 

What error messages do you receive?

 

Also, you can use the web player while searching for the solution... 🙂

SebastyRock Star 18
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Rover0
Regular

@Sebasty
Hey, thanks for your reply!

This is what I get when I launch Spotify in terminal and click on add source under local files:
[1] 7800 segmentation fault (core dumped) spotify

Sebasty
Rock Star 18
Rock Star 18

@Rover0 

 

Could you try if you can change your playlist cover picture or profile picture? 🙂

 

I am not sure what's going on here, but it seems that for some reason opening the file browser to get anything for Spotify (local files, pictures) is not working.

SebastyRock Star 18
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

D30515
Regular

Aye, checked it now, too, the file browser seems to be the problem. I get a Segmentation Fault and the log provides no info at all, the last entry in the log was 5 seconds before I clicked the button to change the playlist cover. And as previously stated, I get no trace log. Also Ubuntu 20.04.1, btw. I'll have a look if I can make a bug report or something similar, I have the feeling this resolved topic will not be looked at by the devs 😄
Thanks for your help, @Sebasty!

edit: I now realize that this is as close to a bug report as I might get -.-

D30515
Regular
I thought I'd try to add a source directly into a config file or so and started a reddit thread to help me with that. I'll let you know how if I made any progress!
https://www.reddit.com/r/truespotify/comments/j9o8pm/help_needed_adding_local_file_sources_directly_...

D30515
Regular
Quick follow-up on my attempt to add local files in other ways than using the GUI: You can copy config files from an older version of spotify to a newer version, including the local file sources. This however requires you to have an older version installed to generate them, which you could just use instead of the newer broken one then.
More details here: https://www.reddit.com/r/truespotify/comments/j9o8pm/help_needed_adding_local_file_sources_directly_...

vodsel
Casual Listener

As mentioned in the Reddit thread, the local source paths are stored in watch-sources.bnk.

 

If you have a backup of an old Spotify profile with working local files, and can live without adding new sources (for now), restoring an earlier version of that file worked for me, e.g.:

 

cp ~/backup/spotify/watch-sources.bnk ~/.config/spotify/Users/<username>-user/

 

nymeria14
Newbie
Thanks everyone, it worked for me as well with a backup watch-sources.bnk.
If you installed from snap, the file to be replaced is not in .config but in :
~/snap/spotify/<snapshot number>/.config/spotify/Users/<username>-user

Apostate9
Visitor
1.1.26 from https://repository-origin.spotify.com/pool/non-free/s/spotify-client/ worked for me finally, on Pop_OS 20.20

GameBurrow
Newbie

For me, with 1.1.26 I can add the the local files, but not that version nor in newer version I can play the files. I get errror: Spotify can't play this right now. If you have the file on your computer you can import it.

Pop OS 20.10

iPeeNuts
Visitor

So I copied watch_sources.bnk from an older version of Spotify and it does show the new location in the newer version of the application. However, when I download songs, they're still stored under ~/.cache/spotify (I compared the size of both folders). Can someone help me with this? By the way, the new folder is on a second hard drive, if that matters.

 

Edit: Actually, the problem was indeed the fact that it was on a second hard drive because when I made another folder on the same drive, it magically worked! It doesn't seem to be a permission issue either! Kinda defeats the purpose of changing save location..

endermanagement
Regular
This reply out of that reddit-thread made it work for me.

The spotify PPA still contains the old version. I was able to work around this by installing that instead of the clearly busted newer version. I'm on Pop_OS 20.04.

sudo apt install spotify-client=1:1.1.10.546.ge08ef575-19

yikkayaya
Casual Listener

sudo apt install spotify-client=1:1.1.10.546.ge08ef575-19

" E: Version '1:1.1.10.546.ge08ef575-19' for 'spotify-client' was not found "

 

seems like that version has now been removed, so it is no longer possible to install a version of Spotify that works with GNOME.😣 Please fix the issue or return the old version!!!

Sebasty
Rock Star 18
Rock Star 18

 Hey @yikkayaya 

 

There is a directory containing deb packages of spotify clients. Maybe you should try one of the older ones listed here.


Hopefully it'll work for you 🙂

SebastyRock Star 18
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

NerdyPanda0
Visitor

I reverted to the version from February, but local files setting doesn't stay active. The setting turns itself off, and local files don't play while it's turned on ("This file cannot be found. if it exists locally, you can try to import it"). The files show up fine though, and play in external media players. (Mint 20)

SUGGESTED POSTS