Bug 443222 - [Wayland] adding a new screen causes lockscreen to crash. Reboot needed
Summary: [Wayland] adding a new screen causes lockscreen to crash. Reboot needed
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.22.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-02 11:57 UTC by Germano Massullo
Modified: 2021-12-10 04:35 UTC (History)
1 user (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 Germano Massullo 2021-10-02 11:57:00 UTC
Not sure if Kwin is the proper component to choose for such bugreport, or I should have choosen kscreenlock.
While using Wayland and having the screen locked, if I plug a second screen to my laptop, the Plasma screen lock crashes, showing the message that advices to run
# loginctl unlock-session 2
but doing it, does not solve the problem, instead of having the advice message, I get half screen (of the second screen) with a prompt of the screenlock password, and the other half showing opened applications that I was using before.
Once I get such situation, the only thing I can do is to reboot from TTY

plasma-desktop-5.22.5-1.fc34.x86_64
KDE Frameworks 5.85.0
Qt 5.15.2
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
Comment 1 Nate Graham 2021-10-05 00:13:18 UTC
Can you please attach a backtrace of the crash? See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl

Also if you can use the Plasma 5.23 beta (or just upgrade to Plasma 5.23) in two weeks that would be good too, since a *ton* of Wayland fixes have been made in that version, including a few to the lockscreen that I can recall and many for multi-monitor stability. So it is possible that this has already been fixed. But we can't know that unless we get a backtrace of the crash or you confirm with Plasma 5.23. :)
Comment 2 Vlad Zahorodnii 2021-10-05 06:18:25 UTC
FWIW, I can't reproduce the crash in git master.
Comment 3 Bug Janitor Service 2021-10-20 04:35:31 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 4 Bug Janitor Service 2021-11-04 04:35:26 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!
Comment 5 Germano Massullo 2021-11-08 16:45:32 UTC
(In reply to Nate Graham from comment #1)
> Also if you can use the Plasma 5.23 beta (or just upgrade to Plasma 5.23)

No, this is a production machine and I can only use what is shipped with Fedora repositories

KDE Frameworks 5.87.0
Qt 5.15.2
plasma-desktop-5.22.5

#0  0x00007f13e7e69bcf in ?? () from /lib64/libLayerShellQtInterface.so.5
#1  0x00007f13e6a64d48 in QCoreApplicationPrivate::theMainThread () from /lib64/libQt5Core.so.5
#2  0x00007f13e6a64d48 in QCoreApplicationPrivate::theMainThread () from /lib64/libQt5Core.so.5
#3  0x00007ffc36526848 in ?? ()
#4  0x0000556bda732040 in ?? ()
#5  0x0000556bdac58b10 in ?? ()
#6  0x00007f13e7e6b640 in ?? () from /lib64/libLayerShellQtInterface.so.5
#7  0x0000000000000002 in ?? ()
#8  0x00007f13e70ac669 in QX11Info::isPlatformX11 () at /usr/src/debug/qt5-qtx11extras-5.15.2-4.fc35.x86_64/src/x11extras/qx11info_x11.cpp:100
#9  0x0000556bda8e23c0 in ?? ()
#10 0x0000556bda40ce60 in ?? ()
#11 0x00007ffc36526ac0 in ?? ()
#12 0x0000556bda6629f0 in ?? ()
#13 0x00007f13e7e6a0ca in ?? () from /lib64/libLayerShellQtInterface.so.5
#14 0x0000556bda40ce70 in ?? ()
#15 0x0000556bda40ce70 in ?? ()
#16 0x00007ffc36526900 in ?? ()
#17 0x00007f13e589d075 in QtWaylandClient::QWaylandWindow::initWindow (this=0x7f13e6930908)
    at /usr/src/debug/qt5-qtwayland-5.15.2-14.fc35.x86_64/src/client/qwaylandwindow.cpp:144
#18 0x00007f13e58a22d5 in QtWaylandClient::QWaylandWindow::setVisible (this=0x556bda40ce60, visible=<optimized out>)
    at /usr/src/debug/qt5-qtwayland-5.15.2-14.fc35.x86_64/src/client/qwaylandwindow.cpp:438
#19 0x00007f13e6bddffb in QWindowPrivate::setVisible (this=0x556bda674120, visible=<optimized out>) at kernel/qwindow.cpp:408
#20 0x00007f13e6bda78f in QWindow::showFullScreen (this=0x556bdac58b10) at kernel/qwindow.cpp:2209
#21 0x0000556bd86ffb08 in ScreenLocker::UnlockApp::desktopResized (this=<optimized out>) at /usr/src/debug/kscreenlocker-5.22.5-1.fc35.x86_64/greeter/greeterapp.cpp:428
#22 0x00007f13e67b53a9 in QtPrivate::QSlotObjectBase::call (a=0x7ffc36526c30, r=<optimized out>, this=0x556bda2f7e60)
    at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#23 doActivate<false> (sender=0x7ffc36527630, signal_index=9, argv=0x7ffc36526c30) at kernel/qobject.cpp:3886
#24 0x00007f13e67b0327 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f13e7085c60 <QGuiApplication::staticMetaObject>, 
    local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffc36526c30) at kernel/qobject.cpp:3946
#25 0x00007f13e6bc5e96 in QGuiApplication::screenAdded (this=<optimized out>, _t1=<optimized out>) at .moc/moc_qguiapplication.cpp:389
#26 0x00007f13e6bb4b32 in QWindowSystemInterface::handleScreenAdded (ps=<optimized out>, isPrimary=isPrimary@entry=false) at kernel/qwindowsysteminterface.cpp:826
#27 0x00007f13e5896359 in QtWaylandClient::QWaylandDisplay::ensureScreen (this=0x556bda2cba40)
    at /usr/src/debug/qt5-qtwayland-5.15.2-14.fc35.x86_64/src/client/qwaylanddisplay.cpp:200
#28 0x00007f13e589783c in QtWaylandClient::QWaylandDisplay::registry_global_remove (this=0x556bda2cba40, id=48)
    at /usr/src/debug/qt5-qtwayland-5.15.2-14.fc35.x86_64/src/client/qwaylanddisplay.cpp:418
#29 0x00007f13e596ec04 in ffi_call_unix64 () at ../src/x86/unix64.S:76
#30 0x00007f13e596e108 in ffi_call (cif=cif@entry=0x7ffc36526e00, fn=<optimized out>, rvalue=<optimized out>, rvalue@entry=0x0, avalue=avalue@entry=0x7ffc36526ed0)
    at ../src/x86/ffi64.c:525
#31 0x00007f13e7e78d10 in wl_closure_invoke (closure=closure@entry=0x556bdad69180, target=<optimized out>, target@entry=0x556bda2cf700, opcode=opcode@entry=1, 
    data=<optimized out>, flags=<optimized out>) at ../src/connection.c:1018
