Bug 499921 - Wayland session logs out when external monitor is connected (NVIDIA, Plasma 6.3)
Summary: Wayland session logs out when external monitor is connected (NVIDIA, Plasma 6.3)
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 6.3.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-12 20:36 UTC by bertoni.software
Modified: 2025-03-16 03:47 UTC (History)
1 user (show)

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


Attachments
Output from coredumpctl info kwin_wayland (2.75 MB, text/plain)
2025-02-13 18:19 UTC, bertoni.software
Details
Output of sudo coredumpctl gdb 1598 (60.60 KB, text/plain)
2025-02-14 20:20 UTC, bertoni.software
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bertoni.software 2025-02-12 20:36:26 UTC
- Description

I am experiencing an issue with Plasma 6.3 on Wayland when using an external monitor with my NVIDIA GPU. If I try to start a Wayland session with the external monitor connected (via DisplayPort), the screen flickers, and I am immediately sent back to the login screen. If I connect the monitor after logging in, the session crashes and returns to the login screen.

This issue does not occur under X11, only in Wayland.

-Steps to Reproduce

    Boot the system and attempt to log in to a Plasma Wayland session with an external monitor connected via DisplayPort.
    The screen flickers, and the session fails to start, returning to the login screen.
    Alternatively, log in to Plasma Wayland without the external monitor.
    After logging in, connect the external monitor via DisplayPort.
    The session crashes immediately, returning to the login screen.

- Expected Behavior

Plasma Wayland should handle the external monitor without crashing or returning to the login screen.

-System Information

Operating System: KDE neon 6.2
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Kernel Version: 6.11.0-17-generic (64-bit)
Graphics Platform: X11 (only temporarily)
Processors: 12 × Intel® Core™ i7-9750HF CPU @ 2.60GHz
Memory: 31.1 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1660 Ti
Manufacturer: LENOVO
Product Name: 81SX
System Version: Legion Y540-15IRH

Additional Logs
Version
=======
KWin version: 6.3.0
Qt Version: 6.8.2
Qt compile version: 6.8.2
XCB compile version: 1.15

Operation Mode: X11

Build Options
=============
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_X11_XCB: yes
HAVE_GLX: yes

X11
===
Vendor: The X.Org Foundation
Vendor Release: 12101011
Protocol Version/Revision: 11/0
SHAPE: yes; Version: 0x11
RANDR: yes; Version: 0x14
DAMAGE: yes; Version: 0x11
Composite: yes; Version: 0x4
RENDER: yes; Version: 0xb
XFIXES: yes; Version: 0x50
SYNC: yes; Version: 0x31
GLX: yes; Version: 0x0

Decoration
==========
Plugin: org.kde.breeze
Theme: 
Plugin recommends border size: None
onAllDesktopsAvailable: true
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 2
decorationButtonsRight: 6, 3, 4, 5
borderSize: 0
gridUnit: 10
font: Noto Sans,10,-1,0,400,0,0,0,0,0,0,0,0,0,0,1
smallSpacing: 2
largeSpacing: 10

Output backend
==============
Name: KWin::X11StandaloneBackend

Cursor
======
themeName: breeze_cursors
themeSize: 24

Options
=======
focusPolicy: ClickToFocus
xwaylandCrashPolicy: 1
xwaylandMaxCrashCount: 3
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: true
placement: 5
activationDesktopPolicy: SwitchToOtherDesktop
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
edgeBarrier: 100
cornerBarrier: 1
rollOverDesktops: false
focusStealingPreventionLevel: 1
operationTitlebarDblClick: 5000
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: MouseRaise
commandActiveTitlebar2: MouseNothing
commandActiveTitlebar3: MouseOperationsMenu
commandInactiveTitlebar1: MouseActivateAndRaise
commandInactiveTitlebar2: MouseNothing
commandInactiveTitlebar3: MouseOperationsMenu
commandWindow1: MouseActivateRaiseOnReleaseAndPassClick
commandWindow2: MouseActivateAndPassClick
commandWindow3: MouseActivateAndPassClick
commandWindowWheel: MouseNothing
commandAll1: MouseUnrestrictedMove
commandAll2: MouseToggleRaiseAndLower
commandAll3: MouseUnrestrictedResize
keyCmdAllModKey: 16777250
doubleClickBorderToMaximize: true
condensedTitle: false
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
compositingMode: 1
useCompositing: true
hiddenPreviews: 1
glSmoothScale: 2
glStrictBinding: false
glStrictBindingFollowsDriver: true
glPreferBufferSwap: AutoSwapStrategy
glPlatformInterface: 1
windowsBlockCompositing: true
allowTearing: true
interactiveWindowMoveEnabled: true

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 1x1
actionTopLeft: 0
actionTop: 0
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 0
actionLeft: 0

Screens
=======
Number of Screens: 2

