Bug 489592

Summary: Plasma/wayland starting from sddm in black screen, crashes then exits (on multimonitor)
Product: [Plasma] kwin Reporter: SpiderUnderUrBed
Component: generic-crashAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: crash    
Priority: NOR    
Version First Reported In: git-stable-Plasma/6.1   
Target Milestone: ---   
Platform: NixOS   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description SpiderUnderUrBed 2024-07-02 09:49:49 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY


STEPS TO REPRODUCE
1. Be on Nixos (maybe its nixos specific, maybe the unstable channel as I am on that)
2. Install KDE plasma
3. Have a monitor and plug it in
4. POTENTIAL FACTOR -> Have a igpu and dgpu (nvidia) with optimus  
5. Try the wayland session

OBSERVED RESULT
The wayland session, when I start it from SDDM, it will remain as a black screen, with a loading icon sometimes, then after a short while, like 10 or more seconds, it seemingly crashes and sends me back to sddm. This is not a issue with x11 (on multimonitor)

EXPECTED RESULT
It should load up the same way x11 does, and not crash and return to sddm

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: NixOS 24.11.20240627.b2852eb (Vicuna) x86_64 
(available in About System)
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
I made a post about this on reddit including a VIDEO of the issue, and I mention some things about hardware,
https://www.reddit.com/r/linuxquestions/comments/1dr4q1u/wayland_and_multimonitor_not_working_on_nixos/
Comment 1 SpiderUnderUrBed 2024-08-20 04:30:09 UTC
This issue has been solved, I will close this issue, I haven't tested x11 or gnome, but ill update this issue (maybe) when I do, also this is the version I'm on now:
Linux 6.8.12, NixOS, 24.11 (Vicuna), 24.11.20240818.8a33541
If anyone know what happened and where the patch happened I hope you can comment to this issue.
Comment 2 SpiderUnderUrBed 2024-08-26 23:37:25 UTC
This issue is still present, I just had a one off where wayland suddenly worked, anyways here are some log files if this helps:
Systemctl status:
https://pastebin.com/tMMDs2jA
Journalctl:
https://pastebin.com/APq2ZcPv
Comment 3 SpiderUnderUrBed 2024-08-26 23:37:44 UTC
<Reoping issue>
Comment 4 Vlad Zahorodnii 2024-10-01 09:58:06 UTC
Please report this issue to SDDM developers. https://github.com/sddm/sddm