mpv icon indicating copy to clipboard operation
mpv copied to clipboard

wayland: crash when resizing the window

Open giucam opened this issue 13 years ago • 9 comments

Mpv crashes when resizing the window using --vo=opengl:backend=wayland. Using just --vo=wayland does not lead to a crash. You can resize it in weston by holding the meta key and pressing and dragging the middle mouse button.

giucam avatar Oct 10 '13 15:10 giucam

You can resize it in weston by holding the meta key and pressing and dragging the middle mouse button.

That's how I resize the window too. Is this only in newer versions of weston, or with every version?

giselher avatar Oct 10 '13 15:10 giselher

I always experienced it, since i installed mpv for the first time. I'm not sure when it was but it surely was before weston 1.2 came out. Maybe it's related to the driver? I'm on radeonsi, radeon 7770.

Btw, i forgot to paste the relevant output:

[vo/opengl/wayland] error occurred on the display fd: closing file descriptor [input] Select error: Bad file descriptor
[input] Select error: Bad file descriptor

giucam avatar Oct 10 '13 15:10 giucam

I have a PC with an radeonsi card too and I will try to test it on it, but It could take some days. I very busy at the moment.

giselher avatar Oct 10 '13 15:10 giselher

I am starting to have more free time now, but It could still take some time to setup my PC with the radeonsi card. Could you please do some more testing, maybe it happens with other programs too. Because from the looks of your output it seems that an error occurs on the pipe or the pipe is closed.

giselher avatar Oct 20 '13 07:10 giselher

I have an ati radeon card and it does not crash with the provided options. But it does leave a trail when resizing (black frame, some times with some gibberish)

[AMD/ATI] RV710/M92 [Mobility Radeon HD 4530/4570/545v]

ricardomv avatar Dec 18 '13 22:12 ricardomv

I can't reproduce it anymore with mpv ff85afa, but I also see the garbage. It looks like it is garbage due to a buffer with parts not drawn.

giucam avatar Dec 18 '13 22:12 giucam

I noticed it too, but at the same time I have even greater problems. It seems to lock my computer if it runs too long. I will look into it, but i also suspect that there are still problems in the driver.

giselher avatar Dec 21 '13 07:12 giselher

After a long time of doing absolutely nothing productive I finally got around investigating why it displays garbage.

Garbage is displayed when using:

  • --vo=opengl on westons latest release
  • --vo=opengl and --vo=wayland on westons latest git sources.

It looks like the backgound is not cleared properly when going fullscreen. The OpenGL code and SHM should actually work as intended and I have currently no idea why this is happening. I will try to find a solution.

giselher avatar Jan 01 '14 22:01 giselher

Fixed in 52fa38079db796dd87e40ee6890b5d1005139a08

giselher avatar Jan 02 '14 19:01 giselher