[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 Zamundaaa changed: What|Removed |Added Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas |ma/kwin/commit/f8d9b3bc6cc8 |ma/kwin/commit/9679beace6dd |ee5ee57ce78d2d1368b77ce90f5 |44c2910988f2139f357eb657d84 |c |e --- Comment #29 from Zamundaaa --- Git commit 9679beace6dd44c2910988f2139f357eb657d84e by Xaver Hugl. Committed on 01/02/2021 at 11:35. Pushed by zamundaaa into branch 'Plasma/5.21'. Actually use a linear buffer format for multi-GPU (cherry picked from commit f8d9b3bc6cc8ee5ee57ce78d2d1368b77ce90f5c) M +12 -20 plugins/platforms/drm/egl_gbm_backend.cpp M +0-2plugins/platforms/drm/egl_gbm_backend.h https://invent.kde.org/plasma/kwin/commit/9679beace6dd44c2910988f2139f357eb657d84e -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 Zamundaaa changed: What|Removed |Added Latest Commit||https://invent.kde.org/plas ||ma/kwin/commit/f8d9b3bc6cc8 ||ee5ee57ce78d2d1368b77ce90f5 ||c Resolution|--- |FIXED Status|ASSIGNED|RESOLVED --- Comment #28 from Zamundaaa --- Git commit f8d9b3bc6cc8ee5ee57ce78d2d1368b77ce90f5c by Xaver Hugl. Committed on 01/02/2021 at 11:28. Pushed by zamundaaa into branch 'master'. Actually use a linear buffer format for multi-GPU M +12 -20 plugins/platforms/drm/egl_gbm_backend.cpp M +0-2plugins/platforms/drm/egl_gbm_backend.h https://invent.kde.org/plasma/kwin/commit/f8d9b3bc6cc8ee5ee57ce78d2d1368b77ce90f5c -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #27 from Zamundaaa --- If you have more questions not directly related to this bug you can use the direct message function on Reddit. Thanks again for testing :) -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #26 from Zamundaaa --- I honestly skipped installation of dependencies and just built things with kdesrc-build and installed non-KDE dependencies as needed. No idea if that could lead to problems but worked fine for the last year or so. If you have some sort of beta repository installed then I guess that could make problems with installing kross. I don't think it should matter though, you can just build it as well with kdesrc-build ¯\_(ツ)_/¯ -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #25 from Tito --- Thanks so mutch for the help! I've been trying to install and compile everything from source with kdesrc-build, but i ran in a lot of dependencies even after following this guide https://community.kde.org/Guidelines_and_HOWTOs/Build_from_source/Install_the_dependencies and installing the suggested packages. I ran in this package kross that wouldnt install, and now im stuck on this step. am i doing something wrong? seems that its not a problem of dependency... -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 Nate Graham changed: What|Removed |Added CC||n...@kde.org -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #24 from Zamundaaa --- Thank you so much for your patience and testing! The patches are up and should get merged soon. For the problem with the desktop not starting (or crashing) you should make a bug report for plasmashell, although it's probably been fixed already and just not in the beta yet. If you're too impatient to wait for the release of 5.21 and the beta doesn't get updated with fixes then I would recommend you to compile a complete session with kdesrc-build. While it can take quite a while for the first run, everything currently works fine on master. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #23 from Tito --- Now it works! as far as i can test tho, as i still cat get to the desktop. but on the igpu side everything is fine, rendering correctly, no tearing, no glitches! -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #22 from Zamundaaa --- Sorry about that, I forgot to remove that line. Instead of downloading it again you can just remove it yourself. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #21 from Tito --- it gives me some compilation errors and it stops. i did the same thing for the previous patches, might it be a but in the code? kwin/build/plugins/platforms/drm/KWinWaylandDrmBackend_autogen/EWIEGA46WW/../../../../../../plugins/platforms/drm/egl_gbm_backend.h:49:10: error: ‘void KWin::EglGbmBackend::cleanupDmabufForSecondaryGpuOutput(KWin::AbstractOutput*)’ marked ‘override’, but does not override 49 | void cleanupDmabufForSecondaryGpuOutput(AbstractOutput *output) override; this seems to be present a few times while compiling, might it be the couse? -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #20 from Zamundaaa --- I believe those glitches are caused by missing VSync, which should be fixed by https://invent.kde.org/plasma/kwin/-/merge_requests/642. If you could test that as well that would be very nice. I put both of these patches together in the branch possible-mgpu-fix-3 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #19 from Tito --- Great progress! Now it kinda works, i still have problems with plasma, as i cant really get to the desktop, but thanks to the drop-down terminal i can run something like chromium and move it in to every monitor to see if it works or not: https://imgur.com/a/kpFr1uU link shows the glitches on the screens connected to the Igpu, also the logout plasma crash is back. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #18 from Bug Janitor Service --- A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/649 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #17 from Zamundaaa --- Hmm so I did find some more information on the function I was using and one's not supposed to use it directly, it'll only cause problems. I'm rather confident to have found the actual source of the problem with the original code now though! A fix in the same branch, so just re-download possible-mgpu-fix-2. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #16 from Zamundaaa --- The CPU usage is definitely from the beta - I had such things happen with my git master installation a while ago. You just need to reboot and it will go away, at least until you log in and out again. About the black screen: the log suggests that the driver doesn't accept the buffers for displaying. Are you sure that it worked correctly on the first try? Then I probably just have a bug in the patch somewhere. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #15 from Tito --- I might add that i got the same behavior with the cpu usage, and the top cpu intensive programs are this. as i never got anything like this, might this be another bug with the beta or the patch? https://imgur.com/R62OXCc These are my top cpu intensive programs after logging out of plasma -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #14 from Tito --- Attached the log file to the thread. This time the behavior war different, the two screens black from no signal, no deskop, but yukuake was working and applications opened from the console too (chromium). i dont thin this matters at this point, tho it might be worth mentioning. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #13 from Tito --- Created attachment 135313 --> https://bugs.kde.org/attachment.cgi?id=135313=edit Wayland session log file -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #12 from Zamundaaa --- Well, that's good news then! I'll have to ask if the function I used has any caveats (there is effectively 0 documentation about it) but hopefully we can get this in for the release of 5.21 then :) I believe some of those problems may have been because of other problems in your installation / in the beta (as you stated you also had problems without any patches). Could you give me ~/.local/share/sddm/wayland-session.log again (after a reboot), so I can make sure? -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #11 from Tito --- This patch seems to behave a bit better: First try the two screens connected to the igpu didnt have any graphical issues, although i didnt managed to go all the way to the desktop as it stalled to a black screen with the cursor, this time the ctrl+alt+canc menu behaved correctly logging me out without any problems. at a second try the two screens connected to the igpu were black (the screen was off) as they didnt recived any signal and went to power saving mode. the rest behaved as stated before. on this last try i also got a weird behavior as i heard the cpu fan spin up while logging out of kde, when i went back to check the cpu usage was at 100, any graphical resource monitor couldnt tell me which program was cousing this, except for htop wich showed some programs at around 260% cpu usage, killing the process fixed this. sadly i didnt noted the names of those as i thought they werent the cause of the issue. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #10 from Zamundaaa --- Okay, that's not good but I kinda expected it. No need to try the other method, the result won't be any different. I have one more easy thing to try that might work. For testing that use git clone https://invent.kde.org/zamundaaa/kwin.git -b possible-mgpu-fix-2 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #9 from Tito --- i followed the second method, and the result was pretty similar. the screens connected to the intel igpu behaved like shown before, tho after the loading of the logo finished, the desktop remained black, and any attempt at restarting/logging out trough the ctrl+alt+canc menu lead to weird and inconsistent behavior like poweroff or restart. should i try the first method? -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #8 from Zamundaaa --- That reference is for KDE4, I'm not surprised that it doesn't work. You should probably remove env file, it could potentially cause problems. For compiling KWin you can either use kdesrc-build (https://community.kde.org/Get_Involved/development#Set_up_kdesrc-build + add a section in .kdesrc-buildrc to switch to my branch) to compile a whole session to log into (overkill but safe) or install it like this: git clone https://invent.kde.org/zamundaaa/kwin.git -b possible-multi-gpu-fix mkdir build && cd build cmake .. sudo make install -j8 And then after testing reinstall the kwin package to replace the files with stable kwin (or wait for it to update). -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #7 from Tito --- As of right now it just crashed to the login manager a few seconds after i try to login. although i dont really know if i did the stuff right, heres it what i did: applied the pach using the file provided. compiled and installed it following this as refernece: https://community.kde.org/KWin/Building installed a fresh copy of both plasma-meta and kde-applications-meta just to exclude any other possibilities of errors tried both with and without the edit to the env file as suggested in the previous link thanks for the help! -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #6 from Zamundaaa --- It's possible that this patch could affect your setup: https://invent.kde.org/plasma/kwin/-/merge_requests/642 It most likely won't solve your problem but if you can test if it changes anything that would be nice. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #5 from Zamundaaa --- Okay, that looks all good, and reinforces my suspicions about the linear format. I'll see what I can do -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #4 from Tito --- All good. Here is the new file: https://pastebin.com/fDGGTMyS -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #3 from Zamundaaa --- It looks like the environment variable is missing; I probably got it wrong, sorry about that. Try with "QT_LOGGING_RULES=kwin_*.debug=true" instead, that will enable all debugging -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 --- Comment #2 from Tito --- Here is attached the log file. https://pastebin.com/EZC1mMhs i needet to use pastebin because the Add an attachment function gives me a permession error. (ERR_ACCESS_DENIED) -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 431968] Plasma 5.21 wayland crashes and has render issues
https://bugs.kde.org/show_bug.cgi?id=431968 Zamundaaa changed: What|Removed |Added Assignee|kwin-bugs-n...@kde.org |xaver.h...@gmail.com Ever confirmed|0 |1 CC||xaver.h...@gmail.com Status|REPORTED|ASSIGNED --- Comment #1 from Zamundaaa --- I think the problem with the broken outputs is caused by the internal GPU not supporting scanning out linear buffers. I'll have to look into using modifiers to not require linear buffers if that's the case, although I'm not sure in what timeframe that could be solved. First though, let's see if there are some error messages. For that please run the session with the environment variable "QT_LOGGING_RULES=kwin_drm.debug=true" (for example you can put it in /etc/environment) and attach the file "~/.local/share/sddm/wayland-session.log" afer a reboot -- You are receiving this mail because: You are watching all bug changes.