wayland session crashes after video playback finishes
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
- window opens
- video plays
- window closes
Actual Behavior
- window opens
- video plays
- wayland session crashes
- (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
Sample Files
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.
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?
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
Just tested it on gentoo and it looks like it does work on linux, could it be the port issut then?
Did you try other Wayland compositors besides dwl?