Bug 318540

Summary: KWin crashing on startup system
Product: [Plasma] kwin Reporter: Артём <artsheff>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: crash    
Priority: NOR    
Version: 4.10.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Артём 2013-04-18 09:11:28 UTC
Application: kwin (4.10.2)
KDE Platform Version: 4.10.2
Qt Version: 4.8.4
Operating System: Linux 3.8.0-18-generic i686
Distribution: Ubuntu Raring Ringtail (development branch)

-- Information about the crash:
On starting system KWin crashing

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".
[KCrash Handler]
#7  0xb7468ed6 in ?? () from /lib/i386-linux-gnu/libc.so.6
#8  0x00000004 in ?? ()
#9  0xac6aaaa7 in memcpy (__len=144237544, __src=0xa9941400, __dest=<optimized out>) at /usr/include/i386-linux-gnu/bits/string3.h:51
#10 do_realloc (p=0x4) at ../../../../../src/mesa/x86/rtasm/x86sse.c:30
#11 reserve (p=0x4, p@entry=0x898e3d8, bytes=bytes@entry=1) at ../../../../../src/mesa/x86/rtasm/x86sse.c:41
#12 0xac6aaaf0 in emit_1ub (p=p@entry=0x898e3d8, b0=<optimized out>) at ../../../../../src/mesa/x86/rtasm/x86sse.c:66
#13 0xac6aacca in emit_op_modrm (p=0x898e3d8, op_dst_is_reg=<optimized out>, op_dst_is_mem=1 '\001', dst=..., src=...) at ../../../../../src/mesa/x86/rtasm/x86sse.c:148
#14 0xac15b2a5 in init_inputs (index_size=0, p=0x898e0a0) at translate/translate_sse.c:1117
#15 build_vertex_emit (p=p@entry=0x898e0a0, func=func@entry=0x898e3d8, index_size=index_size@entry=0) at translate/translate_sse.c:1338
#16 0xac15eb14 in translate_sse2_create (key=key@entry=0xbff551c0) at translate/translate_sse.c:1507
#17 0xac1578c2 in translate_create (key=key@entry=0xbff551c0) at translate/translate.c:42
#18 0xac909458 in nv50_vertex_state_create (pipe=0x8ae4ab8, num_elements=2, elements=0x8997b24) at nv50_vbo.c:121
#19 0xac11b45c in cso_set_vertex_elements (ctx=0x8b577c8, count=2, states=states@entry=0xbff559c0) at cso_cache/cso_context.c:860
#20 0xac222cf0 in update_array (st=0x8b42278) at ../../../../../src/mesa/state_tracker/st_atom_array.c:585
#21 0xac222646 in st_validate_state (st=st@entry=0x8b42278) at ../../../../../src/mesa/state_tracker/st_atom.c:225
#22 0xac235f44 in st_draw_vbo (ctx=0x8b0e680, prims=0xbff55ce0, nr_prims=1, ib=0x0, index_bounds_valid=1 '\001', min_index=0, max_index=5, tfb_vertcount=0x0) at ../../../../../src/mesa/state_tracker/st_draw.c:211
#23 0xac6157b2 in vbo_draw_arrays (ctx=ctx@entry=0x8b0e680, mode=mode@entry=4, start=start@entry=0, count=count@entry=6, numInstances=numInstances@entry=1, baseInstance=baseInstance@entry=0) at ../../../../../src/mesa/vbo/vbo_exec_array.c:619
#24 0xac61589d in vbo_exec_DrawArrays (mode=4, start=0, count=6) at ../../../../../src/mesa/vbo/vbo_exec_array.c:649
#25 0xb6431c85 in KWin::GLVertexBufferPrivate::corePainting (this=0x8b4d930, region=..., primitiveMode=4, hardwareClipping=false) at ../../../kwin/libkwineffects/kwinglutils.cpp:1254
#26 0xb6431f4d in KWin::GLVertexBuffer::render (this=0x8ad6698, region=..., primitiveMode=primitiveMode@entry=4, hardwareClipping=hardwareClipping@entry=false) at ../../../kwin/libkwineffects/kwinglutils.cpp:1363
#27 0xb76759dd in renderQuads (hardwareClipping=false, normalized=false, tex=0x89d8840, quads=..., region=..., this=<optimized out>) at ../../kwin/scene_opengl.cpp:1228
#28 KWin::SceneOpenGL::Window::renderQuads (this=0x8967e00, region=..., quads=..., tex=0x89d8840, normalized=false, hardwareClipping=false) at ../../kwin/scene_opengl.cpp:1207
#29 0xb767a0b6 in KWin::SceneOpenGL::Window::performPaint (this=0x8967e00, mask=1, region=..., data=...) at ../../kwin/scene_opengl.cpp:969
#30 0xb767ea85 in KWin::SceneOpenGL2::performPaintWindow (this=this@entry=0x8b4d978, w=w@entry=0x89488a0, mask=mask@entry=1, region=..., data=...) at ../../kwin/scene_opengl.cpp:566
#31 0xb767ec47 in KWin::SceneOpenGL2::finalDrawWindow (this=0x8b4d978, w=w@entry=0x89488a0, mask=mask@entry=1, region=..., data=...) at ../../kwin/scene_opengl.cpp:551
#32 0xb768d478 in KWin::EffectsHandlerImpl::drawWindow (this=0x8c27a78, w=w@entry=0x89488a0, mask=mask@entry=1, region=..., data=...) at ../../kwin/effects.cpp:318
#33 0xb7667ff2 in KWin::Scene::finalPaintWindow (this=0x8b4d978, w=w@entry=0x89488a0, mask=mask@entry=1, region=..., data=...) at ../../kwin/scene.cpp:449
#34 0xb768d6f3 in KWin::EffectsHandlerImpl::paintWindow (this=0x8c27a78, w=0x89488a0, mask=mask@entry=1, region=..., data=...) at ../../kwin/effects.cpp:281
#35 0xb766b130 in KWin::Scene::paintWindow (this=this@entry=0x8b4d978, w=0x8967e00, mask=1, region=..., quads=...) at ../../kwin/scene.cpp:356
#36 0xb766a296 in KWin::Scene::paintSimpleScreen (this=this@entry=0x8b4d978, orig_mask=orig_mask@entry=0, region=...) at ../../kwin/scene.cpp:342
#37 0xb7667f33 in KWin::Scene::finalPaintScreen (this=0x8b4d978, mask=mask@entry=0, region=..., data=...) at ../../kwin/scene.cpp:186
#38 0xb768d893 in KWin::EffectsHandlerImpl::paintScreen (this=0x8c27a78, mask=0, region=..., data=...) at ../../kwin/effects.cpp:254
#39 0xb76694ce in KWin::Scene::paintScreen (this=this@entry=0x8b4d978, mask=mask@entry=0xbff5662c, region=region@entry=0xbff5669c) at ../../kwin/scene.cpp:140
#40 0xb76781cb in KWin::SceneOpenGL::paint (this=0x8b4d978, damage=..., toplevels=...) at ../../kwin/scene_opengl.cpp:308
#41 0xb7661d10 in KWin::Compositor::performCompositing (this=this@entry=0x8937870) at ../../kwin/composite.cpp:610
#42 0xb7663407 in KWin::Compositor::slotCompositingOptionsInitialized (this=this@entry=0x8937870) at ../../kwin/composite.cpp:275
#43 0xb75d9c98 in qt_static_metacall (_a=0xbff5691c, _id=14, _o=0x8937870, _c=<optimized out>) at moc_composite.cpp:113
#44 KWin::Compositor::qt_static_metacall (_o=0x8937870, _c=QMetaObject::InvokeMetaMethod, _id=14, _a=0xbff5691c) at moc_composite.cpp:93
#45 0xb5f27b56 in QMetaObject::activate (sender=sender@entry=0x8944f68, m=m@entry=0xb607b800 <QFutureWatcherBase::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x0) at kernel/qobject.cpp:3539
#46 0xb5f77325 in QFutureWatcherBase::finished (this=this@entry=0x8944f68) at .moc/release-shared/moc_qfuturewatcher.cpp:141
#47 0xb5dedcbc in QFutureWatcherBasePrivate::sendCallOutEvent (this=this@entry=0x894cf50, event=event@entry=0xad500468) at concurrent/qfuturewatcher.cpp:439
#48 0xb5dedfd2 in QFutureWatcherBase::event (this=0x8944f68, event=0xad500468) at concurrent/qfuturewatcher.cpp:344
#49 0xb5400c7c in QApplicationPrivate::notify_helper (this=0x882ced0, receiver=0x8944f68, e=0xad500468) at kernel/qapplication.cpp:4567
#50 0xb5403b94 in QApplication::notify (this=0xad500468, receiver=0x8944f68, e=0xad500468) at kernel/qapplication.cpp:3949
#51 0xb7196d01 in KApplication::notify (this=this@entry=0xbff57188, receiver=receiver@entry=0x8944f68, event=event@entry=0xad500468) at ../../kdeui/kernel/kapplication.cpp:311
#52 0xb760ee0f in notify (e=0xad500468, o=0x8944f68, this=0xbff57188) at ../../kwin/main.cpp:371
#53 KWin::Application::notify (this=0xbff57188, o=0x8944f68, e=0xad500468) at ../../kwin/main.cpp:367
#54 0xb5f1190e in QCoreApplication::notifyInternal (this=0xbff57188, receiver=0x8944f68, event=0xad500468) at kernel/qcoreapplication.cpp:946
#55 0xb5f15721 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#56 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x87e7130) at kernel/qcoreapplication.cpp:1570
#57 0xb5f15a8c in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1463
#58 0xb54b842d in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#59 QEventDispatcherX11::processEvents (this=0x882be30, flags=...) at kernel/qeventdispatcher_x11.cpp:75
#60 0xb5f103ec in QEventLoop::processEvents (this=this@entry=0xbff57008, flags=...) at kernel/qeventloop.cpp:149
#61 0xb5f106e1 in QEventLoop::exec (this=this@entry=0xbff57008, flags=...) at kernel/qeventloop.cpp:204
#62 0xb5f163fa in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#63 0xb53fefc4 in QApplication::exec () at kernel/qapplication.cpp:3828
#64 0xb760e8c1 in kdemain (argc=3, argv=0xbff57274) at ../../kwin/main.cpp:537
#65 0x0804855b in main (argc=3, argv=0xbff57274) at kwin_dummy.cpp:3

