[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 --- Comment #26 from Rainer Finke --- Since Plasma 5.19 beta I can turn off and on the monitor with the power button without any crash of kwin. Seems like there is a fix that helped at least on my system. Operating System: Arch Linux KDE Plasma Version: 5.18.90 KDE Frameworks Version: 5.70.0 Qt Version: 5.15.0 Kernel Version: 5.6.15-arch1-1 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 Rainer Finke changed: What|Removed |Added Version|5.15.0 |5.15.90 --- Comment #21 from Rainer Finke --- Kwin is still crashing when turning on the monitor. Operating System: Arch Linux KDE Plasma Version: 5.15.90 KDE Frameworks Version: 5.58.0 Qt Version: 5.13.0 Kernel Version: 5.1.2-arch1-1-ARCH OS Type: 64-bit Processors: 16 × AMD Ryzen 7 1700 Eight-Core Processor Memory: 31,4 GiB of RAM -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 Rainer Finke changed: What|Removed |Added Version|5.15.90 |5.16.90 --- Comment #22 from Rainer Finke --- Still crashing on Plasma 5.17 Beta when turning on the monitor with the power button. Operating System: Arch Linux KDE Plasma Version: 5.16.90 KDE Frameworks Version: 5.62.0 Qt Version: 5.14.0 Kernel Version: 5.3.6-arch1-1-ARCH OS Type: 64-bit AMD GPU -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 Martin Flöser changed: What|Removed |Added Resolution|--- |BACKTRACE Status|REPORTED|NEEDSINFO --- Comment #1 from Martin Flöser --- Unfortunately the backtrace is lacking debug. If you are able to reproduce please install debug packages and try to get a backtrace. Best chance is to attach to running KWin through ssh. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 --- Comment #2 from JordanL --- Any idea which (if any) packages I need to rebuild with debug symbols? It looks like I need to rebuild mesa but I'm not 100% sure. $ pacman -Qo /usr/lib/libgbm.so.1.0.0 /usr/lib/libgbm.so.1.0.0 is owned by mesa 18.3.1-1 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 --- Comment #3 from JordanL --- Seems I also need to rebuild kwin with debug symbols (makes sense!). Think I'm close to having the backtrace now. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 --- Comment #4 from JordanL --- Sorry, even after installing kwin and mesa built with debug symbols, I get no backtrace and have no idea where to go next. I've attached the latest log I get (log4.txt). -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 --- Comment #5 from JordanL --- Created attachment 117281 --> https://bugs.kde.org/attachment.cgi?id=117281&action=edit New log after rebuilding kwin and mesa with debug symbols -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 --- Comment #6 from JordanL --- I worked out how to attach the debugger while kwin_wayland is still running. It throws SIGABRT when calling raise() in /usr/lib/libc.so.6 - so I will now rebuild glibc with debug symbols and see if that gets me anywhere. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 --- Comment #7 from JordanL --- Debugger log after rebuilding glibc with debug: Continuing. [Detaching after fork from child process 1548] Thread 1 "kwin_wayland" received signal SIGABRT, Aborted. __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. Detaching from program: /usr/bin/kwin_wayland, process 1158 [Inferior 1 (process 1158) detached] -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 --- Comment #8 from JordanL --- Created attachment 117283 --> https://bugs.kde.org/attachment.cgi?id=117283&action=edit Log of all threads before raise is called -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 --- Comment #9 from JordanL --- Attached a new log, "Log of all threads before raise is called". This is a backtrace of all kwin threads at the point it called raise(). I believe thread 1 is the thread that is relevant here: Thread 1 (Thread 0x7f6809ac7440 (LWP 3559)): #0 0x7f6811888c70 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:28 #1 0x7f6811873672 in __GI_abort () at abort.c:79 #2 0x7f6811c547fc in () at /usr/lib/libQt5Core.so.5 #3 0x7f6811c53c83 in () at /usr/lib/libQt5Core.so.5 #4 0x7f6807b5a70e in QVector::at(int) const () at /usr/lib/qt/plugins/org.kde.kwin.waylandbackends/KWinWaylandDrmBackend.so #5 0x7f6807b5a70e in KWin::EglGbmBackend::prepareRenderingForScreen(int) (this=, screenId=) at /usr/src/debug/kwin-5.14.4/plugins/platforms/drm/egl_gbm_backend.cpp:342 #6 0x7f68072f370e in KWin::SceneOpenGL::paint(QRegion, QList) (this=this@entry=0x55f28420b560, damage=..., toplevels=...) at /usr/src/debug/kwin-5.14.4/plugins/scenes/opengl/scene_opengl.cpp:663 #7 0x7f6812c327de in KWin::Compositor::performCompositing() (this=0x7f67f800ae50) at /usr/src/debug/kwin-5.14.4/composite.cpp:745 #8 0x7f68087db705 in drmHandleEvent () at /usr/lib/libdrm.so.2 #9 0x7f6807b5b09a in KWin::DrmBackendoperator() (__closure=) at /usr/src/debug/kwin-5.14.4/plugins/platforms/drm/drm_backend.cpp:270 #10 0x7f6807b5b09a in QtPrivate::FunctorCall, QtPrivate::List<>, void, KWin::DrmBackend::openDrm():: >::call (arg=, f=...) at /usr/include/qt/QtCore/qobjectdefs_impl.h:146 #11 0x7f6807b5b09a in QtPrivate::Functor, 0>::call, void> (arg=, f=...) at /usr/include/qt/QtCore/qobjectdefs_impl.h:256 #12 0x7f6807b5b09a in QtPrivate::QFunctorSlotObject, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=, this_=, r=, a=, ret=) at /usr/include/qt/QtCore/qobjectdefs_impl.h:439 #13 0x7f6811e753e0 in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/libQt5Core.so.5 #14 0x7f6811e80eea in QSocketNotifier::activated(int, QSocketNotifier::QPrivateSignal) () at /usr/lib/libQt5Core.so.5 #15 0x7f6811e81242 in QSocketNotifier::event(QEvent*) () at /usr/lib/libQt5Core.so.5 #16 0x7f6812256e34 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5 #17 0x7f681225e671 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5 #18 0x7f6811e4a8f9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5 #19 0x7f6811e9d710 in QEventDispatcherUNIXPrivate::activateSocketNotifiers() () at /usr/lib/libQt5Core.so.5 #20 0x7f6811e9da19 in QEventDispatcherUNIX::processEvents(QFlags) () at /usr/lib/libQt5Core.so.5 #21 0x7f68097c28be in QUnixEventDispatcherQPA::processEvents(QFlags) () at /usr/lib/qt/plugins/platforms/KWinQpaPlugin.so #22 0x7f6811e4958c in QEventLoop::exec(QFlags) () at /usr/lib/libQt5Core.so.5 #23 0x7f6811e51896 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5 #24 0x55f282fb8822 in main(int, char**) (argc=, argv=) at /usr/src/debug/kwin-5.14.4/main_wayland.cpp:807 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 Martin Flöser changed: What|Removed |Added Status|NEEDSINFO |REPORTED Component|wayland-generic |platform-drm Resolution|BACKTRACE |--- Flags||Wayland+, X11- Severity|major |crash --- Comment #10 from Martin Flöser --- Thanks, that is a really good backtrace. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 --- Comment #11 from Martin Flöser --- My theory is that no screens are temporarily connected and we try to render. >From what I can see in the code is that we possibly don't handle the situation correctly. It looks like we don't allow the count to go to 0, though there are 0 screens. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 --- Comment #12 from Martin Flöser --- a shot in the blue patch: https://phabricator.kde.org/D17985 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 --- Comment #13 from JordanL --- I'll attempt to test this patch, any info you can point me to to help me rebuild kwin with it? Worst case I could manually apply the changes in the src and rebuild but I'm sure there's a quicker way! -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 --- Comment #14 from JordanL --- "svn patch" would't play ball, so I manually applied the patch to 5.14.4 and rebuilt. The issue still occurs. The backtrace is different though, so I think this is progress. The backtrace differs from #8 onwards as far as I can see. Thread 1 (Thread 0x7fe8a331e440 (LWP 1160)): #0 0x7fe8ab0dfc70 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:28 #1 0x7fe8ab0ca672 in __GI_abort () at abort.c:79 #2 0x7fe8ab4ab7fc in () at /usr/lib/libQt5Core.so.5 #3 0x7fe8ab4aac83 in () at /usr/lib/libQt5Core.so.5 #4 0x7fe8a13b170e in QVector::at(int) const () at /usr/lib/qt/plugins/org.kde.kwin.waylandbackends/KWinWaylandDrmBackend.so #5 0x7fe8a13b170e in KWin::EglGbmBackend::prepareRenderingForScreen(int) (this=, screenId=) at /usr/src/debug/kwin-5.14.4/plugins/platforms/drm/egl_gbm_backend.cpp:342 #6 0x7fe8a034970e in KWin::SceneOpenGL::paint(QRegion, QList) (this=this@entry=0x55db40fa39a0, damage=..., toplevels=...) at /usr/src/debug/kwin-5.14.4/plugins/scenes/opengl/scene_opengl.cpp:663 #7 0x7fe8ac4897de in KWin::Compositor::performCompositing() (this=0x55db40989f30) at /usr/src/debug/kwin-5.14.4/composite.cpp:745 #8 0x7fe8ab6ccb1b in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5 #9 0x7fe8abaade34 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5 #10 0x7fe8abab5671 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5 #11 0x7fe8ab6a18f9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5 #12 0x7fe8ab6f6955 in QTimerInfoList::activateTimers() () at /usr/lib/libQt5Core.so.5 #13 0x7fe8ab6f4a9e in QEventDispatcherUNIX::processEvents(QFlags) () at /usr/lib/libQt5Core.so.5 #14 0x7fe8a30198be in QUnixEventDispatcherQPA::processEvents(QFlags) () at /usr/lib/qt/plugins/platforms/KWinQpaPlugin.so #15 0x7fe8ab6a058c in QEventLoop::exec(QFlags) () at /usr/lib/libQt5Core.so.5 #16 0x7fe8ab6a8896 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5 #17 0x55db3f62d852 in main(int, char**) (argc=, argv=) at /usr/src/debug/kwin-5.14.4/main_wayland.cpp:807 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 --- Comment #15 from Martin Flöser --- It's still the same. Backtraces are top to bottom -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 Martin Flöser changed: What|Removed |Added CC||m...@rainer-finke.de --- Comment #16 from Martin Flöser --- *** Bug 402933 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 Roman Gilg changed: What|Removed |Added Status|REPORTED|RESOLVED Resolution|--- |FIXED Latest Commit||https://commits.kde.org/kwi ||n/2632e4182c658178af82be175 ||575b094002468af --- Comment #23 from Roman Gilg --- Git commit 2632e4182c658178af82be175575b094002468af by Roman Gilg. Committed on 08/01/2020 at 09:12. Pushed by romangilg into branch 'master'. [platforms/drm] Allow running without outputs Summary: Set outputs enablement also when none outputs are present. This patch is similar to earlier attempt at D17985. Related: bug 389551, bug 398680, bug 413758 Test Plan: Starting without outputs, manual disconnects and DPMS changes. There is still an issue when an output gets disconnected while the DPMS is off. But it's an improvement already. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Maniphest Tasks: T10016 Differential Revision: https://phabricator.kde.org/D26511 M +2-6plugins/platforms/drm/drm_backend.cpp https://commits.kde.org/kwin/2632e4182c658178af82be175575b094002468af -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 --- Comment #17 from Rainer Finke --- After the upgrade to Plasma 5.15 beta kwin doesn't segfault anymore, if the monitor is turned off via the power settings after e.g. 5 minutes. I can then just continue to work with the Plasma session on wayland after pressing a key on the keyboard. But it still doesn't work (with the external AMD GPU), if I turn off and on the monitor with the power button, then there is still a segfault of kwin. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 --- Comment #18 from JordanL --- Well that's progress at least, I might be able to use the Wayland session full time if so. Could you get the backtrace from the segfault when you turn the monitor off? In case it's different? -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 --- Comment #19 from Rainer Finke --- The segfault is happening only when turning the monitor on. It seems like kwin doesn't get the monitor, at least not fast enough. The referenced bug report contains my segfault, but I will test again at the weekend. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 --- Comment #20 from JordanL --- Just retested on Arch with Plasma 5.15.0, KDE frameworks 5.55.0, Qt 5.12.1, same hardware as before. Bug is still present, when monitors turn off due to power saving. kwin_wayland dumps core. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 JordanL changed: What|Removed |Added Version|5.14.4 |5.15.0 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 Stijn Tintel changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED |--- CC||stijn+b...@linux-ipv6.be Ever confirmed|0 |1 --- Comment #24 from Stijn Tintel --- This is not fixed, it is even written in the commit message: > There is still an issue when an output gets disconnected while the DPMS is > off. I have an iiyama b2888uhsu where I seem to hit that. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 Rainer Finke changed: What|Removed |Added Version|5.16.90 |5.18.0 --- Comment #25 from Rainer Finke --- Kwin crashed today after disconnecting and reconnecting the monitor and I was thrown back to SDDM. Operating System: Arch Linux KDE Plasma Version: 5.18.0 KDE Frameworks Version: 5.67.0 Qt Version: 5.14.1 Kernel Version: 5.5.4-arch1-1 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 Jasmin Buchert changed: What|Removed |Added CC||jbuchert+kdeb...@gmail.com -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 k...@disguised.io changed: What|Removed |Added CC||k...@disguised.io -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 kde@grau.net changed: What|Removed |Added Resolution|--- |WAITINGFORINFO Status|REOPENED|NEEDSINFO CC||kde@grau.net --- Comment #27 from kde@grau.net --- This bug report is quite old and Rainer Finke reported the issue resolved. Can anyone still reproduce this issue with KDE 5.23? If so, can you please install debugging packages following the info provided in https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports, try to reproduce the bug and submit a backtrace with debugging information. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 --- Comment #28 from JordanL --- I can't reproduce it (since returning to Plasma Wayland with 5.22.5), however I did replace my monitors with new ones which have far fewer issues with this sort of thing than my previous ones. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 kde@grau.net changed: What|Removed |Added Resolution|WAITINGFORINFO |FIXED Status|NEEDSINFO |RESOLVED --- Comment #29 from kde@grau.net --- Thank you for reporting that the issue cannot be reproduced anymore. Will close this report, assuming the bug has been fixed. Should the problem arise again, either this bug report can be reopened or a new one can be created (preferably). -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 402827] kwin_wayland segfault on monitor wakeup
https://bugs.kde.org/show_bug.cgi?id=402827 Anthony Messina changed: What|Removed |Added CC||amess...@messinet.com -- You are receiving this mail because: You are watching all bug changes.