You are not logged in.
I got a weird issue with Cantata-qt. It happens with the new update (1.2.1-1) and the previous version... not sure about earlier stuff, as I only switched back to Arch two weeks ago.
Cantata says it can't connect to mpd (which is running on 192.168.1.123:6600 in my case) but it displays the correct information of the currently playing song, albumcover and, when I click on information, the Wikipedia stuff and the lyrics. Everything else (controls, library, playlist, ...) doesn't work.
Now, I'm 100% sure that mpd is running at that address and working. Sonata, gmpc, ncmpcpp are all doing what they should. Cantata obviously finds "something", as it correctly shows the now playing track. If I keep hitting "connect", the time is updated, so it looks like it gets the current state when attempting to connect to mpd, but doesn't finish the connection.
Is there a way to debug this? Any ideas?
Last edited by SleepyFloyd (2013-12-27 08:51:27)
Offline
You can try to delete all local configuration of cantata (~/.config/cantata) and start from scratch.
I've uploaded the last 4 versions of cantata-qt as well. Try to see if any of these work. You can also build them yourself by adjusting the PKGBUILD
1.1.0-1
1.1.1-1
1.1.2-1
1.2.0-1
Last edited by Foucault (2013-12-26 10:47:05)
Offline
Hmm... there was just one pretty innocent looking file in ~/.config/cantata. I deleted it anyway and created a new one:
[General]
version=1.2.1
httpAllocatedPort=58508
mainWindowSize=@Size(843 544)
splitterState=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x2\0\0\0\x80\0\0\x2\0\x1\0\0\0\x4\x1\0\0\0\x1)
page=LibraryPage
contextSplitterState=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x3\0\0\x1\0\0\0\x1\0\0\0\x1\0\0\0\0\0\x3\x1\0\0\0\x1)
[Connection]
host=192.168.1.123
port=6600
dir=/home/sleepy/music
passwd=
dynamizerPort=0
coverName=
[PreferencesDialog]
size=@Size(811 689)I also enabled debug logging. (CANTATA_DEBUG=3 cantata)
------------START------------
2013-12-26 12:13:11 - MPDConnection 140095723128576 setDetails "192.168.1.123" 6600 false
2013-12-26 12:13:11 - MPDConnection 140095723128576 disconnectFromMPD
2013-12-26 12:13:11 - MPDConnection 140095723128576 call connectToMPD
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 Connecting (std)
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 established
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 Waiting for read data. 0
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 Read: "OK MPD 0.18.0
"
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 Received identification string
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2d0 Connecting (idle)
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2d0 established
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2d0 Waiting for read data. 0
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2d0 Read: "OK MPD 0.18.0
"
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2d0 Received identification string
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2d0 Enabling idle
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 sendCommand: "status" true true
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 Waiting for read data. 0
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 Read: "volume: 30
repeat: 1
random: 0
single: 0
consume: 0
playlist: 100
playlistlength: 97
mixrampdb: 0.000000
state: play
xfade: 5
song: 79
songid: 630
time: 100:273
elapsed: 99.544
bitrate: 192
audio: 44100:24:2
nextsong: 80
nextsongid: 631
OK
"
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 sendCommand - sent
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 sendCommand: "stats" true true
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 Waiting for read data. 0
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 Read: "uptime: 9558
playtime: 1864
artists: 7885
albums: 3284
songs: 48329
db_playtime: 16192575
db_update: 1387874544
OK
"
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 sendCommand - sent
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 sendCommand: "urlhandlers" true true
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 Waiting for read data. 0
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 Read: "handler: http://
handler: https://
handler: mms://
handler: mmsh://
handler: mmst://
handler: mmsu://
handler: gopher://
handler: rtp://
handler: rtsp://
handler: rtmp://
handler: rtmpt://
handler: rtmps://
OK
"
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 sendCommand - sent
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 sendCommand: "tagtypes" true true
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 Waiting for read data. 0
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 Read (bytes): 347
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 sendCommand - sent
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 sendCommand: "currentsong" true true
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 Waiting for read data. 0
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 Read (bytes): 653
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 sendCommand - sent
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 sendCommand: "listallinfo" true true
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 Waiting for read data. 0
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 Read: ""
2013-12-26 12:13:11 - MPDConnection 140095723128576 "listallinfo" failed
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 sendCommand: "listallinfo" true false
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 Connecting (std)
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 established
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 Waiting for read data. 0
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 Read: "OK MPD 0.18.0
"
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 Received identification string
2013-12-26 12:13:11 - MPDConnection 140095723128576 0x220c2b0 Waiting for read data. 0
2013-12-26 12:13:12 - MPDConnection 140095723128576 0x220c2b0 Read: ""
2013-12-26 12:13:12 - MPDConnection 140095723128576 "listallinfo" failed
2013-12-26 12:13:12 - MPDConnection 140095723128576 disconnectFromMPD
2013-12-26 12:13:12 - MPDConnection 140095723128576 0x220c2b0 sendCommand - sent
2013-12-26 12:13:12 - MPDConnection 140095723128576 0x220c2b0 sendCommand: "listplaylists" true true
2013-12-26 12:13:12 - MPDConnection 140095723128576 0x220c2b0 sendCommand: "playlistinfo" true true
2013-12-26 12:13:12 - MPDConnection 140095723128576 0x220c2b0 sendCommand: "outputs" true true Looks good to me... finds the whole library, everything seems ok, but then there's this "disconnectFromMPD" at the end and it still doesn't work.
I've also tried 1.1.0-1. The behaviour changes a bit, but same issue. Instead of displaying the song info the whole time, it just updates them quickly when I hit connect and then goes blank after ~0,5 sec.
Guess that's an upstream issue.
Offline
Here's the main problem:
2013-12-26 12:13:12 - MPDConnection 140095723128576 "listallinfo" failed
There's not enough memory allocated for listallinfo to work. You can either trim your library (yeah right) or bump up the memory buffer size (see below). Anyways, I reported the higher memory requirements to catanta and mpd. mpd's dev chimed in later on the cantata bug tracker. Essentially, mpd 0.18.x has more features, thus requires more memory for "listallinfo".
Just change "max_output_buffer_size" in mpd.conf (or ~/.mpdconf) to a higher number.
Last edited by ssri (2013-12-27 22:39:43)
Offline
Hey, thanks. That did it.
Value was 8192 at first, doubled it to 16384, which didn't change anything.
Then thought, well... whatever and changed it to 65536 and now Cantata works.
Offline