[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1034867: smplayer: crash when playing video files using mplayer under Wayland



Package: smplayer
Version: 22.7.0~ds0-1
Severity: important
Tags: upstream
Control: forwarded -1 https://github.com/smplayer-dev/smplayer/issues/668

Dear Maintainer,

There appears to be a problematic interaction between smplayer and mplayer
when running in a Wayland based environment:

When attempting to play a video, smplayer will launch mplayer with a 'wid'
(window identifier) argument so that mplayer can attach to the smplayer window.
The 'nokeepaspect' argument is also set, allowing the user to arbitrarily
resize the window (without constraining the resize to the aspect ratio of the
video).

Under Wayland, finding/attaching to the window appears to fail when mplayer is
launched in this manner, evident by warning messages in the program's output:

  X11 error: BadWindow (invalid Window parameter)


This is reproducible if launching mplayer standalone to play the video file
with the 'wid' argument specified manually.  Audio will play, but video does
not appear.

What is worse, however, is that when the 'nokeepaspect' parameter is added, as
is the case with smplayer, then mplayer itself crashes with a floating-point
math exception.  This appears to occur here: https://sources.debian.org/src/mplayer/2%3A1.5%2Bsvn38408-1/libvo/vo_xv.c/#L365-L367

I've reported the issue upstream to smplayer, and intend to file a bugreport
with mplayer to see whether there is a way that the floating point exception
could be avoided.

Thanks,
James


Reply to: