MusicPlayerDaemon / MPD

Music Player Daemon
https://www.musicpd.org/
GNU General Public License v2.0
2.17k stars 351 forks source link

MPD crashes on NixOS while updating an NFS music_directory (Assertion `!name_utf8.empty()' failed.) #1793

Closed repomansez closed 1 year ago

repomansez commented 1 year ago

Bug report

Describe the bug

While updating the DB for the first time, MPD eventually returns SIGABRT. Until it gets to that point, it successfully adds music to the database and I can reproduce them just fine. My user has full access to the NFS share.

It always stops at the same point, if I remove the directory it fails on it just starts to fail on another one, consistently.

Expected Behavior

Successfully updating the entire database

Actual Behavior

SIGABRT + coredump

Version

Music Player Daemon 0.23.12 (0.23.12) Copyright 2003-2007 Warren Dukes warren.dukes@gmail.com Copyright 2008-2021 Max Kellermann max.kellermann@gmail.com This is free software; see the source for copying conditions. There is NO warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Database plugins: simple proxy

Storage plugins: local smbclient udisks nfs curl

Neighbor plugins: smbclient udisks

Decoders plugins: [mad] mp3 mp2 [mpg123] mp3 [vorbis] ogg oga [oggflac] ogg oga [flac] flac [opus] opus ogg oga [audiofile] wav au aiff aif [dsdiff] dff [dsf] dsf [hybrid_dsd] m4a [faad] aac [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 adx 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 opus psp pva qcp qt r3d ra ram rl2 rm rmvb roq rpl rvc shn smk snd sol son spx str swf tak tgi tgq tgv thp ts tsp tta xa xvid uv uv2 vb vid vob voc vp6 vmd wav webm wma wmv wsaud wsvga wv wve rtp:// rtsp:// rtsps:// [gme] ay gbs gym hes kss nsf nsfe rsn sap spc vgm vgz [pcm]

Filters: libsamplerate

Tag plugins: id3tag

Output plugins: shout null fifo pipe alsa pipewire pulse jack httpd snapcast recorder

Encoder plugins: null vorbis opus lame wave flac

Archive plugins: [bz2] bz2 [zzip] zip

Input plugins: file io_uring archive alsa qobuz curl ffmpeg smbclient nfs mms

Playlist plugins: extm3u m3u pls xspf asx rss soundcloud flac cue embcue

Protocols: file:// alsa:// ftp:// ftps:// gopher:// hls+http:// hls+https:// http:// https:// mms:// mmsh:// mmst:// mmsu:// nfs:// qobuz:// rtmp:// rtmps:// rtmpt:// rtmpts:// rtp:// rtsp:// rtsps:// scp:// sftp:// smb:// srtp://

Other features: avahi dbus udisks epoll icu inotify systemd tcp un

Configuration

music_directory "/home/user/nfs/data/music/" playlist_directory "/home/user/.local/share/mpd/playlists" db_file "/home/user/.local/share/mpd/tag_cache"

state_file "/home/user/.local/share/mpd/state" sticker_file "/home/user/.local/share/mpd/sticker.sql"

bind_to_address "127.0.0.1"

user "user" group "users" # I tried both with and without setting user and group, thinking it could be related to NFS permissions, but same result audio_output { type "pipewire" name "pw" }

Log

abr 29 19:16:01 nixos mpd[2335835]: update: added MicrobioDoCaralho/Microbio_do_Caralho-Bacteria_Filha_da_Puta-08_Cuidado_Carluxo.mp3 abr 29 19:16:01 nixos mpd[2335835]: update: added MicrobioDoCaralho/Microbio_do_Caralho-Bacteria_Filha_da_Puta-04_Nossa_Vida_Tem_Que_Continuar.mp3 abr 29 19:16:01 nixos mpd[2335835]: update: added MicrobioDoCaralho/Microbio_do_Caralho-Bacteria_Filha_da_Puta-06_Brasil,_a_Piada_de_Mau_Gosto.mp3 abr 29 19:16:01 nixos mpd[2335835]: update: added MicrobioDoCaralho/Microbio_do_Caralho-Bacteria_Filha_da_Puta-03_Meu_Historico_de_Atleta.mp3 abr 29 19:16:01 nixos mpd[2335835]: update: added MicrobioDoCaralho/Microbio_do_Caralho-Bacteria_Filha_da_Puta-02_Estudo_e_Coisa_de_Esquerdista.mp3 abr 29 19:16:01 nixos mpd[2335835]: mpd: ../src/db/plugins/simple/Directory.cxx:89: Directory* Directory::CreateChild(std::string_view): Assertion `!name_utf8.empty()' failed. abr 29 19:16:01 nixos systemd-coredump[2344957]: [🡕] Process 2335835 (mpd) of user 1000 dumped core.

                                             Module libspa-journal.so without build-id.
                                             Module libspa-support.so without build-id.
                                             Module libcluster-samba4.so without build-id.
                                             Module libflag-mapping-samba4.so without build-id.
                                             Module libndr-krb5pac.so.0 without build-id.
                                             Module libcli-ldap-common-samba4.so without build-id.
                                             Module libclidns-samba4.so without build-id.
                                             Module libhcrypto-samba4.so without build-id.
                                             Module libwind-samba4.so without build-id.
                                             Module libheimbase-samba4.so without build-id.
                                             Module libhx509-samba4.so without build-id.
                                             Module libroken-samba4.so without build-id.
                                             Module libmsghdr-samba4.so without build-id.
                                             Module libjansson.so.4 without build-id.
                                             Module libMESSAGING-SEND-samba4.so without build-id.
                                             Module libsamdb.so.0 without build-id.
                                             Module libwbclient.so.0 without build-id.
                                             Module libsamba-modules-samba4.so without build-id.
                                             Module libasn1-samba4.so without build-id.
                                             Module libXdmcp.so.6 without build-id.
                                             Module libXau.so.6 without build-id.
                                             Module libgraphite2.so.3 without build-id.
                                             Module libffi.so.8 without build-id.
                                             Module libgpg-error.so.0 without build-id.
                                             Module libbrotlicommon.so.1 without build-id.
                                             Module libkeyutils.so.1 without build-id.
                                             Module libkrb5support.so.0 without build-id.
                                             Module libcom_err.so.3 without build-id.
                                             Module libk5crypto.so.3 without build-id.
                                             Module libkrb5.so.3 without build-id.
                                             Module libmd.so.0 without build-id.
                                             Module libunwind.so.8 without build-id.
                                             Module libunwind-x86_64.so.8 without build-id.
                                             Module libldb.so.2 without build-id.
                                             Module libsamdb-common-samba4.so without build-id.
                                             Module libldbsamba-samba4.so without build-id.
                                             Module libcli-nbt-samba4.so without build-id.
                                             Module libauthkrb5-samba4.so without build-id.
                                             Module libcli-cldap-samba4.so without build-id.
                                             Module libgssapi-samba4.so without build-id.
                                             Module libaddns-samba4.so without build-id.
                                             Module libndr-nbt.so.0 without build-id.
                                             Module libkrb5-samba4.so without build-id.
                                             Module libtdb.so.1 without build-id.
                                             Module libserver-role-samba4.so without build-id.
                                             Module libutil-setid-samba4.so without build-id.
                                             Module libtdb-wrap-samba4.so without build-id.
                                             Module libtime-basic-samba4.so without build-id.
                                             Module libsamba-cluster-support-samba4.so without build-id.
                                             Module libinterfaces-samba4.so without build-id.
                                             Module libmessages-dgm-samba4.so without build-id.
                                             Module libiov-buf-samba4.so without build-id.
                                             Module libtalloc-report-printf-samba4.so without build-id.
                                             Module libserver-id-db-samba4.so without build-id.
                                             Module libsys-rw-samba4.so without build-id.
                                             Module libmessages-util-samba4.so without build-id.
                                             Module libutil-reg-samba4.so without build-id.
                                             Module libsmbd-shim-samba4.so without build-id.
                                             Module libcommon-auth-samba4.so without build-id.
                                             Module libsocket-blocking-samba4.so without build-id.
                                             Module libutil-tdb-samba4.so without build-id.
                                             Module libnpa-tstream-samba4.so without build-id.
                                             Module libsamba-sockets-samba4.so without build-id.
                                             Module libndr-samba-samba4.so without build-id.
                                             Module libdbwrap-samba4.so without build-id.
                                             Module libdcerpc-binding.so.0 without build-id.
                                             Module libsmb-transport-samba4.so without build-id.
                                             Module libcom-err-samba4.so without build-id.
                                             Module libcliauth-samba4.so without build-id.
                                             Module libgensec-samba4.so without build-id.
                                             Module libCHARSET3-samba4.so without build-id.
                                             Module libkrb5samba-samba4.so without build-id.
                                             Module libasn1util-samba4.so without build-id.
                                             Module libxcb.so.1 without build-id.
                                             Module libXext.so.6 without build-id.
                                             Module libpng16.so.16 without build-id.
                                             Module libharfbuzz.so.0 without build-id.
                                             Module libfribidi.so.0 without build-id.
                                             Module libnuma.so.1 without build-id.
                                             Module libsoxr.so.0 without build-id.
                                             Module libgmp.so.10 without build-id.
                                             Module libhogweed.so.6 without build-id.
                                             Module libnettle.so.8 without build-id.
                                             Module libtasn1.so.6 without build-id.
                                             Module libunistring.so.5 without build-id.
                                             Module libp11-kit.so.0 without build-id.
                                             Module liblz4.so.1 without build-id.
                                             Module libgcrypt.so.20 without build-id.
                                             Module libcap.so.2 without build-id.
                                             Module libubsan.so.1 without build-id.
                                             Module libpulse-simple.so.0 without build-id.
                                             Module libsndfile.so.1 without build-id.
                                             Module libgomp.so.1 without build-id.
                                             Module libssp.so.0 without build-id.
                                             Module libtheora.so.0 without build-id.
                                             Module libcelt0.so.2 without build-id.
                                             Module libpulsecommon-16.1.so without build-id.
                                             Module libbrotlidec.so.1 without build-id.
                                             Module libzstd.so.1 without build-id.
                                             Module libgssapi_krb5.so.2 without build-id.
                                             Module libssh2.so.1 without build-id.
                                             Module libidn2.so.0 without build-id.
                                             Module libnghttp2.so.14 without build-id.
                                             Module libtevent.so.0 without build-id.
                                             Module libtalloc.so.2 without build-id.
                                             Module libbsd.so.0 without build-id.
                                             Module libsecrets3-samba4.so without build-id.
                                             Module libgenrand-samba4.so without build-id.
                                             Module libsamba-debug-samba4.so without build-id.
                                             Module libsamba3-util-samba4.so without build-id.
                                             Module libndr-standard.so.0 without build-id.
                                             Module libsamba-hostconfig.so.0 without build-id.
                                             Module libtevent-util.so.0 without build-id.
                                             Module libsamba-credentials.so.1 without build-id.
                                             Module libdcerpc-samba-samba4.so without build-id.
                                             Module libcli-smb-common-samba4.so without build-id.
                                             Module libgse-samba4.so without build-id.
                                             Module libsamba-errors.so.1 without build-id.
                                             Module libreplace-samba4.so without build-id.
                                             Module libsamba-util.so.0 without build-id.
                                             Module libsmbconf.so.0 without build-id.
                                             Module libmsrpc3-samba4.so without build-id.
                                             Module libsamba-security-samba4.so without build-id.
                                             Module liblibcli-lsa3-samba4.so without build-id.
                                             Module liblibsmb-samba4.so without build-id.
                                             Module libndr.so.3 without build-id.
                                             Module libicudata.so.72 without build-id.
                                             Module libdrm.so.2 without build-id.
                                             Module libX11.so.6 without build-id.
                                             Module libvdpau.so.1 without build-id.
                                             Module libva-drm.so.2 without build-id.
                                             Module libfreetype.so.6 without build-id.
                                             Module libfontconfig.so.1 without build-id.
                                             Module libzimg.so.2 without build-id.
                                             Module libass.so.9 without build-id.
                                             Module libpostproc.so.56 without build-id.
                                             Module libswscale.so.6 without build-id.
                                             Module libva.so.2 without build-id.
                                             Module libxvidcore.so.4 without build-id.
                                             Module libx265.so.199 without build-id.
                                             Module libx264.so.163 without build-id.
                                             Module libtheoradec.so.1 without build-id.
                                             Module libtheoraenc.so.1 without build-id.
                                             Module libspeex.so.1 without build-id.
                                             Module libdav1d.so.6 without build-id.
                                             Module liblzma.so.5 without build-id.
                                             Module libvpx.so.8 without build-id.
                                             Module libswresample.so.4 without build-id.
                                             Module libssh.so.4 without build-id.
                                             Module libsrt.so.1.5 without build-id.
                                             Module libgnutls.so.30 without build-id.
                                             Module libz.so.1 without build-id.
                                             Module libgcc_s.so.1 without build-id.
                                             Module libstdc++.so.6 without build-id.
                                             Module libsystemd.so.0 without build-id.
                                             Module libmpdclient.so.2 without build-id.
                                             Module libexpat.so.1 without build-id.
                                             Module libmp3lame.so.0 without build-id.
                                             Module libvorbisenc.so.2 without build-id.
                                             Module libvorbis.so.0 without build-id.
                                             Module libogg.so.0 without build-id.
                                             Module libopus.so.0 without build-id.
                                             Module libmpg123.so.0 without build-id.
                                             Module libmikmod.so.3 without build-id.
                                             Module libmad.so.0 without build-id.
                                             Module libgme.so.0 without build-id.
                                             Module libfaad.so.2 without build-id.
                                             Module libaudiofile.so.1 without build-id.
                                             Module libfluidsynth.so.3 without build-id.
                                             Module libFLAC.so.12 without build-id.
                                             Module libavahi-client.so.3 without build-id.
                                             Module libavahi-common.so.3 without build-id.
                                             Module libshout.so.3 without build-id.
                                             Module libpipewire-0.3.so.0 without build-id.
                                             Module libjack.so.0 without build-id.
                                             Module libpulse.so.0 without build-id.
                                             Module libzzip-0.so.13 without build-id.
                                             Module libbz2.so.1 without build-id.
                                             Module libid3tag.so.0 without build-id.
                                             Module libsamplerate.so.0 without build-id.
                                             Module libasound.so.2 without build-id.
                                             Module libnfs.so.14 without build-id.
                                             Module libmms.so.0 without build-id.
                                             Module libsmbclient.so.0 without build-id.
                                             Module libicuuc.so.72 without build-id.
                                             Module libicui18n.so.72 without build-id.
                                             Module libpcre2-8.so.0 without build-id.
                                             Module libyajl.so.2 without build-id.
                                             Module libavutil.so.57 without build-id.
                                             Module libavfilter.so.8 without build-id.
                                             Module libavcodec.so.59 without build-id.
                                             Module libavformat.so.59 without build-id.
                                             Module libfmt.so.9 without build-id.
                                             Module libdbus-1.so.3 without build-id.
                                             Module mpd without build-id.
                                             Stack trace of thread 2335841:
                                             #0  0x00007fb745aa1adc __pthread_kill_implementation (libc.so.6 + 0x87adc)
                                             #1  0x00007fb745a52cb6 raise (libc.so.6 + 0x38cb6)
                                             #2  0x00007fb745a3c8ba abort (libc.so.6 + 0x228ba)
                                             #3  0x00007fb745a3c7d9 __assert_fail_base.cold (libc.so.6 + 0x227d9)
                                             #4  0x00007fb745a4b9c6 __assert_fail (libc.so.6 + 0x319c6)
                                             #5  0x00000000004fbfb4 _ZN9Directory11CreateChildESt17basic_string_viewIcSt11char_traitsIcEE (mpd + 0xfbfb4)
                                             #6  0x000000000047a5b0 _ZN10UpdateWalk17UpdateArchiveTreeER11ArchiveFileR9DirectoryPKc (mpd + 0x7a5b0)
                                             #7  0x00000000005281f8 _ZN15ZzipArchiveFile5VisitER14ArchiveVisitor (mpd + 0x1281f8)
                                             #8  0x000000000047a84e _ZN10UpdateWalk17UpdateArchiveFileER9DirectorySt17basic_string_viewIcSt11char_traitsIcEERK15StorageFileInfoRK13ArchivePlugin (mpd + 0x7a84e)
                                             #9  0x000000000047a8c1 _ZN10UpdateWalk17UpdateArchiveFileER9DirectorySt17basic_string_viewIcSt11char_traitsIcEES5_RK15StorageFileInfo (mpd + 0x7a8c1)
                                             #10 0x00000000004f423c _ZN10UpdateWalk20UpdateDirectoryChildER9DirectoryRK11ExcludeListPKcRK15StorageFileInfo (mpd + 0xf423c)
                                             #11 0x00000000004f3e98 _ZN10UpdateWalk15UpdateDirectoryER9DirectoryRK11ExcludeListRK15StorageFileInfo (mpd + 0xf3e98)
                                             #12 0x00000000004f4195 _ZN10UpdateWalk20UpdateDirectoryChildER9DirectoryRK11ExcludeListPKcRK15StorageFileInfo (mpd + 0xf4195)
                                             #13 0x00000000004f3e98 _ZN10UpdateWalk15UpdateDirectoryER9DirectoryRK11ExcludeListRK15StorageFileInfo (mpd + 0xf3e98)
                                             #14 0x00000000004f4195 _ZN10UpdateWalk20UpdateDirectoryChildER9DirectoryRK11ExcludeListPKcRK15StorageFileInfo (mpd + 0xf4195)
                                             #15 0x00000000004f3e98 _ZN10UpdateWalk15UpdateDirectoryER9DirectoryRK11ExcludeListRK15StorageFileInfo (mpd + 0xf3e98)
                                             #16 0x00000000004f4195 _ZN10UpdateWalk20UpdateDirectoryChildER9DirectoryRK11ExcludeListPKcRK15StorageFileInfo (mpd + 0xf4195)
                                             #17 0x00000000004f3e98 _ZN10UpdateWalk15UpdateDirectoryER9DirectoryRK11ExcludeListRK15StorageFileInfo (mpd + 0xf3e98)
                                             #18 0x00000000004f4195 _ZN10UpdateWalk20UpdateDirectoryChildER9DirectoryRK11ExcludeListPKcRK15StorageFileInfo (mpd + 0xf4195)
                                             #19 0x00000000004f3e98 _ZN10UpdateWalk15UpdateDirectoryER9DirectoryRK11ExcludeListRK15StorageFileInfo (mpd + 0xf3e98)
                                             #20 0x00000000004f4195 _ZN10UpdateWalk20UpdateDirectoryChildER9DirectoryRK11ExcludeListPKcRK15StorageFileInfo (mpd + 0xf4195)
                                             #21 0x00000000004f3e98 _ZN10UpdateWalk15UpdateDirectoryER9DirectoryRK11ExcludeListRK15StorageFileInfo (mpd + 0xf3e98)
                                             #22 0x00000000004f4af1 _ZN10UpdateWalk4WalkER9DirectoryPKcb (mpd + 0xf4af1)
                                             #23 0x00000000004f1e5d _ZN13UpdateService4TaskEv (mpd + 0xf1e5d)
                                             #24 0x000000000048b4f3 _ZN6Thread10ThreadProcEPv (mpd + 0x8b4f3)
                                             #25 0x00007fb745a9fe24 start_thread (libc.so.6 + 0x85e24)
                                             #26 0x00007fb745b219b0 __clone3 (libc.so.6 + 0x1079b0)

                                             Stack trace of thread 2335835:
                                             #0  0x00007fb745b21dc6 epoll_wait (libc.so.6 + 0x107dc6)
                                             #1  0x000000000048a279 _ZN9EventLoop3RunEv (mpd + 0x8a279)
                                             #2  0x00000000004361d4 _ZL14MainConfiguredRK18CommandLineOptionsRK10ConfigData (mpd + 0x361d4)
                                             #3  0x00000000004366e6 _ZL11MainOrThrowiPPc (mpd + 0x366e6)
                                             #4  0x000000000043490a main (mpd + 0x3490a)
                                             #5  0x00007fb745a3dace __libc_start_call_main (libc.so.6 + 0x23ace)
                                             #6  0x00007fb745a3db89 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x23b89)
                                             #7  0x0000000000434c95 _start (mpd + 0x34c95)

                                             Stack trace of thread 2335839:
                                             #0  0x00007fb745b21dc6 epoll_wait (libc.so.6 + 0x107dc6)
                                             #1  0x000000000048a279 _ZN9EventLoop3RunEv (mpd + 0x8a279)
                                             #2  0x000000000048b4f3 _ZN6Thread10ThreadProcEPv (mpd + 0x8b4f3)
                                             #3  0x00007fb745a9fe24 start_thread (libc.so.6 + 0x85e24)
                                             #4  0x00007fb745b219b0 __clone3 (libc.so.6 + 0x1079b0)

                                             Stack trace of thread 2335840:
                                             #0  0x00007fb745b21dc6 epoll_wait (libc.so.6 + 0x107dc6)
                                             #1  0x000000000048a279 _ZN9EventLoop3RunEv (mpd + 0x8a279)
                                             #2  0x000000000048b4f3 _ZN6Thread10ThreadProcEPv (mpd + 0x8b4f3)
                                             #3  0x00007fb745a9fe24 start_thread (libc.so.6 + 0x85e24)
                                             #4  0x00007fb745b219b0 __clone3 (libc.so.6 + 0x1079b0)

                                             Stack trace of thread 2344955:
                                             #0  0x0000000000000000 n/a (n/a + 0x0)
                                             #1  0x7100007fb7000000 n/a (n/a + 0x0)
                                             ELF object binary architecture: AMD x86-64

abr 29 19:16:01 nixos systemd[75483]: mpd.service: Main process exited, code=dumped, status=6/ABRT abr 29 19:16:01 nixos systemd[75483]: mpd.service: Failed with result 'core-dump'. abr 29 19:16:01 nixos systemd[75483]: mpd.service: Consumed 2.761s CPU time.

MaxKellermann commented 1 year ago

Hm, the code looks like this happens if the ZIP file contains a file whose filename begins with a slash. This is obviously an illegal file name, but certainly MPD must not crash when given an ill-formed file. Fixing this is easy, but I'd be curious to see this ZIP file to check if my theory is correct. Can you send it to me, please?

repomansez commented 1 year ago

Hm, the code looks like this happens if the ZIP file contains a file whose filename begins with a slash. This is obviously an illegal file name, but certainly MPD must not crash when given an ill-formed file. Fixing this is easy, but I'd be curious to see this ZIP file to check if my theory is correct. Can you send it to me, please?

Hello friend, thanks for your reply. I had only one zip file which I can't really send here because it contained piracy, but I removed it from the music directory and the same error kept happening, so I don't think that's the reason.

I should add that I have the same directory (albeit some months out of date) stored locally, and when I point mpd to that, it doesn't crash at all. Only happens when I point it at the nfs mount. I recently moved a laptop backup on a whim into my music drive, maybe it has something other than a zip with illegal characters? I'll remove the entire directory, try again and keep you posted.

MaxKellermann commented 1 year ago

Then I need a full backtrace. What you posted is not a full backtrace. I pointed you to https://www.musicpd.org/help/ which links to https://mpd.readthedocs.io/en/stable/user.html#mpd-crashes

NFS or not (as long as it's managed by the kernel and not libnfs in userspace) must not make a difference. This could be a bug in libzzip returning bad data, but I can only speculate as long as I don't have a full backtrace.

repomansez commented 1 year ago

I removed the directory and yeah, that has apparently done it, I can now scan my entire music_directory with no crashes whatsoever. I feel stupid to be honest, but I do wonder what file could it be that was occasioning that. I did have some windows games, so it would make sense for something to have characters Linux wouldn't like, I guess. I'd send the contents of the directory, but there's a lot of personal data in there.

Even then, MPD shouldn't crash because of a filename, so if there's anything I can do to help pinpoint exactly what caused it, I'll be glad to help.

MaxKellermann commented 1 year ago

If it crashes, it's buggy. Removing a directory doesn't fix the bug, it only makes the symptom invisible.

repomansez commented 1 year ago

If it crashes, it's buggy. Removing a directory doesn't fix the bug, it only makes the symptom invisible.

I ran it with gdb and here's (hopefully) the full backtrace: [Thread debugging using libthread_db enabled] Using host libthread_db library "/nix/store/1nyg1fvhpz8bx3vn3r9f18zhra2rpbx9-glibc-2.37-8/lib/libthread_db.so.1". config_file: loading file /nix/store/kmdmqhnk1x0rihalnidx2fvqzin98wrr-mpd.conf libsamplerate: libsamplerate converter 'Fastest Sinc Interpolator' vorbis: Xiph.Org libVorbis 1.3.7 opus: libopus 1.3.1 hybrid_dsd: The Hybrid DSD decoder is disabled because it was not explicitly enabled simple_db: reading DB input: Input plugin 'qobuz' is not configured: No Qobuz app_id configured curl: version 8.0.1 curl: with OpenSSL/3.0.8 [New Thread 0x7fffed38b6c0 (LWP 458461)] [New Thread 0x7fffecb8a6c0 (LWP 458462)] state_file: Loading state file /home/nigerius/.local/share/mpd/state event: RTIOThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted client: [0] opened from 127.0.0.1:38466 client: [0] process command "status" client: [0] command returned 0 client: [0] process command "plchanges "0"" client: [0] command returned 0 client: [0] process command "outputs" client: [0] command returned 0 client: [0] process command "decoders" client: [0] command returned 0 client: [0] process command "outputs" client: [0] command returned 0 client: [0] process command "list Artist" client: [0] command returned 0 client: [0] process command "find Artist "(´・ω・)"" client: [0] command returned 0 client: [0] process command "find Artist "(´・ω・)" Album "COMPLETE MORON" Date "2019"" client: [0] command returned 0 client: [0] process command "idle" client: [0] command returned 1 client: [0] process command "update "/"" [New Thread 0x7fffe7fff6c0 (LWP 458503)] update: spawned thread for update job id 1 update: starting client: [0] command returned 0 client: [0] process command "idle" client: [0] command returned 1 client: [0] process command "status" client: [0] command returned 0 client: [0] process command "idle" client: [0] command returned 1 update: scanning playlist '/home/nigerius/nfs/data/music/Opeth/Albums/2001 - Blackwater Park (2002, Koch Rec., KOC-CD-8425, 2CD, USA) (Deluxe Edition)/CD2/[Opeth] Blackwater Park (Deluxe Edition CD 2).cue' update: scanning playlist '/home/nigerius/nfs/data/music/Opeth/Albums/2001 - Blackwater Park (2002, Koch Rec., KOC-CD-8425, 2CD, USA) (Deluxe Edition)/CD1/[Opeth] Blackwater Park Blackwater Park (Deluxe Edition CD 1).cue' update: scanning playlist '/home/nigerius/nfs/data/music/Opeth/Albums/2015 - Deliverance & Damnation (Sony, 88875094282, 2CD, EU) (Remastered)/CD2/[Opeth] Damnation (2015 Remix).cue' update: scanning playlist '/home/nigerius/nfs/data/music/Opeth/Albums/2015 - Deliverance & Damnation (Sony, 88875094282, 2CD, EU) (Remastered)/CD1/[Opeth] Deliverance (2015 Remix).cue' update: scanning playlist '/home/nigerius/nfs/data/music/Opeth/Albums/1996 - Morningrise (2008, Avalon, MICP-10808, Japan) (Remastered)/[Opeth] Morningrise (2008, MICP-10808).cue' update: scanning playlist '/home/nigerius/nfs/data/music/Opeth/Albums/1999 - Still Life (2008, Peaceville, CDVILED183X, China) (Remastered)/[Opeth] Still Life [2008, CDVILED183X].cue' update: scanning playlist '/home/nigerius/nfs/data/music/Opeth/Albums/2014 - Pale Communion (Warner Music, WPCR-15732, Japan)/[Opeth] Pale Communion (Japan).cue' update: scanning playlist '/home/nigerius/nfs/data/music/Opeth/Albums/2002 - Deliverance (2006, Metal Mind, Poland, MASS CD DG 0967) (Ltd) (Remastered)/[Opeth] Deliverance (Metal Mind).cue' update: scanning playlist '/home/nigerius/nfs/data/music/Opeth/Albums/2003 - Damnation (2008, Sony BMG, BVCM-35451, Japan)/[Opeth] Damnation (2008, BVCM-35451).cue' update: scanning playlist '/home/nigerius/nfs/data/music/Opeth/Albums/2005 - Ghost Reveries (2006, Scarecrow Records, SC06299-2, Mexica) (Limited Edition)/[Opeth] Ghost Reveries [Limited Edition].cue' update: scanning playlist '/home/nigerius/nfs/data/music/Opeth/Albums/2002 - Deliverance (2008, BMG, BVCM-35450, Japan) (Promo CD)/[Opeth] Deliverance (2008, BVCM-35450).cue' update: scanning playlist '/home/nigerius/nfs/data/music/Opeth/Albums/1995 - Orchid (2008, Avalon, MICP-10807, Japan)/[Opeth] Orchid [2008, MICP-10807].cue' update: scanning playlist '/home/nigerius/nfs/data/music/Opeth/Albums/1998 - My Arms, Your Hearse (2008, Avalon, MICP-10809, Japan)/[Opeth] My Arms, Your Hearse [2008, MICP-10809].cue' update: scanning playlist '/home/nigerius/nfs/data/music/Opeth/Albums/2008 - Watershed (2008, Roadrunner, RRCY-29159~60, Japan)/[Opeth] Watershed (Japan).cue' update: scanning playlist '/home/nigerius/nfs/data/music/Opeth/Albums/2001 - Blackwater Park (2010, Sony Music, Austria, 88697655822, Legacy Edition) (Remastered)/[Opeth] Blackwater Park (Legacy Edition).cue' update: scanning playlist '/home/nigerius/nfs/data/music/Opeth/Albums/1996 - Morningrise (2006, Candlelight Records, XQAN-1002, Japan)/[Opeth] Morningrise [2006, XQAN-1002].cue' update: scanning playlist '/home/nigerius/nfs/data/music/Opeth/Albums/2005 - Ghost Reveries (2012, Roadrunner, WPCR-14553, Japan)/[Opeth] Ghost Reveries (2006, WPCR-14553).cue' update: reading Home/Home - Hold/05 - Hold.flac flac: Failed to read FLAC tags: FLACMETADATA_CHAIN_STATUS_NOT_A_FLAC_FILE flac: Failed to read FLAC tags: FLACMETADATA_CHAIN_STATUS_NOT_A_FLAC_FILE ffmpeg/flac: Format flac detected only with low score of 1, misdetection possible! ffmpeg/flac: Before avformat_find_stream_info() pos: 0 bytes read:0 seeks:0 nb_streams:1 ffmpeg/flac: stream 0: start_time: NOPTS duration: NOPTS ffmpeg/flac: format: start_time: NOPTS duration: NOPTS (estimate from bit rate) bitrate=0 kb/s ffmpeg/flac: Could not find codec parameters for stream 0 (Audio: flac, 0 channels): unspecified sample format Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options ffmpeg/flac: After avformat_find_stream_info() pos: 0 bytes read:0 seeks:0 frames:0 ffmpeg: Unsupported libavcodec SampleFormat value: name depth (?) update: ignoring unrecognized file Home/Home - Hold/05 - Hold.flac update: reading Home/Home - Hold/04 - Fortunes.flac flac: Failed to read FLAC tags: FLACMETADATA_CHAIN_STATUS_NOT_A_FLAC_FILE flac: Failed to read FLAC tags: FLACMETADATA_CHAIN_STATUS_NOT_A_FLAC_FILE ffmpeg/flac: Format flac detected only with low score of 1, misdetection possible! ffmpeg/flac: Before avformat_find_stream_info() pos: 0 bytes read:0 seeks:0 nb_streams:1 ffmpeg/flac: stream 0: start_time: NOPTS duration: NOPTS ffmpeg/flac: format: start_time: NOPTS duration: NOPTS (estimate from bit rate) bitrate=0 kb/s ffmpeg/flac: Could not find codec parameters for stream 0 (Audio: flac, 0 channels): unspecified sample format Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options ffmpeg/flac: After avformat_find_stream_info() pos: 0 bytes read:0 seeks:0 frames:0 ffmpeg: Unsupported libavcodec SampleFormat value: name depth (?) update: ignoring unrecognized file Home/Home - Hold/04 - Fortunes.flac update: scanning playlist '/home/nigerius/nfs/data/music/mp3-ass/Naglfar - Discography (A)/2012 - Teras (Deluxe edition)/Naglfar - 2012 - Teras (Deluxe edition).cue' update: scanning playlist '/home/nigerius/nfs/data/music/Taiguara/Taiguara - Imyra, Tayra, Ipy, Taiguara (1976)/Imyra, Tayra, Ipy, Taiguara.cue' update: reading Candlemass/Candlemass - Death Thy Lover.flac flac: Failed to read FLAC tags: FLACMETADATA_CHAIN_STATUS_NOT_A_FLAC_FILE flac: Failed to read FLAC tags: FLACMETADATA_CHAIN_STATUS_NOT_A_FLAC_FILE ffmpeg/flac: Format flac detected only with low score of 1, misdetection possible! ffmpeg/flac: Before avformat_find_stream_info() pos: 0 bytes read:0 seeks:0 nb_streams:1 ffmpeg/flac: stream 0: start_time: NOPTS duration: NOPTS ffmpeg/flac: format: start_time: NOPTS duration: NOPTS (estimate from bit rate) bitrate=0 kb/s ffmpeg/flac: Could not find codec parameters for stream 0 (Audio: flac, 0 channels): unspecified sample format Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options ffmpeg/flac: After avformat_find_stream_info() pos: 0 bytes read:0 seeks:0 frames:0 ffmpeg: Unsupported libavcodec SampleFormat value: name depth (?) update: ignoring unrecognized file Candlemass/Candlemass - Death Thy Lover.flac update: scanning playlist '/home/nigerius/nfs/data/music/PinkFloyd/1971_Relics-2000_EMI_TOCP-65556_Japan-Remastered-/Pink Floyd - Relics (TOCP-65556).cue' update: scanning playlist '/home/nigerius/nfs/data/music/Arrigo Barnabe 3 альбомов/Arrigo Barnabe1984 Tubaroes Voadores [Brazil avant TG- 1006].ape/cue.cue' update: reading ssshhhiiittt!/Я так ненавижу это/05. ssshhhiiittt! - Хватит.flac flac: Failed to read FLAC tags: FLACMETADATA_CHAIN_STATUS_NOT_A_FLAC_FILE flac: Failed to read FLAC tags: FLACMETADATA_CHAIN_STATUS_NOT_A_FLAC_FILE ffmpeg/flac: Format flac detected only with low score of 1, misdetection possible! ffmpeg/flac: Before avformat_find_stream_info() pos: 0 bytes read:0 seeks:0 nb_streams:1 ffmpeg/flac: stream 0: start_time: NOPTS duration: NOPTS ffmpeg/flac: format: start_time: NOPTS duration: NOPTS (estimate from bit rate) bitrate=0 kb/s ffmpeg/flac: Could not find codec parameters for stream 0 (Audio: flac, 0 channels): unspecified sample format Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options ffmpeg/flac: After avformat_find_stream_info() pos: 0 bytes read:0 seeks:0 frames:0 ffmpeg: Unsupported libavcodec SampleFormat value: name depth (?) update: ignoring unrecognized file ssshhhiiittt!/Я так ненавижу это/05. ssshhhiiittt! - Хватит.flac update: reading ssshhhiiittt!/Я так ненавижу это/07. ssshhhiiittt! - Ничего.flac flac: Failed to read FLAC tags: FLACMETADATA_CHAIN_STATUS_NOT_A_FLAC_FILE flac: Failed to read FLAC tags: FLACMETADATA_CHAIN_STATUS_NOT_A_FLAC_FILE ffmpeg/flac: Format flac detected only with low score of 1, misdetection possible! ffmpeg/flac: Before avformat_find_stream_info() pos: 0 bytes read:0 seeks:0 nb_streams:1 ffmpeg/flac: stream 0: start_time: NOPTS duration: NOPTS ffmpeg/flac: format: start_time: NOPTS duration: NOPTS (estimate from bit rate) bitrate=0 kb/s ffmpeg/flac: Could not find codec parameters for stream 0 (Audio: flac, 0 channels): unspecified sample format Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options ffmpeg/flac: After avformat_find_stream_info() pos: 0 bytes read:0 seeks:0 frames:0 ffmpeg: Unsupported libavcodec SampleFormat value: name depth (?) update: ignoring unrecognized file ssshhhiiittt!/Я так ненавижу это/07. ssshhhiiittt! - Ничего.flac update: reading ssshhhiiittt!/Я так ненавижу это/06. ssshhhiiittt! - Восемь.flac flac: Failed to read FLAC tags: FLACMETADATA_CHAIN_STATUS_NOT_A_FLAC_FILE flac: Failed to read FLAC tags: FLACMETADATA_CHAIN_STATUS_NOT_A_FLAC_FILE ffmpeg/flac: Format flac detected only with low score of 1, misdetection possible! ffmpeg/flac: Before avformat_find_stream_info() pos: 0 bytes read:0 seeks:0 nb_streams:1 ffmpeg/flac: stream 0: start_time: NOPTS duration: NOPTS ffmpeg/flac: format: start_time: NOPTS duration: NOPTS (estimate from bit rate) bitrate=0 kb/s ffmpeg/flac: Could not find codec parameters for stream 0 (Audio: flac, 0 channels): unspecified sample format Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options ffmpeg/flac: After avformat_find_stream_info() pos: 0 bytes read:0 seeks:0 frames:0 ffmpeg: Unsupported libavcodec SampleFormat value: name depth (?) update: ignoring unrecognized file ssshhhiiittt!/Я так ненавижу это/06. ssshhhiiittt! - Восемь.flac update: reading ssshhhiiittt!/Я так ненавижу это/02. ssshhhiiittt! - В баре.flac flac: Failed to read FLAC tags: FLACMETADATA_CHAIN_STATUS_NOT_A_FLAC_FILE flac: Failed to read FLAC tags: FLACMETADATA_CHAIN_STATUS_NOT_A_FLAC_FILE ffmpeg/flac: Format flac detected only with low score of 1, misdetection possible! ffmpeg/flac: Before avformat_find_stream_info() pos: 0 bytes read:0 seeks:0 nb_streams:1 ffmpeg/flac: stream 0: start_time: NOPTS duration: NOPTS ffmpeg/flac: format: start_time: NOPTS duration: NOPTS (estimate from bit rate) bitrate=0 kb/s ffmpeg/flac: Could not find codec parameters for stream 0 (Audio: flac, 0 channels): unspecified sample format Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options ffmpeg/flac: After avformat_find_stream_info() pos: 0 bytes read:0 seeks:0 frames:0 ffmpeg: Unsupported libavcodec SampleFormat value: name depth (?) update: added ssshhhiiittt!/Я так ненавижу это/02. ssshhhiiittt! - В баре.flac update: reading ssshhhiiittt!/Я так ненавижу это/08. ssshhhiiittt! - Мы.flac flac: Failed to read FLAC tags: FLACMETADATA_CHAIN_STATUS_NOT_A_FLAC_FILE flac: Failed to read FLAC tags: FLACMETADATA_CHAIN_STATUS_NOT_A_FLAC_FILE ffmpeg/flac: Format flac detected only with low score of 1, misdetection possible! ffmpeg/flac: Before avformat_find_stream_info() pos: 0 bytes read:0 seeks:0 nb_streams:1 ffmpeg/flac: stream 0: start_time: NOPTS duration: NOPTS ffmpeg/flac: format: start_time: NOPTS duration: NOPTS (estimate from bit rate) bitrate=0 kb/s ffmpeg/flac: Could not find codec parameters for stream 0 (Audio: flac, 0 channels): unspecified sample format Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options ffmpeg/flac: After avformat_find_stream_info() pos: 0 bytes read:0 seeks:0 frames:0 ffmpeg: Unsupported libavcodec SampleFormat value: name depth (?) update: ignoring unrecognized file ssshhhiiittt!/Я так ненавижу это/08. ssshhhiiittt! - Мы.flac update: scanning playlist '/home/nigerius/nfs/data/music/Make A Change... Kill Yourself/2007 - II/file.cue' update: scanning playlist '/home/nigerius/nfs/data/music/Diapsiquir - Discography/Diapsiquir - (2016) [NECRO-012] 180°/180°.cue' update: archive /home/nigerius/nfs/data/music/lapback/.config/Google/AndroidStudio2021.3/tasks/pica.tasks.zip opened update: adding archive file: /empty.file.marker mpd: ../src/db/plugins/simple/Directory.cxx:89: Directory* Directory::CreateChild(std::string_view): Assertion `!name_utf8.empty()' failed.

Thread 4 "update" received signal SIGABRT, Aborted. [Switching to Thread 0x7fffe7fff6c0 (LWP 458503)] 0x00007ffff46a1adc in __pthread_kill_implementation () from /nix/store/1nyg1fvhpz8bx3vn3r9f18zhra2rpbx9-glibc-2.37-8/lib/libc.so.6

I wonder why that .zip file didn't show up when I filtered it.

repomansez commented 1 year ago

Also, sorry for forgetting about it, here is the file