ncmpcpp stopped working for me after the 0.9-2 update. When I try to launch it, it gives this error message and exits:
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:
$ 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:
for i in $(pacman -Qi ncmpcpp | grep -Po 'Depends On :\K.*'); do
pacman -Qi "$i" | pcre2grep -Mo 'Name(.*?)\nVersion(.*?)\n'
done
Output (removed duplicates):
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.
Odd. ncpmpcp is working for me, just tested it with mpd and it shows connected to localhost. Which init are you using?
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
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.
Even after uninstaling every package, it still isn't working. Maybe I will have to reinstall the entire system, IDK.
Here (https://pastebin.com/2FP5yb7A) 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.
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.
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.