Bug 318911

Summary: Kwin crash at startup
Product: [Plasma] kwin Reporter: Eric Si <eric.si>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 4.10.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Eric Si 2013-04-26 09:11:14 UTC
Application: kwin (4.10.2)
KDE Platform Version: 4.10.2
Qt Version: 4.8.4
Operating System: Linux 3.9.0-030900rc8-generic i686
Distribution: Ubuntu 13.04

-- Information about the crash:
- What I was doing when the application crashed:
Starting KDE
Starting KDE
Starting KDE
Starting KDE
Starting KDE
Started KDE then kwin crash

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 0xb10f9740 (LWP 2238))]

Thread 3 (Thread 0xacab8b40 (LWP 2248)):
#0  0xb76e9424 in __kernel_vsyscall ()
#1  0xb216384b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0xb74afd7c in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0xb65ca0ed in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#4  0xb65ca11f in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#5  0xb215fd78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#6  0xb74a23de in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 2 (Thread 0xa9c89b40 (LWP 2252)):
#0  0xb76e9424 in __kernel_vsyscall ()
#1  0xb216384b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0xb74afd7c in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0xaceccb1c in ?? () from /usr/lib/i386-linux-gnu/dri/r600_dri.so
#4  0xb215fd78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#5  0xb74a23de in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 1 (Thread 0xb10f9740 (LWP 2238)):
[KCrash Handler]
#7  KWin::Scene::paintSimpleScreen (this=this@entry=0x99d8d18, orig_mask=orig_mask@entry=0, region=...) at ../../kwin/scene.cpp:653
#8  0xb7641f33 in KWin::Scene::finalPaintScreen (this=0x99d8d18, mask=mask@entry=0, region=..., data=...) at ../../kwin/scene.cpp:186
#9  0xb7667893 in KWin::EffectsHandlerImpl::paintScreen (this=0x99df230, mask=0, region=..., data=...) at ../../kwin/effects.cpp:254
#10 0xb76434ce in KWin::Scene::paintScreen (this=this@entry=0x99d8d18, mask=mask@entry=0xbfe0f1fc, region=region@entry=0xbfe0f26c) at ../../kwin/scene.cpp:140
#11 0xb76521cb in KWin::SceneOpenGL::paint (this=0x99d8d18, damage=..., toplevels=...) at ../../kwin/scene_opengl.cpp:308
#12 0xb763bd10 in KWin::Compositor::performCompositing (this=this@entry=0x9836088) at ../../kwin/composite.cpp:610
#13 0xb763d407 in KWin::Compositor::slotCompositingOptionsInitialized (this=this@entry=0x9836088) at ../../kwin/composite.cpp:275
#14 0xb75b3c98 in qt_static_metacall (_a=0xbfe0f4ec, _id=14, _o=0x9836088, _c=<optimized out>) at moc_composite.cpp:113
#15 KWin::Compositor::qt_static_metacall (_o=0x9836088, _c=QMetaObject::InvokeMetaMethod, _id=14, _a=0xbfe0f4ec) at moc_composite.cpp:93
#16 0xb5eefb56 in QMetaObject::activate (sender=sender@entry=0x981e3d0, m=m@entry=0xb6043800 <QFutureWatcherBase::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x0) at kernel/qobject.cpp:3539
#17 0xb5f3f325 in QFutureWatcherBase::finished (this=this@entry=0x981e3d0) at .moc/release-shared/moc_qfuturewatcher.cpp:141
#18 0xb5db5cbc in QFutureWatcherBasePrivate::sendCallOutEvent (this=this@entry=0x9927298, event=event@entry=0xad700468) at concurrent/qfuturewatcher.cpp:439
#19 0xb5db5fd2 in QFutureWatcherBase::event (this=0x981e3d0, event=0xad700468) at concurrent/qfuturewatcher.cpp:344
#20 0xb53c8c7c in QApplicationPrivate::notify_helper (this=0x9725970, receiver=0x981e3d0, e=0xad700468) at kernel/qapplication.cpp:4567
#21 0xb53cbb94 in QApplication::notify (this=0xad700468, receiver=0x981e3d0, e=0xad700468) at kernel/qapplication.cpp:3949
#22 0xb715ed01 in KApplication::notify (this=this@entry=0xbfe0fd58, receiver=receiver@entry=0x981e3d0, event=event@entry=0xad700468) at ../../kdeui/kernel/kapplication.cpp:311
#23 0xb75e8e0f in notify (e=0xad700468, o=0x981e3d0, this=0xbfe0fd58) at ../../kwin/main.cpp:371
#24 KWin::Application::notify (this=0xbfe0fd58, o=0x981e3d0, e=0xad700468) at ../../kwin/main.cpp:367
#25 0xb5ed990e in QCoreApplication::notifyInternal (this=0xbfe0fd58, receiver=0x981e3d0, event=0xad700468) at kernel/qcoreapplication.cpp:946
#26 0xb5edd721 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#27 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x96d4130) at kernel/qcoreapplication.cpp:1570
#28 0xb5edda8c in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1463
#29 0xb548042d in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#30 QEventDispatcherX11::processEvents (this=0x96d4ea0, flags=...) at kernel/qeventdispatcher_x11.cpp:75
#31 0xb5ed83ec in QEventLoop::processEvents (this=this@entry=0xbfe0fbd8, flags=...) at kernel/qeventloop.cpp:149
#32 0xb5ed86e1 in QEventLoop::exec (this=this@entry=0xbfe0fbd8, flags=...) at kernel/qeventloop.cpp:204
#33 0xb5ede3fa in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#34 0xb53c6fc4 in QApplication::exec () at kernel/qapplication.cpp:3828
#35 0xb75e88c1 in kdemain (argc=1, argv=0xbfe0fe44) at ../../kwin/main.cpp:537
#36 0x0804855b in main (argc=1, argv=0xbfe0fe44) at kwin_dummy.cpp:3

Possible duplicates by query: bug 318887, bug 318742, bug 318540, bug 318286, bug 318269.

Reported using DrKonqi
Comment 1 Martin Flöser 2013-04-26 09:26:16 UTC
are you using any 3rd party effects?
Comment 2 Eric Si 2013-04-26 10:01:58 UTC
Yes,
- Zoom Desktop by kbroulik
- Maximize by mgraesslin

I have uninstalled and restart in a moment
Comment 3 Martin Flöser 2013-04-28 08:08:26 UTC

*** This bug has been marked as a duplicate of bug 318269 ***
Comment 4 Thomas Lübking 2013-04-28 09:01:42 UTC
@Eric
- did only removing those effects resolve the situation?
- can you re-enable them w/o causing the crash?
- does the normal "login" effect work (w/o crashing)?
Comment 5 Eric Si 2013-04-28 21:58:40 UTC
I think Martin is right
I'm using bespin window decoration
I can't test before the next week (holidays).
Comment 6 Thomas Lübking 2013-04-28 22:29:33 UTC
We'd then have introduced an ABI break in the deco plugin.

68	virtual void showApplicationMenu(const QPoint&) = 0;
69	virtual bool menuAvailable() const = 0;

at least broke ABI in kdecorationbridge.h - but that should only affect compiz, not deco plugins....

Eric, recomppiling bespin would be sufficient to solve the problem then, but also please attach ~/.kde/share/config/kwinrc (hoping that there's some real third party effect and we just forgot to bump the effect API version - not really broke the deco ABI)