Bug 396264

Summary: KWin crash after resume from suspend
Product: [Plasma] kwin Reporter: Alessandro <superape96>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: 2012gdwu+k2, 988alex, arojas, daffy, mahead, vlad.zahorodnii
Priority: NOR Keywords: drkonqi
Version: 5.13.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Backtrace
qdbus org.kde.KWin /KWin supportInformation
New crash information added by DrKonqi
New crash information added by DrKonqi

Description Alessandro 2018-07-06 19:22:24 UTC
Application: kwin_x11 (5.13.2)

Qt Version: 5.11.1
Frameworks Version: 5.47.0
Operating System: Linux 4.17.3-1-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
- What I was doing when the application crashed:
Crash after resume from suspend

- Unusual behavior I noticed:
This doesn't happen everytime; I haven't been able to find a pattern

- Custom settings of the application:

The crash can be reproduced sometimes.

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

Thread 6 (Thread 0x7f187cfc5700 (LWP 11909)):
#0  0x00007f189f2c0ffc in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007f18a34642fc in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#2  0x00007f189e42f42d in  () at /usr/lib/libQt5Quick.so.5
#3  0x00007f189e42f69c in  () at /usr/lib/libQt5Quick.so.5
#4  0x00007f18a3463b45 in  () at /usr/lib/libQt5Core.so.5
#5  0x00007f189f2bb075 in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007f18a626a53f in clone () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7f187232b700 (LWP 915)):
#0  0x00007f189f2c0ffc in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007f18a2584aac in  () at /usr/lib/libQt5Script.so.5
#2  0x00007f18a2584ac9 in  () at /usr/lib/libQt5Script.so.5
#3  0x00007f189f2bb075 in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007f18a626a53f in clone () at /usr/lib/libc.so.6

