luisbocanegra / plasma-smart-video-wallpaper-reborn

Smart Video Wallpaper for KDE Plasma 6
https://store.kde.org/p/2139746
GNU General Public License v2.0
45 stars 1 forks source link

Black Screen on Reboot #12

Closed RainehDaze closed 2 months ago

RainehDaze commented 2 months ago

Odd, boot-related issue here. On rebooting, both wallpapers (I have two monitors) will be black, but if I change them to some other wallpaper type and then set it back to smart wallpaper, they'll work normally--is there potentially some configuration or startup option missing?

This is after changing to gstreamer as ffmpeg as a backend seemed to be even worse about this, sometimes never starting at all regardless of how things are toggled.

sysinfo.txt

Or is it that some other dependency is oddly missing? Trying to run the test file with qml6 simply returns command not found, and replacing it with plain qml prompts a suggestion to install qt5-qtdeclarative-devel, which seems odd.

luisbocanegra commented 2 months ago

Install qt6-qtdeclarative-devel and run the test.qml as per the instructions using qml-qt6

RainehDaze commented 2 months ago

Hm, that worked aside from the pausing, although after a while it just showed a grey screen. Doesn't look like there's any other issues in the output, though--not that I really expected them, since it's not a crashing problem I'm facing.

qmlout.txt

Maybe I need to log things at boot?

luisbocanegra commented 2 months ago

Sorry, the gray screen is due to the absence of a local video (initially this file was for https://github.com/luisbocanegra/plasma-smart-video-wallpaper-reborn/issues/7) I removed it now.

Maybe I need to log things at boot?

Yes, please reboot and after logging to the black video run journalctl -b > journal.txt let it run for a couple of seconds, terminate it and send the file.

RainehDaze commented 2 months ago

Will do, unfortunately it seems like this isn't happening every time I reboot (just often enough to be annoying). Don't think there's anything super weird in the boot log where it does start, looking at it.

RainehDaze commented 2 months ago

journal.txt

luisbocanegra commented 2 months ago

Unfortunately plasmashell[2649]: qt.multimedia.player: Unable to set the pipeline to the paused state. is not very informative

Please run the test.qml and test testMediaPlayer.qml and try to reproduce the bug with that

e.g:

QSG_INFO=1 QT_LOGGING_RULES="qml.debug=true" qml-qt6 test.qml

RainehDaze commented 2 months ago

testMediaPlayerOut.txt testout.txt

Doesn't reproduce the "won't start" bug. Does reproduce another weird one, though--the playback not unpausing when I click play (I've seen playback freeze entirely unless I set it to 'never pause' and then change the video manually to get it started again). Although, it seems like this is rather sparse for debug output? Unless I'm missing something.

luisbocanegra commented 2 months ago

testMediaPlayerOut.txt testout.txt

Doesn't reproduce the "won't start" bug. Does reproduce another weird one, though--the playback not unpausing when I click play (I've seen playback freeze entirely unless I set it to 'never pause' and then change the video manually to get it started again). Although, it seems like this is rather sparse for debug output? Unless I'm missing something.

You are absolutely right! Please test with:

QSG_INFO=1 QT_LOGGING_RULES="*.debug=true" qml6 /home/luis/projects/plasma-smart-video-wallpaper/playground/000videoTestMediaPlayer.qml

RainehDaze commented 2 months ago

testmediaplayeroutverbose.txt

Interesting observation: pausing and unpausing works for the little chrome dongle clip, but not the other one.

RainehDaze commented 2 months ago

So, I think I solved the black screen issue (if not the "can't start after pausing" issue--want me to open that as a new one or just rename this?), but I'll note again if things didn't work: my wallpaper files were on another drive. When I moved those over to my home partition instead, rebooting and just shutting down and starting normally seems to have things start up perfectly fine.

Although, those other drives are mounted on startup too, so not sure why that would present an issue, but it's all I can really imagine is influencing it.

luisbocanegra commented 2 months ago

testmediaplayeroutverbose.txt

Interesting observation: pausing and unpausing works for the little chrome dongle clip, but not the other one.

Yeah, it seems it didn't like a couple of changes I made, reverted them and now those tests run fine for me.

So, I think I solved the black screen issue (if not the "can't start after pausing" issue--want me to open that as a new one or just rename this?),

Is this "can't start after pausing" present on the wallpaper itself? If so, please open a new issue.

but I'll note again if things didn't work: my wallpaper files were on another drive. When I moved those over to my home partition instead, rebooting and just shutting down and starting normally seems to have things start up perfectly fine.

Although, those other drives are mounted on startup too, so not sure why that would present an issue, but it's all I can really imagine is influencing it.

Strange, did you test rebooting multiple times to verify it was the only reason they didn't load?

RainehDaze commented 2 months ago

Strange, did you test rebooting multiple times to verify it was the only reason they didn't load?

Yup, rebooted about half a dozen times now. No issues starting the initial video playback.

luisbocanegra commented 2 months ago

Strange, did you test rebooting multiple times to verify it was the only reason they didn't load?

Yup, rebooted about half a dozen times now. No issues starting the initial video playback.

Thanks, I have a secondary drive with a ntfs partition that is also mounted on boot, tried loading a couple of videos from there and after rebooting two times in a row they loaded fine, will keep it that way to see if it happens at some point.

RainehDaze commented 2 months ago

Strange, did you test rebooting multiple times to verify it was the only reason they didn't load? Yup, rebooted about half a dozen times now. No issues starting the initial video playback.

Thanks, I have a secondary drive with a ntfs partition that is also mounted on boot, tried loading a couple of videos from there and after rebooting two times in a row they loaded fine, will keep it that way to see if it happens at some point.

Might also be a drive speed issue? Not sure there--it shouldn't be, the other drive was still an SSD, it shouldn't matter my boot drive is NVME.

luisbocanegra commented 2 months ago

Mine is HDD and boot one is NVME, maybe is some sort of bug with reading from other disks?

Or there is a problem with playback which could be instead caused by certain GPUs or combination of them as I use mostly Intel Graphics (Nvidia card disabled) and never had playback issues in my testing.

RainehDaze commented 2 months ago

Think it might be an X/Wayland session thing? Since running Wayland on Nvidia is still dicey if you don't like flicker.

luisbocanegra commented 2 months ago

Think it might be an X/Wayland session thing? Since running Wayland on Nvidia is still dicey if you don't like flicker.

Maybe, I only tried wayland and ffmpeg backend and it worked (GTX 1650, laptop). Yeah the flickers are the reason I still can't use it (or the lag when iGPU is the primary renderer)

RainehDaze commented 2 months ago

Yeah, I've been using the X Session until explicit sync is available, I'll keep an eye on stuff like that. Good few months for me to gather data on other random stuff, at least. :)