mpv icon indicating copy to clipboard operation
mpv copied to clipboard

mpv sometimes exits with (End of file) when paused

Open OlegAckbar opened this issue 1 year ago • 11 comments

Important Information

Sometimes when I pause playback while watching movies mpv exits. I had this problem on my PC and laptop both running Kubuntu 23.04 and Flatpak version of mpv.

Provide following Information:

  • mpv 0.35.
  • Kubuntu 23.04
  • Flatpak
  • KWin Wayland
  • Mesa 23.1.4 - kisak-mesa PP

Reproduction steps

  1. Open movie with mpv
  2. Try to pause it after some time
  3. Eventually it will close itself instead of pausing playback

Expected behavior

mpv should just pause playback

Actual behavior

it exits

Log file

Last messages from mpv ran with -v -v: log

OlegAckbar avatar Jul 22 '23 11:07 OlegAckbar

We need the full log for debugging. Check whether it reproduces with --no-config too.

sfan5 avatar Jul 22 '23 13:07 sfan5

I have the same problem, here are a few logs mpv.log mpv_1.log

The problem occurs randomly and I'm trying to identify which entry in mpv.conf is causing the problem

LockRim avatar Jul 26 '23 07:07 LockRim

another logs mpv_5.log mpv_6.log mpv_7.log

LockRim avatar Aug 01 '23 14:08 LockRim

mpv_8.log

LockRim avatar Aug 05 '23 09:08 LockRim

In all of your logs someone/something is simply telling mpv to exit:

[1146.832][d][cplayer] Run command: stop, flags=64, args=[flags=""]

You should investigate your scripts and if with --no-config it doesn't reproduce that means it's not an mpv bug.

sfan5 avatar Aug 05 '23 11:08 sfan5

After downgrading the sof-firmware , the problem was resolved.

LockRim avatar Aug 10 '23 13:08 LockRim

I have the same problem, and I also have [cplayer] Run command: stop, flags=64, args=[flags=""] in my log. I tried --no-config and it seems mpv no longer unexpectly exit. But I have disabled all the scripts and all I have was a input.conf. How can I find out what sends the stop command?

(I also do not have sof-firmware installed)

cjc7373 avatar Dec 08 '23 14:12 cjc7373

I have the same problem, and I also have [cplayer] Run command: stop, flags=64, args=[flags=""] in my log. I tried --no-config and it seems mpv no longer unexpectly exit. But I have disabled all the scripts and all I have was a input.conf. How can I find out what sends the stop command?

(I also do not have sof-firmware installed)

I suspect this situation is related to mpv-mpris . You can try to uninstall it.

LockRim avatar Dec 09 '23 08:12 LockRim

I do have mpv-mpris installed. And this may explain why --no-config solves the problem (I only checked user script before and missed scripts installed by system package manager). I'll investigate into that.

cjc7373 avatar Dec 09 '23 13:12 cjc7373

I have inserted some logs in mpv-mpris and found the problem. It turns out that kdeconnect will randomly invoke the Stop method of the mpris interface, and in turn sending the stop command to mpv. I also found a bug report of kdeconnect of a similar problem, but sadly there is no reply yet.

cjc7373 avatar Dec 10 '23 07:12 cjc7373

I've been bothered by the same mpv-killed-when-paused-problem, and having a similar kdeconnect/mpv-mpris/mpv-setup as you guys. But I think I may have now found the real culprit behind the issue. I had also playerctl installed, and after removing it the problem disappeared. It's been a week now, and no uncalled-for mpv closures since. Before, it happened every time I left mpv or any mpv frontend paused for some 10-20 minutes.

cyberpunkrocker-zero avatar Feb 05 '24 09:02 cyberpunkrocker-zero