MPV does not start (Command was killed with SIGABRT (Aborted))

I’ve upgraded KM from 8.0.65 to 9.0.2 and now when I start the App the mini player, where the music video will be played, does not show up. In fact in the Logs I see some problems with MPV:

{
  "command": "/Applications/Karaoke Mugen.app/Contents/app/bin/mpv.app/Contents/MacOS/mpv --audio-device=help",
  "cwd": "/",
  "durationMs": 3394.54015,
  "escapedCommand": "'/Applications/Karaoke Mugen.app/Contents/app/bin/mpv.app/Contents/MacOS/mpv' '--audio-device=help'",
  "failed": true,
  "ipcOutput": [],
  "isCanceled": false,
  "isForcefullyTerminated": false,
  "isGracefullyCanceled": false,
  "isMaxBuffer": false,
  "isTerminated": true,
  "pipedFrom": [],
  "shortMessage": "Command was killed with SIGABRT (Aborted): '/Applications/Karaoke Mugen.app/Contents/app/bin/mpv.app/Contents/MacOS/mpv' '--audio-device=help'",
  "signal": "SIGABRT",
  "signalDescription": "Aborted",
  "stderr": "dyld[2016]: Symbol not found: (_$s10Foundation21NSKeyValueObservationCMn)\n  Referenced from: '/Applications/Karaoke Mugen.app/Contents/app/bin/mpv.app/Contents/MacOS/mpv'\n  Expected in: '/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation'",
  "stdio": [
    null,
    "",
    "dyld[2016]: Symbol not found: (_$s10Foundation21NSKeyValueObservationCMn)\n  Referenced from: '/Applications/Karaoke Mugen.app/Contents/app/bin/mpv.app/Contents/MacOS/mpv'\n  Expected in: '/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation'"
  ],
  "stdout": "",
  "timedOut": false
}

When I then run

cd /Applications/Karaoke Mugen.app/Contents/app/bin/mpv.app/Contents/MacOS/
file mpv
./mpv --version

I get

mpv: Mach-O 64-bit executable x86_64

and

dyld[2409]: Symbol not found: (_$s10Foundation21NSKeyValueObservationCMn)
  Referenced from: '/Applications/Karaoke Mugen.app/Contents/app/bin/mpv.app/Contents/MacOS/mpv'
  Expected in: '/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation'
zsh: abort      ./mpv --version

Maybe the provided mpv is not correctly compiled because the dynamic linking does not work?

I’m using an intel MacOS Montery 12.7.6.

Thanks!

Sorry for not replying earlier.
I don’t think we changed mpv versions between those two versions of the app, I’d need to check. We don’t compile mpv but we do get it from the various builds on their site. We had an issue with the ffmpeg they provided.

Sadly as we don’t have a mac with this specific version (and an intel one too) I don’t know how we’re going to be able to test and fix this.

You can modify KM’s config to point to your own mpv, but there might be issues, you’ll have to check if your mpv displays QR codes properly during video playback for example.

Thanks for your answer. The problem seems to be that newer versions of mpv require macOS 13+. The last version of mpv that works for macOS 12.7.6 is 0.37.

I’ve installed it with

cd ~/Downloads
curl -O https://laboratory.stolendata.net/~djinn/mpv_osx/mpv-0.37.0.tar.gz
tar -xzf mpv-0.37.0.tar.gz
mv mpv.app /Applications/
/Applications/mpv.app/Contents/MacOS/mpv --version

And then updated the config.yml with

System:
  Binaries:
    Player: 
      OSX: /Applications/mpv.app/Contents/MacOS/mpv
  Repositories:
    - Name: kara.moe
      Online: true
      Secure: true  
      Update: true
      Enabled: true 
      SendStats: true
# ...