Announcements

Help Wizard

Step 1

NEXT STEP

[Liunx] Spotify Crash during start (segfault)

Solved!

[Liunx] Spotify Crash during start (segfault)

  1. Laptop, Arch Linux
  2. Premium Account
  3. Version: 1.0.23.93 (gd6cfae15) (amd64)
  4. Spotify crashes during start up
  5. Steps to reproduce the issue:
  • Download & Extract .deb.
  • Extract data.tar.gz
  • Install (copy)
  • Launch with: 'LD_PRELOAD=libcurl.so.3 /usr/share/spotify/spotify "$@" '

So to be clear, first launch works, because I have to login after removing cache and config. After login Spotify crashes. On start after logging in it crashes.

 

Since I'm not allowed to attach or post the logs they are Gists.

spotify-dump

 

spotify-strace-dump

Reply

Accepted Solutions
Marked as solution

For me it still segfaults all the same.
cleared cache and config. I don't have a local/share/spotify.
version 1.0.24.104. segfault after login.

EDIT: Just found some people over at the AUR figured it out. Spotify needs a scaling factor. In the desktop file an option is specified, namely --force-device-scaling-factor=1.0000001 . Not everyone on linux uses desktop files. Spotify crashes when run through it's binary, only working when launched from a shortcut with required options. Perhaps this can make it to an issue board somewhere.

View solution in original post

16 Replies

Hey @alextes,


Welcome to Spotify Community!

Can you please give me the output of the following command:

 

pacman -Qi libcurl-compat

Thanks for welcoming me!

❯ pacman -Qi libcurl-compat
Name            : libcurl-compat
Version         : 7.47.0-1
Description     : An URL retrieval library (old version)
Architecture    : x86_64
URL             : http://curl.haxx.se
Licenses        : MIT
Groups          : None
Provides        : None
Depends On      : ca-certificates  gnutls  openssl  zlib  libidn  libssh2  krb5
Optional Deps   : None
Required By     : spotify
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 1431.00 KiB
Packager        : Unknown Packager
Build Date      : Wed 24 Feb 2016 12:26:05 PM CET
Install Date    : Wed 24 Feb 2016 12:26:05 PM CET
Install Reason  : Installed as a dependency for another package
Install Script  : Yes
Validated By    : None

Hey @alextes,

 

I will have to do some testing with this and see if I can reproduce the issue. 

I will get back to you once I have results : )

Sounds good, let me know if there's anything I can do!

Hey @alextes,


Can you please let me know the exact version of ArchLinux you are running?

I did some test and I was unable to reproduce the issue. 🙂

Interesting. A bunch of people over at the AUR speak of the same problem. Perhaps it's something the PKGBUILD does. I haven't gone through those steps by hand.

I'm not sure what you mean by 'version of ArchLinux'. It's a rolling release so it doesn't really have a version. I use an atypical window manager / desktop environment (bspwm). Kernel release is 4.4.1-2-ARCH. 64bit.

Are you saying the latest version gotten from the repo does work for you? If so, can you tell me which desktop environment you test in, I'd like to try myself as that could be the issue. It is however unlikely because as I mentioned more people seem to have the issue. In other words its probably something you do differently from the PKGBUILD.

I'm also seeing the segfault. It started happening yesterday. 

 

libcurl-compat is also version 7.47.01.

 

Below the current linked libraries:

