LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Spotify - Blank Screen (https://www.linuxquestions.org/questions/slackware-14/spotify-blank-screen-4175735920/)

SpacePlod 04-11-2024 03:03 PM

Spotify - Blank Screen
 
I have installed Spotify (client) and required deps from SBo (15.0). When I start the program I get a long delay then a blank screen - nothing displayed.

Running from the command line gives:

Code:

$ spotify --log-file=spot.log
spotify: /usr/lib64/libcurl-gnutls.so.4: no version information available (required by spotify)
/usr/share/spotify/spotify: /usr/lib64/libcurl-gnutls.so.4: no version information available (required by /usr/share/spotify/spotify)
/usr/share/spotify/spotify: /usr/lib64/libcurl-gnutls.so.4: no version information available (required by /usr/share/spotify/spotify)

(spotify:12713): libayatana-appindicator-WARNING **: 15:44:29.993: Unable to get the session bus: Unknown or unsupported transport “disabled” for address “disabled:”

(spotify:12713): LIBDBUSMENU-GLIB-WARNING **: 15:44:29.993: Unable to get session bus: Unknown or unsupported transport “disabled” for address “disabled:”
/proc/self/exe: /usr/lib64/libcurl-gnutls.so.4: no version information available (required by /proc/self/exe)
WARNING: radv is not a conformant Vulkan implementation, testing use only.

<15 second pause, then blank screen appears>

Code:

$ cat spot.log
19:37:38.408 I [f:159                          ] Access allowance changed from online: 0 stream: 0, sync: 0, persistent conn: 0 to online: 1 stream: 1, sync: 0, persistent conn: 1
19:37:38.408 E [f:44                            ] Unable to open settings file for reading: /home/barry/.cache/spotify/hosts.bnk
19:37:38.408 I [f:77                            ] Connectivity policy is initially allow_all
19:37:38.408 I [f:79                            ] Connection type is initially unknown
19:37:38.408 I [f:96                            ] Enabling all persistent connections
19:37:38.409 I [f:139                          ] Open storage index header at /home/barry/.cache/spotify/Storage/index.dat
19:37:38.409 I [f:30                            ] Created or reset storage index at /home/barry/.cache/spotify/Storage (this most likely means new install)
19:37:38.409 I [f:271                          ] NmNetworkNotifier is not aware of running NetworkManager (yet), assume 'ethernet'
19:37:38.409 E [f:1324                          ] Failed to set default autostart mode!
19:37:38.423 I [f:134                          ] D-Bus name 'org.freedesktop.NetworkManager' exists on the system bus
19:37:38.423 I [f:139                          ] Notify subscribers on NetworkManager detection (current state is 'NM_STATE_CONNECTED_GLOBAL')
19:37:38.423 I [f:190                          ] Successfully connected to 'org.freedesktop.NetworkManager'

This is happening on 2 computers: A desktop (AMD graphics) and a System76 laptop (Hybrid graphics). Both running 15.0 and updated.

The laptop shows this additional message on the command line (but not in the log):

Code:

MESA: warning: Driver does not support the 0xa788 PCI ID.
libva error: /usr/lib64/dri/i965_drv_video.so init failed

Although, again, the program fails to display on either computer. I've played with the graphics settings on the laptop (integrated, nvidia, hybrid, etc.) and no change.

Is anyone else seeing similar? Or perhaps I have something installed that is conflicting?

TIA

EDIT: The web client works fine, but I need the app to download for offline playing.

marav 04-11-2024 03:55 PM

You forgot the dependencies:

libayatana-appindicator (ayatana-ido, libayatana-indicator), libcurl-gnutls

SpacePlod 04-12-2024 10:12 AM

Quote:

Originally Posted by marav (Post 6495382)
You forgot the dependencies:

libayatana-appindicator (ayatana-ido, libayatana-indicator), libcurl-gnutls

Negative. As I mentioned in the OP, the deps were installed.

Code:

$ ls /var/lib/pkgtools/packages/ | egrep 'ayatana|libcurl'
ayatana-ido-0.10.1-x86_64-1_SBo
libayatana-appindicator-0.5.93-x86_64-1_SBo
libayatana-indicator-0.9.4-x86_64-1_SBo
libcurl-gnutls-8.6.0-x86_64-1_SBo


MDKDIO 04-12-2024 12:31 PM

Quote:

Originally Posted by SpacePlod (Post 6495374)

Code:

MESA: warning: Driver does not support the 0xa788 PCI ID.
libva error: /usr/lib64/dri/i965_drv_video.so init failed


This part...
I've also seen this in the past, sorted with:

Creating /etc/sysctl.conf
into that file (create it if it doesn't exist) I added:
dev.i915.perf_stream_paranoid=0

After that I ran:
sysctl -p

In my case I restarted the laptop for testing, not sure if I actually had to...

marav 04-12-2024 12:47 PM

Quote:

Originally Posted by SpacePlod (Post 6495374)
I have installed Spotify (client)

The one from SBo
Which version ?

SpacePlod 04-12-2024 12:48 PM

Quote:

Originally Posted by MDKDIO (Post 6495509)
This part...
I've also seen this in the past, sorted with:

Creating /etc/sysctl.conf
into that file (create it if it doesn't exist) I added:
dev.i915.perf_stream_paranoid=0

After that I ran:
sysctl -p

In my case I restarted the laptop for testing, not sure if I actually had to...

Hmm. No joy here. I did exactly as above (including the reboot) and both the MESA message and black screen remain. Thanks though.

SpacePlod 04-12-2024 12:52 PM

Quote:

Originally Posted by marav (Post 6495513)
The one from SBo
Which version ?

Code:

$ ls /var/lib/pkgtools/packages/ | grep spotify
spotify-1.2.31.1205-x86_64-1_SBo

I'm assuming that's the correct package with those dependencies. Thanks.

MDKDIO 04-13-2024 01:49 AM

Quote:

Originally Posted by SpacePlod (Post 6495514)
Hmm. No joy here. I did exactly as above (including the reboot) and both the MESA message and black screen remain. Thanks though.

That's a bit odd...

The only other thing I can think of, is the order dependencies were built...

libcurl-gnutls
ayatana-ido
libayatana-indicator
libayatana-appindicator
spotify

Of course, with each package installed once built. In same order...

kgha 04-13-2024 04:37 AM

googling suggests that others have solved the black screen issue by deleting the <user>/.cache/spotify/Browser/GPUCache folder (or the whole <user>/.cache/spotify folder) and then restart spotify.

SpacePlod 04-13-2024 07:51 AM

Quote:

Originally Posted by kgha (Post 6495636)
googling suggests that others have solved the black screen issue by deleting the <user>/.cache/spotify/Browser/GPUCache folder (or the whole <user>/.cache/spotify folder) and then restart spotify.

Yes, I saw the same and tried it. Funny thing is this is on two different computers with two different hardware and software profiles - They both have 15.0 on them, but the laptop is a bit more 'specialized' so it has less external software on it. For me to see this on two such different setups has to mean some setting somewhere that I'm missing.

Maybe when I have a couple of hours I'll try a clean VM and see what happens.

Thanks.

SpacePlod 04-16-2024 10:19 AM

Okay, so the VM managed to narrow it down for me. The issue is with polkit and my i3 WM. I run i3 on both my laptop and my desktop. So that answers that (to me) mystery.

When I installed spotify in a clean VM running stock XFCE, it started with a dialog asking for authentication. That does NOT appear with i3 and the app never opens.

Oddly enough, someone had a similar issue in this thread and I provided what was for me at the time, a working solution. Apparently it did not work for that thread OP and now it does not work for me.

I have lxsession and lxappearance installed and lxpolkit started via the i3 config. Internet searches seem to indicate this should be the solution.

If anyone has any ideas on where to go from here, I'd very much appreciate it.

SpacePlod 04-16-2024 11:09 AM

Another bit of oddness...Doing some additional troubleshooting and it turns out I'm seeing *some* authentication dialogs - I use neomutt and after a reboot I was asked for a GPG passphrase via dialog before neomutt would start (linked to a webmail account). Is there a way to tell what program provides *that* dialog?

MannyNix 04-16-2024 05:15 PM

I'm having a similar experience, but I am running -current multilib, and I'm also running i3.
The last version of spotify that works for me (and that I'm using) is spotify-1.2.9.743.

I never thought it could be related to i3 (I also have a bit of mess with the latest python upgrades), but after reading your post I installed the latest spotify version on SBo (spotify-1.2.31.1205) and tested in both i3 and xfce4.

For what it's worth, here's the output of spotify from i3:
Code:

spotify: /usr/lib64/libcurl-gnutls.so.4: no version information available (required by spotify)
/usr/share/spotify/spotify: /usr/lib64/libcurl-gnutls.so.4: no version information available (required by /usr/share/spotify/spotify)
/usr/share/spotify/spotify: /usr/lib64/libcurl-gnutls.so.4: no version information available (required by /usr/share/spotify/spotify)
/proc/self/exe: /usr/lib64/libcurl-gnutls.so.4: no version information available (required by /proc/self/exe)

(spotify:1311): libayatana-appindicator-WARNING **: 15:46:43.428: Unable to get the session bus: Unknown or unsupported transport “disabled” for address “disabled:”

(spotify:1311): LIBDBUSMENU-GLIB-WARNING **: 15:46:43.428: Unable to get session bus: Unknown or unsupported transport “disabled” for address “disabled:”

And here's the output from xfce4 (where it runs perfectly):
Code:

spotify: /usr/lib64/libcurl-gnutls.so.4: no version information available (required by spotify)
/usr/share/spotify/spotify: /usr/lib64/libcurl-gnutls.so.4: no version information available (required by /usr/share/spotify/spotify)
/usr/share/spotify/spotify: /usr/lib64/libcurl-gnutls.so.4: no version information available (required by /usr/share/spotify/spotify)
/proc/self/exe: /usr/lib64/libcurl-gnutls.so.4: no version information available (required by /proc/self/exe)

So the difference in my case seems to be:
Code:

(spotify:1311): libayatana-appindicator-WARNING **: 15:46:43.428: Unable to get the session bus: Unknown or unsupported transport “disabled” for address “disabled:”

(spotify:1311): LIBDBUSMENU-GLIB-WARNING **: 15:46:43.428: Unable to get session bus: Unknown or unsupported transport “disabled” for address “disabled:”

Thank you for your post, now I know that the latest spotify works for me if I'm not running i3-4.23 (and the previous version).
Unfortunately I'll have to downgrade back to spotify-1.2.9.743 because I like i3 ;-)
Hopefully you'll get this solved, thanks again.

SpacePlod 04-17-2024 08:11 AM

Quote:

Originally Posted by MannyNix (Post 6496450)
I'm having a similar experience, but I am running -current multilib, and I'm also running i3.
The last version of spotify that works for me (and that I'm using) is spotify-1.2.9.743.

I never thought it could be related to i3 (I also have a bit of mess with the latest python upgrades), but after reading your post I installed the latest spotify version on SBo (spotify-1.2.31.1205) and tested in both i3 and xfce4.

For what it's worth, here's the output of spotify from i3:
Code:

spotify: /usr/lib64/libcurl-gnutls.so.4: no version information available (required by spotify)
/usr/share/spotify/spotify: /usr/lib64/libcurl-gnutls.so.4: no version information available (required by /usr/share/spotify/spotify)
/usr/share/spotify/spotify: /usr/lib64/libcurl-gnutls.so.4: no version information available (required by /usr/share/spotify/spotify)
/proc/self/exe: /usr/lib64/libcurl-gnutls.so.4: no version information available (required by /proc/self/exe)

(spotify:1311): libayatana-appindicator-WARNING **: 15:46:43.428: Unable to get the session bus: Unknown or unsupported transport “disabled” for address “disabled:”

(spotify:1311): LIBDBUSMENU-GLIB-WARNING **: 15:46:43.428: Unable to get session bus: Unknown or unsupported transport “disabled” for address “disabled:”

And here's the output from xfce4 (where it runs perfectly):
Code:

spotify: /usr/lib64/libcurl-gnutls.so.4: no version information available (required by spotify)
/usr/share/spotify/spotify: /usr/lib64/libcurl-gnutls.so.4: no version information available (required by /usr/share/spotify/spotify)
/usr/share/spotify/spotify: /usr/lib64/libcurl-gnutls.so.4: no version information available (required by /usr/share/spotify/spotify)
/proc/self/exe: /usr/lib64/libcurl-gnutls.so.4: no version information available (required by /proc/self/exe)

So the difference in my case seems to be:
Code:

(spotify:1311): libayatana-appindicator-WARNING **: 15:46:43.428: Unable to get the session bus: Unknown or unsupported transport “disabled” for address “disabled:”

(spotify:1311): LIBDBUSMENU-GLIB-WARNING **: 15:46:43.428: Unable to get session bus: Unknown or unsupported transport “disabled” for address “disabled:”

Thank you for your post, now I know that the latest spotify works for me if I'm not running i3-4.23 (and the previous version).
Unfortunately I'll have to downgrade back to spotify-1.2.9.743 because I like i3 ;-)
Hopefully you'll get this solved, thanks again.


That did it! Thanks. The i3 session was not starting dbus. I should have remembered that from the thread I linked above where I responded previously. The answer was right there.

I copied /etc/X11/xinit/xinitrc.i3 to ~/.xinitrc and commented out the 'if' statement that launched i3. Replaced it with the last line:

Code:

$ cat .xinitrc
#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# Merge in defaults and keymaps
[ -f $sysresources ] && /usr/bin/xrdb -merge $sysresources
[ -f $sysmodmap ] && /usr/bin/xmodmap $sysmodmap
[ -f $userresources ] && /usr/bin/xrdb -merge $userresources
[ -f $usermodmap ] && /usr/bin/xmodmap $usermodmap

# Start i3
#if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
#    exec ck-launch-session dbus-launch --exit-with-session /usr/bin/i3
#else
#    exec /usr/bin/i3
#fi

dbus-launch --sh-syntax --exit-with-session /usr/bin/i3

spotify starts properly now. Marked solved.

SpacePlod 04-17-2024 08:38 AM

Now the question is: Why doesn't the same thing work for .xsession and runlevel 4 (using SDDM)?


All times are GMT -5. The time now is 11:30 AM.