Bug 491629

Summary: Wayland Plasma breaking when changing monitor
Product: [Plasma] kwin Reporter: José Rafael <joserafaeltic>
Component: compositingAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: nate
Priority: NOR Keywords: multiscreen
Version First Reported In: 6.1.4   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: coredump file

Description José Rafael 2024-08-12 15:56:11 UTC
SUMMARY


STEPS TO REPRODUCE
1. Connect an external monitor 
2. Go to the screen configuration widgets on the plasma tray
3. Change the internal monitor to the external one

RESULT OBSERVED
Plasma makes the switch, then restarts with black screen, crash failure and all applications close together

EXPECTED RESULT
Switches screens only 

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.3-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-4200U CPU @ 1.60GHz
Memory: 7.7 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4400
Comment 1 Nate Graham 2024-08-12 17:11:18 UTC
If something crashed, we need a backtrace of it so we can figure out what's going on. Can you please attach a backtrace of the crash using the `coredumpctl` command-line program, as detailed in https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl?
Comment 2 José Rafael 2024-08-12 17:15:50 UTC
Sorry, I was just deleting the bug report because I found out what was causing it!

I was having black screen bugs on plasma randomly and I solved it by applying these 2 environment variables 

KWIN_DRM_DISABLE_TRIPLE_BUFFERING=1
KWIN_DRM_NO_AMS=1

I removed them because the new plasma 6.1.4 update arrived and I decided to test without them, and that's when the crashes stopped.

now I'm monitoring that the black screen bugs have been fixed
Comment 3 Nate Graham 2024-08-13 19:27:16 UTC
That's great! However,  KWin still shouldn't crash even with those environment variables set. Can you get a backtrace anyway so we can debug the crash?
Comment 4 José Rafael 2024-08-13 20:02:39 UTC
Okay, I re-did the steps and the plasma wayland keeps crashing, and when this happens the crash manager appears with the following statement:

"Collection of crash information was not completed for unknown reasons. You can try again or close the window."

Here is what you asked me, I believe

https://paste.centos.org/view/c4d37853
Comment 5 Nate Graham 2024-08-14 21:59:47 UTC
Hmm, that link is broken for me.
Comment 6 José Rafael 2024-08-15 02:07:45 UTC
Created attachment 172633 [details]
coredump file

Sorry, I didn't see the file attachment button here
Now here it goes!
Comment 7 Bug Janitor Service 2024-08-30 03:47:55 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2024-09-14 03:47:10 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.