Thread 4 (Thread 0x7f187fde2700 (LWP 884)):
#0  0x00007f18a625ffa6 in ppoll () at /usr/lib/libc.so.6
#1  0x00007f18a3660f0b in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/libQt5Core.so.5
#2  0x00007f18a36623fb in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#3  0x00007f18a361094c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007f18a3459a99 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#5  0x00007f189dd029c9 in  () at /usr/lib/libQt5Qml.so.5
#6  0x00007f18a3463b45 in  () at /usr/lib/libQt5Core.so.5
#7  0x00007f189f2bb075 in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007f18a626a53f in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7f1886373700 (LWP 824)):
#0  0x00007f18a625ffa6 in ppoll () at /usr/lib/libc.so.6
#1  0x00007f18a3660f0b in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/libQt5Core.so.5
#2  0x00007f18a36623fb in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#3  0x00007f18a361094c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007f18a3459a99 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#5  0x00007f189cbf4976 in  () at /usr/lib/libQt5DBus.so.5
#6  0x00007f18a3463b45 in  () at /usr/lib/libQt5Core.so.5
#7  0x00007f189f2bb075 in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007f18a626a53f in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7f188c9be700 (LWP 811)):
#0  0x00007f18a625fea9 in poll () at /usr/lib/libc.so.6
#1  0x00007f18a5183180 in  () at /usr/lib/libxcb.so.1
#2  0x00007f18a5184e4b in xcb_wait_for_event () at /usr/lib/libxcb.so.1
#3  0x00007f188daad22a in  () at /usr/lib/libQt5XcbQpa.so.5
#4  0x00007f18a3463b45 in  () at /usr/lib/libQt5Core.so.5
#5  0x00007f189f2bb075 in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007f18a626a53f in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7f18a68e8840 (LWP 796)):
[KCrash Handler]
#6  0x00007f18a2b8dc29 in  () at /usr/lib/libkwin4_effect_builtins.so.1
#7  0x00007f18a2b8dce6 in  () at /usr/lib/libkwin4_effect_builtins.so.1
#8  0x00007f18a2b8f2d8 in  () at /usr/lib/libkwin4_effect_builtins.so.1
#9  0x00007f18a2b8fcf2 in  () at /usr/lib/libkwin4_effect_builtins.so.1
#10 0x00007f18a5df1b54 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwin.so.5
#11 0x00007f18a2afc57a in  () at /usr/lib/libkwin4_effect_builtins.so.1
#12 0x00007f18a5df1b54 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwin.so.5
#13 0x00007f18a2df349d in KWin::Effect::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwineffects.so.11
#14 0x00007f18a5df1b54 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwin.so.5
#15 0x00007f18a2df349d in KWin::Effect::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwineffects.so.11
#16 0x00007f18a5df1b54 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwin.so.5
#17 0x00007f18a5dddb3d in KWin::Scene::finalPaintWindow(KWin::EffectWindowImpl*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwin.so.5
#18 0x00007f18a5df19e5 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwin.so.5
#19 0x00007f18a2b7da8f in  () at /usr/lib/libkwin4_effect_builtins.so.1
#20 0x00007f18a5df1984 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwin.so.5
#21 0x00007f18a2df332d in KWin::Effect::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwineffects.so.11
#22 0x00007f18a5df1984 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwin.so.5
#23 0x00007f18a2df332d in KWin::Effect::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwineffects.so.11
#24 0x00007f18a5df1984 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwin.so.5
#25 0x00007f18a2e001dc in KWin::AnimationEffect::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwineffects.so.11
#26 0x00007f18a5df1984 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwin.so.5
#27 0x00007f18a2e001dc in KWin::AnimationEffect::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwineffects.so.11
#28 0x00007f18a5df1984 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwin.so.5
#29 0x00007f18a5de4143 in KWin::Scene::paintWindow(KWin::Scene::Window*, int, QRegion, KWin::WindowQuadList) () at /usr/lib/libkwin.so.5
#30 0x00007f18a5de07f7 in KWin::Scene::paintSimpleScreen(int, QRegion) () at /usr/lib/libkwin.so.5
#31 0x00007f187e989a04 in  () at /usr/lib/qt/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#32 0x00007f18a5de36d1 in KWin::Scene::finalPaintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#33 0x00007f18a5df1737 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#34 0x00007f18a2df3282 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwineffects.so.11
#35 0x00007f18a5df16de in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#36 0x00007f18a2df3282 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwineffects.so.11
#37 0x00007f18a5df16de in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#38 0x00007f18a2df3282 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwineffects.so.11
#39 0x00007f18a5df16de in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#40 0x00007f18a2df3282 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwineffects.so.11
#41 0x00007f18a5df16de in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#42 0x00007f18a2df3282 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwineffects.so.11
#43 0x00007f18a5df16de in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#44 0x00007f18a5de336b in KWin::Scene::paintScreen(int*, QRegion const&, QRegion const&, QRegion*, QRegion*, QMatrix4x4 const&, QRect const&) () at /usr/lib/libkwin.so.5
#45 0x00007f187e991037 in KWin::SceneOpenGL::paint(QRegion, QList<KWin::Toplevel*>) () at /usr/lib/qt/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#46 0x00007f18a5dd4bfe in KWin::Compositor::performCompositing() () at /usr/lib/libkwin.so.5
#47 0x00007f18a363c38b in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#48 0x00007f18a4385a74 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#49 0x00007f18a438d341 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#50 0x00007f18a3611cb9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#51 0x00007f18a366440a in QTimerInfoList::activateTimers() () at /usr/lib/libQt5Core.so.5
#52 0x00007f18a366254e in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#53 0x00007f188db429de in  () at /usr/lib/libQt5XcbQpa.so.5
#54 0x00007f18a361094c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#55 0x00007f18a3618c46 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#56 0x00007f18a6536b56 in kdemain () at /usr/lib/libkdeinit5_kwin_x11.so
#57 0x00007f18a619506b in __libc_start_main () at /usr/lib/libc.so.6
#58 0x0000563943c0875a in _start ()

Reported using DrKonqi
Comment 1 Vlad Zahorodnii 2018-07-06 19:54:15 UTC
The backtrace has missing debug symbols so it's not really useful. You can't do anything about it because Arch Linux doesn't have packages with debug symbols.

