cli icon indicating copy to clipboard operation
cli copied to clipboard

Blank screen on Linux

Open Celibistrial opened this issue 4 years ago • 45 comments

🔍 Have you checked Spicetify.app page for your issue?

  • [X] I have checked the FAQ

🔍 Is there already an issue for your problem?

  • [X] I have checked older issues, open and closed

ℹ Environment / Computer Info

❯ spotify --version
spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by spotify)
Spotify version 1.1.80.699.gc3dac750, Copyright (c) 2022, Spotify Ltd

❯ spicetify -v
Dev

📝 Description

After running sudo -E spicetify apply Spotify loads up with a black screen

tried multiple versions of spoitfy from the aur spotify-snap spotify

Other people in the discord server also seem to have the same issue

📸 Screenshots

image image

Celibistrial avatar Apr 04 '22 13:04 Celibistrial

Yeah, I have the same spotify/spicetify version and it's a blank screen. Maybe the latest changes to get it working after a Spotify update don't work on 1.1.80.699. Idk.

theRealPadster avatar Apr 04 '22 21:04 theRealPadster

If I connect via remote debugging (spotify --remote-debugging-port=9222), I can see this in the console: image

This seems to support my suggestion that 2.9.4 isn't compatible with 1.1.80. The changes from 2.9.3 to 2.9.4 can be seen here: https://github.com/spicetify/spicetify-cli/compare/v2.9.3...v2.9.4, so if it was working in 2.9.3, probably the new menu hook broke it?

image

theRealPadster avatar Apr 04 '22 21:04 theRealPadster

Searching for the regex used (=(?:\w+=>|function)(?:\{let|\(\w+\)\{var \w+,\w+=\w+.children,\w+=\w+.icon)(?:\{children:\w+,icon:\w+)?) in my xpui.js (before and after spicetify apply) gives me 11 results. Is it supposed to find 11 of them? @CharlieS1103

theRealPadster avatar Apr 04 '22 21:04 theRealPadster

I can confirm this appears to be the source of the issue. I bisected and found that the issue arose starting in commit a93d83369ae1aafb5a56886927707cff332ad839, a commit which is part of v2.9.2.

outofink avatar Apr 06 '22 19:04 outofink

Is it possible to have the apply.go file detect the Spotify version? Or does the regex need to be backwards compatible?

@itsmeow

theRealPadster avatar Apr 09 '22 00:04 theRealPadster

Is it possible to have the apply.go file detect the Spotify version? Or does the regex need to be backwards compatible?

@itsmeow

You can detect the version, but we could use a more long term solution here imo

itsmeow avatar Apr 09 '22 00:04 itsmeow

You can detect the version, but we could use a more long term solution here imo

How about something like the CSS map but for hooks, dependent on the spotify version? Like have it store/look up the different regexes and use whichever ones it needs.

theRealPadster avatar Apr 09 '22 01:04 theRealPadster

same issue on Deepin(rolling)

ghost avatar Apr 10 '22 08:04 ghost

Not Linux but macOS, think I might be getting a similar issue? Running spicetify v2.9.5, Spotify 1.1.83. Restore fixes the issue. image

irls-svg avatar Apr 16 '22 03:04 irls-svg

Same on Windows with version 1.1.83.956.gbe7ea9a7

nils-kt avatar Apr 21 '22 08:04 nils-kt

Had the same issue, but manually getting the Spotify .deb helped (https://github.com/spicetify/spicetify-cli/issues/1577#issuecomment-1098920889).

despawnedd avatar Apr 21 '22 10:04 despawnedd

I get this issue on macOS 12.3.1 on Spicetify version 2.9.5 and Spotify for macOS (Apple Silicon) 1.1.83.956.gbe7ea9a7 as well. After spicetify apply, the app opens to a blank screen. However, the menu items in "Playback" in the menu bar all work. Everything else- log out, etc. doesn't. No keybinds, just a blank screen. DevTools doesn't work, I had to manually use --remote-debugging-port=9222. Here's the console output for that:

xpui.app.spotify.com-1650564967416.log

It seems /Applications/Spotify.app/Content/xpui.js is incorrectly formatted or something. This error doesn't occur on a untouched Spotify installation (spicetify restore or similar). So, here's that: xpui.js

Here's /Applications/Spotify.app/Contents/Resources/Apps/xpui/vendor~xpui.js: vendor~xpui.js

Edit: Whoops, it seems there's already an identified cause for this, but hopefully this helps I guess?

kotx avatar Apr 21 '22 18:04 kotx

@irls-svg @nils-kt See #1598 / fix #1600

itsmeow avatar Apr 22 '22 14:04 itsmeow

You can detect the version, but we could use a more long term solution here imo

How about something like the CSS map but for hooks, dependent on the spotify version? Like have it store/look up the different regexes and use whichever ones it needs.

This would create a risk for remote arbitrary code execution, very insecure. We would have to bundle the hooks into the program at distribution time, not web-time. We could create a large JSON mapping of hooks and read that from the filesystem.

itsmeow avatar Apr 22 '22 14:04 itsmeow

I think we can close this issue since it's about 1.1.80 that isn't supported by spicetify. 1.1.83 should work fine on v2.9.6. I recommend using old version of spicetify (2.9.3) if you want to stick to old versions of spotify.

rxri avatar Apr 22 '22 19:04 rxri

image version 2.9.3 also results in a blank screen ❯ spicetify -v 2.9.3 ❯ spotify --version spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by spotify) Spotify version 1.1.80.699.gc3dac750, Copyright (c) 2022, Spotify Ltd EDIT: tried 2.92 as well same result

Celibistrial avatar Apr 23 '22 04:04 Celibistrial

@Celibistrial update your Spotify to 1.1.83.

nils-kt avatar Apr 23 '22 09:04 nils-kt

@Celibistrial update your Spotify to 1.1.83.

cant , the spotify aur package is version 1.1.80 and spotify does not support arch (could use debtap to install spotify.deb but it has messed up my system in the past)

Celibistrial avatar Apr 23 '22 14:04 Celibistrial

image version 2.9.3 also results in a blank screen ❯ spicetify -v 2.9.3 ❯ spotify --version spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by spotify) Spotify version 1.1.80.699.gc3dac750, Copyright (c) 2022, Spotify Ltd EDIT: tried 2.92 as well same result

Remove backup folder and try again

image clearing backup also does not fix the issue

Celibistrial avatar Apr 23 '22 14:04 Celibistrial

Is there a deb file for 1.1.83? I thought that version only had a snap package? I was considering making an AUR package that fanagles the snap package into an arch package when I get the time actually.

theRealPadster avatar Apr 23 '22 16:04 theRealPadster