Re: [Musicpd-dev-team] [PATCH 0/3]: Add despotify documentation

2013-03-01 Thread Sean McNamara
Hi Simon,

Thanks for your excellent work on the Despotify plugin for mpd!

I tried compiling mpd from git, linked against despotify from your
github, and am getting a crash (see below) when playing
spt://spotify:track:0VOwC7LKb6KffcjTtrOSAH (or *any* spotify track for
that matter).

How do I know if my authentication with the Spotify service is
successful? Are there any debugging messages? It seems to be crashing
in the pcm decoder plugin.

Possibly of interest: at the top of the call stack when this crashes,
buff-ptr is NULL (0x0). So the array access (pointer dereference) is
what's causing it to crash out.

I have despotify_user with my Device ID and despotify_password in
strings in mpd.conf at the global scope, and an input { ... line
declaring the spt plugin (though I'm not sure why I'm doing that to
begin with, since despotify_user and despotify_password don't appear
to be scoped to the input plugin.)

Below is the backtrace.

Thanks,

Sean

--

client: [9] process command playid 3
playlist: play 2:spt://spotify:track:0VOwC7LKb6KffcjTtrOSAH
client: [9] command returned 0
client: [9] process command status
[New Thread 0x7fffe5ca7700 (LWP 22486)]
decoder_thread: probing plugin pcm
decoder: audio_format=44100:16:2, seekable=false
client: [9] command returned 0
client: [9] process command idle
client: [9] command returned 1

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe5ca7700 (LWP 22486)]
0x73c7908b in snd_ioctl (ds=0x91b400, cmd=2, data=0x0, length=0)
at sndqueue.c:276
276 if (ds-fifo-lastcmd == SND_CMD_START  (buff-ptr[5] == 6)) {
(gdb) bt full
#0  0x73c7908b in snd_ioctl (ds=0x91b400, cmd=2, data=0x0, length=0)
at sndqueue.c:276
buff = 0x91cf10
#1  0x73c7b01a in despotify_substream_callback (ch=0x91ee10,
buf=0x901302 \035\355\323, incomplete sequence \375, len=0)
at despotify.c:363
error = 16
ds = 0x91b400
#2  0x73c6f76d in channel_process (
buf=0x901302 \035\355\323, incomplete sequence \375, len=0, error=0)
at channel.c:196
ch = 0x91ee10
channel_id = 0
ret = 9442053
ptr = 0xd3ed1d06 Address 0xd3ed1d06 out of bounds
header_len = 0
consumed_len = 0
__PRETTY_FUNCTION__ = channel_process
#3  0x73c75e4f in handle_channel (cmd=9, payload=0x901300 , len=2)
at handlers.c:79
No locals.
#4  0x73c7605c in handle_packet (session=0x91b5d0, cmd=9,
payload=0x901300 , len=2) at handlers.c:171
error = 0
---Type return to continue, or q return to quit---
#5  0x73c7a5f0 in despotify_thread (arg=0x91b400) at despotify.c:65
s = 0x91b5d0
hdr = {cmd = 9 '\t', len = 2}
payload = 0x901300 
ds = 0x91b400
#6  0x72f0cb50 in start_thread ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#7  0x711ffa7d in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#8  0x in ?? ()
No symbol table info available.

On Sat, Apr 2, 2011 at 2:36 AM, Simon Kagstrom simon.kagst...@gmail.com wrote:
 Hi!

 Two despotify documentation patches, and a configure script fix.

 // Simon

 --
 Create and publish websites with WebMatrix
 Use the most popular FREE web apps or write code yourself;
 WebMatrix provides all the features you need to develop and
 publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
 ___
 Musicpd-dev-team mailing list
 Musicpd-dev-team@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team


Re: [Musicpd-dev-team] [PATCH 0/3]: Add despotify documentation

2011-04-11 Thread Max Kellermann
On 2011/04/02 08:36, Simon Kagstrom simon.kagst...@gmail.com wrote:
 Hi!
 
 Two despotify documentation patches, and a configure script fix.

Hi Simon, sorry for the long delay again, I've been extremely busy in
the past weeks.  I've merged all of your patches.

Why don't you get a git repository?  That would save both of us some
work.

 http://git.musicpd.org/account-policy.html

--
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
___
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team