$ ldd /usr/share/spotify/spotify $@                                  
/usr/share/spotify/spotify: /usr/lib/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by /usr/share/spotify/spotify)
/usr/share/spotify/spotify: /usr/lib/libssl.so.1.0.0: no version information available (required by /usr/share/spotify/spotify)
/usr/share/spotify/spotify: /usr/lib/libcrypto.so.1.0.0: no version information available (required by /usr/share/spotify/spotify)
        linux-vdso.so.1 (0x00007ffc623eb000)
        libasound.so.2 => /usr/lib/libasound.so.2 (0x00007fe3335b7000)
        libdl.so.2 => /usr/lib/libdl.so.2 (0x00007fe3333b3000)
        libcurl.so.4 => /usr/lib/libcurl.so.4 (0x00007fe33313f000)
        libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0x00007fe332ec4000)
        libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x00007fe332a4c000)
        libresolv.so.2 => /usr/lib/libresolv.so.2 (0x00007fe332835000)
        libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007fe332618000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00007fe332402000)
        libcef.so => /usr/share/spotify/libcef.so (0x00007fe32d71d000)
        librt.so.1 => /usr/lib/librt.so.1 (0x00007fe32d515000)
        libm.so.6 => /usr/lib/libm.so.6 (0x00007fe32d210000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0x00007fe32cece000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007fe32cbc0000)
        libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x00007fe32c57e000)
        libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x00007fe32c2c8000)
        libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x00007fe32c0a2000)
        libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0x00007fe32bd23000)
        libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x00007fe32bb0d000)
        libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0x00007fe32b900000)
        libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x00007fe32b6da000)
        libcairo.so.2 => /usr/lib/libcairo.so.2 (0x00007fe32b3ab000)
        libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x00007fe32b15f000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007fe32af20000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00007fe32acce000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007fe32aa0e000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fe32a68c000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007fe32a476000)
        libc.so.6 => /usr/lib/libc.so.6 (0x00007fe32a0d5000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fe3338be000)
        libidn.so.11 => /usr/lib/libidn.so.11 (0x00007fe329ea1000)
        libssh2.so.1 => /usr/lib/libssh2.so.1 (0x00007fe329c73000)
        libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00007fe329a26000)
        libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00007fe329741000)
        libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00007fe329510000)
        libcom_err.so.2 => /usr/lib/libcom_err.so.2 (0x00007fe32930c000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x00007fe329108000)
        libXi.so.6 => /usr/lib/libXi.so.6 (0x00007fe328ef8000)
        libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0x00007fe328cf5000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0x00007fe328ae3000)
        libnss3.so => /usr/lib/libnss3.so (0x00007fe3287b9000)
        libnssutil3.so => /usr/lib/libnssutil3.so (0x00007fe32858b000)
        libsmime3.so => /usr/lib/libsmime3.so (0x00007fe328364000)
        libnspr4.so => /usr/lib/libnspr4.so (0x00007fe328124000)
        libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x00007fe327f21000)
        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00007fe327d1b000)
        libXtst.so.6 => /usr/lib/libXtst.so.6 (0x00007fe327b15000)
        libgconf-2.so.4 => /usr/lib/libgconf-2.so.4 (0x00007fe3278e4000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x00007fe3276d9000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007fe3274cf000)
        libXss.so.1 => /usr/lib/libXss.so.1 (0x00007fe3272cb000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x00007fe3270c0000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007fe326e96000)
        libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0x00007fe326c45000)
        libcups.so.2 => /usr/lib/libcups.so.2 (0x00007fe3269c2000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007fe32679f000)
        libpcre.so.1 => /usr/lib/libpcre.so.1 (0x00007fe32652f000)
        libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0x00007fe32632c000)
        libthai.so.0 => /usr/lib/libthai.so.0 (0x00007fe326123000)
        libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00007fe325f21000)
        libharfbuzz.so.0 => /usr/lib/libharfbuzz.so.0 (0x00007fe325cc0000)
        libpng16.so.16 => /usr/lib/libpng16.so.16 (0x00007fe325a8b000)
        libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0x00007fe3257e3000)
        libEGL.so.1 => /usr/lib/libEGL.so.1 (0x00007fe3255de000)
        libxcb-shm.so.0 => /usr/lib/libxcb-shm.so.0 (0x00007fe3253da000)
        libxcb-render.so.0 => /usr/lib/libxcb-render.so.0 (0x00007fe3251d0000)
        libGL.so.1 => /usr/lib/libGL.so.1 (0x00007fe324f59000)
        libffi.so.6 => /usr/lib/libffi.so.6 (0x00007fe324d50000)
        libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x00007fe324b40000)
        libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x00007fe324933000)
        libkeyutils.so.1 => /usr/lib/libkeyutils.so.1 (0x00007fe32472f000)
        libplc4.so => /usr/lib/libplc4.so (0x00007fe32452a000)
        libplds4.so => /usr/lib/libplds4.so (0x00007fe324326000)
        libdbus-glib-1.so.2 => /usr/lib/libdbus-glib-1.so.2 (0x00007fe3240fe000)
        libsystemd.so.0 => /usr/lib/libsystemd.so.0 (0x00007fe3339f9000)
        libgnutls.so.30 => /usr/lib/libgnutls.so.30 (0x00007fe323dc8000)
        libavahi-common.so.3 => /usr/lib/libavahi-common.so.3 (0x00007fe323bbb000)
        libavahi-client.so.3 => /usr/lib/libavahi-client.so.3 (0x00007fe3239aa000)
        libcrypt.so.1 => /usr/lib/libcrypt.so.1 (0x00007fe323773000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0x00007fe32356f000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007fe323369000)
        libdatrie.so.1 => /usr/lib/libdatrie.so.1 (0x00007fe323161000)
        libgraphite2.so.3 => /usr/lib/libgraphite2.so.3 (0x00007fe322f36000)
        libGLdispatch.so.0 => /usr/lib/libGLdispatch.so.0 (0x00007fe322c60000)
        libGLX.so.0 => /usr/lib/libGLX.so.0 (0x00007fe322a2e000)
        libcap.so.2 => /usr/lib/libcap.so.2 (0x00007fe32282a000)
        liblzma.so.5 => /usr/lib/liblzma.so.5 (0x00007fe322604000)
        liblz4.so.1 => /usr/lib/liblz4.so.1 (0x00007fe3223f2000)
        libgcrypt.so.20 => /usr/lib/libgcrypt.so.20 (0x00007fe322110000)
        libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x00007fe321efc000)
        libp11-kit.so.0 => /usr/lib/libp11-kit.so.0 (0x00007fe321c97000)
        libtasn1.so.6 => /usr/lib/libtasn1.so.6 (0x00007fe321a84000)
        libnettle.so.6 => /usr/lib/libnettle.so.6 (0x00007fe32184c000)
        libhogweed.so.4 => /usr/lib/libhogweed.so.4 (0x00007fe321617000)
        libgmp.so.10 => /usr/lib/libgmp.so.10 (0x00007fe32139f000)