#32 0x00007f13e7e7941b in dispatch_event (display=display@entry=0x556bda2cf5b0, queue=<optimized out>, queue=<optimized out>) at ../src/wayland-client.c:1452
#33 0x00007f13e7e7960c in dispatch_queue (queue=0x556bda2cf680, display=0x556bda2cf5b0) at ../src/wayland-client.c:1598
#34 wl_display_dispatch_queue_pending (display=0x556bda2cf5b0, queue=0x556bda2cf680) at ../src/wayland-client.c:1840
#35 0x00007f13e58946a3 in QtWaylandClient::QWaylandDisplay::flushRequests (this=0x556bda2cba40)
    at /usr/src/debug/qt5-qtwayland-5.15.2-14.fc35.x86_64/src/client/qwaylanddisplay.cpp:222
#36 0x00007f13e67b53f0 in doActivate<false> (sender=0x556bda2f25e0, signal_index=3, argv=0x7ffc365271a0) at kernel/qobject.cpp:3898
#37 0x00007f13e67b0327 in QMetaObject::activate (sender=sender@entry=0x556bda2f25e0, m=m@entry=0x7f13e6a5a460 <QSocketNotifier::staticMetaObject>, 
    local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffc365271a0) at kernel/qobject.cpp:3946
#38 0x00007f13e67b7b4a in QSocketNotifier::activated (this=this@entry=0x556bda2f25e0, _t1=..., _t2=<optimized out>, _t3=...) at .moc/moc_qsocketnotifier.cpp:178
#39 0x00007f13e67b8363 in QSocketNotifier::event (this=0x556bda2f25e0, e=0x7ffc36527270) at kernel/qsocketnotifier.cpp:302
#40 0x00007f13e6781798 in QCoreApplication::notifyInternal2 (receiver=0x556bda2f25e0, event=0x7ffc36527270) at kernel/qcoreapplication.cpp:1064
#41 0x00007f13e67d35ff in socketNotifierSourceDispatch (source=0x556bda3019c0) at kernel/qeventdispatcher_glib.cpp:107
#42 0x00007f13e444e33f in g_main_dispatch (context=0x556bda2f0150) at ../glib/gmain.c:3381
#43 g_main_context_dispatch (context=0x556bda2f0150) at ../glib/gmain.c:4099
#44 0x00007f13e44a32b8 in g_main_context_iterate.constprop.0 (context=context@entry=0x556bda2f0150, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4175
#45 0x00007f13e444b9e3 in g_main_context_iteration (context=0x556bda2f0150, may_block=1) at ../glib/gmain.c:4240
#46 0x00007f13e67d2b78 in QEventDispatcherGlib::processEvents (this=0x556bda347730, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#47 0x00007f13e67801a2 in QEventLoop::exec (this=this@entry=0x7ffc365274e0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#48 0x00007f13e67886e4 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#49 0x0000556bd86f771d in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kscreenlocker-5.22.5-1.fc35.x86_64/greeter/main.cpp:196
quit
Detaching from program: /usr/libexec/kscreenlocker_greet, process 4122
[Inferior 1 (process 4122) detached]
Comment 6 Germano Massullo 2021-11-10 10:07:42 UTC
I finally managed to update to plasma 5.23.2.1. I cannot reproduce the bug. Before closing the bugreport, let's wait some other days
Comment 7 Nate Graham 2021-11-10 14:29:36 UTC
OK, cool!
Comment 8 Bug Janitor Service 2021-11-25 04:38:57 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 9 Bug Janitor Service 2021-12-10 04:35:13 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!