I think this bug is a dup of 372305.
Comment 2 Antonio Rojas 2018-07-06 23:05:30 UTC
(In reply to Vlad Zagorodniy from comment #1)
> You can't do anything about it because Arch Linux doesn't have packages with
> debug symbols.

Of course you can
https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces
Comment 3 Martin Flöser 2018-07-07 05:07:23 UTC
Setting to needsinfo
Comment 4 Alessandro 2018-07-07 11:33:24 UTC
I'm sorry, but after reading the ArchWiki page and reading my backtrace, I can't find which are the missing symbols and which package I have to re-install with the instructions in the wiki page.

I can try to make it and then reply with a good backtrace.
Sorry but it's my first bug segnalation. I'd like to help, however.
Comment 5 Vlad Zahorodnii 2018-07-07 12:06:13 UTC
(In reply to Alessandro from comment #4)
> I'm sorry, but after reading the ArchWiki page and reading my backtrace, I
> can't find which are the missing symbols and which package I have to
> re-install with the instructions in the wiki page.

You need to repackage kwin.

* Install asp
  sudo pacman -S asp

* Get PKGBUILD file
  asp export kwin
  cd kwin

* Pass CMAKE_BUILD_TYPE option as said in the ArchWiki article

* Build and install
  makepkg -i

(if you'd like to skip signature check, pass --skippgpcheck)

* Restart your session

---

After you submitted backtrace with debug symbols, install kwin from extra
  sudo pacman -S extra/kwin
Comment 6 Alessandro 2018-07-07 14:16:08 UTC
Created attachment 113816 [details]
Backtrace

Backtrace
Comment 7 Vlad Zahorodnii 2018-07-08 19:44:52 UTC
#6  0x00007f4921401499 in KWin::ContrastEffect::uploadRegion(QVector2D*&, QRegion const&) (this=this@entry=0x5624efed9e60, map=@0x7ffeff084258: 0x7f48edd33040, region=...) at /usr/include/qt/QtCore/qrect.h:269

That's weird. So, `this` of a QRect is invalid?
Any thoughts?

Could you please attach output of
qdbus org.kde.KWin /KWin supportInformation
Comment 8 Alessandro 2018-07-08 20:32:47 UTC
Created attachment 113841 [details]
qdbus org.kde.KWin /KWin supportInformation

Sure!

Let me know if you need something else.
Comment 9 Vlad Zahorodnii 2018-07-15 19:47:35 UTC
*** Bug 396273 has been marked as a duplicate of this bug. ***
Comment 10 mahead 2018-07-28 22:14:59 UTC
Created attachment 114184 [details]
New crash information added by DrKonqi

kwin_x11 (5.13.3) using Qt 5.11.1

- What I was doing when the application crashed:

My computer was in standby. Kwin crashed after I resumed usage.

-- Backtrace (Reduced):
#6  KWin::ContrastEffect::uploadRegion (this=this@entry=0x26d63b0, map=@0x7ffe3bf011e8: 0x7f122776d750, region=...) at /workspace/build/effects/backgroundcontrast/contrast.cpp:281
#7  0x00007f12560559a4 in KWin::ContrastEffect::uploadGeometry (this=this@entry=0x26d63b0, vbo=vbo@entry=0x1df7c50, region=...) at /workspace/build/effects/backgroundcontrast/contrast.cpp:299
#8  0x00007f1256056ea4 in KWin::ContrastEffect::doContrast (this=this@entry=0x26d63b0, w=w@entry=0x2856ee0, shape=..., screen=..., opacity=0, screenProjection=...) at /workspace/build/effects/backgroundcontrast/contrast.cpp:442
#9  0x00007f1256057929 in KWin::ContrastEffect::drawWindow (this=this@entry=0x26d63b0, w=w@entry=0x2856ee0, mask=mask@entry=2, region=..., data=...) at /workspace/build/effects/backgroundcontrast/contrast.cpp:419
#10 0x00007f12592f530e in KWin::EffectsHandlerImpl::drawWindow (this=0x2793480, w=w@entry=0x2856ee0, mask=mask@entry=2, region=..., data=...) at /workspace/build/effects.cpp:456
Comment 11 Sebita 2018-09-01 01:57:32 UTC
Created attachment 114726 [details]
New crash information added by DrKonqi

kwin_x11 (5.13.4) using Qt 5.10.1

Just resuming from suspend

-- Backtrace (Reduced):
#6  0x00007f17ef9a3699 in KWin::ContrastEffect::uploadRegion(QVector2D*&, QRegion const&) () from /lib64/libkwin4_effect_builtins.so.1
#7  0x00007f17ef9a3758 in KWin::ContrastEffect::uploadGeometry(KWin::GLVertexBuffer*, QRegion const&) () from /lib64/libkwin4_effect_builtins.so.1
#8  0x00007f17ef9a4ce9 in KWin::ContrastEffect::doContrast(KWin::EffectWindow*, QRegion const&, QRect const&, float, QMatrix4x4 const&) () from /lib64/libkwin4_effect_builtins.so.1
#9  0x00007f17ef9a56d3 in KWin::ContrastEffect::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () from /lib64/libkwin4_effect_builtins.so.1
#10 0x00007f17effc49b7 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () from /lib64/libkwin.so.5
Comment 12 Vlad Zahorodnii 2019-02-15 10:40:57 UTC

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