jumaka / triodeplugins

Automatically exported from code.google.com/p/triodeplugins
0 stars 1 forks source link

spotifyd 100% cpu usage #10

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install spotify plugin from triode in a compat environment
2. Restart logitechserver
3. observe 100% cpu usage

What version of the product are you using? On what operating system?

FreeBSD in linux i386 compat mode for the spotifyd daemon (in a jail).

Please provide any additional information below.

If you are running with any kind of extra binary compability, as I am, it seems 
the plugin is confused about its install location.

I am running the linux ELF binary on my FreeBSD box in compability mode, and 
there it also ate up all cpu in order to access:
/compat/linux/var/db/logitechmediaserver/cache/spotifycache/Storage/index.dat

Which is wrong of cause. It should be:

/var/db/logitechmediaserver/cache/spotifycache/Storage/index.dat

I fixed it with a simple replacement of the first folder with a symlink to the 
correct location, and the plugin worked.

This is probably because the plugin from Triode is not tested running under 
compat mode.

Debugged with some fiddeling with running spotifyd as root (works of cause) and 
lsof. 

The plugin works for me with the above changes.

Original issue reported on code.google.com by nikolaj....@hsys.dk on 7 Dec 2013 at 10:27

GoogleCodeExporter commented 8 years ago
Could also be an issue on macosx. I have seen a couple of threads on the net 
describing the same symptom

Original comment by nikolaj....@hsys.dk on 7 Dec 2013 at 11:54