Bug 319007

Summary: Kwin crash while going fullscreen in video (in Firefox)
Product: [Plasma] kwin Reporter: Peter Snow <peter>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Peter Snow 2013-04-28 08:25:22 UTC
Application: kwin (4.8.5 (4.8.5))
KDE Platform Version: 4.8.5 (4.8.5)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-41-generic-pae i686
Distribution: Ubuntu 12.04.2 LTS

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

This happens a lot. Usually after the machine has not been rebooted for a day or too. It also seems to be more likely to happen if I've been using Firebug in Firefox prior to watching a video. Sometimes, I don't need to watch a video to at all and am working in my IDE (Aptana) when it occurs.

I notice that Firefox does usually use vast amounts of resources (70+%) on a machine with 4GB of ram and usually if I monitor that and restart Firefox when it becomes excessive, days can go by without a Kwin crash, but when I forget to restart firefox, that's when the trouble occurs.

It seems to me to some kind of a resource management issue, aggravated by applications which seem to have bad memory leaks, like firefox. In my opinion, Kwin may simply be responding to insufficient resources, but I think if this is the case, it should be able to handle the situation more gracefully.

The crash can be reproduced every 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 0xb1a48740 (LWP 32752))]

Thread 4 (Thread 0xae66eb40 (LWP 32758)):
#0  0xb2a2edcd in __GI_clock_gettime (clock_id=1, tp=0xae66e0c8) at ../sysdeps/unix/clock_gettime.c:116
#1  0xb5e62315 in do_gettime (frac=0xae66e0c0, sec=0xae66e0b8) at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0xb5f4c226 in QTimerInfoList::updateCurrentTime (this=0xadd00b34) at kernel/qeventdispatcher_unix.cpp:343
#4  0xb5f4c57a in QTimerInfoList::timerWait (this=0xadd00b34, tm=...) at kernel/qeventdispatcher_unix.cpp:450
#5  0xb5f4e27e in QEventDispatcherUNIX::processEvents (this=0xadd00488, flags=...) at kernel/qeventdispatcher_unix.cpp:913
#6  0xb5f1750d in QEventLoop::processEvents (this=0xae66e240, flags=...) at kernel/qeventloop.cpp:149
#7  0xb5f177a9 in QEventLoop::exec (this=0xae66e240, flags=...) at kernel/qeventloop.cpp:204
#8  0xb5e0094c in QThread::exec (this=0x85ebdc0) at thread/qthread.cpp:501
#9  0xb5ef4b5d in QInotifyFileSystemWatcherEngine::run (this=0x85ebdc0) at io/qfilesystemwatcher_inotify.cpp:248
#10 0xb5e03de0 in QThreadPrivate::start (arg=0x85ebdc0) at thread/qthread_unix.cpp:298
#11 0xb29e5d4c in start_thread (arg=0xae66eb40) at pthread_create.c:308
#12 0xb74e2dde in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 3 (Thread 0xac0e0b40 (LWP 32763)):
#0  0xb2a2edcd in __GI_clock_gettime (clock_id=1, tp=0xac0e00c8) at ../sysdeps/unix/clock_gettime.c:116
#1  0xb5e62315 in do_gettime (frac=0xac0e00c0, sec=0xac0e00b8) at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0xb5f4c226 in QTimerInfoList::updateCurrentTime (this=0xab700b34) at kernel/qeventdispatcher_unix.cpp:343
#4  0xb5f4c57a in QTimerInfoList::timerWait (this=0xab700b34, tm=...) at kernel/qeventdispatcher_unix.cpp:450
#5  0xb5f4e27e in QEventDispatcherUNIX::processEvents (this=0xab700488, flags=...) at kernel/qeventdispatcher_unix.cpp:913
#6  0xb5f1750d in QEventLoop::processEvents (this=0xac0e0240, flags=...) at kernel/qeventloop.cpp:149
#7  0xb5f177a9 in QEventLoop::exec (this=0xac0e0240, flags=...) at kernel/qeventloop.cpp:204
#8  0xb5e0094c in QThread::exec (this=0x8a15000) at thread/qthread.cpp:501
#9  0xb5ef4b5d in QInotifyFileSystemWatcherEngine::run (this=0x8a15000) at io/qfilesystemwatcher_inotify.cpp:248
#10 0xb5e03de0 in QThreadPrivate::start (arg=0x8a15000) at thread/qthread_unix.cpp:298
#11 0xb29e5d4c in start_thread (arg=0xac0e0b40) at pthread_create.c:308
#12 0xb74e2dde in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xab6ffb40 (LWP 32764)):
#0  0xb7715424 in __kernel_vsyscall ()
#1  0xb29e996b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:169
#2  0xb74f06ec in __pthread_cond_wait (cond=0xb66ff890, mutex=0xb66ff878) at forward.c:139
#3  0xb65fb029 in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#4  0xb65fb06f in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#5  0xb29e5d4c in start_thread (arg=0xab6ffb40) at pthread_create.c:308
#6  0xb74e2dde in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb1a48740 (LWP 32752)):
[KCrash Handler]
#7  brw_update_renderbuffer_surface (brw=0x8617c70, rb=0x85ef830, unit=0) at brw_wm_surface_state.c:1109
#8  0xaea899c3 in brw_update_renderbuffer_surfaces (brw=0x8617c70) at brw_wm_surface_state.c:1205
#9  0xaea71ec5 in brw_upload_state (brw=0x8617c70) at brw_state_upload.c:498
#10 0xaea5cf17 in brw_try_draw_prims (max_index=5, min_index=140656116, ib=0x0, nr_prims=1, prim=0xbf8f7d30, arrays=0x8617c70, ctx=0x8617c70) at brw_draw.c:493
#11 brw_draw_prims (ctx=0x8617c70, prim=0xbf8f7d30, nr_prims=1, ib=0x0, index_bounds_valid=1 '\001', min_index=0, max_index=5, tfb_vertcount=0x0) at brw_draw.c:589
#12 0xae7c8abc in vbo_draw_arrays (ctx=0x8617c70, mode=4, start=0, count=6, numInstances=1, baseInstance=0) at ../../../../../src/mesa/vbo/vbo_exec_array.c:645
#13 0xae7c8b9f in vbo_exec_DrawArrays (mode=4, start=0, count=6) at ../../../../../src/mesa/vbo/vbo_exec_array.c:675
#14 0xb64347ef in KWin::GLVertexBufferPrivate::corePainting (this=0x88375a8, region=..., primitiveMode=4) at ../../../kwin/libkwineffects/kwinglutils.cpp:1189
#15 0xb6434935 in KWin::GLVertexBuffer::render (this=0x8604b80, region=..., primitiveMode=4) at ../../../kwin/libkwineffects/kwinglutils.cpp:1298
#16 0xb767b8c7 in renderQuads (normalized=false, tex=0x8d7f420, quads=..., region=..., this=<optimized out>) at ../../kwin/scene_opengl.cpp:788
#17 KWin::SceneOpenGL::Window::renderQuads (this=0x8d7f400, region=..., quads=..., tex=0x8d7f420, normalized=false) at ../../kwin/scene_opengl.cpp:768
#18 0xb7682f97 in KWin::SceneOpenGL::Window::performPaint (this=0x8d7f400, mask=9, region=..., data=...) at ../../kwin/scene_opengl.cpp:592
#19 0xb7669517 in KWin::Scene::finalDrawWindow (this=0x85f1340, w=0x8ff61c8, mask=9, region=..., data=...) at ../../kwin/scene.cpp:438
#20 0xb76906aa in KWin::EffectsHandlerImpl::drawWindow (this=0x88afef0, w=0x8ff61d0, mask=9, region=..., data=...) at ../../kwin/effects.cpp:286
#21 0xac4e6117 in KWin::BlurEffect::drawWindow (this=0x8998fe8, w=0x8ff61d0, mask=9, region=..., data=...) at ../../../kwin/effects/blur/blur.cpp:389
#22 0xb7690648 in KWin::EffectsHandlerImpl::drawWindow (this=0x88afef0, w=0x8ff61d0, mask=9, region=..., data=...) at ../../kwin/effects.cpp:283
#23 0xb68a13a2 in KWin::Effect::drawWindow (this=0x89a6a78, w=0x8ff61d0, mask=9, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:182
#24 0xb7690648 in KWin::EffectsHandlerImpl::drawWindow (this=0x88afef0, w=0x8ff61d0, mask=9, region=..., data=...) at ../../kwin/effects.cpp:283
#25 0xb68a13a2 in KWin::Effect::drawWindow (this=0x8a67378, w=0x8ff61d0, mask=9, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:182
#26 0xb7690648 in KWin::EffectsHandlerImpl::drawWindow (this=0x88afef0, w=0x8ff61d0, mask=9, region=..., data=...) at ../../kwin/effects.cpp:283
#27 0xb7668952 in KWin::Scene::finalPaintWindow (this=0x85f1340, w=0x8ff61c8, mask=9, region=..., data=...) at ../../kwin/scene.cpp:429
#28 0xb769053a in KWin::EffectsHandlerImpl::paintWindow (this=0x88afef0, w=0x8ff61d0, mask=9, region=..., data=...) at ../../kwin/effects.cpp:249
#29 0xb68a14c2 in KWin::Effect::paintWindow (this=0x8998fe8, w=0x8ff61d0, mask=9, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:157
#30 0xb76904d8 in KWin::EffectsHandlerImpl::paintWindow (this=0x88afef0, w=0x8ff61d0, mask=9, region=..., data=...) at ../../kwin/effects.cpp:246
#31 0xac4935c4 in KWin::FadeEffect::paintWindow (this=0x89a6a78, w=0x8ff61d0, mask=9, region=..., data=...) at ../../../kwin/effects/fade/fade.cpp:150
#32 0xb76904d8 in KWin::EffectsHandlerImpl::paintWindow (this=0x88afef0, w=0x8ff61d0, mask=9, region=..., data=...) at ../../kwin/effects.cpp:246
#33 0xac4cccd8 in KWin::TranslucencyEffect::paintWindow (this=0x8a67378, w=0x8ff61d0, mask=9, region=..., data=...) at ../../../kwin/effects/translucency/translucency.cpp:169
#34 0xb76904d8 in KWin::EffectsHandlerImpl::paintWindow (this=0x88afef0, w=0x8ff61d0, mask=9, region=..., data=...) at ../../kwin/effects.cpp:246
#35 0xb766973e in KWin::Scene::paintWindow (this=0x85f1340, w=0x8d7f400, mask=9, region=..., quads=...) at ../../kwin/scene.cpp:385
#36 0xb766a8e5 in KWin::Scene::paintSimpleScreen (this=0x85f1340, orig_mask=8, region=...) at ../../kwin/scene.cpp:330
#37 0xb766885a in KWin::Scene::finalPaintScreen (this=0x85f1340, mask=8, region=..., data=...) at ../../kwin/scene.cpp:198
#38 0xb76909c0 in KWin::EffectsHandlerImpl::paintScreen (this=0x88afef0, mask=8, region=..., data=...) at ../../kwin/effects.cpp:222
#39 0xb68a153a in KWin::Effect::paintScreen (this=0x8998fe8, mask=8, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:142
#40 0xb7690970 in KWin::EffectsHandlerImpl::paintScreen (this=0x88afef0, mask=8, region=..., data=...) at ../../kwin/effects.cpp:219
#41 0xb68a153a in KWin::Effect::paintScreen (this=0x89a6a78, mask=8, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:142
#42 0xb7690970 in KWin::EffectsHandlerImpl::paintScreen (this=0x88afef0, mask=8, region=..., data=...) at ../../kwin/effects.cpp:219
#43 0xb68a153a in KWin::Effect::paintScreen (this=0x8a67378, mask=8, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:142
#44 0xb7690970 in KWin::EffectsHandlerImpl::paintScreen (this=0x88afef0, mask=8, region=..., data=...) at ../../kwin/effects.cpp:219
#45 0xb766b3cf in KWin::Scene::paintScreen (this=0x85f1340, mask=0xbf8f9064, region=0xbf8f90f0) at ../../kwin/scene.cpp:156
#46 0xb7683b69 in KWin::SceneOpenGL::paint (this=0x85f1340, damage=..., toplevels=...) at ../../kwin/scene_opengl_glx.cpp:459
#47 0xb76649db in KWin::Workspace::performCompositing (this=0x878a818) at ../../kwin/composite.cpp:412
#48 0xb5f33ac4 in QObject::event (this=0x878a818, e=0xbf8f95dc) at kernel/qobject.cpp:1157
#49 0xb5402ed4 in notify_helper (e=0xbf8f95dc, receiver=0x878a818, this=0x8477918) at kernel/qapplication.cpp:4559
#50 QApplicationPrivate::notify_helper (this=0x8477918, receiver=0x878a818, e=0xbf8f95dc) at kernel/qapplication.cpp:4531
#51 0xb540830d in QApplication::notify (this=0xbf8f95dc, receiver=0x878a818, e=0xbf8f95dc) at kernel/qapplication.cpp:4288
#52 0xb719ce01 in KApplication::notify (this=0xbf8f98e8, receiver=0x878a818, event=0xbf8f95dc) at ../../kdeui/kernel/kapplication.cpp:311
#53 0xb760d7ff in notify (e=0xbf8f95dc, o=0x878a818, this=0xbf8f98e8) at ../../kwin/main.cpp:368
#54 KWin::Application::notify (this=0xbf8f98e8, o=0x878a818, e=0xbf8f95dc) at ../../kwin/main.cpp:364
#55 0xb5f1897e in QCoreApplication::notifyInternal (this=0xbf8f98e8, receiver=0x878a818, event=0xbf8f95dc) at kernel/qcoreapplication.cpp:876
#56 0xb5f4d990 in sendEvent (event=0xbf8f95dc, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#57 QTimerInfoList::activateTimers (this=0x84782dc) at kernel/qeventdispatcher_unix.cpp:611
#58 0xb5f4e207 in QEventDispatcherUNIX::processEvents (this=0x8477528, flags=...) at kernel/qeventdispatcher_unix.cpp:930
#59 0xb54bcb6e in QEventDispatcherX11::processEvents (this=0x8477528, flags=...) at kernel/qeventdispatcher_x11.cpp:152
#60 0xb5f1750d in QEventLoop::processEvents (this=0xbf8f9824, flags=...) at kernel/qeventloop.cpp:149
#61 0xb5f177a9 in QEventLoop::exec (this=0xbf8f9824, flags=...) at kernel/qeventloop.cpp:204
#62 0xb5f1ceba in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#63 0xb5400a74 in QApplication::exec () at kernel/qapplication.cpp:3820
#64 0xb76107c5 in kdemain (argc=3, argv=0xbf8f9b94) at ../../kwin/main.cpp:541
#65 0x0804850b in main (argc=3, argv=0xbf8f9b94) at kwin_dummy.cpp:3

Possible duplicates by query: bug 317796, bug 317761, bug 317594, bug 317373, bug 317160.

Reported using DrKonqi
Comment 1 Martin Flöser 2013-04-28 08:50:12 UTC

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