Uassets: Spotify stops playing music when an audio ad is loaded

Created on 24 Sep 2018  路  23Comments  路  Source: uBlockOrigin/uAssets

URL(s) where the issue occurs

https://open.spotify.com/

Describe the issue

Spotify stops playing music when an audio ad is loaded.

Screenshot(s)

鈩癸笍 Coming soon.

Versions

  • Browser/version: Version 69.0.3497.100 (Official Build) (64-bit)
  • OS: Win10, V10.0.16299 Build 26299
  • uBlock Origin version: uBlock Origin v1.16.18

Settings

image
image

Notes

  1. Unable to resume music by manually clicking play. All buttons are disabled.
  2. Unable to resume music by pressing F5 and then clicking play. All buttons continue to be disabled.
  3. Unable to resume music by pressing Ctrl + F5 and then clicking play. All buttons continue to be disabled.
  4. Unable to resume music by:

    1. Login to spotify in incognito window

    2. Go back to original window

    3. Click Connect to a device > This Web Browser



      • image



    4. Click play button

    5. Observe: Nothing happens. Button appears active, but has no click behavior.

  5. Sometimes able to resume music by:

    1. Login to spotify in incognito window

    2. Click play button (in incognito window)

    3. Go back to original window

    4. Click Connect to a device > This Web Browser



      • image



    5. Click play button

    6. Observe: ~30% chance music resumes.

  6. Also tried Purge all caches and Update now
    image
unable to reproduce

Most helpful comment

I've got the same issue in Chrome (71.0.3578.98) on MacOS (10.14.2). After spamming the "pause button" 3 or 4 times it continues.

All 23 comments

I can't reproduce, what is your OS ?

@okiehsch - OS is Win 10, v 10.0.16299 Build 16299. Main reported updated.
@krystian3w - The CHEF-KOCH filter is disabled because of that report. You reckon it's not really disabled maybe?

Test again using only the default setup (no annoyances lists)

Works on my end with Windows 10 and all your filterlists enabled.
For reference I played/fast-forwarded through https://open.spotify.com/playlist/6Ox50H5drmWK4OaVwRzrvY. I can see that after every 5-6 tracks it tries to play an ad, which is successfully blocked/redirected.
I never get stuck and can play the whole list.

@okiehsch - Roger.
@krystian3w - 馃槃
@mapx- Affirmative. Default restored. Beginning retest ...

Retest Results: Issue persists

  • Making History stopped playing.
  • Timer set itself to 0:00

To resume playback, I had to click the pause button a few times to get it to switch over to a play button. Then I was able to click the play button.

image

I've got the same issue in Chrome (71.0.3578.98) on MacOS (10.14.2). After spamming the "pause button" 3 or 4 times it continues.

https://github.com/uBlockOrigin/uAssets/issues/3561#issuecomment-424430274

I still can't reproduce using Chromium/Chrome and Windows 10 or Linux.
I can't test on a MacOS device.

Can this pink/purple ad banner also be blocked please?
eg. https://i.imgur.com/pplrcop.jpg

Link: https://open.spotify.com/browse/featured

I encounter the same behaviour on firefox on linux:

$ uname -a
Linux 5.0.4-arch1-1-ARCH #1 SMP PREEMPT Sat Mar 23 21:00:33 UTC 2019 x86_64 GNU/Linux

$ firefox --version
Mozilla Firefox 66.0.1

I am using the same filter list as shown in the screenshots by @SURE-E and reloading the tab makes it work again. Sometime the tab also actually crashes and eats all memory it can get :/

I had a similar issue. What fixed my issue was disabling EasyPrivacy subscription list as it was blocking a necessary Spotify component. All Spotify adds are still blocked without EasyPrivacy enabled, at least for me.

it was blocking a necessary Spotify component

What component (and what filter if you identified it in the logger) ?

closing for now.

I'm getting a similar issue to @nkoester. It plays fine for a while, until it gets to ads. They get blocked, but the web player ends up consuming all available memory until the entire system grinds to a halt, forcing a hard reboot:

