Bug 292614 - KWin crashed when I was switching windows
Summary: KWin crashed when I was switching windows
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: 4.9
Assignee: KWin default assignee
URL:
Keywords:
: 298644 300325 300809 335119 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-27 17:36 UTC by Jure Repinc
Modified: 2014-05-21 11:08 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.9


Attachments
New crash information added by DrKonqi (5.53 KB, text/plain)
2012-10-10 17:26 UTC, 0fx
Details
New crash information added by DrKonqi (4.97 KB, text/plain)
2012-12-28 07:57 UTC, lastpokemon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jure Repinc 2012-01-27 17:36:55 UTC
Application: kwin (4.8.00 (4.8.0)
KDE Platform Version: 4.8.00 (4.8.0 (Compiled from sources)
Qt Version: 4.8.0
Operating System: Linux 3.2.0-rc7+ x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
- What I was doing when the application crashed:
When the crash happened I was switching windows with Alt+Tab. I have changed the default effect to be Cover Switch for this.

-- Backtrace:
Application: KWin (kwin), signal: Aborted
[Current thread is 1 (Thread 0x7f639254f780 (LWP 2646))]

Thread 3 (Thread 0x7f63873c3700 (LWP 2678)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f638c2cea4b in ?? () from /usr/lib64/dri/r600_dri.so
#2  0x0000003354608f7c in start_thread (arg=0x7f63873c3700) at pthread_create.c:301
#3  0x0000003353adaded in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f6385e6b700 (LWP 2679)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x0000003a24789faa in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x3a24a8ae80) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x0000003a24789fe9 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x0000003354608f7c in start_thread (arg=0x7f6385e6b700) at pthread_create.c:301
#4  0x0000003353adaded in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f639254f780 (LWP 2646)):
[KCrash Handler]
#6  0x0000003353a37d75 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x0000003353a39245 in __GI_abort () at abort.c:93
#8  0x0000003354ebcaad in __gnu_cxx::__verbose_terminate_handler () at /var/tmp/portage/sys-devel/gcc-4.6.2/work/gcc-4.6.2/libstdc++-v3/libsupc++/vterminate.cc:95
#9  0x0000003354ebac26 in __cxxabiv1::__terminate (handler=<optimized out>) at /var/tmp/portage/sys-devel/gcc-4.6.2/work/gcc-4.6.2/libstdc++-v3/libsupc++/eh_terminate.cc:40
#10 0x0000003354ebac53 in std::terminate () at /var/tmp/portage/sys-devel/gcc-4.6.2/work/gcc-4.6.2/libstdc++-v3/libsupc++/eh_terminate.cc:50
#11 0x0000003354ebb6ff in __cxxabiv1::__cxa_pure_virtual () at /var/tmp/portage/sys-devel/gcc-4.6.2/work/gcc-4.6.2/libstdc++-v3/libsupc++/pure.cc:50
#12 0x00007f638673c048 in KWin::CoverSwitchEffect::postPaintScreen (this=0x119a250) at /var/tmp/portage/kde-base/kwin-4.8.49.9999/work/kwin-4.8.49.9999/kwin/effects/coverswitch/coverswitch.cpp:411
#13 0x0000003ad16d6007 in KWin::EffectsHandlerImpl::postPaintScreen (this=0xfdf410) at /var/tmp/portage/kde-base/kwin-4.8.49.9999/work/kwin-4.8.49.9999/kwin/effects.cpp:228
#14 0x0000003ad16b3f60 in KWin::Scene::paintScreen (this=0xc5aab0, mask=0x7fffbd036e68, region=0x7fffbd036f50) at /var/tmp/portage/kde-base/kwin-4.8.49.9999/work/kwin-4.8.49.9999/kwin/scene.cpp:159
#15 0x0000003ad16caadd in KWin::SceneOpenGL::paint (this=0xc5aab0, damage=..., toplevels=<optimized out>) at /var/tmp/portage/kde-base/kwin-4.8.49.9999/work/kwin-4.8.49.9999/kwin/scene_opengl_glx.cpp:459
#16 0x0000003ad16ae098 in KWin::Workspace::performCompositing (this=0x7f638819b280) at /var/tmp/portage/kde-base/kwin-4.8.49.9999/work/kwin-4.8.49.9999/kwin/composite.cpp:417
#17 0x0000003a17d9a7f9 in QObject::event (this=0x7f638819b280, e=<optimized out>) at kernel/qobject.cpp:1157
#18 0x0000003a197da414 in notify_helper (e=0x7fffbd037630, receiver=0x7f638819b280, this=0xabebc0) at kernel/qapplication.cpp:4550
#19 QApplicationPrivate::notify_helper (this=0xabebc0, receiver=0x7f638819b280, e=0x7fffbd037630) at kernel/qapplication.cpp:4522
#20 0x0000003a197df213 in QApplication::notify (this=0x7fffbd037a40, receiver=0x7f638819b280, e=0x7fffbd037630) at kernel/qapplication.cpp:4411
#21 0x0000003716861c28 in KApplication::notify (this=0x7fffbd037a40, receiver=0x7f638819b280, event=0x7fffbd037630) at /var/tmp/portage/kde-base/kdelibs-4.8.49.9999/work/kdelibs-4.8.49.9999/kdeui/kernel/kapplication.cpp:311
#22 0x0000003a17d8196b in QCoreApplication::notifyInternal (this=0x7fffbd037a40, receiver=0x7f638819b280, event=0x7fffbd037630) at kernel/qcoreapplication.cpp:876
#23 0x0000003a17db2a4a in sendEvent (event=0x7fffbd037630, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#24 QTimerInfoList::activateTimers (this=0xabf5b8) at kernel/qeventdispatcher_unix.cpp:611
#25 0x0000003a17db32b3 in QEventDispatcherUNIX::processEvents (this=0xa5bad0, flags=...) at kernel/qeventdispatcher_unix.cpp:930
#26 0x0000003a1987f716 in QEventDispatcherX11::processEvents (this=0xa5bad0, flags=...) at kernel/qeventdispatcher_x11.cpp:152
#27 0x0000003a17d806b2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#28 0x0000003a17d80937 in QEventLoop::exec (this=0x7fffbd037980, flags=...) at kernel/qeventloop.cpp:204
#29 0x0000003a17d85565 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#30 0x0000003ad1663406 in kdemain (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/kde-base/kwin-4.8.49.9999/work/kwin-4.8.49.9999/kwin/main.cpp:541
#31 0x0000003353a243cd in __libc_start_main (main=0x400760 <main(int, char**)>, argc=1, ubp_av=0x7fffbd038168, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffbd038158) at libc-start.c:226
#32 0x0000000000400791 in _start ()

Possible duplicates by query: bug 292249, bug 289446, bug 287966, bug 286203, bug 285381.

Reported using DrKonqi
Comment 1 Martin Flöser 2012-03-09 07:33:51 UTC
I just want to point out that this crash happend on 4.8.49, that is just after master had been opened.

In case that you are able to reproduce the crash, please provide a new backtrace (as code in that area changed) and provide steps on how to reproduce the crash reliable.
Comment 2 Thomas Lübking 2012-03-09 15:29:00 UTC
crashes on unresolved window->unrefWindow() - i had this a lot with generic effects, thus this is likely caused by a referenced window being deleted as result of
http://git.reviewboard.kde.org/r/103733/ and is probably avoided by http://git.reviewboard.kde.org/r/103742/

Nevertheless i'd check whether http://git.reviewboard.kde.org/r/103733/ can be safely reverted (i have it reverted in my local branch, but don't use the fade-in effect either)
Comment 3 Thomas Lübking 2012-04-23 10:17:41 UTC
*** Bug 298644 has been marked as a duplicate of this bug. ***
Comment 4 Thomas Lübking 2012-05-02 22:03:54 UTC
Revert "kwin: fixing high cpu usage bugs"

http://quickgit.kde.org/?p=kde-workspace.git&a=commit&h=7668726c1eb1a396462baa8664de00c930c91971
Comment 5 Thomas Lübking 2012-05-19 16:35:07 UTC
*** Bug 300325 has been marked as a duplicate of this bug. ***
Comment 6 Thijs 2012-06-04 09:00:40 UTC
*** Bug 300809 has been marked as a duplicate of this bug. ***
Comment 7 0fx 2012-10-10 17:26:51 UTC
Created attachment 74462 [details]
New crash information added by DrKonqi

kwin (4.8.4 (4.8.4)) on KDE Platform 4.8.4 (4.8.4) using Qt 4.8.2

- What I was doing when the application crashed: switching between Windows with Alt+TAB

I had the cover flow view enabled and KWin Crashed when switching windows with Alt+Tab. This still happens quite frequently under the default KDE 4.8.4 that comes with Debian/Testing.

-- Backtrace (Reduced):
#6  0x00007f859839f71d in KWin::CoverSwitchEffect::postPaintScreen (this=0x3433520) at ../../../kwin/effects/coverswitch/coverswitch.cpp:411
#7  0x00007f85b62c8758 in KWin::EffectsHandlerImpl::postPaintScreen (this=0x38ca870) at ../../kwin/effects.cpp:228
#8  0x00007f85b62c8758 in KWin::EffectsHandlerImpl::postPaintScreen (this=0x38ca870) at ../../kwin/effects.cpp:228
#9  0x00007f85b62c8758 in KWin::EffectsHandlerImpl::postPaintScreen (this=0x38ca870) at ../../kwin/effects.cpp:228
#10 0x00007f85b62aa910 in KWin::Scene::paintScreen (this=0x383c460, mask=<optimized out>, region=0x7fff84781000) at ../../kwin/scene.cpp:159
Comment 8 lastpokemon 2012-12-28 07:57:30 UTC
Created attachment 76048 [details]
New crash information added by DrKonqi

kwin (4.8.5 (4.8.5)) on KDE Platform 4.8.5 (4.8.5) using Qt 4.8.1

- What I was doing when the application crashed:
Was switching windows with alt-tab. it used to crash the composite and then recovers but I guess this was fixed. but now it crashes kwin but it also recovers. I guess the reason why it is crashing is the fact I'm using vmware player on unity mode.

-- Backtrace (Reduced):
#6  0x00007f99801e2905 in KWin::CoverSwitchEffect::postPaintScreen (this=0x9dcce0) at ../../../kwin/effects/coverswitch/coverswitch.cpp:411
#7  0x00007f999bc9e2f8 in KWin::EffectsHandlerImpl::postPaintScreen (this=0x9514c0) at ../../kwin/effects.cpp:228
#8  0x00007f999bc7dae0 in KWin::Scene::paintScreen (this=0x9383c0, mask=0x7fff786c9848, region=0x7fff786c9930) at ../../kwin/scene.cpp:159
#9  0x00007f999bc938ed in KWin::SceneOpenGL::paint (this=0x9383c0, damage=..., toplevels=...) at ../../kwin/scene_opengl_glx.cpp:459
#10 0x00007f999bc77628 in KWin::Workspace::performCompositing (this=0x8f6570) at ../../kwin/composite.cpp:417
Comment 9 Martin Flöser 2012-12-28 08:02:00 UTC
This bug is marked as fixed in 4.9, though the latest comments are for 4.8
Comment 10 lastpokemon 2012-12-28 09:02:24 UTC
OKi doki, Will wait until KDE got automaticly updated. This is my work envornment :)
Comment 11 Thomas Lübking 2014-05-21 11:08:58 UTC
*** Bug 335119 has been marked as a duplicate of this bug. ***