MPD crashes as soon as I begin to play a song

Hi there,

I’m trying to set up MPD for the first time, and I’m having a bit of an issue. My steps essentially go like this:

  • Start MPD
matt@matt:~> sudo /usr/bin/mpd /etc/mpd.conf
  • Start Sonata (Or MPoD on my iPhone). Everything connects okay.

  • Try to play a song. Doesn’t play. MPD Server has crashed.

Here it is from the beginning of me starting sonata:

matt@matt:~> sonata
2011-03-12 12:27:04  Connection lost while reading line
Traceback (most recent call last):
  File "/usr/local/lib64/python2.7/site-packages/sonata/current.py", line 623, in on_current_click
    self.iterate_now()
  File "/usr/local/lib64/python2.7/site-packages/sonata/main.py", line 1065, in iterate_now
    self.iterate()
  File "/usr/local/lib64/python2.7/site-packages/sonata/main.py", line 1019, in iterate
    self.handle_change_status()
  File "/usr/local/lib64/python2.7/site-packages/sonata/main.py", line 1566, in handle_change_status
    self.info_update(True)
  File "/usr/local/lib64/python2.7/site-packages/sonata/main.py", line 1320, in info_update
    self.info.info_update(playing_or_paused, newbitrate, self.songinfo, update_all, blank_window, skip_lyrics)
  File "/usr/local/lib64/python2.7/site-packages/sonata/info.py", line 292, in info_update
    if len(tracks) > 0:
TypeError: object of type 'NoneType' has no len()
2011-03-12 12:27:08  Connection lost while reading line
2011-03-12 12:27:08  [Errno 32] Broken pipe
2011-03-12 12:27:09  Already connected
2011-03-12 12:27:09  'NoneType' object has no attribute 'sendall'
2011-03-12 12:27:10  [Errno 111] Connection refused
2011-03-12 12:27:10  Not connected

The same happens when I try to play from MPoD, resulting in a “Not Connected to server” and finding that the server has shut itself down.

Here is the entirety of my /etc/mpd.conf file: (Had to put it in a pastebin to avoid going over the character limit on new threads)

MPD Config - Pastebin.com

mpd --version

matt@matt:~> mpd --version
mpd (MPD: Music Player Daemon) 0.16.1 

Copyright (C) 2003-2007 Warren Dukes <warren.dukes@gmail.com>
Copyright (C) 2008-2010 Max Kellermann <max@duempel.org>
This is free software; see the source for copying conditions.  There is NO
warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Supported decoders:

[mad] mp3 mp2
[mpg123] mp3
[vorbis] ogg oga
[oggflac] ogg oga
[flac] flac
[audiofile] wav au aiff aif
[faad] aac
[mp4ff] m4a m4b mp4
[mpcdec] mpc
[wavpack] wv
[modplug] 669 amf ams dbm dfm dsm far it med mdl mod mtm mt2 okt s3m stm ult umx xm
[mikmod] amf dsm far gdm imf it med mod mtm s3m stm stx ult uni xm
[fluidsynth] mid
[ffmpeg] 16sv 3g2 3gp 4xm 8svx aa3 aac ac3 afc aif aifc aiff al alaw amr anim apc ape asf atrac au aud avi avm2 avs bap bfi c93 cak cin cmv cpk daud dct divx dts dv dvd dxa eac3 film flac flc fli fll flx flv g726 gsm gxf iss m1v m2v m2t m2ts m4a m4b m4v mad mj2 mjpeg mjpg mka mkv mlp mm mmf mov mp+ mp1 mp2 mp3 mp4 mpc mpeg mpg mpga mpp mpu mve mvi mxf nc nsv nut nuv oga ogm ogv ogx oma ogg omg psp pva qcp qt r3d ra ram rl2 rm rmvb roq rpl rvc shn smk snd sol son spx str swf tgi tgq tgv thp ts tsp tta xa xvid uv uv2 vb vid vob voc vp6 vmd wav wma wmv wsaud wsvga wv wve
[gme] ay gbs gym hes kss nsf nsfe sap spc vgm vgz

Supported outputs:

shout null fifo alsa ao oss pulse mvp jack httpd recorder 

Supported encoders:

null vorbis lame wave flac 

Supported archives:

bz2 iso 

Supported protocols:

file:// http:// mms:// mmsh:// mmst:// mmsu:// gopher:// rtp:// rtsp:// rtmp:// rtmpt:// rtmps:// 

Sonata Version

matt@matt:~> sonata --version
Version: Sonata 1.6.2.1
Website: http://sonata.berlios.de/

KDE 4.6, OpenSUSE 11.4
Running out through ALSA (PulseAudio is disabled)

Thanks for the help!

It also seems that mpd doesn’t start when I boot my computer, despite having put:

musicpd_enable=YES

in my /etc/rc.conf file (Which was a new file I created, as it didn’t exist before. Should it have already existed?)

Does MPD come from the Packman repository? It is available. And how about multimedia packages in general? They should also come from Packman.

And about starting MPD automatically on bootup, I think you need to have a look at YaST’s ‘System Services (Runlevels)’ and enable it there for the desired runlevels.

Both mpd and all my multimedia packages come from packman (After installing packman as a repo, I performed “Switch System Packages to this repository”)

And I’ll check out the runlevels. Thanks! :slight_smile:

I got my log file setup finally for mpd, and now I see that I have this:

matt@matt:~> cat ~/.mpd/log
Mar 12 13:32 : avahi: Service 'Music Player' successfully established.
Mar 12 13:32 : mixer: Failed to read mixer for 'My ALSA Device': no such mixer control: PCM
mpd: src/filter/convert_filter_plugin.c:143: convert_filter_set: Assertion `audio_format_valid(out_audio_format)' failed.

So I’m going to try and fiddle with that, and see if I can’t make some sense out of it. :slight_smile: If anyone knows what to do, I’m all ears!

EDIT: I fixed one error, but am left with another…

Mar 12 13:35 : avahi: Service 'Music Player' successfully established.
mpd: src/filter/convert_filter_plugin.c:143: convert_filter_set: Assertion `audio_format_valid(out_audio_format)' failed.

Sorry for the triple post, if I could edit my posts, I would. :confused:

Anyway, I feel it’s worth noting, given the error above, that I’m only trying to play mp3 files. Nothing fancy. :slight_smile:

I’m curious however, why MPD is using mad for mp3 decoding, and not lame?

Hi.

Bit different from your problem lostchild1, but how the heck did you get Sonata installed on opensuse11.4?? It seems to have vanished from the face of the planet after 11.3 as far as as repos are concerned. Can’t find even a trace of it on packman. Absolutely love sonata and really really miss it after upgrading os to 11.4. Please help me get sonata back! :slight_smile: