Bug 365964 - KWin crash when I run fullscreen games
Summary: KWin crash when I run fullscreen games
Status: RESOLVED DUPLICATE of bug 347495
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.5.5
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2016-07-21 20:01 UTC by Guo Yunhe
Modified: 2016-07-23 10:31 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Debug output of kwin (29.93 KB, text/plain)
2016-07-23 07:59 UTC, Guo Yunhe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guo Yunhe 2016-07-21 20:01:33 UTC
Application: kwin_x11 (5.5.5)

Qt Version: 5.5.1
Operating System: Linux 4.1.27-24-default x86_64
Distribution: "openSUSE Leap 42.1 (x86_64)"

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

Everytime I start MegaGlest, Torchlight 2, and some other full screen games, KWin will crash.

The crash can be reproduced every time.

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

Thread 3 (Thread 0x7ff877dbd700 (LWP 1625)):
#0  0x00007ff898016293 in select () at /lib64/libc.so.6
#1  0x00007ff895e47179 in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timespec const*) () at /usr/lib64/libQt5Core.so.5
#2  0x00007ff895e48af5 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) () at /usr/lib64/libQt5Core.so.5
#3  0x00007ff895e48f3b in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007ff895df1d53 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007ff895c1361a in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#6  0x00007ff890115e18 in  () at /usr/lib64/libQt5Qml.so.5
#7  0x00007ff895c1832f in  () at /usr/lib64/libQt5Core.so.5
#8  0x00007ff8976490a4 in start_thread () at /lib64/libpthread.so.0
#9  0x00007ff89801d02d in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7ff86bfff700 (LWP 1632)):
#0  0x00007ff89764d03f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007ff894b9b86b in  () at /usr/lib64/libQt5Script.so.5
#2  0x00007ff894b9b899 in  () at /usr/lib64/libQt5Script.so.5
#3  0x00007ff8976490a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007ff89801d02d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7ff898689800 (LWP 1609)):
[KCrash Handler]
#6  0x00007ff897bf1acd in  () at /usr/lib64/libkwin.so.5
#7  0x00007ff897bf1b89 in  () at /usr/lib64/libkwin.so.5
#8  0x00007ff895e24b18 in QObject::event(QEvent*) () at /usr/lib64/libQt5Core.so.5
#9  0x00007ff896ad7e7c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#10 0x00007ff896adccc8 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#11 0x00007ff895df3e95 in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5
#12 0x00007ff895df6057 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib64/libQt5Core.so.5
#13 0x00007ff895e48ec4 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#14 0x00007ff87fe7933d in  () at /usr/lib64/libQt5XcbQpa.so.5
#15 0x00007ff895df1d53 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#16 0x00007ff895df98f6 in QCoreApplication::exec() () at /usr/lib64/libQt5Core.so.5
#17 0x00007ff8982e59e7 in kdemain () at /usr/lib64/libkdeinit5_kwin_x11.so
#18 0x00007ff897f59b25 in __libc_start_main () at /lib64/libc.so.6
#19 0x000000000040085e in _start ()

Reported using DrKonqi
Comment 1 Thomas Lübking 2016-07-21 20:03:09 UTC
#6  0x00007ff897bf1acd in  () at /usr/lib64/libkwin.so.5
#7  0x00007ff897bf1b89 in  () at /usr/lib64/libkwin.so.5


please install the kwin-dbg package and recause the crash
Comment 2 Guo Yunhe 2016-07-23 07:59:20 UTC
Only one thing fail in debug info:

0x00007fd1117450dd in nanosleep () at ../sysdeps/unix/syscall-template.S:81
81      ../sysdeps/unix/syscall-template.S: No such file or directory.

The full debug output is in attachment.
Comment 3 Guo Yunhe 2016-07-23 07:59:54 UTC
Created attachment 100256 [details]
Debug output of kwin
Comment 4 Thomas Lübking 2016-07-23 10:24:26 UTC
No.
Please install kwin-dbg, trigger the crash (run the fullscreen game) and attach the new developer information from the crash dialog (just what you posted before, but now it will contain more information)