Screenshot showing process using most RAM on the left, and Free RAM on the right

Prior to Spotify going insane, the Web Content process of firefox was only using around 2GB, with ~8GB free overall.

Sometimes if I catch it soon enough (within a few seconds), I can close the tab to "fix" it. Last time though, I was too late. Despite being able to close the tab, it wasn't soon enough for Firefox (67.0.2 on Arch) to free the RAM and the system still locked up.

Tried disabling the EasyPrivacy filter list, but it unfortunately didn't solve anything.

You should try these indications (not related specifically to adblockers)
https://community.spotify.com/t5/Other-Partners-Web-Player-etc/Spotify-in-Firefox-Doesn-t-work/td-p/1669454

@mapx- The link you posted appears to solve a different issue where Spotify doesn't work at all, but that is not the case here.

The issue is Spotify works perfectly until uBlock kicks in and blocks the audio ads. At that point, it immediately consumes all RAM, crashing the system.

Now I've had some time to test, I disabled uBlock on the open.spotify.com domain to confirm that it works fine normally. Spotify successfully played its ads (ironically for Firefox):
image
...then continued to play without issue.

It's played through two blocks of ads so far, and memory usage still hasn't increased. Whether it's a case of uBlock blocking too much, or simply Spotify taking anti-adblock to a whole new level, I don't know.

  • tested in FF, I got ads (redirected by the existent uBo filters) .. but no issue .. the memory is ok
  • could you add
    @@||spotify.com/$xhr,1p

and test again ?

Tested with the exception but the tab still froze on the first ad. I managed to get a screenshot of the logger before killing Firefox, but I'd already closed the Spotify tab hoping it would stop eating RAM (it didn't) so excuse the dimness:

image

I'll test some more with uBo disabled to see if I can find anything obvious when the ads play. Searching up older bugs it seems a similar issue in 2017 didn't happen in playlists, so I might try a playlist later in case that still applies. If it does, it could help to find some differences.

Edit: Seems this also affects Chrome. Same memory leak too, so it's not a Firefox issue at least. Here's the logger - will try to exclude doubleclick.net/pcs and see if anything changes:
image

@mapx- Going to keep playing for a while longer then test the same rules in Firefox, but so far it's been going for about an hour in Chrome (with two ad breaks as far as I can tell)

image

Current filters:

@@||securepubads.g.doubleclick.net/pcs/*$xmlhttprequest,domain=open.spotify.com
@@||pubads.g.doubleclick.net/pagead/conversion/*$xmlhttprequest,domain=open.spotify.com

I tried the doubleclick.net/pcs rule first, but still had the issue so added the second one. Still need to test further to see if it needs both exceptions or only the conversion one - will post back later.

@dshoreman Is Spotify running stable now? I tried your filters but it still still crashes in Chrome when an advertisement appears.

@MartinLichtblau I only ended up using the second rule鈥攖he first rule in my previous comment is commented out in my filters. Iirc, with both rules enabled it would still crash occasionally.

That said, I rarely use Spotify now. Last time I did use it I was able to play music all day without issues, but that was more than a couple months ago so it's entirely possible something else has changed since.

Sorry for the delay in my response, I haven't used spotify for several months, until recently but for the past few weeks since I've been using spotify I have not had a Problem even with Easy spotify enabled, so the issue seems to be fixed for me anyway.

:information_source: Issues persists for me. I've tried @dshoreman's filter too.

I saw these calls being blocked every several seconds during playback. They did not stop the player:
image

I saw these calls in between songs. They did not stop the player:
image

Here's the block of calls I saw when the player stopped:
image

I'm guessing the culprit is spclient since the other calls had not previous stopped playback? I was able to resume playback thereafter, but playback began skipping songs in the playlist.

@lightspeed397 - What's Easy spotify? I don't see that as option in Filter Lists.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

krystian3w picture krystian3w  路  3Comments

igitur picture igitur  路  3Comments

efih picture efih  路  4Comments

pepablock picture pepablock  路  4Comments

terrorist96 picture terrorist96  路  3Comments