Reported using DrKonqi
Comment 1 Thomas Lübking 2013-04-18 11:09:56 UTC
driver bug.
using mesa 9.1?

(random guess)
Might be induced by falsely picking a msaa FBO. in case you can, try whether picking https://projects.kde.org/projects/kde/kde-workspace/repository/revisions/a021eacfbd2f2e8cb1f1caf1b66204880c1e7992 resolves it.
Comment 2 Артём 2013-04-18 11:18:35 UTC
(In reply to comment #1)
> driver bug.
> using mesa 9.1?
> 
> (random guess)
> Might be induced by falsely picking a msaa FBO. in case you can, try whether
> picking
> https://projects.kde.org/projects/kde/kde-workspace/repository/revisions/
> a021eacfbd2f2e8cb1f1caf1b66204880c1e7992 resolves it.
what it do?  where was it pick? Sorry for bad English
Comment 3 Thomas Lübking 2013-04-18 11:34:45 UTC
If you compile yourself, you could just add that commit as patch (or update to current 4.10 branch in git)

If you don't know how to or want compile from sources, there's nothing that you can do in this direction (except for waiting until 4.10.3 hits your distro)

-> You can also just use the nvidia blob (binary driver) instead.
Comment 4 Артём 2013-04-18 11:48:24 UTC
(In reply to comment #3)
> If you compile yourself, you could just add that commit as patch (or update
> to current 4.10 branch in git)
> 
> If you don't know how to or want compile from sources, there's nothing that
> you can do in this direction (except for waiting until 4.10.3 hits your
> distro)
> 
> -> You can also just use the nvidia blob (binary driver) instead.

if i can help you, this bag appared after latest update from  muon update center.
Comment 5 Thomas Lübking 2013-04-18 11:59:29 UTC
You don't need to help /us/ ;-)

The bug is in the nouveau driver (even if kwin would pick an msaa visual, and this would lead to the crashy path, the driver should not crash but be slow or sth. like that)

Also compare http://www.mail-archive.com/desktop-packages@lists.launchpad.net/msg219457.html - referencing a game called "Tibia", blaming the mesa 9.1 update.