(The latest attachment shows gdb attached to kwin, there's no segfault occurred and notably no trace contained.)
Comment 5 Guo Yunhe 2016-07-23 10:28:43 UTC
Got it, here is it:

Application: KWin (kwin_x11), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fcf1d707800 (LWP 14299))]

Thread 5 (Thread 0x7fcf00b0e700 (LWP 14313)):
#0  0x00007fcf1d094293 in select () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fcf1aec5179 in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timespec const*) (nfds=16, fdread=0x7fcef8000a78, fdwrite=0x7fcef8000d08, fdexcept=0x7fcef8000f98, orig_timeout=0x0) at kernel/qcore_unix.cpp:75
#2  0x00007fcf1aec6af5 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) (this=this@entry=0x7fcef80008e0, flags=..., flags@entry=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:196
#3  0x00007fcf1aec6f3b in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fcef80008c0, flags=...) at kernel/qeventdispatcher_unix.cpp:607
#4  0x00007fcf1ae6fd53 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fcf00b0ddb0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#5  0x00007fcf1ac9161a in QThread::exec() (this=this@entry=0xfb7350) at thread/qthread.cpp:503
#6  0x00007fcf15193e18 in QQmlThreadPrivate::run() (this=0xfb7350) at /usr/src/debug/qtdeclarative-opensource-src-5.5.1/src/qml/qml/ftw/qqmlthread.cpp:141
#7  0x00007fcf1ac9632f in QThreadPrivate::start(void*) (arg=0xfb7350) at thread/qthread_unix.cpp:331
#8  0x00007fcf1c6c70a4 in start_thread (arg=0x7fcf00b0e700) at pthread_create.c:309
#9  0x00007fcf1d09b02d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7fcef25aa700 (LWP 14315)):
#0  0x00007fcf1c6cb03f in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fcf19c1986b in QTWTF::TCMalloc_PageHeap::scavengerThread() (this=0x7fcf19f00ea0 <QTWTF::pageheap_memory>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007fcf19c19899 in QTWTF::TCMalloc_PageHeap::runScavengerThread(void*) (context=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007fcf1c6c70a4 in start_thread (arg=0x7fcef25aa700) at pthread_create.c:309
#4  0x00007fcf1d09b02d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7fcef1374700 (LWP 24581)):
#0  0x00007fcf1c6cb3e8 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007fcf1ac97298 in QWaitCondition::wait(QMutex*, unsigned long) (time=30000, this=0x188bab0) at thread/qwaitcondition_unix.cpp:126
#2  0x00007fcf1ac97298 in QWaitCondition::wait(QMutex*, unsigned long) (time=30000, this=0x188bab0) at thread/qwaitcondition_unix.cpp:134
#3  0x00007fcf1ac97298 in QWaitCondition::wait(QMutex*, unsigned long) (this=this@entry=0x181c950, mutex=mutex@entry=0xe30df0, time=30000) at thread/qwaitcondition_unix.cpp:208
#4  0x00007fcf1ac934e6 in QThreadPoolThread::run() (this=0x181c940) at thread/qthreadpool.cpp:127
#5  0x00007fcf1ac9632f in QThreadPrivate::start(void*) (arg=0x181c940) at thread/qthread_unix.cpp:331
#6  0x00007fcf1c6c70a4 in start_thread (arg=0x7fcef1374700) at pthread_create.c:309
#7  0x00007fcf1d09b02d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7fcf01af2700 (LWP 24582)):
#0  0x00007fcf1c6cb3e8 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007fcf1ac97298 in QWaitCondition::wait(QMutex*, unsigned long) (time=30000, this=0xe31050) at thread/qwaitcondition_unix.cpp:126
#2  0x00007fcf1ac97298 in QWaitCondition::wait(QMutex*, unsigned long) (time=30000, this=0xe31050) at thread/qwaitcondition_unix.cpp:134
#3  0x00007fcf1ac97298 in QWaitCondition::wait(QMutex*, unsigned long) (this=this@entry=0xe1fb20, mutex=mutex@entry=0xe30df0, time=30000) at thread/qwaitcondition_unix.cpp:208
#4  0x00007fcf1ac934e6 in QThreadPoolThread::run() (this=0xe1fb10) at thread/qthreadpool.cpp:127
#5  0x00007fcf1ac9632f in QThreadPrivate::start(void*) (arg=0xe1fb10) at thread/qthread_unix.cpp:331
#6  0x00007fcf1c6c70a4 in start_thread (arg=0x7fcf01af2700) at pthread_create.c:309
#7  0x00007fcf1d09b02d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7fcf1d707800 (LWP 14299)):
[KCrash Handler]
#6  0x00007fcf1cc6facd in KWin::SceneOpenGLShadow::~SceneOpenGLShadow() (this=0x1999890, __in_chrg=<optimized out>) at /usr/src/debug/kwin-5.5.5/scene_opengl.cpp:2210
#7  0x00007fcf1cc6fb89 in KWin::SceneOpenGLShadow::~SceneOpenGLShadow() (this=0x1999890, __in_chrg=<optimized out>) at /usr/src/debug/kwin-5.5.5/scene_opengl.cpp:2213
#8  0x00007fcf1aea2b18 in QObject::event(QEvent*) (this=0x1999890, e=<optimized out>) at kernel/qobject.cpp:1230
#9  0x00007fcf1bb55e7c in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0xcfb910, receiver=receiver@entry=0x1999890, e=e@entry=0x19996d0) at kernel/qapplication.cpp:3716
#10 0x00007fcf1bb5acc8 in QApplication::notify(QObject*, QEvent*) (this=0x7ffe8fb04ff0, receiver=0x1999890, e=0x19996d0) at kernel/qapplication.cpp:3499
#11 0x00007fcf1ae71e95 in QCoreApplication::notifyInternal(QObject*, QEvent*) (this=0x7ffe8fb04ff0, receiver=0x1999890, event=event@entry=0x19996d0) at kernel/qcoreapplication.cpp:965
#12 0x00007fcf1ae74057 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (event=0x19996d0, receiver=<optimized out>) at kernel/qcoreapplication.h:224
#13 0x00007fcf1ae74057 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0xceb4f0) at kernel/qcoreapplication.cpp:1593
#14 0x00007fcf1aec6ec4 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0xd4a450, flags=flags@entry=...) at kernel/qeventdispatcher_unix.cpp:579
#15 0x00007fcf04ef733d in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=<optimized out>, flags=...) at eventdispatchers/qunixeventdispatcher.cpp:62
#16 0x00007fcf1ae6fd53 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffe8fb04f20, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#17 0x00007fcf1ae778f6 in QCoreApplication::exec() () at kernel/qcoreapplication.cpp:1229
#18 0x00007fcf1b3bb8ec in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1529
#19 0x00007fcf1bb52605 in QApplication::exec() () at kernel/qapplication.cpp:2976
#20 0x00007fcf1d3639e7 in kdemain(int, char**) (argc=3, argv=0x7ffe8fb05158) at /usr/src/debug/kwin-5.5.5/main_x11.cpp:309
#21 0x00007fcf1cfd7b25 in __libc_start_main (main=0x400830 <main(int, char**)>, argc=3, argv=0x7ffe8fb05158, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffe8fb05148) at libc-start.c:285
#22 0x000000000040085e in _start () at ../sysdeps/x86_64/start.S:122
Comment 6 Thomas Lübking 2016-07-23 10:31:10 UTC
Thanks, the bug is fixed in 5.6

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