Bug 317039

Summary: KWin crash at startup
Product: [Plasma] kwin Reporter: vajs.vajs
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: crash    
Priority: NOR    
Version First Reported In: 4.10.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description vajs.vajs 2013-03-19 18:08:28 UTC
Application: kwin (4.10.1)
KDE Platform Version: 4.10.1
Qt Version: 4.8.3
Operating System: Linux 3.5.0-26-generic i686
Distribution: Ubuntu 12.10

-- Information about the crash:
- What I was doing when the application crashed:
I was restarting my PC. After login, desktop shows up, and then it shows message KWin crashed. I set up desktop resolution to 1024x768 but it reverts max resolution after restart.

-- 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 0xb1ce4740 (LWP 1657))]

Thread 2 (Thread 0xaede0b40 (LWP 1659)):
#0  0xb77a6424 in __kernel_vsyscall ()
#1  0xb2c9696b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0xb758064c in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0xb669f1cd in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#4  0xb669f1ff in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#5  0xb2c92d4c in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#6  0xb7572d3e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 1 (Thread 0xb1ce4740 (LWP 1657)):
[KCrash Handler]
#7  nouveau_resource_map_offset (nv=nv@entry=0x8f3fc18, res=0x0, offset=0, flags=flags@entry=256) at nouveau_buffer.c:318
#8  0xac9402cd in nv30_emit_vtxattr (nv30=nv30@entry=0x8f3fc18, attr=attr@entry=1, ve=0x92cbf68, ve=0x92cbf68, vb=<optimized out>, vb=<optimized out>) at nv30_vbo.c:46
#9  0xac941a39 in nv30_vbo_validate (nv30=0x8f3fc18) at nv30_vbo.c:232
#10 0xac961c52 in nv30_state_validate (nv30=nv30@entry=0x8f3fc18, hwtnl=hwtnl@entry=1 '\001') at nv30_state_validate.c:487
#11 0xac93f915 in nv30_clear (pipe=0x8f3fc18, buffers=1, color=0xbfda521c, depth=1, stencil=0) at nv30_clear.c:61
#12 0xac665bb2 in st_Clear (ctx=0x8fa7808, mask=2) at ../../../../../src/mesa/state_tracker/st_cb_clear.c:557
#13 0xac1e6e97 in _mesa_Clear (mask=16384) at ../../../../../src/mesa/main/clear.c:233
#14 0xb7710ad5 in KWin::SceneOpenGL::paintBackground (this=this@entry=0x9009f18, region=...) at ../../kwin/scene_opengl.cpp:349
#15 0xb7700c62 in KWin::Scene::paintGenericScreen (this=0x9009f18, orig_mask=32) at ../../kwin/scene.cpp:194
#16 0xb770deb1 in KWin::SceneOpenGL2::paintGenericScreen (this=this@entry=0x9009f18, mask=mask@entry=32, data=...) at ../../kwin/scene_opengl.cpp:516
#17 0xb76ff908 in KWin::Scene::finalPaintScreen (this=0x9009f18, mask=32, region=..., data=...) at ../../kwin/scene.cpp:184
#18 0xb7725173 in KWin::EffectsHandlerImpl::paintScreen (this=0x9149f30, mask=mask@entry=32, region=..., data=...) at ../../kwin/effects.cpp:254
#19 0xb698331a in KWin::Effect::paintScreen (this=0x914f310, mask=32, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:489
#20 0xb772511b in KWin::EffectsHandlerImpl::paintScreen (this=0x9149f30, mask=mask@entry=32, region=..., data=...) at ../../kwin/effects.cpp:251
#21 0xb698331a in KWin::Effect::paintScreen (this=0x922af28, mask=32, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:489
#22 0xb772511b in KWin::EffectsHandlerImpl::paintScreen (this=0x9149f30, mask=mask@entry=32, region=..., data=...) at ../../kwin/effects.cpp:251
#23 0xb698331a in KWin::Effect::paintScreen (this=0x9145250, mask=32, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:489
#24 0xb772511b in KWin::EffectsHandlerImpl::paintScreen (this=0x9149f30, mask=32, region=..., data=...) at ../../kwin/effects.cpp:251
#25 0xb7700ece in KWin::Scene::paintScreen (this=0x9009f18, mask=0xbfda57ec, region=0xbfda585c) at ../../kwin/scene.cpp:140
#26 0xb771238b in KWin::SceneOpenGL::paint (this=0x9009f18, damage=..., toplevels=...) at ../../kwin/scene_opengl.cpp:308
#27 0xb76fa2a0 in KWin::Compositor::performCompositing (this=0x8f12478) at ../../kwin/composite.cpp:610
#28 0xb5fc5d54 in QObject::event (this=0x8f12478, e=0xbfda5d90) at kernel/qobject.cpp:1157
#29 0xb54a039c in QApplicationPrivate::notify_helper (this=0x8cf84f0, receiver=0x8f12478, e=0xbfda5d90) at kernel/qapplication.cpp:4562
#30 0xb54a4daf in QApplication::notify (this=0xbfda5d90, receiver=0x8f12478, e=0xbfda5d90) at kernel/qapplication.cpp:3944
#31 0xb722e8b1 in KApplication::notify (this=0xbfda6158, receiver=0x8f12478, event=0xbfda5d90) at ../../kdeui/kernel/kapplication.cpp:311
#32 0xb76a3b0f in notify (e=0xbfda5d90, o=0x8f12478, this=0xbfda6158) at ../../kwin/main.cpp:371
#33 KWin::Application::notify (this=0xbfda6158, o=0x8f12478, e=0xbfda5d90) at ../../kwin/main.cpp:367
#34 0xb5faf7ae in QCoreApplication::notifyInternal (this=0xbfda6158, receiver=0x8f12478, event=0xbfda5d90) at kernel/qcoreapplication.cpp:915
#35 0xb5fe42a0 in sendEvent (event=0xbfda5d90, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#36 QTimerInfoList::activateTimers (this=0x8cf8d94) at kernel/qeventdispatcher_unix.cpp:611
#37 0xb5fe4325 in QEventDispatcherUNIX::activateTimers (this=0x8cf8d94, this@entry=0x8cadeb8) at kernel/qeventdispatcher_unix.cpp:868
#38 0xb5fe4498 in QEventDispatcherUNIX::processEvents (this=0x8cadeb8, flags=...) at kernel/qeventdispatcher_unix.cpp:930
#39 0xb55579f3 in QEventDispatcherX11::processEvents (this=0x8cadeb8, flags=...) at kernel/qeventdispatcher_x11.cpp:152
#40 0xb5fae28c in QEventLoop::processEvents (this=this@entry=0xbfda5fd8, flags=...) at kernel/qeventloop.cpp:149
#41 0xb5fae581 in QEventLoop::exec (this=0xbfda5fd8, flags=...) at kernel/qeventloop.cpp:204
#42 0xb5fb3cda in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#43 0xb549dfc4 in QApplication::exec () at kernel/qapplication.cpp:3823
#44 0xb76a6591 in kdemain (argc=1, argv=0xbfda6244) at ../../kwin/main.cpp:537
#45 0x0804855b in main (argc=1, argv=0xbfda6244) at kwin_dummy.cpp:3

Reported using DrKonqi
Comment 1 Thomas Lübking 2013-03-19 19:23:29 UTC
Resolution isn't managed by KWin but krandr.
If this remains, please file a bug there.

The crash is in the nouveau driver and looks a lot like bug #252817
run "kcmshell4 kwincompositing" and in the third tab check whether "suspend compositing for fullscreen windows" is checked. In case, uncheck it.

There's however also an apparent memory corruption through XRandr, so because of your report and esp. if you did not have mentioned setting enabled, try whether kwin also crashes if you alter the resolution at runtime (run "xrandr -s 1024x768")
Comment 2 Thomas Lübking 2013-03-19 19:24:03 UTC
forgot updating state ...
Comment 3 vajs.vajs 2013-03-19 23:32:35 UTC
I just installed nvidia-current and nvidia-current-updates and kwin doesn't crash anymore. Res. problem is also gone.