Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] ncmpcpp not working after 0.9-2 update (Read 1140 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

[SOLVED] ncmpcpp not working after 0.9-2 update

ncmpcpp stopped working for me after the 0.9-2 update. When I try to launch it, it gives this error message and exits:
Code: [Select]
Reading configuration from /home/goll/.config/ncmpcpp/config...$
^[[?1049h^[[22;0;0t^[[1;24r^[(B^[[m^[[4l^[[?7h^[[39;49m^[[?25l^[[?1001s^[[?1000h^[[?1015h^[[39;49m^[(B^[[m^[[H^[[2J^[[3d^[(0^[[0;1m^[[30mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq^[[39m^[(B^[(B^[[m^[[4;36H^[(0^[[0;1m^[[30m^[[39m^[(B^[[0;1mPlaylist ^M^[[5d^[(0^[[0;1m^[[30mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq^[[39m^[(B^[(B^[[m^[[4;45H^[(0^[[0;1m^[[30m^[[39m^[(B^[(B^[[mterminate called after throwing an instance of 'MPD::ClientError'$
  what():  No active MPD connection$

mpd is running:
Code: [Select]
$ ps -aux | grep mpd
goll       937  0.1  0.4 273080 36344 ?        Ssl  13:00   0:00 mpd --no-daemon

mpc does not throw any errors, as it should.

I ran this to get the version of every package that is required by ncmpcpp:
Code: [Select]
for i in $(pacman -Qi ncmpcpp | grep -Po 'Depends On      :\K.*'); do
    pacman -Qi "$i" | pcre2grep -Mo 'Name(.*?)\nVersion(.*?)\n'
done

Output (removed duplicates):
Code: [Select]
Name            : curl
Version         : 7.74.0-1

Name            : libmpdclient
Version         : 2.19-3

Name            : fftw
Version         : 3.3.9-1

Name            : boost-libs
Version         : 1.75.0-2

Name            : icu
Version         : 68.2-1

Name            : glibc
Version         : 2.32-5

Name            : gcc-libs
Version         : 10.2.0-4

Name            : ncurses
Version         : 6.2-1

Name            : readline
Version         : 8.1.0-2

Name            : taglib
Version         : 1.11.1-4

My mpd version is 0.22.3-2.

Re: ncmpcpp not working after 0.9-2 update

Reply #1
Odd. ncpmpcp is working for me, just tested it with mpd and it shows connected to localhost. Which init are you using?

Re: ncmpcpp not working after 0.9-2 update

Reply #2
ncmpcpp is not our package, but archlinux's. but... here is no reason to stop woking, it was only icu68.2  rebuild. and you have icu 68.2 installed

Re: ncmpcpp not working after 0.9-2 update

Reply #3
This is so strange... I have a USB stick with Artix installed. I installed mpd and ncmpcpp in it to test if ncmpcpp would launch normally, and it did. I even tried uninstalling ncmpcpp and mpd on my machine to ensure it wasn't a corrupted file.
I am now reinstalling every package on my system to see if that will fix it.

Re: ncmpcpp not working after 0.9-2 update

Reply #4
Even after uninstaling every package, it still isn't working. Maybe I will have to reinstall the entire system, IDK.

Here is the output of strace ncmpcpp. I guess it could help if it was compared to the strace output from a functioning ncmpcpp?

Also, the only major difference I can think of from my main install to the install on my USB stick is that on my main install I converted my filesystem from ext4 to btrfs, while on the USB stick it's just ext4, but I guess that shouldn't be causing that type of problem, specially after reinstalling every package.


 

Re: ncmpcpp not working after 0.9-2 update

Reply #6
It appears to access some local . file(s) in your homedir, as also indicated by the error in the first post:
openat(AT_FDCWD, "/home/goll/.config/ncmpcpp/config", O_RDONLY) = 3$

Perhaps you have some local config or cached data that is incompatible with the new version, and clearing / deleting those (after backing them up in case they contained anything important) would help? (I'm not using ncmpcpp I should add, but have needed to do this for other packages in the past in apparently similar situations.)

Re: ncmpcpp not working after 0.9-2 update

Reply #7
It appears to access some local . file(s) in your homedir, as also indicated by the error in the first post:
openat(AT_FDCWD, "/home/goll/.config/ncmpcpp/config", O_RDONLY) = 3$

Perhaps you have some local config or cached data that is incompatible with the new version, and clearing / deleting those (after backing them up in case they contained anything important) would help? (I'm not using ncmpcpp I should add, but have needed to do this for other packages in the past in apparently similar situations.)

Thanks! I replaced the config file in ~/.config/ncmpcpp with the one in /usr/share/doc/ncmpcpp and now it's working!
One thing I find odd though is that ncmpcpp actually said that some items in my config file were deprecated and would be obsolete by the next version the first time I updated, but then I changed these items to the new ones that were mentioned in the error message, and after that there were no more error messages related to the config file.

Re: ncmpcpp not working after 0.9-2 update

Reply #8
OK, I figured it out: the config option that is crashing ncmpcpp is startup_screen. If I let it as it is, it works. When I change it to "browser" it stops working.