Bug 443088 - kwin_wayland crashed in KWin::AbstractWaylandOutput::modeSize() when I logged into another user, logged out, and unlocked my original session
Summary: kwin_wayland crashed in KWin::AbstractWaylandOutput::modeSize() when I logged...
Status: RESOLVED DUPLICATE of bug 463385
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: git-master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-28 18:02 UTC by Nate Graham
Modified: 2022-12-27 10:24 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2021-09-28 18:02:43 UTC
This is not the same as Bug 442104.

Current git master everything, including https://invent.kde.org/plasma/kwin/-/commit/6513c66ca6edb7d7bffcaec173eb1c12d2242aac which is the latest fix for Bug 442104.


STEPS TO REPRODUCE
1. Use Kickoff to log into a standard (non-admin) user account with the X11 session
2. Log out of that user
3. Unlock the screen in the original session


OBSERVED RESULT
All apps have quit and there is a kwin_wayland backtrace:

#0  KWin::AbstractWaylandOutput::modeSize() const (this=this@entry=0x0)
    at /home/nate/kde/src/kwin/src/abstract_wayland_output.cpp:101
#1  0x00007fb6abdf4e6f in KWin::LibInput::Connection::processEvents() (this=0x21bac40)
    at /home/nate/kde/src/kwin/src/libinput/connection.cpp:454
#2  0x00007fb6a929bf09 in QObject::event(QEvent*) () at /lib64/libQt5Core.so.5
#3  0x00007fb6aa0b0443 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
    at /lib64/libQt5Widgets.so.5
#4  0x00007fb6a9271798 in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
    at /lib64/libQt5Core.so.5
#5  0x00007fb6a9274d06 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
    at /lib64/libQt5Core.so.5
#6  0x00007fb6a92c0075 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#7  0x0000000000487f91 in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
#8  0x00007fb6a92701a2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
    at /lib64/libQt5Core.so.5
#9  0x00007fb6a92786e4 in QCoreApplication::exec() () at /lib64/libQt5Core.so.5
#10 0x0000000000428503 in main(int, char**) (argc=<optimized out>, argv=<optimized out>)
    at /home/nate/kde/src/kwin/src/main_wayland.cpp:745


EXPECTED RESULT
KWin doesn't crash
Comment 1 Vlad Zahorodnii 2021-09-29 06:02:27 UTC
Did you use the touch screen?
Comment 2 Vlad Zahorodnii 2021-09-29 06:12:51 UTC
Also, did you turn off any outputs while another session was active?
Comment 3 Bug Janitor Service 2021-09-29 06:48:01 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/1474
Comment 4 Vlad Zahorodnii 2021-09-29 11:47:00 UTC
Git commit 31b9f34d9b1009b9f267393d8cf8a21d0ecd0883 by Vlad Zahorodnii.
Committed on 29/09/2021 at 09:03.
Pushed by vladz into branch 'master'.

libinput: Port to AbstractOutput

M  +0    -10   autotests/libinput/device_test.cpp
M  +31   -33   src/libinput/connection.cpp
M  +11   -0    src/libinput/device.cpp
M  +7    -15   src/libinput/device.h

https://invent.kde.org/plasma/kwin/commit/31b9f34d9b1009b9f267393d8cf8a21d0ecd0883
Comment 5 Nate Graham 2021-09-29 13:39:52 UTC
No to both questions.
Comment 6 David Edmundson 2022-12-27 10:24:28 UTC

*** This bug has been marked as a duplicate of bug 463385 ***