Application: kwin (4.7.00 (4.7.0)) KDE Platform Version: 4.7.00 (4.7.0) Qt Version: 4.7.2 Operating System: Linux 2.6.38-11-generic x86_64 Distribution: Ubuntu 11.04 -- Information about the crash: - What I was doing when the aplication crashed: When browsing the internet with firefox, the two panels I have open crashed. This only seems to happen sometimes. The crash can be reproduced some of the time. -- Backtrace: Application: KWin (kwin), signal: Segmentation fault [Current thread is 1 (Thread 0x7f143aac87c0 (LWP 29094))] Thread 3 (Thread 0x7f1415a61700 (LWP 29104)): #0 0x00007f143a314143 in select () at ../sysdeps/unix/syscall-template.S:82 #1 0x00007f143666732c in qt_safe_select (nfds=27, fdread=0x2161f70, fdwrite=0x2162208, fdexcept=0x21624a0, orig_timeout=<value optimized out>) at kernel/qcore_unix.cpp:82 #2 0x00007f143666c3d0 in QEventDispatcherUNIXPrivate::doSelect (this=0x2161db0, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:219 #3 0x00007f143666d04a in QEventDispatcherUNIX::processEvents (this=0x2178ff0, flags=...) at kernel/qeventdispatcher_unix.cpp:919 #4 0x00007f143663e882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149 #5 0x00007f143663eabc in QEventLoop::exec (this=0x7f1415a60cd0, flags=...) at kernel/qeventloop.cpp:201 #6 0x00007f1436555924 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492 #7 0x00007f1436620c2f in QInotifyFileSystemWatcherEngine::run (this=0x2160c00) at io/qfilesystemwatcher_inotify.cpp:248 #8 0x00007f1436558175 in QThreadPrivate::start (arg=0x2160c00) at thread/qthread_unix.cpp:320 #9 0x00007f1437b7856c in ?? () from /usr/lib/nvidia-current/libGL.so.1 #10 0x00007f1430c58d8c in start_thread (arg=0x7f1415a61700) at pthread_create.c:304 #11 0x00007f143a31c04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #12 0x0000000000000000 in ?? () Thread 2 (Thread 0x7f1415250700 (LWP 29105)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162 #1 0x00007f143917c2a2 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f1439495180) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359 #2 0x00007f143917c2d9 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x7f14394a3254) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464 #3 0x00007f1437b7856c in ?? () from /usr/lib/nvidia-current/libGL.so.1 #4 0x00007f1430c58d8c in start_thread (arg=0x7f1415250700) at pthread_create.c:304 #5 0x00007f143a31c04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #6 0x0000000000000000 in ?? () Thread 1 (Thread 0x7f143aac87c0 (LWP 29094)): [KCrash Handler] #6 0x00007f1438776af8 in QVector<KWin::GLShader*>::realloc (this=0x1c4d480, asize=134217726, aalloc=268435455) at /usr/include/qt4/QtCore/qvector.h:483 #7 0x00007f1438774b9f in append (this=0x1c4d480, shader=0x1eae970) at /usr/include/qt4/QtCore/qvector.h:549 #8 push (this=0x1c4d480, shader=0x1eae970) at /usr/include/qt4/QtCore/qstack.h:59 #9 KWin::ShaderManager::pushShader (this=0x1c4d480, shader=0x1eae970) at ../../../kwin/libkwineffects/kwinglutils.cpp:1144 #10 0x00007f1438774c5f in KWin::ShaderManager::pushShader (this=0x1c4d480, type=KWin::ShaderManager::GenericShader, reset=false) at ../../../kwin/libkwineffects/kwinglutils.cpp:1130 #11 0x00007f1417db9d85 in KWin::CubeEffect::paintWindow (this=0x20e7270, w=0x216c310, mask=137, region=..., data=...) at ../../../kwin/effects/cube/cube.cpp:1271 #12 0x00007f143a6ac7da in KWin::EffectsHandlerImpl::paintWindow (this=0x2042fd0, w=0x216c310, mask=137, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:239 #13 0x00007f14387698fb in KWin::Effect::paintWindow (this=<value optimized out>, w=0x216c310, mask=137, region=<value optimized out>, data=<value optimized out>) at ../../../kwin/libkwineffects/kwineffects.cpp:157 #14 0x00007f143a6ac7da in KWin::EffectsHandlerImpl::paintWindow (this=0x2042fd0, w=0x216c310, mask=137, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:239 #15 0x00007f1417dc4d24 in KWin::CubeSlideEffect::paintWindow (this=<value optimized out>, w=0x216c310, mask=137, region=..., data=...) at ../../../kwin/effects/cube/cubeslide.cpp:369 #16 0x00007f143a6ac7da in KWin::EffectsHandlerImpl::paintWindow (this=0x2042fd0, w=0x216c310, mask=137, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:239 #17 0x00007f1417d8f4b3 in KWin::TranslucencyEffect::paintWindow (this=<value optimized out>, w=0x216c310, mask=137, region=..., data=...) at ../../../kwin/effects/translucency/translucency.cpp:166 #18 0x00007f143a6ac7da in KWin::EffectsHandlerImpl::paintWindow (this=0x2042fd0, w=0x216c310, mask=137, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:239 #19 0x00007f1417d90286 in KWin::MinimizeAnimationEffect::paintWindow (this=<value optimized out>, w=0x216c310, mask=137, region=..., data=...) at ../../../kwin/effects/minimizeanimation/minimizeanimation.cpp:102 #20 0x00007f143a6ac7da in KWin::EffectsHandlerImpl::paintWindow (this=0x2042fd0, w=0x216c310, mask=137, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:239 #21 0x00007f1417de0bfd in KWin::WobblyWindowsEffect::paintWindow (this=<value optimized out>, w=0x216c310, mask=137, region=..., data=<value optimized out>) at ../../../kwin/effects/wobblywindows/wobblywindows.cpp:352 #22 0x00007f143a6ac7da in KWin::EffectsHandlerImpl::paintWindow (this=0x2042fd0, w=0x216c310, mask=137, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:239 #23 0x00007f1417d73012 in KWin::SlidingPopupsEffect::paintWindow (this=<value optimized out>, w=0x216c310, mask=137, region=<value optimized out>, data=...) at ../../../kwin/effects/slidingpopups/slidingpopups.cpp:146 #24 0x00007f143a6ac7da in KWin::EffectsHandlerImpl::paintWindow (this=0x2042fd0, w=0x216c310, mask=137, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:239 #25 0x00007f1417d61951 in KWin::LoginEffect::paintWindow (this=<value optimized out>, w=0x216c310, mask=137, region=<value optimized out>, data=<value optimized out>) at ../../../kwin/effects/login/login.cpp:66 #26 0x00007f143a6ac7da in KWin::EffectsHandlerImpl::paintWindow (this=0x2042fd0, w=0x216c310, mask=137, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:239 #27 0x00007f14387698fb in KWin::Effect::paintWindow (this=<value optimized out>, w=0x216c310, mask=137, region=<value optimized out>, data=<value optimized out>) at ../../../kwin/libkwineffects/kwineffects.cpp:157 #28 0x00007f143a6ac7da in KWin::EffectsHandlerImpl::paintWindow (this=0x2042fd0, w=0x216c310, mask=137, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:239 #29 0x00007f143a6892fa in KWin::Scene::paintWindow (this=<value optimized out>, w=0x216c340, mask=137, region=..., quads=<value optimized out>) at ../../kwin/scene.cpp:306 #30 0x00007f143a689ec8 in KWin::Scene::paintSimpleScreen (this=0x1bccd10, orig_mask=8, region=...) at ../../kwin/scene.cpp:293 #31 0x00007f143a6888f1 in KWin::Scene::finalPaintScreen (this=0x1bccd10, mask=8, region=<value optimized out>, data=<value optimized out>) at ../../kwin/scene.cpp:177 #32 0x00007f143a6ac969 in KWin::EffectsHandlerImpl::paintScreen (this=<value optimized out>, mask=8, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:215 #33 0x00007f1417dd8e06 in KWin::StartupFeedbackEffect::paintScreen (this=0x20edad0, mask=8, region=<value optimized out>, data=...) at ../../../kwin/effects/startupfeedback/startupfeedback.cpp:174 #34 0x00007f143a6ac9f3 in KWin::EffectsHandlerImpl::paintScreen (this=0x2042fd0, mask=8, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:212 #35 0x00007f1417d61db6 in KWin::OutlineEffect::paintScreen (this=0x20ed8d0, mask=8, region=<value optimized out>, data=...) at ../../../kwin/effects/outline/outline.cpp:44 #36 0x00007f143a6ac9f3 in KWin::EffectsHandlerImpl::paintScreen (this=0x2042fd0, mask=8, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:212 #37 0x00007f1438769968 in KWin::Effect::paintScreen (this=<value optimized out>, mask=8, region=<value optimized out>, data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:142 #38 0x00007f143a6ac9f3 in KWin::EffectsHandlerImpl::paintScreen (this=0x2042fd0, mask=8, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:212 #39 0x00007f1417da260d in KWin::LogoutEffect::paintScreen (this=0x21020b0, mask=8, region=..., data=...) at ../../../kwin/effects/logout/logout.cpp:200 #40 0x00007f143a6ac9f3 in KWin::EffectsHandlerImpl::paintScreen (this=0x2042fd0, mask=8, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:212 #41 0x00007f1438769968 in KWin::Effect::paintScreen (this=<value optimized out>, mask=8, region=<value optimized out>, data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:142 #42 0x00007f143a6ac9f3 in KWin::EffectsHandlerImpl::paintScreen (this=0x2042fd0, mask=8, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:212 #43 0x00007f1417d620a9 in KWin::PresentWindowsEffect::paintScreen (this=0x20c9550, mask=8, region=..., data=...) at ../../../kwin/effects/presentwindows/presentwindows.cpp:216 #44 0x00007f143a6ac9f3 in KWin::EffectsHandlerImpl::paintScreen (this=0x2042fd0, mask=8, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:212 #45 0x00007f1438769968 in KWin::Effect::paintScreen (this=<value optimized out>, mask=8, region=<value optimized out>, data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:142 #46 0x00007f143a6ac9f3 in KWin::EffectsHandlerImpl::paintScreen (this=0x2042fd0, mask=8, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:212 #47 0x00007f1438769968 in KWin::Effect::paintScreen (this=<value optimized out>, mask=8, region=<value optimized out>, data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:142 #48 0x00007f143a6ac9f3 in KWin::EffectsHandlerImpl::paintScreen (this=0x2042fd0, mask=8, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:212 #49 0x00007f1438769968 in KWin::Effect::paintScreen (this=<value optimized out>, mask=8, region=<value optimized out>, data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:142 #50 0x00007f143a6ac9f3 in KWin::EffectsHandlerImpl::paintScreen (this=0x2042fd0, mask=8, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:212 #51 0x00007f1438769968 in KWin::Effect::paintScreen (this=<value optimized out>, mask=8, region=<value optimized out>, data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:142 #52 0x00007f143a6ac9f3 in KWin::EffectsHandlerImpl::paintScreen (this=0x2042fd0, mask=8, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:212 #53 0x00007f1438769968 in KWin::Effect::paintScreen (this=<value optimized out>, mask=8, region=<value optimized out>, data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:142 #54 0x00007f143a6ac9f3 in KWin::EffectsHandlerImpl::paintScreen (this=0x2042fd0, mask=8, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:212 #55 0x00007f1438769968 in KWin::Effect::paintScreen (this=<value optimized out>, mask=8, region=<value optimized out>, data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:142 #56 0x00007f143a6ac9f3 in KWin::EffectsHandlerImpl::paintScreen (this=0x2042fd0, mask=8, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:212 #57 0x00007f1417d7f31d in KWin::DesktopGridEffect::paintScreen (this=<value optimized out>, mask=8, region=..., data=...) at ../../../kwin/effects/desktopgrid/desktopgrid.cpp:161 #58 0x00007f143a6ac9f3 in KWin::EffectsHandlerImpl::paintScreen (this=0x2042fd0, mask=8, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:212 #59 0x00007f1417db8e16 in KWin::CubeEffect::paintScreen (this=<value optimized out>, mask=8, region=..., data=...) at ../../../kwin/effects/cube/cube.cpp:578 #60 0x00007f143a6ac9f3 in KWin::EffectsHandlerImpl::paintScreen (this=0x2042fd0, mask=8, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:212 #61 0x00007f1438769968 in KWin::Effect::paintScreen (this=<value optimized out>, mask=8, region=<value optimized out>, data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:142 #62 0x00007f143a6ac9f3 in KWin::EffectsHandlerImpl::paintScreen (this=0x2042fd0, mask=8, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:212 #63 0x00007f1417dc4484 in KWin::CubeSlideEffect::paintScreen (this=<value optimized out>, mask=8, region=..., data=...) at ../../../kwin/effects/cube/cubeslide.cpp:117 #64 0x00007f143a6ac9f3 in KWin::EffectsHandlerImpl::paintScreen (this=0x2042fd0, mask=8, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:212 #65 0x00007f1438769968 in KWin::Effect::paintScreen (this=<value optimized out>, mask=8, region=<value optimized out>, data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:142 #66 0x00007f143a6ac9f3 in KWin::EffectsHandlerImpl::paintScreen (this=0x2042fd0, mask=8, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:212 #67 0x00007f1438769968 in KWin::Effect::paintScreen (this=<value optimized out>, mask=8, region=<value optimized out>, data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:142 #68 0x00007f143a6ac9f3 in KWin::EffectsHandlerImpl::paintScreen (this=0x2042fd0, mask=8, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:212 #69 0x00007f1438769968 in KWin::Effect::paintScreen (this=<value optimized out>, mask=8, region=<value optimized out>, data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:142 #70 0x00007f143a6ac9f3 in KWin::EffectsHandlerImpl::paintScreen (this=0x2042fd0, mask=8, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:212 #71 0x00007f1438769968 in KWin::Effect::paintScreen (this=<value optimized out>, mask=8, region=<value optimized out>, data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:142 #72 0x00007f143a6ac9f3 in KWin::EffectsHandlerImpl::paintScreen (this=0x2042fd0, mask=8, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:212 #73 0x00007f1438769968 in KWin::Effect::paintScreen (this=<value optimized out>, mask=8, region=<value optimized out>, data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:142 #74 0x00007f143a6ac9f3 in KWin::EffectsHandlerImpl::paintScreen (this=0x2042fd0, mask=8, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:212 #75 0x00007f1417d9eabd in KWin::ZoomEffect::paintScreen (this=0x20e2070, mask=8, region=..., data=...) at ../../../kwin/effects/zoom/zoom.cpp:324 #76 0x00007f143a6ac9f3 in KWin::EffectsHandlerImpl::paintScreen (this=0x2042fd0, mask=8, region=<value optimized out>, data=...) at ../../kwin/effects.cpp:212 #77 0x00007f143a68ad8f in KWin::Scene::paintScreen (this=0x1bccd10, mask=0x7fff1be7083c, region=0x7fff1be70940) at ../../kwin/scene.cpp:136 #78 0x00007f143a6a2e23 in KWin::SceneOpenGL::paint (this=0x1bccd10, damage=..., toplevels=<value optimized out>) at ../../kwin/scene_opengl_glx.cpp:455 #79 0x00007f143a685765 in KWin::Workspace::performCompositing (this=0x17b4090) at ../../kwin/composite.cpp:427 #80 0x00007f14366531c9 in QObject::event (this=0x17b4090, e=<value optimized out>) at kernel/qobject.cpp:1190 #81 0x00007f14359fc9f4 in QApplicationPrivate::notify_helper (this=0x1825040, receiver=0x17b4090, e=0x7fff1be710a0) at kernel/qapplication.cpp:4462 #82 0x00007f1435a013ba in QApplication::notify (this=<value optimized out>, receiver=0x17b4090, e=0x7fff1be710a0) at kernel/qapplication.cpp:4341 #83 0x00007f1439e0a796 in KApplication::notify (this=0x7fff1be714a0, receiver=0x17b4090, event=0x7fff1be710a0) at ../../kdeui/kernel/kapplication.cpp:311 #84 0x00007f143663f49c in QCoreApplication::notifyInternal (this=0x7fff1be714a0, receiver=0x17b4090, event=0x7fff1be710a0) at kernel/qcoreapplication.cpp:731 #85 0x00007f143666cf12 in sendEvent (this=0x1827cf0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215 #86 QTimerInfoList::activateTimers (this=0x1827cf0) at kernel/qeventdispatcher_unix.cpp:604 #87 0x00007f143666d05b in QEventDispatcherUNIX::processEvents (this=0x177b2e0, flags=...) at kernel/qeventdispatcher_unix.cpp:923 #88 0x00007f1435aa72ec in QEventDispatcherX11::processEvents (this=0x177b2e0, flags=...) at kernel/qeventdispatcher_x11.cpp:152 #89 0x00007f143663e882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149 #90 0x00007f143663eabc in QEventLoop::exec (this=0x7fff1be713e0, flags=...) at kernel/qeventloop.cpp:201 #91 0x00007f1436642ecb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008 #92 0x00007f143a624bfe in kdemain (argc=<value optimized out>, argv=0x7fff1be71b08) at ../../kwin/main.cpp:514 #93 0x00007f143a254eff in __libc_start_main (main=0x400730 <main(int, char**)>, argc=3, ubp_av=0x7fff1be71b08, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fff1be71af8) at libc-start.c:226 #94 0x0000000000400659 in _start () Reported using DrKonqi
The backtrace doesn't match the report. It suggests a crash in the window manager (that's not the panels) while the desktio cube was active (you switched desktops) and actually looks like a memory corruption (even iff that shader pointer was invalid, QVector shouldn't bother) -> a) do all backtraces look like this? b) if your system regularily crashes in different processes: - check temperatures - check free space on the root directory ("/") and your $HOME - maybe rather run memtest to check whether your memory is physically ok.
The system only regularly crashes in KDE. It is stable in windows 7 and ubuntu w/ compiz. I also am fairly sure that I wasn't switching desktops when that happened.
Ok, please attach some more backtrace from further crashes _of the same type_ so we can check for a pattern and because this trace does not match your descriptions at all.
*** Bug 281083 has been marked as a duplicate of this bug. ***
@Martin The cube pushes shaders on every ::paintWindow but only pops them when active. Doesn't look correct to me at all - is it nevertheless?
*** Bug 281417 has been marked as a duplicate of this bug. ***
right, that looks wrong. I will push a commit as soon as I have a clean git repo again. At least on Master it should not be an issue anymore due to the changes how effects work. diff --git a/kwin/effects/cube/cube.cpp b/kwin/effects/cube/cube.cpp index f48f0f7..9b957c2 100644 --- a/kwin/effects/cube/cube.cpp +++ b/kwin/effects/cube/cube.cpp @@ -1292,9 +1292,10 @@ void CubeEffect::prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int t void CubeEffect::paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data) { ShaderManager *shaderManager = ShaderManager::instance(); - GLShader *shader = shaderManager->pushShader(ShaderManager::GenericShader); + GLShader *shader = NULL; QMatrix4x4 origMatrix; if (activated && cube_painting) { + shader = shaderManager->pushShader(ShaderManager::GenericShader); //kDebug(1212) << w->caption(); float opacity = cubeOpacity; if (start) {
Git commit 86bc72bbe84960ea5b50c2382ef60893aaaeabba by Martin Gräßlin. Committed on 27/09/2011 at 17:42. Pushed by graesslin into branch 'master'. Only push shader when Cube effect is active This caused situations in which the shader was pushed but never popped from the stack as for the latter case there was a check whether the effect is active. BUG: 280455 M +2 -1 kwin/effects/cube/cube.cpp http://commits.kde.org/kde-workspace/86bc72bbe84960ea5b50c2382ef60893aaaeabba
Git commit d30fa6576204874f67ef1d4787448898789f8d20 by Martin Gräßlin. Committed on 27/09/2011 at 17:42. Pushed by graesslin into branch 'KDE/4.7'. Only push shader when Cube effect is active This caused situations in which the shader was pushed but never popped from the stack as for the latter case there was a check whether the effect is active. BUG: 280455 M +2 -1 kwin/effects/cube/cube.cpp http://commits.kde.org/kde-workspace/d30fa6576204874f67ef1d4787448898789f8d20
bug #283577 could be related
*** Bug 283577 has been marked as a duplicate of this bug. ***