Screen 0:
---------
Name: DP-2
Enabled: 1
Geometry: 2560,360,1920x1080
Physical size: 344x193mm
Scale: 1
Refresh Rate: 165009
Adaptive Sync: incapable
Screen 1:
---------
Name: DP-3
Enabled: 1
Geometry: 0,0,2560x1440
Physical size: 598x336mm
Scale: 1
Refresh Rate: 59950
Adaptive Sync: incapable

Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce GTX 1660 Ti/PCIe/SSE2
OpenGL version string: 3.1.0 NVIDIA 565.57.01
OpenGL platform interface: GLX
OpenGL shading language version string: 1.40 NVIDIA via Cg compiler
Driver: NVIDIA
Driver version: 565.57.1
GPU class: Unknown
OpenGL version: 3.1
GLSL version: 1.40
X server version: 1.21.1
Linux kernel version: 6.11
Direct rendering: Requires strict binding: no
Virtual Machine:  no
OpenGL 2 Shaders are used

Loaded Effects:
---------------
screenshot
outputlocator
colorpicker
zoom
screenedge
blur
contrast
logout
login
sessionquit
slidingpopups
windowaperture
translucency
slide
fadingpopups
squash
fullscreen
scale
maximize
frozenapp
dialogparent
windowview
tileseditor
overview
highlightwindow
blendchanges
startupfeedback
systembell
kscreen

Currently Active Effects:
-------------------------
blur
contrast

Effect Settings:
----------------
screenshot:

outputlocator:

colorpicker:

zoom:
zoomFactor: 1.2
mousePointer: 0
mouseTracking: 0
focusTrackingEnabled: false
textCaretTrackingEnabled: false
focusDelay: 350
moveFactor: 20
targetZoom: 1

screenedge:

blur:

contrast:

logout:
pluginId: logout
isActiveFullScreenEffect: false

login:
pluginId: login
isActiveFullScreenEffect: false

sessionquit:
pluginId: sessionquit
isActiveFullScreenEffect: false

slidingpopups:
slideInDuration: 200
slideOutDuration: 200

windowaperture:
pluginId: windowaperture
isActiveFullScreenEffect: false

translucency:
pluginId: translucency
isActiveFullScreenEffect: false

slide:
horizontalGap: 45
verticalGap: 20
slideBackground: true

fadingpopups:
pluginId: fadingpopups
isActiveFullScreenEffect: false

squash:
pluginId: squash
isActiveFullScreenEffect: false

fullscreen:
pluginId: fullscreen
isActiveFullScreenEffect: false

scale:
pluginId: scale
isActiveFullScreenEffect: false

maximize:
pluginId: maximize
isActiveFullScreenEffect: false

frozenapp:
pluginId: frozenapp
isActiveFullScreenEffect: false

dialogparent:
pluginId: dialogparent
isActiveFullScreenEffect: false

windowview:
activeView: 
delegate: 
animationDuration: 300
ignoreMinimized: false
mode: 
partialActivationFactor: 0
gestureInProgress: false
searchText: 
selectedIds: 

tileseditor:
activeView: 
delegate: 
animationDuration: 200

overview:
activeView: 
delegate: 
animationDuration: 300
ignoreMinimized: false
filterWindows: true
organizedGrid: true
overviewPartialActivationFactor: 0
overviewGestureInProgress: false
transitionPartialActivationFactor: 0
transitionGestureInProgress: false
gridPartialActivationFactor: 0
gridGestureInProgress: false
desktopOffset: 
searchText: 

highlightwindow:

blendchanges:

startupfeedback:
type: 1

systembell:

kscreen:


Loaded Plugins:
---------------
krunnerintegration
nightlight

Available Plugins:
------------------
BounceKeysPlugin
KeyNotificationPlugin
StickyKeysPlugin
buttonsrebind
eis
krunnerintegration
nightlight
screencast
Comment 1 David Edmundson 2025-02-12 23:07:17 UTC
We need a crash dump for this to be actionable. Please see 

coredumpctl dump kwin_wayland and if that has anything attach it here
Comment 2 bertoni.software 2025-02-13 18:19:10 UTC
Created attachment 178311 [details]
Output from coredumpctl info kwin_wayland
Comment 3 Vlad Zahorodnii 2025-02-13 18:35:57 UTC
                #8  0x000079048370d089 _ZNK14QMessageLogger5fatalEPKcz (libQt6Core.so.6 + 0x50d089)
                #9  0x000079048370d100 _Z9qt_assertPKcS0_i (libQt6Core.so.6 + 0x50d100)
                #10 0x0000790485ddadbc n/a (libkwin.so.6 + 0x1dadbc)
                #11 0x00007904860ca5de _ZN4KWin9DrmOutput7presentERKSt10shared_ptrINS_11OutputFrameEE (libkwin.so.6 + 0x4ca5de)
                #12 0x0000790485e0b83a _ZN4KWin17WaylandCompositor9compositeEPNS_10RenderLoopE (libkwin.so.6 + 0x20b83a)

Can you please run coredumpctl gdb <pidof kwin_wayland in coredumpctl list kwin_wayland>?
Comment 4 bertoni.software 2025-02-14 20:20:44 UTC
Created attachment 178378 [details]
Output of sudo coredumpctl gdb 1598

I added the outputs of the next comands:
sudo coredumpctl list | grep kwin_wayland
sudo coredumpctl gdb 1598
bt
Comment 5 Bug Janitor Service 2025-03-01 03:46:45 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 6 Bug Janitor Service 2025-03-16 03:47:25 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.