Would still love an answer to my previous question!

The spotify client doesn't currently segfault anymore. The only update I received today, was some gtk2 patch. So I doubt that there's a connection. Also I doubt that it's a package build problem, the PKGBUILD just does some copying.

 

BTW, I'm running Arch Linux x86_64 with kernel 4.4.3-1-ARCH. The desktop environment is KDE 5.19.0. Spotify client is from AUR spotify-beta.

On my laptop the spotify client segfaulted again. When starting the client, the window was flicking and finally shut. Above segfault was in the console output.

 

I resolved the issue by removing the spotify configuraton:

 rm -r .cache/spotify .local/share/spotify .config/spotify

 

Marked as solution

For me it still segfaults all the same.
cleared cache and config. I don't have a local/share/spotify.
version 1.0.24.104. segfault after login.

EDIT: Just found some people over at the AUR figured it out. Spotify needs a scaling factor. In the desktop file an option is specified, namely --force-device-scaling-factor=1.0000001 . Not everyone on linux uses desktop files. Spotify crashes when run through it's binary, only working when launched from a shortcut with required options. Perhaps this can make it to an issue board somewhere.

I've been using 1.0.25.127.g58007b4c happily, all afternoon. Then, all of a sudden, mid song it just segfaulted. I couldn't start it back up again. The UI will reload three times before quitting. I have attached an strace. I'm also an Arch Linux user.

 

The --force-device-scaling-factor=1.0000001 does not work but --force-device-scaling-factor=1.0000005 does.

 

I'm not sure if relevant, but I am unable to open Settings, the UI just resets like before, will open a new report if warranted.

 

Wish there were more I could do to help. Thanks for the great music service, and thanks for paying us penguins some attention!

When I try to open certain playlist folders or user pages, the client resets and present the main browse page again. I don't know if this is related, but the behaviour is similar to the segfault. Instead of refreshing three times and crashing, the client refreshes only once.

 

One user were this always happens is:

 

 

spotify:user:armadamusicofficial

 

Does this page open fine for you?

@keibak works fine for me.

The scaling issue still hasn't been resolved yet and it's getting very annoying to have to add the flag on every update.

Unless spotify made the decision to only support linux desktops that adhere to the freedesktop standard - which I strongly doubt - I would appreciate hearing spotify is not ignorant to their exclusive set-up so users that run binaries not desktop files can still use spotify without the current problem.

Nothing has with Linux client attention since this post

 

https://community.spotify.com/t5/Help-Desktop-Linux-Windows-Web/Linux-Spotify-client-1-x-now-in-stab...

 

1 Spotify should pick up on scaling settings from the system to correctly scale the window for both high and low resolution screens.

2 Spotify should not crash.

3 You should not have to add scaling flags as a workaround to a startup crash. Adding flags in the desktop file is something the arch package does I think. It is not in the deb package.

 

1 affects all desktop environments

2 affects many users in different ways. There are a few different graphics related crashes like this one, some related to local files, and probably a few more.

3 seems to affect mostly arch linux users, not sure why

 

I triage most reported bugs here and especially try to reproduce them and add them to our internal bug tracker. The list of bugs is not actively being worked on however. Hopefully soon-ish, CEF that Spotify uses can be upgraded to use the views framework and a few of the graphics related problems can be fixed. https://bitbucket.org/chromiumembedded/cef/issues/1749

 

Suggested posts