Bug 450924 - KWin crashes when switching from external monitor to laptop screen
Summary: KWin crashes when switching from external monitor to laptop screen
Status: RESOLVED DUPLICATE of bug 448064
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (show other bugs)
Version: 5.24.2
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-27 12:57 UTC by David de Cos
Modified: 2022-03-21 04:11 UTC (History)
2 users (show)

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


Attachments
Backtrace of the crash (2.62 KB, text/vnd.kde.kcrash-report)
2022-02-27 12:57 UTC, David de Cos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David de Cos 2022-02-27 12:57:01 UTC
Created attachment 147171 [details]
Backtrace of the crash

Whenever I switch from external monitor to laptop screen, KWin crashes. I'm attaching the generated backtrace. This has started happening in the last few weeks, probably after upgrading to 5.24.

The attached backtrace was generated when I switched to the laptop screen through the Screen Configuration applet in my systray.

I've seen somewhat similar reports in the last days, but unlike others, this one this happens in X11, and didn't get fixed in 5.24.2.

I'll be happy to provide any additional information that might be helpful.


SOFTWARE/OS VERSIONS
Operating System: openSUSE Leap 15.3
KDE Plasma Version: 5.24.2
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Kernel Version: 5.3.18-59.10-default (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i7-6600U CPU @ 2.60GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 520
Comment 1 Nate Graham 2022-03-21 04:11:33 UTC
Pasting backtrace inline for searchability:

Application: KWin (kwin_x11), signal: Segmentation fault

[KCrash Handler]
#4  0x0000000000000018 in  ()
#5  0x00007f81b6f157a2 in KWin::Toplevel::isOnOutput(KWin::AbstractOutput*) const (this=0x559cb968eb10, output=<optimized out>) at /usr/src/debug/kwin5-5.24.2-lp153.441.1.x86_64/src/toplevel.cpp:423
#6  0x00007f81b6f41e39 in KWin::Workspace::activeOutput() const (this=0x559cb8858cb0) at /usr/src/debug/kwin5-5.24.2-lp153.441.1.x86_64/src/workspace.cpp:2419
#7  0x00007f81b6f15803 in KWin::Toplevel::isOnActiveOutput() const (this=this@entry=0x559cb8b95ba0) at /usr/src/debug/kwin5-5.24.2-lp153.441.1.x86_64/src/toplevel.cpp:418
#8  0x00007f81b6e10f44 in KWin::Workspace::takeActivity(KWin::AbstractClient*, QFlags<KWin::Workspace::ActivityFlag>) (this=0x559cb8858cb0, c=c@entry=0x559cb8b95ba0, flags=..., flags@entry=...) at /usr/src/debug/kwin5-5.24.2-lp153.441.1.x86_64/src/activation.cpp:395
#9  0x00007f81b6e04fed in KWin::AbstractClient::performMouseCommand(KWin::Options::MouseCommand, QPoint const&) (this=this@entry=0x559cb8b95ba0, cmd=<optimized out>, globalPos=...) at /usr/src/debug/kwin5-5.24.2-lp153.441.1.x86_64/src/abstract_client.cpp:1788
#10 0x00007f81b6e5e741 in KWin::X11Client::buttonPressEvent(unsigned int, int, int, int, int, int, int, unsigned int) (this=0x559cb8b95ba0, w=18876583, button=1312279488, state=16, x=757, y=329, x_root=757, y_root=329, time=2252953) at /usr/src/debug/kwin5-5.24.2-lp153.441.1.x86_64/src/events.cpp:904
#11 0x00007f81b6e5f0ca in KWin::X11Client::windowEvent(xcb_generic_event_t*) (this=0x559cb8b95ba0, e=0x7f81980077e0) at /usr/src/debug/kwin5-5.24.2-lp153.441.1.x86_64/src/events.cpp:414
#12 0x00007f81b6e5f4b8 in KWin::Workspace::workspaceEvent(xcb_generic_event_t*) (this=0x559cb8858cb0, e=0x7f81980077e0) at /usr/src/debug/kwin5-5.24.2-lp153.441.1.x86_64/src/events.cpp:167
#13 0x00007f81b2c9bb9f in QAbstractEventDispatcher::filterNativeEvent(QByteArray const&, void*, long*) () at /usr/lib64/libQt5Core.so.5
#14 0x00007f819df6025c in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () at /usr/lib64/libQt5XcbQpa.so.5
#15 0x00007f819df60d86 in QXcbConnection::processXcbEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5XcbQpa.so.5
#16 0x00007f819df8602c in  () at /usr/lib64/libQt5XcbQpa.so.5
#17 0x00007f81b2c9d3ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#18 0x00007f81b2ca6bc7 in QCoreApplication::exec() () at /usr/lib64/libQt5Core.so.5
#19 0x0000559cb6dcec4a in main(int, char**) (argc=<optimized out>, argv=0x7fff4e37d258) at /usr/src/debug/kwin5-5.24.2-lp153.441.1.x86_64/src/main_x11.cpp:482
[Inferior 1 (process 12761) detached]

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