Bug 409565

Summary: kwin crashes after reinstall
Product: [Plasma] kwin Reporter: yashsorathiya25
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version First Reported In: 5.16.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description yashsorathiya25 2019-07-07 04:57:50 UTC
Application: kwin_x11 (5.16.2)

Qt Version: 5.13.0
Frameworks Version: 5.59.0
Operating System: Linux 5.1.15-arch1-1-ARCH x86_64
Distribution: "Arch Linux"

-- Information about the crash:
- What I was doing when the application crashed:

I installed a ShapeCorners fork known as KDE-rounded-corners and was trying to get round corners but didn't suceed in exactly what I wanted. So I tried removing it and apparently I removed wrong folder (/usr/share/kwin/shaders). So after restarting I am greeted by a black screen. I figured reinstalling kwin would do the job for anything missing and went forward with it. After reinstalling it, Everything works but kwin instantly crashes when the display compositor is set to either opengl 3.1 or opengl 2.0. Right now I'm living off of xrender but this isn't really doing it for me. I'm not really experienced in this so I'll help with the best of my capacity.

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin_x11), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f9a10c54880 (LWP 2400))]

Thread 4 (Thread 0x7f99fffff700 (LWP 2411)):
#0  0x00007f9a16dc9415 in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007f9a178d2edc in  () at /usr/lib/libQt5Script.so.5
#2  0x00007f9a178d2ef9 in  () at /usr/lib/libQt5Script.so.5
#3  0x00007f9a16dc357f in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007f9a1952f0e3 in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7f9a0d74a700 (LWP 2410)):
#0  0x00007f9a19524756 in ppoll () at /usr/lib/libc.so.6
#1  0x00007f9a1806b913 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/libQt5Core.so.5
#2  0x00007f9a1806cfa3 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#3  0x00007f9a180165ec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007f9a17e492f5 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#5  0x00007f9a165538f9 in  () at /usr/lib/libQt5Qml.so.5
#6  0x00007f9a17e4a520 in  () at /usr/lib/libQt5Core.so.5
#7  0x00007f9a16dc357f in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007f9a1952f0e3 in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7f9a0f5e2700 (LWP 2404)):
#0  0x00007f9a19524756 in ppoll () at /usr/lib/libc.so.6
#1  0x00007f9a1806b913 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/libQt5Core.so.5
#2  0x00007f9a1806cfa3 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#3  0x00007f9a180165ec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007f9a17e492f5 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#5  0x00007f9a15f84b37 in  () at /usr/lib/libQt5DBus.so.5
#6  0x00007f9a17e4a520 in  () at /usr/lib/libQt5Core.so.5
#7  0x00007f9a16dc357f in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007f9a1952f0e3 in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7f9a10c54880 (LWP 2400)):
[KCrash Handler]
#6  0x00007f9a18289c70 in typeinfo for QObject () at /usr/lib/libQt5Core.so.5
#7  0x00007f9a192b6926 in KWin::EffectsHandlerImpl::startPaint() () at /usr/lib/libkwin.so.5
#8  0x00007f9a192a464f in KWin::Scene::paintScreen(int*, QRegion const&, QRegion const&, QRegion*, QRegion*, QMatrix4x4 const&, QRect const&) () at /usr/lib/libkwin.so.5
#9  0x00007f9a0d82bb1f in KWin::SceneOpenGL::paint(QRegion, QList<KWin::Toplevel*>) () at /usr/lib/qt/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#10 0x00007f9a19295f33 in KWin::Compositor::performCompositing() () at /usr/lib/libkwin.so.5
#11 0x00007f9a180443e5 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#12 0x00007f9a189cf4d5 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#13 0x00007f9a189d8a21 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#14 0x00007f9a180179c2 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#15 0x00007f9a1806ed3d in QTimerInfoList::activateTimers() () at /usr/lib/libQt5Core.so.5
#16 0x00007f9a1806d109 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#17 0x00007f9a107c839f in  () at /usr/lib/libQt5XcbQpa.so.5
#18 0x00007f9a180165ec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#19 0x00007f9a1801e326 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#20 0x00007f9a195ff588 in kdemain () at /usr/lib/libkdeinit5_kwin_x11.so
#21 0x00007f9a19459ee3 in __libc_start_main () at /usr/lib/libc.so.6
#22 0x000055b77502905e in _start ()
[Inferior 1 (process 2400) detached]

Reported using DrKonqi
Comment 1 Martin Flöser 2019-07-07 06:53:27 UTC
Unfortunately the backtrace is lacking debug symbols. If you are able to reproduce please install debug packages and attach a new backtrace.
Comment 2 yashsorathiya25 2019-07-07 06:57:08 UTC
(In reply to Martin Flöser from comment #1)
> Unfortunately the backtrace is lacking debug symbols. If you are able to
> reproduce please install debug packages and attach a new backtrace.

I'm sorry but I don't know what you're talking about, as I mentioned, I'm quite new to this and this is the first time I'm reporting a bug. Can you please help me out a bit with what I need to do?
Comment 4 yashsorathiya25 2019-07-07 11:33:36 UTC
(In reply to Christoph Feck from comment #3)
> Arch-specific tutorials:
> https://wiki.archlinux.org/index.php/Step-by-step_debugging_guide and
> https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces
> 
> Once you have recompiled with debug symbols, read
> https://community.kde.org/Guidelines_and_HOWTOs/Debugging/
> How_to_create_useful_crash_reports

Hey man, thanks for the resources! I can't seem to be able to understand how to apply them to my case though. I tried googling around as well but didn't find much. How do I add debug symbols to kwin? After running `gdb kwin-x11' it says that it's missing debug symbols. What should I do?
Comment 5 Christoph Feck 2019-07-07 11:53:36 UTC
The Arch documentation says that you need to recompile with debug symbols enabled. Please ask in an Arch forum if you need help with these steps.
Comment 6 Bug Janitor Service 2019-07-22 04:33:08 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 7 Bug Janitor Service 2019-08-06 04:33:10 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!