mpv icon indicating copy to clipboard operation
mpv copied to clipboard

wayland session crashes after video playback finishes

Open danilanosikov opened this issue 6 months ago • 3 comments

mpv Information

mpv v0.40.0 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
 built on May 24 2025 21:30:08
libplacebo version: v7.351.0
FFmpeg version: 6.1.2
FFmpeg library versions:
   libavcodec      60.31.102
   libavdevice     60.30.100
   libavfilter     9.12.100
   libavformat     60.16.100
   libavutil       58.29.100
   libswresample   4.12.100
   libswscale      7.5.100

Important Information

- Platform version: FreeBSD 15.0-CURRENT main-n277782-1fee99800a79 GENERIC amd64
- GPU model, driver and version: drm-61-kmod, i915kms, built from the lates ports branch
- Source of mpv: pkg manager
- Latest known working version: unknown
- Issue started after the following happened: launched mpv and session crashed upon ending the video

Reproduction Steps

install freebsd build drm-61-kmod and gpu-firmware-kmod package from the ports tree load i915kms driver build dwl window manager and start it install mpv with pkg and run it

Expected Behavior

  1. window opens
  2. video plays
  3. window closes

Actual Behavior

  1. window opens
  2. video plays
  3. wayland session crashes
  4. (from dwl logs) dwl session notifies of broken pipe, seems like mpv, when it needs to close the window locks the socket and dwl seeing it inaccessible, in return crashes

Log File

dwl.log mpv.log

Sample Files

video_2025-06-10_02-09-39.zip

I carefully read all instruction and confirm that I did the following:

  • [x] I tested with the latest mpv version to validate that the issue is not already fixed.
  • [x] I provided all required information including system and mpv version.
  • [x] I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of --log-file=output.txt.
  • [x] I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
  • [x] I attached the full, untruncated log file.
  • [x] I attached the backtrace in the case of a crash.

danilanosikov avatar Jun 09 '25 23:06 danilanosikov

mpv doesn't do anything special during uninit, and I can't reproduce this issue on Linux. are you sure the problem isn't Freebsd here?

llyyr avatar Jun 10 '25 00:06 llyyr

For what it's worth, I also can't reproduce with FreeBSD 14.3-RC1 and ancient Ivy Bridge hardware. My drm-kmod is at d3ca1b596643f3356bea57b1635df298fbec7979 and doesn't require any firmware. mpv v0.40.0-133-g47bc7b2a0

dancingmirrors avatar Jun 12 '25 00:06 dancingmirrors

Just tested it on gentoo and it looks like it does work on linux, could it be the port issut then?

danilanosikov avatar Jun 12 '25 21:06 danilanosikov

Did you try other Wayland compositors besides dwl?

jbeich avatar Jun 20 '25 20:06 jbeich