You are not logged in.

#1 2013-03-04 05:37:43

jralphur
Member
Registered: 2013-03-04
Posts: 3

ncmpcpp/mpc takes too long to respond

whenever i type in ncmpcpp in the terminal or "mpc whatever" it takes 10 seconds just to load the the interface.

I can't give any logs, there's nothing relevant to the problem

music_directory    "/home/jr/Music"
playlist_directory "/home/jr/.mpd/playlists"
db_file            "/home/jr/.mpd/mpd.db"
log_file           "/home/jr/.mpd/mpd.log"
#pid_file           "/home/jr/.mpd/mpd.pid"
state_file         "/home/jr/.mpd/mpdstate"
###### OUTPUT PLUGINS #####
log_level "verbose"
audio_output {
type                                "alsa"
name                                "Alsa Output"
# device                              "hw:0,1"  # optional
# format                              "44100:16:2"  # optional
# mixer_type                          "software"  # optional
##  mixer_device                      "default" # optional
# mixer_control                       "front-pcm"   # optional
##  mixer_index                       "0"   # optional
}


#audio_output_format                    "44100:16:2"
#samplerate_converter                  "Fastest Sinc Interpolator"
#replaygain                             "album"
#replaygain_preamp                      "6"
#volume_normalization                  "no"
#audio_buffer_size                     "2048"
#buffer_before_play                    "10%"
#connection_timeout                    "60"
#max_connections                       "10"
#max_playlist_length                   "16384"
#max_command_list_size                 "2048"
#max_output_buffer_size                "8192"
#filesystem_charset                    "UTF-8"
#id3v1_encoding                        "ISO-8859-1"

Last edited by jralphur (2013-03-04 05:40:36)

Offline

#2 2013-03-25 02:36:40

Alittlemurkling
Member
Registered: 2013-02-13
Posts: 6

Re: ncmpcpp/mpc takes too long to respond

I have the same problem with ncmpcpp taking exactly 10 seconds to open or respond to commands.

http://dl.dropbox.com/u/7002298/ncmpcpp.png

I am unsure of cause as well, though I suspect it has something to do with the last mpd update, or how mpd is handled by systemd. I call "systemd --user &" in my .xinitrc to start running mpd.

Last edited by Alittlemurkling (2013-03-25 03:58:29)

Offline

#3 2013-03-25 03:25:38

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: ncmpcpp/mpc takes too long to respond

I don't have this problem... if you are starting it as a systemd user service, maybe there is relevant information in the journal.

Offline

#4 2013-03-25 04:48:51

dag
Member
From: US
Registered: 2013-01-20
Posts: 216

Re: ncmpcpp/mpc takes too long to respond

I dont have this issue either. are you auto starting mpd?

that time is how long it is up in other words you opened it then closed it at that time


--------------------------------------
alcoves wonder creates the wonder unto the ages; never lose that.

Offline

#5 2013-03-25 05:26:24

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,840
Website

Re: ncmpcpp/mpc takes too long to respond

@original poster:
try to add an bind_to_address line that binds to 127.0.0.1
then use this in ncmpcpp as host


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#6 2013-03-25 05:36:48

Alittlemurkling
Member
Registered: 2013-02-13
Posts: 6

Re: ncmpcpp/mpc takes too long to respond

dag wrote:

I dont have this issue either. are you auto starting mpd?

that time is how long it is up in other words you opened it then closed it at that time

I'm not sure if you are referring to me or not, but in my screenshot I am timing the lag in ncmpcpp by pressing 'q' in the terminal during the delay, so it quits ncmpcpp immediately after the lag. The lag is longer for ncmpc because the interface loads before the program connects to mpd, so I have to stop it manually immediatly after it connects.

WonderWoofy wrote:

I don't have this problem... if you are starting it as a systemd user service, maybe there is relevant information in the journal.

The journal did not reveal anything relevant sadly. I have now tried launching mpd without systemd, and the lag remains. I have also noticed that a small mpd programming project I am writing also experiences the same lag when it tries to connect to mpd.

Offline

#7 2013-03-25 05:39:48

Alittlemurkling
Member
Registered: 2013-02-13
Posts: 6

Re: ncmpcpp/mpc takes too long to respond

Rasi wrote:

@original poster:
try to add an bind_to_address line that binds to 127.0.0.1
then use this in ncmpcpp as host

This solves all lag! I suppose mpd changed the how the default address is handled in the last update?

Offline

#8 2013-03-25 08:19:20

Awebb
Member
Registered: 2010-05-06
Posts: 4,169

Re: ncmpcpp/mpc takes too long to respond

No, no relevant changes seem to have been applied. I have no issue whatsoever on two machines. Is the lag only present when calling it locally or also from another machine in the network?

Offline

Board footer

Powered by FluxBB