Spotify in openSuse doesnt start

I successfully installed Spotify using this manual but it immediately crashes. I am using openSuse Leap 15.3

Works for me on Tumbleweed. Do you have a log? Please run this in a terminal and collect the output:

SNAPD_DEBUG=1 snap run spotify

SNAPD_DEBUG=1 snap run spotify
2022/05/18 13:26:20.036445 tool_linux.go:68: DEBUG: re-exec not supported on distro “opensuse-leap” yet
2022/05/18 13:26:20.049005 cmd_run.go:1035: DEBUG: executing snap-confine from /usr/lib/snapd/snap-confine
2022/05/18 13:26:20.050731 cmd_run.go:438: DEBUG: SELinux not enabled
2022/05/18 13:26:20.052512 cmd_run.go:1053: WARNING: cannot start document portal: write unix @->/run/user/1000/bus: write: broken pipe
2022/05/18 13:26:20.052667 tracking.go:46: DEBUG: creating transient scope snap.spotify.spotify
2022/05/18 13:26:20.053196 tracking.go:189: DEBUG: session bus is not available: read unix @->/run/user/1000/bus: EOF
2022/05/18 13:26:20.053229 tracking.go:191: DEBUG: falling back to system bus
2022/05/18 13:26:20.055877 tracking.go:196: DEBUG: using system bus now, session bus was not available
2022/05/18 13:26:20.059567 tracking.go:319: DEBUG: create transient scope job: /org/freedesktop/systemd1/job/5503
2022/05/18 13:26:20.062967 tracking.go:146: DEBUG: waited 6.901369ms for tracking
DEBUG: umask reset, old umask was 022
DEBUG: security tag: snap.spotify.spotify
DEBUG: executable: /usr/lib/snapd/snap-exec
DEBUG: confinement: non-classic
DEBUG: base snap: core18
DEBUG: ruid: 0, euid: 0, suid: 0
DEBUG: rgid: 0, egid: 0, sgid: 0
DEBUG: creating lock directory /run/snapd/lock (if missing)
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: opening lock directory /run/snapd/lock
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: opening lock file: /run/snapd/lock/.lock
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: sanity timeout initialized and set for 30 seconds
DEBUG: acquiring exclusive lock (scope (global), uid 0)
DEBUG: sanity timeout reset and disabled
DEBUG: ensuring that snap mount directory is shared
DEBUG: unsharing snap namespace directory
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: releasing lock 5
DEBUG: opened snap-update-ns executable as file descriptor 5
DEBUG: opened snap-discard-ns executable as file descriptor 6
DEBUG: creating lock directory /run/snapd/lock (if missing)
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: opening lock directory /run/snapd/lock
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: opening lock file: /run/snapd/lock/spotify.lock
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: sanity timeout initialized and set for 30 seconds
DEBUG: acquiring exclusive lock (scope spotify, uid 0)
DEBUG: sanity timeout reset and disabled
DEBUG: initializing mount namespace: spotify
DEBUG: setting up device cgroup
DEBUG: cannot find current tags symbol: /usr/lib64/libudev.so.1: undefined symbol: udev_device_has_current_tag
DEBUG: no current tags support present
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: inspecting type of device: /dev/dri/card0
DEBUG: cannot get major/minor numbers for syspath /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-HDMI-A-1
DEBUG: cannot get major/minor numbers for syspath /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1
DEBUG: inspecting type of device: /dev/dri/renderD128
DEBUG: associated snap application process 26000 with device cgroup snap.spotify.spotify
DEBUG: forked support process 26012
DEBUG: DEBUG: block device of snap core18, revision 2409 is 7:3 helper process waiting for command
DEBUG: DEBUG: sanity timeout initialized and set for 30 seconds sanity timeout initialized and set for 30 secondsDEBUG: joining preserved mount namespace for inspection

DEBUG: block device of the root filesystem is 7:3
DEBUG: sanity timeout reset and disabled
DEBUG: preserved mount is not stale, reusing
DEBUG: joined preserved mount namespace spotify
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: moved process 26000 to cgroup hierarchy /sys/fs/cgroup/freezer/snap.spotify
DEBUG: releasing lock 7
DEBUG: sending command 0 to helper process (pid: 26012)
DEBUG: waiting for response from helper
DEBUG: sanity timeout reset and disabled
DEBUG: helper process received command 0
DEBUG: helper process exiting
DEBUG: waiting for the helper process to exit
DEBUG: helper process exited normally
DEBUG: resetting PATH to values in sync with core snap
DEBUG: set_effective_identity uid:0 (change: yes), gid:0 (change: yes)
DEBUG: creating user data directory: /root/snap/spotify/60
DEBUG: ruid: 0, euid: 0, suid: 0
DEBUG: loading bpf program for security tag snap.spotify.spotify
DEBUG: read 6376 bytes from /var/lib/snapd/seccomp/bpf//snap.spotify.spotify.bin
DEBUG: read 152 bytes from /var/lib/snapd/seccomp/bpf/global.bin
DEBUG: execv(/usr/lib/snapd/snap-exec, /usr/lib/snapd/snap-exec…)
DEBUG: argv[1] = spotify
DEBUG: umask restored to 022
DEBUG: working directory restored to /home/Dejfles
No protocol specified
Segmentation fault (core dumped)

Ok, so it looks like sprotify application actually ran, but then segfaulted. I recall people reporting some issues with X11 access (be it actual Xorg or Xwayland). Maybe it’s not the problem here, but just for rule it out, I would try running

xhost +

and then try to run spotify again.

It just says this: “If ‘xhost’ is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf xhost”

Do i need to install something?

Just run zypper in xhost.

Ok, it sayed this: “access control disabled, clients can connect from any host”

Now when i run spotify even a window blinks for a second, but still doesnt start.

And with the debug thing, last two lines of output are different

[0518/142305.952084:FATAL:gpu_data_manager_impl_private.cc(447)] GPU process isn’t usable. Goodbye.
Trace/breakpoint trap (core dumped)

I tried randomly starting Spotify and apparently it turns on normally about 10% tries

I had the same problem with Spotify, though it wasn’t limited to the snap version. Several users from Spotify community support recommended adding “–no-zygote” as a option and that worked for me. I haven’t had Spotify crash since then. Try:

$ spotify --no-zygote

If it consistently launches then without segfaulting, just add the option to the Exec= line in its .desktop file, either in /var/lib/snapd/desktop/applications or in ~/.local/share/applications