Application: kwin (4.9.2) KDE Platform Version: 4.9.2 Qt Version: 4.8.3 Operating System: Linux 3.5.0-19-generic i686 Distribution: Ubuntu 12.10 -- Information about the crash: - What I was doing when the application crashed: Usually opening new window in Eclipse - Unusual behavior I noticed: Desktop is visible, mouse moves, but cannot click anything. Using top command on TTY I can see that kwin has 100% CPU load. Sometimes window borders disappear and become black - Custom settings of the application: OpenGL Kubuntu The crash can be reproduced some of the time. -- Backtrace: Application: KWin (kwin), signal: Segmentation fault Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1". [Current thread is 1 (Thread 0xb1d19980 (LWP 2090))] Thread 3 (Thread 0xadc1fb40 (LWP 2096)): #0 0xb7779424 in __kernel_vsyscall () #1 0xb2cc496b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0 #2 0xb754e64c in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6 #3 0xb66a61cd in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4 #4 0xb66a61ff in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4 #5 0xb2cc0d4c in start_thread () from /lib/i386-linux-gnu/libpthread.so.0 #6 0xb7540d3e in clone () from /lib/i386-linux-gnu/libc.so.6 Thread 2 (Thread 0xaf5ccb40 (LWP 3535)): #0 0xb2d06dcd in clock_gettime () from /lib/i386-linux-gnu/librt.so.1 #1 0xb5f39fb5 in do_gettime (frac=0xaf5cbfb0, sec=0xaf5cbfa8) at tools/qelapsedtimer_unix.cpp:123 #2 qt_gettime () at tools/qelapsedtimer_unix.cpp:140 #3 0xb602136e in QTimerInfoList::updateCurrentTime (this=0xaec00b34) at kernel/qeventdispatcher_unix.cpp:343 #4 0xaf5cc19c in ?? () Backtrace stopped: previous frame inner to this frame (corrupt stack?) Thread 1 (Thread 0xb1d19980 (LWP 2090)): [KCrash Handler] #7 0xb75875b0 in ?? () from /lib/i386-linux-gnu/libc.so.6 #8 0xa6d20f17 in memcpy (__len=<optimized out>, __src=0x912b9c0, __dest=0x8801600) at /usr/include/i386-linux-gnu/bits/string3.h:52 #9 u_default_transfer_inline_write (pipe=0x8e1d748, resource=0x91100d8, level=0, usage=<optimized out>, box=0xbfeae8c4, data=0x912b9c0, stride=48, layer_stride=0) at util/u_transfer.c:50 #10 0xa6d21158 in u_transfer_inline_write_vtbl (pipe=0x8e1d748, resource=0x91100d8, level=0, usage=4098, box=0xbfeae8c4, data=0x912b9c0, stride=48, layer_stride=0) at util/u_resource.c:76 #11 0xa6cb576c in pipe_buffer_write (data=0x912b9c0, size=48, offset=0, buf=<optimized out>, pipe=0x8e1d748) at ../../../../src/gallium/auxiliary/util/u_inlines.h:336 #12 st_bufferobj_data (ctx=0x9190260, target=34962, size=48, data=0x912b9c0, usage=35040, obj=0x8e53dd8) at ../../../../src/mesa/state_tracker/st_cb_bufferobjects.c:238 #13 0xa6c6e4bd in _mesa_BufferDataARB (target=34962, size=48, data=0x912b9c0, usage=35040) at ../../../../src/mesa/main/bufferobj.c:1084 #14 0xb650866b in KWin::GLVertexBuffer::setData (this=0x8bb4328, numberVertices=6, dim=2, vertices=0x912b9c0, texcoords=0x92ed5b0) at ../../../kwin/libkwineffects/kwinglutils.cpp:1321 #15 0xb76eb0ae in KWin::SceneOpenGL::Window::makeDecorationArrays (this=this@entry=0x8e3f380, quads=..., rect=..., tex=tex@entry=0x8e3f3c0) at ../../kwin/scene_opengl.cpp:771 #16 0xb76eb460 in KWin::SceneOpenGL::Window::paintDecoration (this=this@entry=0x8e3f380, decoration=decoration@entry=0x91c49c0, decorationType=decorationType@entry=KWin::SceneOpenGL::Window::DecorationBottom, region=..., rect=..., data=..., quads=..., updateDeco=updateDeco@entry=false, hardwareClipping=hardwareClipping@entry=false) at ../../kwin/scene_opengl.cpp:666 #17 0xb76ee8e3 in KWin::SceneOpenGL::Window::performPaint (this=this@entry=0x8e3f380, mask=mask@entry=9, region=..., data=...) at ../../kwin/scene_opengl.cpp:584 #18 0xb76d7e6d in KWin::Scene::finalDrawWindow (this=0x8c57308, w=0x90d9270, mask=9, region=..., data=...) at ../../kwin/scene.cpp:454 #19 0xb76fac88 in KWin::EffectsHandlerImpl::drawWindow (this=0x911adb8, w=w@entry=0x90d9270, mask=mask@entry=9, region=..., data=...) at ../../kwin/effects.cpp:310 #20 0xb695b852 in KWin::Effect::drawWindow (this=0x900a518, w=0x90d9270, mask=9, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:182 #21 0xb76fac23 in KWin::EffectsHandlerImpl::drawWindow (this=0x911adb8, w=w@entry=0x90d9270, mask=mask@entry=9, region=..., data=...) at ../../kwin/effects.cpp:307 #22 0xb695b852 in KWin::Effect::drawWindow (this=0x90af650, w=0x90d9270, mask=9, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:182 #23 0xb76fac23 in KWin::EffectsHandlerImpl::drawWindow (this=0x911adb8, w=w@entry=0x90d9270, mask=mask@entry=9, region=..., data=...) at ../../kwin/effects.cpp:307 #24 0xb76d7162 in KWin::Scene::finalPaintWindow (this=0x8c57308, w=0x90d9270, mask=9, region=..., data=...) at ../../kwin/scene.cpp:439 #25 0xb76faf08 in KWin::EffectsHandlerImpl::paintWindow (this=0x911adb8, w=w@entry=0x90d9270, mask=mask@entry=9, region=..., data=...) at ../../kwin/effects.cpp:273 #26 0xb6969881 in KWin::AnimationEffect::paintWindow (this=0x900a518, w=0x90d9270, mask=9, region=..., data=...) at ../../../kwin/libkwineffects/kwinanimationeffect.cpp:495 #27 0xb76faea3 in KWin::EffectsHandlerImpl::paintWindow (this=0x911adb8, w=0x90d9270, mask=9, region=..., data=...) at ../../kwin/effects.cpp:270 #28 0xadc6371e in KWin::DimInactiveEffect::paintWindow (this=0x90af650, w=0x90d9270, mask=9, region=..., data=...) at ../../../kwin/effects/diminactive/diminactive.cpp:80 #29 0xb76faea3 in KWin::EffectsHandlerImpl::paintWindow (this=0x911adb8, w=0x90d9270, mask=mask@entry=9, region=..., data=...) at ../../kwin/effects.cpp:270 #30 0xb76da47c in KWin::Scene::paintWindow (this=this@entry=0x8c57308, w=0x8e3f380, mask=9, region=..., quads=...) at ../../kwin/scene.cpp:348 #31 0xb76d9686 in KWin::Scene::paintSimpleScreen (this=this@entry=0x8c57308, orig_mask=orig_mask@entry=8, region=...) at ../../kwin/scene.cpp:334 #32 0xb76d7077 in KWin::Scene::finalPaintScreen (this=0x8c57308, mask=8, region=..., data=...) at ../../kwin/scene.cpp:192 #33 0xb76fb0b8 in KWin::EffectsHandlerImpl::paintScreen (this=0x911adb8, mask=mask@entry=8, region=..., data=...) at ../../kwin/effects.cpp:246 #34 0xb695b9ea in KWin::Effect::paintScreen (this=0x900a518, mask=8, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:142 #35 0xb76fb05b in KWin::EffectsHandlerImpl::paintScreen (this=0x911adb8, mask=mask@entry=8, region=..., data=...) at ../../kwin/effects.cpp:243 #36 0xb695b9ea in KWin::Effect::paintScreen (this=0x90af650, mask=8, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:142 #37 0xb76fb05b in KWin::EffectsHandlerImpl::paintScreen (this=0x911adb8, mask=8, region=..., data=...) at ../../kwin/effects.cpp:243 #38 0xb76d8965 in KWin::Scene::paintScreen (this=0x8c57308, mask=0xbfeaf8bc, region=0xbfeaf928) at ../../kwin/scene.cpp:146 #39 0xb76efd2e in KWin::SceneOpenGL::paint (this=0x8c57308, damage=..., toplevels=...) at ../../kwin/scene_opengl_glx.cpp:481 #40 0xb76d1686 in KWin::Workspace::performCompositing (this=0x8b33ea0) at ../../kwin/composite.cpp:440 #41 0xb6004d34 in QObject::event (this=0x8b33ea0, e=0xbfeafe20) at kernel/qobject.cpp:1157 #42 0xb54df39c in QApplicationPrivate::notify_helper (this=0x8a8c600, receiver=0x8b33ea0, e=0xbfeafe20) at kernel/qapplication.cpp:4562 #43 0xb54e3daf in QApplication::notify (this=0xbfeafe20, receiver=0x8b33ea0, e=0xbfeafe20) at kernel/qapplication.cpp:3944 #44 0xb71fde91 in KApplication::notify (this=0xbfeb01e8, receiver=0x8b33ea0, event=0xbfeafe20) at ../../kdeui/kernel/kapplication.cpp:311 #45 0xb767d81f in notify (e=0xbfeafe20, o=0x8b33ea0, this=0xbfeb01e8) at ../../kwin/main.cpp:371 #46 KWin::Application::notify (this=0xbfeb01e8, o=0x8b33ea0, e=0xbfeafe20) at ../../kwin/main.cpp:367 #47 0xb5fee78e in QCoreApplication::notifyInternal (this=0xbfeb01e8, receiver=0x8b33ea0, event=0xbfeafe20) at kernel/qcoreapplication.cpp:915 #48 0xb6023280 in sendEvent (event=0xbfeafe20, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231 #49 QTimerInfoList::activateTimers (this=0x8a8cea4) at kernel/qeventdispatcher_unix.cpp:611 #50 0xb6023305 in QEventDispatcherUNIX::activateTimers (this=0x8a8cea4, this@entry=0x8a4cea0) at kernel/qeventdispatcher_unix.cpp:868 #51 0xb6023478 in QEventDispatcherUNIX::processEvents (this=0x8a4cea0, flags=...) at kernel/qeventdispatcher_unix.cpp:930 #52 0xb55969f3 in QEventDispatcherX11::processEvents (this=0x8a4cea0, flags=...) at kernel/qeventdispatcher_x11.cpp:152 #53 0xb5fed26c in QEventLoop::processEvents (this=this@entry=0xbfeb0068, flags=...) at kernel/qeventloop.cpp:149 #54 0xb5fed561 in QEventLoop::exec (this=0xbfeb0068, flags=...) at kernel/qeventloop.cpp:204 #55 0xb5ff2cba in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187 #56 0xb54dcfc4 in QApplication::exec () at kernel/qapplication.cpp:3823 #57 0xb7680189 in kdemain (argc=3, argv=0xbfeb02d4) at ../../kwin/main.cpp:545 #58 0x0804855b in main (argc=3, argv=0xbfeb02d4) at kwin_dummy.cpp:3 Reported using DrKonqi
how is that backtrace related to the "100 %" CPU load?
Sounds/looks like OOM, probably eclipse is doing sth. "nasty" (like infinite show/hide or creating a HUUUUGE window to then shrink it down or similar nonsense. @Tomek can you please run "kdebugdialog" and ensure "kwin (1212)" is checked, then run "kwin --replace > ~/kwin.debug 2>&1" (from konsole) and try to cause the freeze. once frozen, move to VT1 as fast as possible, (login, maybe prepare a login) and run "gdb --pid=`pidof kwin` 2>&1 | tee ~/kwin.trace" Once gdb is done with it's lib loading, enter "bt" and then press enter until the entire stacktrace was printed. then enter "detach", then "quit", back in shell, run "export DISPLAY=:0 kwin --replace & sleep 5; exit". Then move back to VT7 to continue your work =)
I managed to follow first of your suggestions and after freeze I got what i attach in pastebin: http://pastebin.com/P6ViYezr Unfortunately I wasn't quick enough to run "gdb --pid=`pidof kwin` 2>&1 | tee ~/kwin.trace" before kwin was restarted. After I move to VT1 I can see taht kwin uses 100% CPU and after some time i get message "Kernel out of memory" (or similar). After this message cpu load drops and after switching to VT7 it looks like kwin is restarting (window borders disappear, I can't swich between windows, but last active window is responsive) and after a while everything is back to normal. Is it possible, that I somehow run out of memory? I have 2GB RAM and 4 GB of SWAP, currently (10 minutes afrer crush) "free" reports: total used free shared buffers cached Mem: 2015 1814 201 0 61 362 -/+ buffers/cache: 1389 625 Swap: 4095 1391 2704 Total: 6111 3205 2905
OpenGL renderer string: Gallium 0.4 on NV84 kwin(6202) KWin::checkGLError: GL error ( PostPaint ): "GL_OUT_OF_MEMORY" nv50_screen_create:594 - nouveau_screen_init failed: -12 libGL error: failed to load driver: nouveau libGL error: Try again with LIBGL_DEBUG=verbose for more details. OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 0x301) Either there's a leak in kwin texture usage or nouveau or the eclipse window demands exceptionally much memory. -> Can you try a) to cause this with the nvidia blob? b) (if yes) add a kwin rule to match the "eclipse" class and force the geometry to 1024x768?
any update?
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 set the bug status 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!
Dear Bug Submitter, 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!