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)]
0x00007ffff3c7908b 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  0x00007ffff3c7908b in snd_ioctl (ds=0x91b400, cmd=2, data=0x0, length=0)
    at sndqueue.c:276
        buff = 0x91cf10
#1  0x00007ffff3c7b01a 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  0x00007ffff3c6f76d 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 = 0xd3ed1d0000000006 <Address 0xd3ed1d0000000006 out of bounds>
        header_len = 0
        consumed_len = 0
        __PRETTY_FUNCTION__ = "channel_process"
#3  0x00007ffff3c75e4f in handle_channel (cmd=9, payload=0x901300 "", len=2)
    at handlers.c:79
No locals.
#4  0x00007ffff3c7605c 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  0x00007ffff3c7a5f0 in despotify_thread (arg=0x91b400) at despotify.c:65
        s = 0x91b5d0
        hdr = {cmd = 9 '\t', len = 2}
        payload = 0x901300 ""
        ds = 0x91b400
#6  0x00007ffff2f0cb50 in start_thread ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#7  0x00007ffff11ffa7d in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#8  0x0000000000000000 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

Reply via email to