Mpv: Media Keys Crash on MacOS Mojave

Created on 25 Sep 2018  ·  2Comments  ·  Source: mpv-player/mpv

mpv 0.29.0-30-g6eb59fe (latest master) on MacOS Mojave 10.14.

Reproduction steps

./build/mpv a

Expected behavior

[file] Cannot open file 'a' ...

Actual behavior

Assertion failed: (self->_mk_tap_port != nil), function -[EventsResponder startMediaKeys]_block_invoke, file ../osdep/macosx_events.m, line 413.

Log file

http://0x0.st/s3VS.txt

Workaround

Disable startMediaKeys in macosx_events.m, but that's not viable long term.

Latest MacOS requires accessibility permissions to access the media keys like this.

Most helpful comment

in case someone upgrades to Mojave on day one, and does not want to build mpv by himself

Here is a temporary solution
add
input-media-keys=no
to your mpv.conf file

It will at least make the mpv works, without media key support.

also look forward a long term solution

All 2 comments

in case someone upgrades to Mojave on day one, and does not want to build mpv by himself

Here is a temporary solution
add
input-media-keys=no
to your mpv.conf file

It will at least make the mpv works, without media key support.

also look forward a long term solution

duplicate of #5908, fixed with #5953, another workaround https://github.com/mpv-player/mpv/issues/5908#issuecomment-424215013.

Was this page helpful?
0 / 5 - 0 ratings