https://bugs.kde.org/show_bug.cgi?id=463257
--- Comment #1 from Matt Fagnani ---
Created attachment 154708
--> https://bugs.kde.org/attachment.cgi?id=154708&action=edit
full trace of all threads of kwin_wayland crash when used as sddm Wayland
compositor
I noticed in the full trace that in KWin::LibInput::Connection::processEvents
in frame 2 of the crashing thread output = 0x0 which might have led to
KWin::Output::modeSize() having this=0x0 and globalPos = {xp =
4.6505189011229344e-310, yp = 1.1857575500189917e-322} which looked like
abnormally small values.
Thread 1 (Thread 0x7fc4b15fd980 (LWP 1088)):
#0 std::__shared_ptr::operator
bool() const (this=0x38) at /usr/include/c++/12/bits/shared_ptr_base.h:1669
#1 KWin::Output::modeSize() const (this=0x0) at
/usr/src/debug/kwin-5.26.4-1.fc37.x86_64/src/core/output.cpp:189
#2 0x7fc4b258bebb in KWin::LibInput::Connection::processEvents()
(this=0x559bc75b34c0) at
/usr/src/debug/kwin-5.26.4-1.fc37.x86_64/src/backends/libinput/connection.cpp:347
te = 0x7fc47c0060e0
output = 0x0
globalPos = {xp = 4.6505189011229344e-310, yp =
1.1857575500189917e-322}
event = std::unique_ptr = {get() =
0x7fc47c0060e0}
locker = {val = 94127552935129}
#3 0x7fc4b0ad2ec4 in QObject::event(QEvent*) (this=0x559bc7519730,
e=0x7fc47c0069a0) at kernel/qobject.cpp:1347
mce = 0x7fc47c0069a0
sender = {previous = 0x0, receiver = 0x559bc7519730, sender =
0x559bc75b34c0, signal = 5}
#4 0x7fc4affaed12 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
(this=, receiver=0x559bc7519730, e=0x7fc47c0069a0) at
kernel/qapplication.cpp:3637
consumed = false
filtered = false
#5 0x7fc4b0aa8278 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
(receiver=0x559bc7519730, event=0x7fc47c0069a0) at
kernel/qcoreapplication.cpp:1064
selfRequired = true
result = false
cbdata = {0x559bc7519730, 0x7fc47c0069a0, 0x7fff85632ccf}
d =
threadData = 0x559bc7357fb0
scopeLevelCounter = {threadData = 0x559bc7357fb0}
#6 0x7fc4b0aab5e4 in QCoreApplicationPrivate::sendPostedEvents(QObject*,
int, QThreadData*) (receiver=receiver@entry=0x0, event_type=event_type@entry=0,
data=data@entry=0x559bc7357fb0) at kernel/qcoreapplication.cpp:1821
e = 0x7fc47c0069a0
pe =
r = 0x559bc7519730
event_deleter = {d = 0x7fc47c0069a0}
locker = {_M_device = 0x559bc7357fe0, _M_owns = false}
startOffset = 0
i = @0x559bc7357fd4: 1
cleanup = {receiver = 0x0, event_type = 0, data = 0x559bc7357fb0,
exceptionCaught = true}
#7 0x7fc4b0af68d5 in
QEventDispatcherUNIX::processEvents(QFlags)
(this=0x559bc735a910, flags=...) at kernel/qeventdispatcher_unix.cpp:468
d = 0x559bc735c820
threadData = 0x559bc7357fb0
include_timers =
canWait =
tm =
wait_tm = {tv_sec = 140482759133936, tv_nsec = 140482759134718}
nevents =
#8 0x559bc7297b81 in
QUnixEventDispatcherQPA::processEvents(QFlags)
()
#9 0x7fc4b0aa6cca in
QEventLoop::exec(QFlags)
(this=this@entry=0x7fff85632ee0, flags=..., flags@entry=...) at
../../include/QtCore/../../src/corelib/global/qflags.h:69
d = 0x559bc75dc720
threadData =
locker = {val = 94127550297272}
ref = {d = 0x559bc75dc720, locker = @0x7fff85632e68, exceptionCaught =
true}
app = 0x7fff85633160
#10 0x7fc4b0aaed92 in QCoreApplication::exec() () at
../../include/QtCore/../../src/corelib/global/qflags.h:121
threadData = 0x559bc7357fb0
eventLoop = { = {_vptr.QObject = 0x7fc4b0d6cb68 , static staticMetaObject = {d = {superdata = {direct = 0x0},
stringdata = 0x7fc4b0c5fa40 , data = 0x7fc4b0c5f920
, static_metacall = 0x7fc4b0ad90c0
,
relatedMetaObjects = 0x0, extradata = 0x0}}, d_ptr = {d = 0x559bc75dc720},
static staticQtMetaObject = {d = {superdata = {direct = 0x0}, stringdata =
0x7fc4b0c629e0 , data = 0x7fc4b0c5fb60
, static_metacall = 0x0, relatedMetaObjects = 0x0, extradata =
0x0}}}, static staticMetaObject = {d = {superdata = {direct = 0x7fc4b0d643e0
}, stringdata = 0x7fc4b0c597e0
, data = 0x7fc4b0c59780
, static_metacall = 0x7fc4b0aa6900
,
relatedMetaObjects = 0x0, extradata = 0x0}}}
returnCode =
#11 0x7fc4b0f5fbe0 in QGuiApplication::exec() () at
kernel/qguiapplication.cpp:1863
#12 0x7fc4affaec89 in QApplication::exec() () at
kernel/qapplication.cpp:2829
#13 0x559bc71bcda8 in main(int, char**) (argc=,
argv=) at
/usr/src/debug/kwin-5.26.4-1.fc37.x86_64/src/main_wayland.cpp:613
environment = {d = {d = 0x559bc7356af0}}
a = { = { = { =
{ = { = {_vptr.QObject = 0x559bc72f0c80 , static staticMetaObject = {d = {superdata =
{direct = 0x0}, stringdata = 0x7fc4b0c5fa40 , data
= 0x7fc4b0c5f920 , static_metacall = 0x7fc4b0ad90c0
,
relatedMetaObjects = 0x0, extradata = 0x0}}, d_ptr = {d = 0x559bc7357e40},
static staticQtMetaObject = {d = {superdata = {direct = 0x0}, str