smplayer-dev / smplayer

Free Media Player for Windows, Linux and Mac OS with YouTube support.
https://smplayer.info
GNU General Public License v2.0
652 stars 92 forks source link

Native wayland bug #721

Open lgdsgd2000 opened 1 year ago

lgdsgd2000 commented 1 year ago

Describe the bug Sorry for reporting an issue here.I use smplayer with kde wayland on archlinux.I install smplayer from archlinux's official extra repository.The smplayer will crash under the native wayland(work with mpv,i didn't install mplayer),but with QT_QPA_PLATFORM=xcb to run under xwayland,it works fine.I find the smplayer from archlinux's official extra repository is built with qt5 but https://www.smplayer.info/downloads is built with qt6,so I am confused where to report the bug and should contact arch's packager?

To Reproduce Steps to reproduce the behavior: Open smplayer with native wayland and play a video,but smplayer display a black screen(there is sound).Then I try to close the window and the smplayer crash

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Your Enviroment

Logs Reproduce the bug in your computer and attach the smplayer log (menu View) here.

Additional context Add any other context about the problem here.

lgdsgd2000 commented 1 year ago

I made a mistake,https://www.smplayer.info/downloads is still built with qt5.Then I try the flatpak version but have the same error that the smplayer under native wayland will display a black screen(but there is sound) and will crash.Under xwayland works fine.This is a kde wayland bug or smplayer?

C0rn3j commented 1 year ago

Duplicate of https://github.com/smplayer-dev/smplayer/issues/6 / https://github.com/smplayer-dev/smplayer/issues/668

You can create this workaround file meanwhile until the next version release, which has the env var by default.

/usr/local/bin/smplayer
---
#!/bin/bash

QT_QPA_PLATFORM=xcb /usr/bin/smplayer "$@"
dev-rfc commented 4 months ago

One oner later, this issue is still present. Flatpak version works fine however.