Memory leak leading to a crash when loading local files

It seems Spotify is suffering from a memory leak caused by code responsible for loading local files. I have a modest collection of about 3.5k locally stored mp3 files. I can add the local directory as a source successfully, and the import process kicks off.

 

Unfortunately, as importing progresses, memory usage of spotify app keeps increasing. This is a screenshot taken after about 900 songs and 10 minutes into the process:

 

SpotifyMemoryLeaks.JPG

 

As you can see, memory usage is exorbitantly high, and nearing the limit for 32-bit application. Sure enough, a few moments later, Spotify crashes. As it seems there is no native 64-bit client for Windows, the only workaround seems to be to piecemeal loading of local files, which is a very daunting task.

 

Is there anything that can be done to fix this?

Child Item
Child Item
Child Item

Comments

I have the exact same problem which is partially solved by transferring library to another dir that spotify is linked to. the problem is that I have a network share with my library and I am wanting to add these files to multiple machines.

 

This means I have to try and add local files a bit at a time to all machines at the same time which is a pain in the ass.

Can we have someone look into this? Piecemealing our music libraries because of memory leaks is neither scalable nor manageable...

I agree strongly.. I can't even add my library as it's too big. This is a spotify killer for me if I can't have my own library.

I agree completely, and it might just be enough to make me no longer pay for Premium.

I was able to add the first 100k tracks of my library by carefully watching task manager and closing Spotify before it crashes, thus not losing the files it had added. So far I'm up to around 400k and working fine, though a royal pain in the ass.

I wonder if we're ever going to hear from Spotify here?

 Just verified this bug is still present in 1.0.43.123.g80176796 - Spotify eating up all available memory up to its 32-bit limit and then crashing.

This problem still exists.. I managed to to import my whole library by force closing spotify before my RAM usage hit 95%.. Prior to that Spotify caused 3 freezes of Win10.. 

Can you provide your client version for reference? We need some traction on this, maybe Spotify will notice at some point...

Same problem here. Can't import...

And for me, same problem... Can't import 25k songs... 😞

Still happening as of 1.072.117.g6bd7cc73

I'm currently using the Windows 10 Store version of Spotify on my devices, but I'll take a look into this on my Desktop PC as I have a large collection of around 8,000 songs and do remember this being an issue with the regular .exe desktop app downloaded from Spotify's website. It'd definitely be nice to pinpoint this issue so it can be resolved.

I'm definitely using a desktop version on my Win10 PC rather than the store version. I had assumed the desktop app gave me a richer experience, though I may be wrong in that. I'm at 34k+ songs now and iteratively allowing Spotify to add more until memory gets too high and I shut it down for a bit.

Looks the same in the store version, and I'm only including one collection which comes in around 2000 songs (1.0.72.117.g6bd7cc73 (Windows Store version)). It's currently at 200 songs and 2.3GB memory consumed.

Hey folks! Thanks for your reports!

That doesn't sound right! I'd love to take a closer look. Could you all let me know the following:

  • Spotify version
  • OS version
  • About how many Local Files you have

Also, could you all try a quick reinstall with these steps? Does that help here? 

 

Keep me posted! 🙂

My answers to this are above. The Windows Store app is newly installed and did the same thing as the desktop version.

Thanks for the quick reply,

 

Let's try a deeper reinstallation to get this fixed. Just follow these steps:

 

  • Log out of Spotify and then close the program.
  • Uninstall 
  • Browse to the cache and delete everything inside the folder. The default location should be:

C:\Users\%Username%\AppData\Local\Spotify\Storage 

 
  • Delete also the folder:

C:\Users\%Username%\AppData\Local\Spotify\Users\<random numbers-user>\

 

There is a folder for each profile that has been logged into Spotify on that computer account. 

 

  • Restart your PC.
  • Reinstall the app from here.
Let us know how it goes.

Hey everybody!

 

We're closing this thread as we haven't heard from you in a while. If you're still having the same issue, just give us a shout.

 

All the best 🙂

Child Item
Child Item