luisbocanegra / plasma-smart-video-wallpaper-reborn

Plasma 6 wallpaper plugin to play videos on your Desktop/Lock Screen.
https://store.kde.org/p/2139746
GNU General Public License v2.0
70 stars 1 forks source link

KDE crash #7

Open BlackBaroness opened 6 months ago

BlackBaroness commented 6 months ago

I can't enable the video itself because my shell will freeze and crash with a black screen completely. I deleted my video file to be able to boot again. In this logs, I switched to plain color and back (but with no video selected). I use gstreamer.

journalctl: https://pastes.dev/t4bVZsvxOK dmesg (was too long): https://pastes.dev/MrQzajhEz5

System info:

Operating System: openSUSE Tumbleweed 20240321
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.8.1-1-default (64-bit)
Graphics Platform: X11
Processors: 8 × AMD Ryzen 5 2400G with Radeon Vega Graphics
Memory: 29.3 GiB of RAM
Graphics Processor: AMD Radeon Vega 11 Graphics
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B450M H

My video file: https://www.upload.ee/files/16434350/train-station-rainy-day-moewalls-com.mp4.html

BlackBaroness commented 6 months ago

Huh, I managed to collect all logs and a lot of crashes by saving command output to a file and running plasmashell from terminal. I was able to reproduce this issue with the video file I provided. After removing the video file, KDE started normally.

journalctl: https://pastes.dev/hAfcFDHHo8 dmesg: https://pastes.dev/A8lJ0VD0wY

BlackBaroness commented 6 months ago

I disabled gstreamer and it works, but still crashes sometimes + I see strange green-screen glitches periodically (maybe when video ends)

luisbocanegra commented 6 months ago

Hi. Does this happen for any video or just the one you linked? Did you try installing the media codecs? Or reinstalling them, that helped someone who had black video.

I disabled gstreamer and it works, but still crashes sometimes + I see strange green-screen glitches periodically (maybe when video ends)

Can you try https://github.com/catsout/wallpaper-engine-kde-plugin/tree/qt6 with a video wallpaper to see if it is able to play correctly with it?

It seems Qt Multimedia has lots of issues with AMD GPUs https://github.com/luisbocanegra/plasma-smart-video-wallpaper-reborn/issues/1

Unfortunately I can't make much off the crash log, I think this should be reported upstream, but not sure who it should be reported to (plasma/qt/gstreamer/amd).

I think we need a small example that can reproduce the bug, I'll make a test qml file to see if you're able to play the video outside plasmashell

luisbocanegra commented 6 months ago

I uploaded a test file here https://gist.github.com/luisbocanegra/cb758ee5f57a9e7c2838b1db349b635a

Download it, run with QSG_INFO=1 QT_LOGGING_RULES="qml.debug=true" qml6 test.qml it will play short videos from the internet in fullscreen. In the line 15 replace the file path with yours (keeping file://). If it doesn't crash try clicking the pause/next buttons a bunch of times.

Whether it crashes or not, please share the output of that command.

BlackBaroness commented 6 months ago

Sorry, I just don't have enough time for it now. I will try to make tests you requested soon