Bug 466777 - Black screen kwin_wayland death
Summary: Black screen kwin_wayland death
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.27.2
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-03 17:05 UTC by m1st0
Modified: 2023-09-01 03:45 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description m1st0 2023-03-03 17:05:27 UTC
SUMMARY
***
• My desktop session goes completely black, returns, and eventually goes black and all I have left is a cursor.
• I noticed this occurred near a "i915 0000:00:02.0: [drm] *ERROR* CPU pipe B FIFO underrun" through dmesg.
• I was able to stop the pipe B FIFO underrun issue with "intel_idle.max_cstate=1" in kernel options in grub.
• While that fixed the underrun, the black screen issue remained.  Around the underrun there was another item "perf: interrupt took too long ([number] > [number]), lowering kernel.perf_event_max_sample_rate to [number]" . I noticed this is when kwin_wayland would fail.
• I was able to recover by switching to a terminal, tty3 for instance, and running "/usr/bin/kwin_wayland --replace --socket wayland-0 --xwayland-display :1 --xwayland" . This restored tty2 and provided a login screen to return to my desktop, but all open programs were of course lost from the last session.
• Kernel options in grub: 
nogpumanager 
acpi_rev_override 
nomodeset 
modprobe.blacklist=nouveau,nvidia,nvidiafb,nvidia-uvm,nvidia-drm,nvidia-modeset 
acpi_osi=! acpi_osi=\"Windows 2009\" 
intel_iommu=on,pt 
i915.enable_fbc=0 
i915.enable_dc=2 
i915.enable_guc=2 
i915.lvds_channel_mode=2 
i915.disable_power_well=0 
i915.enable_psr=0 
drm.vblankoffdelay=-1 
i915.modeset=1 
i915.fastboot=1 
intel_idle.max_cstate=1
• Hardware: https://www.laptoparena.net/msi/notebook-msi-gaming-gs63vr-6rf(stealth-pro-4k)-022ne-gs63vr-6rf-022ne-black-12356
***

STEPS TO REPRODUCE
1. Unknown, possibly running a fullscreen 4K video from Firefox.
2. change perf value?

OBSERVED RESULT
kwin_wayland goes black, returns, then a later crash

EXPECTED RESULT
kwin_wayland does not go black

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 22.10
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.6
Comment 1 Zamundaaa 2023-08-02 11:09:45 UTC
Sorry it took so long to get to your bug report. Does this still happen on newer versions of KWin? And if so, can you attach some logging from when it happens? You get get it with `journalctl --user-unit plasma-kwin_wayland --boot 0`
Comment 2 Bug Janitor Service 2023-08-17 03:45:15 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2023-09-01 03:45:36 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!