Kodi Community Forum
[WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222)
+--- Forum: Kodi related discussions (https://forum.kodi.tv/forumdisplay.php?fid=6)
+--- Thread: [WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) (/showthread.php?tid=67012)



- abandonow - 2011-11-10

Yes, 32bit.

(I have installed the linux-server package to utilize more than 4gb of ram)


- neoflex - 2011-11-10

akezeke Wrote:@abandonow, @neoflex

Are you using the 32 bit version of ubuntu?

I tried again today with a fresh built on a ubuntu 11.10 x64 and a windows 7 x64 system and I cant reproduce the problems you encountered, it works fine, no crash.

neoflex did you get the same error as abandonow, failed to create session without an error message?

yep, 32 bits version of ubuntu also. 11.10
I have exactly the same kind of crash log :
Code:
18:20:48 T:2966952816   DEBUG: spotifylog: bgthread OnStartup
18:20:48 T:2966952816   DEBUG: spotifylog: Creating session
18:20:48 T:2966952816   DEBUG: spotifylog: API version:
18:20:48 T:2966952816   DEBUG: spotifylog:
18:20:48 T:2966952816   DEBUG: spotifylog: Failed to create session: error:
18:20:48 T:2966952816   DEBUG: spotifylog: bgthread OnStartup done



- mylssi - 2011-11-10

I'm encountering the same problem on 32bit Arch Linux with the latest libspotify. I ran gdb on it quickly and it seems to be segfaulting somewhere deep in libspotify. So the problem might be in the 32bit libspotify and not spotyxbmc2. I don't have all the debug symbols installed and last human readable function on the backtrace was "sp_session_process_events". Rolled back a few commits to the 9.1.32 compatible version and everything is running fine once again.


- Tompen - 2011-11-11

I made spotyxbmc2 integration with openelec distribution. It is not and probably will not be included in the official openelec project.

This is the relevant commit:
http://github.com/tompen-/OpenELEC.tv/commit/c502f5c167873ff8838ea4425323d678104cc96f

A small how-to compile is available in this thread:
http://www.openelec.tv/forum/13-general-discussion/7010-spotify#15766

I have only tested i386 32bit Generic build and it seems to work fine.


- soder - 2011-11-11

What does this mean?

http://piclair.com/s0be8

I've uninstalled my old libspotify and installed the 10.0 version and then done all the steps for the upgrade.

make clean
git pull
./bootstrap
./configure
make
sudo make install

What can I do about it?

BTW, was my libspotify correct installed when it looked like this?
http://piclair.com/odud1

/Söder


- kooolkat357 - 2011-11-12

I've got this installed on my htpc running Win64, it runs just fine but when tyring to pause or stop a track in the playlist its just start over again from the beginning.

Anybody else experiencing this?


- spanishfry - 2011-11-12

I have a premium account but when I go to request an API Key, the spotify developers site won't accept my working spotify login. Any suggestions?


- sgp01 - 2011-11-13

akezeke Wrote:I tried again today with a fresh built on a ubuntu 11.10 x64 and a windows 7 x64 system and I cant reproduce the problems you encountered, it works fine, no crash.

Hi, I am on Ubuntu 10.04.03 32 bit and have exactly the same issue:

Code:
Core was generated by `/usr/local/lib/xbmc/xbmc.bin'.
Program terminated with signal 11, Segmentation fault.
#0  0xb74fffa0 in ?? () from /usr/local/lib/libspotify.so.10

Code:
Thread 1 (Thread 29892):
#0  0xb74fffa0 in ?? () from /usr/local/lib/libspotify.so.10
#1  0xb76a993e in sp_session_process_events ()
   from /usr/local/lib/libspotify.so.10



- joymyr - 2011-11-14

sgp01 Wrote:Hi, I am on Ubuntu 10.04.03 32 bit and have exactly the same issue:

Code:
Core was generated by `/usr/local/lib/xbmc/xbmc.bin'.
Program terminated with signal 11, Segmentation fault.
#0  0xb74fffa0 in ?? () from /usr/local/lib/libspotify.so.10

Code:
Thread 1 (Thread 29892):
#0  0xb74fffa0 in ?? () from /usr/local/lib/libspotify.so.10
#1  0xb76a993e in sp_session_process_events ()
   from /usr/local/lib/libspotify.so.10

I'm having the same problem on Ubuntu 10.04. Has anybody found a workaround yet?

I found a similiar issue here: http://developer.spotify.com/blog/archives/2011/11/01/libspotify-10-is-available/

I'm going to try upgrading Ubuntu.


- simplechords - 2011-11-15

Hey guys, quick questions. I understand that you need to compile this build with your spotify API key, but i was wondering why you could just have the system look for the API Key via a config file ( ie: have it pull the info from an entry in advancedsetttings.xml ) . Its not really practical if a full compile is needed for anyone what wants to use this.


- joymyr - 2011-11-15

Quote:I'm going to try upgrading Ubuntu.

Seems like the latest version of libspotify doesn't work with Ubuntu 10.04. Luckily it works with 11.10.

However, I tried to recompile to enable VDPAU, but god stuck with this during make:

cd obj && ar rc libdvdread.a dvd_input.o dvd_reader.o dvd_udf.o ifo_print.o ifo_read.o md5.o nav_print.o nav_read.o bitreader.o
cd obj && ranlib libdvdread.a
sed -e 's,@prefix@,/usr/local,' -e 's,@exec_prefix@,/usr/local,' -e 's,@libdir@,/usr/local/lib,' -e 's,@includedir@,/usr/local/include,' -e 's,@VERSION@,4.1.3,' misc/dvdread.pc.in > obj/dvdread.pc
make[2]: Leaving directory `/home/jon/spotyxbmc2/spotyxbmc2/lib/libdvd/libdvdread'
make -C libdvdnav
make[2]: Entering directory `/home/jon/spotyxbmc2/spotyxbmc2/lib/libdvd/libdvdnav'
make[2]: *** No rule to make target `/usr/include/bits/predefs.h', needed by `dvdnav.o'. Stop.
make[2]: Leaving directory `/home/jon/spotyxbmc2/spotyxbmc2/lib/libdvd/libdvdnav'
make[1]: *** [libdvdnav] Error 2
make[1]: Leaving directory `/home/jon/spotyxbmc2/spotyxbmc2/lib/libdvd'
make: *** [dvdpcodecs] Error 2

Any ideas?


- soder - 2011-11-15

joymyr Wrote:Seems like the latest version of libspotify doesn't work with Ubuntu 10.04. Luckily it works with 11.10.

However, I tried to recompile to enable VDPAU, but god stuck with this during make:

cd obj && ar rc libdvdread.a dvd_input.o dvd_reader.o dvd_udf.o ifo_print.o ifo_read.o md5.o nav_print.o nav_read.o bitreader.o
cd obj && ranlib libdvdread.a
sed -e 's,@prefix@,/usr/local,' -e 's,@exec_prefix@,/usr/local,' -e 's,@libdir@,/usr/local/lib,' -e 's,@includedir@,/usr/local/include,' -e 's,@VERSION@,4.1.3,' misc/dvdread.pc.in > obj/dvdread.pc
make[2]: Leaving directory `/home/jon/spotyxbmc2/spotyxbmc2/lib/libdvd/libdvdread'
make -C libdvdnav
make[2]: Entering directory `/home/jon/spotyxbmc2/spotyxbmc2/lib/libdvd/libdvdnav'
make[2]: *** No rule to make target `/usr/include/bits/predefs.h', needed by `dvdnav.o'. Stop.
make[2]: Leaving directory `/home/jon/spotyxbmc2/spotyxbmc2/lib/libdvd/libdvdnav'
make[1]: *** [libdvdnav] Error 2
make[1]: Leaving directory `/home/jon/spotyxbmc2/spotyxbmc2/lib/libdvd'
make: *** [dvdpcodecs] Error 2

Any ideas?

Is that the problem for me to? http://piclair.com/s0be8
That libspotify doesn't work on 10.04?

/Söder


- joymyr - 2011-11-15

soder Wrote:Is that the problem for me to? http://piclair.com/s0be8
That libspotify doesn't work on 10.04?

/Söder

No, it was a runtime-exception.
You're having a compile error. I don't know what it means.


- akezeke - 2011-11-15

I have not found what causes the failure on 32 bit Linux, however I have set the tracefile to be NULL stopping libspotify to print out a massive log to a unspecified file somewhere in the filesystem that might have caused problems.

I have also fixed the error logging so please try again and report back what the log says when the session fails to be created.

The codebase is also merged with the latest commits from xbmc again hopefully resolving the vdpau problems encountered.

/David


- akezeke - 2011-11-15

simplechords Wrote:Hey guys, quick questions. I understand that you need to compile this build with your spotify API key, but i was wondering why you could just have the system look for the API Key via a config file ( ie: have it pull the info from an entry in advancedsetttings.xml ) . Its not really practical if a full compile is needed for anyone what wants to use this.

The reason that users have to compile is not because of the key, the licenses are incompatible thats why.