Bug 270746 - desktop effects crashes kwin/plasma
Summary: desktop effects crashes kwin/plasma
Status: RESOLVED DOWNSTREAM
Alias: None
Product: plasma4
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-12 10:32 UTC by kovrov
Modified: 2011-12-03 19:45 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kovrov 2011-04-12 10:32:47 UTC
Application: plasma-desktop (0.4)
KDE Platform Version: 4.6.2 (4.6.2)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-8-generic x86_64
Distribution: Ubuntu Natty (development branch)

-- Information about the crash:
Machine booted.
Session started.
Kwin crashed.

The crash can be reproduced every time.

-- Backtrace:
Application: Plasma Desktop Shell (plasma-desktop), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fbf893db7a0 (LWP 1479))]

Thread 3 (Thread 0x7fbf62f86700 (LWP 1482)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007fbf62f85ac0 in ?? ()
#2  0x00007fffbb9ff7b2 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 2 (Thread 0x7fbf6119e700 (LWP 1483)):
#0  0x00007fbf7d6b30c2 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fbf7d6b3f9d in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fbf7d6b4639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fbf85ee0446 in QEventDispatcherGlib::processEvents (this=0x225af80, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007fbf85eb4882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fbf85eb4abc in QEventLoop::exec (this=0x7fbf6119ddb0, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007fbf85dcb924 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#7  0x00007fbf85e96c2f in QInotifyFileSystemWatcherEngine::run (this=0x225a3c0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fbf85dce175 in QThreadPrivate::start (arg=0x225a3c0) at thread/qthread_unix.cpp:320
#9  0x00007fbf7dfb7d8c in start_thread (arg=0x7fbf6119e700) at pthread_create.c:304
#10 0x00007fbf88cdf04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fbf893db7a0 (LWP 1479)):
[KCrash Handler]
#6  QTimer::start (this=0x404e000000000000) at kernel/qtimer.cpp:212
#7  0x00007fbf70434863 in ?? () from /usr/lib/kde4/plasma_applet_menubar.so
#8  0x00007fbf7043489c in ?? () from /usr/lib/kde4/plasma_applet_menubar.so
#9  0x00007fbf70435adc in ?? () from /usr/lib/kde4/plasma_applet_menubar.so
#10 0x00007fbf85eca5f8 in QMetaObject::activate (sender=0x235e0b0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3287
#11 0x00007fbf888e2de8 in Plasma::ToolButton::qt_metacall (this=0x235e0b0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fffbb89bf80) at ./toolbutton.moc:103
#12 0x00007fbf85eca5f8 in QMetaObject::activate (sender=0x27c02b0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fffbb89bf80) at kernel/qobject.cpp:3287
#13 0x00007fbf858ec252 in QAbstractButton::clicked (this=<value optimized out>, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:206
#14 0x00007fbf8563583e in QAbstractButtonPrivate::emitClicked (this=0x27c0b00) at widgets/qabstractbutton.cpp:546
#15 0x00007fbf85636dbb in QAbstractButtonPrivate::click (this=0x27c0b00) at widgets/qabstractbutton.cpp:539
#16 0x00007fbf8563702c in QAbstractButton::mouseReleaseEvent (this=0x27c02b0, e=0x20ae250) at widgets/qabstractbutton.cpp:1121
#17 0x00007fbf856f32ca in QToolButton::mouseReleaseEvent (this=<value optimized out>, e=<value optimized out>) at widgets/qtoolbutton.cpp:721
#18 0x00007fbf852c7cb8 in QWidget::event (this=0x27c02b0, event=0x20ae250) at kernel/qwidget.cpp:8259
#19 0x00007fbf852769e4 in QApplicationPrivate::notify_helper (this=0x19b5d00, receiver=0x27c02b0, e=0x20ae250) at kernel/qapplication.cpp:4462
#20 0x00007fbf8527bdb3 in QApplication::notify (this=<value optimized out>, receiver=0x27c02b0, e=0x20ae250) at kernel/qapplication.cpp:4023
#21 0x00007fbf86b6d866 in KApplication::notify (this=0x1987380, receiver=0x27c02b0, event=0x20ae250) at ../../kdeui/kernel/kapplication.cpp:311
#22 0x00007fbf85eb549c in QCoreApplication::notifyInternal (this=0x1987380, receiver=0x27c02b0, event=0x20ae250) at kernel/qcoreapplication.cpp:731
#23 0x00007fbf85277a0d in sendEvent (receiver=0x27c02b0, event=0x20ae250, alienWidget=0x0, nativeWidget=0x27c02b0, buttonDown=0x7fffbb89c8d8, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#24 QApplicationPrivate::sendMouseEvent (receiver=0x27c02b0, event=0x20ae250, alienWidget=0x0, nativeWidget=0x27c02b0, buttonDown=0x7fffbb89c8d8, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3122
#25 0x00007fbf85862764 in QGraphicsProxyWidgetPrivate::sendWidgetMouseEvent (this=0x27beb20, event=0x7fffbb89d180) at graphicsview/qgraphicsproxywidget.cpp:283
#26 0x00007fbf85843eca in QGraphicsItem::sceneEvent (this=0x235e0c0, event=0x7fffbb89d180) at graphicsview/qgraphicsitem.cpp:6721
#27 0x00007fbf8586cb98 in QGraphicsScenePrivate::sendMouseEvent (this=0x19ba5f0, mouseEvent=0x7fffbb89d180) at graphicsview/qgraphicsscene.cpp:1281
#28 0x00007fbf8586d575 in QGraphicsScene::mouseReleaseEvent (this=<value optimized out>, mouseEvent=0x7fffbb89d180) at graphicsview/qgraphicsscene.cpp:4107
#29 0x00007fbf8587f75f in QGraphicsScene::event (this=0x1a76cc0, event=0x7fffbb89d180) at graphicsview/qgraphicsscene.cpp:3440
#30 0x00007fbf852769e4 in QApplicationPrivate::notify_helper (this=0x19b5d00, receiver=0x1a76cc0, e=0x7fffbb89d180) at kernel/qapplication.cpp:4462
#31 0x00007fbf8527b3aa in QApplication::notify (this=<value optimized out>, receiver=0x1a76cc0, e=0x7fffbb89d180) at kernel/qapplication.cpp:4341
#32 0x00007fbf86b6d866 in KApplication::notify (this=0x1987380, receiver=0x1a76cc0, event=0x7fffbb89d180) at ../../kdeui/kernel/kapplication.cpp:311
#33 0x00007fbf85eb549c in QCoreApplication::notifyInternal (this=0x1987380, receiver=0x1a76cc0, event=0x7fffbb89d180) at kernel/qcoreapplication.cpp:731
#34 0x00007fbf85896f9c in QGraphicsView::mouseReleaseEvent (this=0x273ede0, event=0x7fffbb89dbb0) at graphicsview/qgraphicsview.cpp:3336
#35 0x00007fbf852c7cb8 in QWidget::event (this=0x273ede0, event=0x7fffbb89dbb0) at kernel/qwidget.cpp:8259
#36 0x00007fbf85677a66 in QFrame::event (this=0x273ede0, e=0x7fffbb89dbb0) at widgets/qframe.cpp:557
#37 0x00007fbf85899e8b in QGraphicsView::viewportEvent (this=0x273ede0, event=0x7fffbb89dbb0) at graphicsview/qgraphicsview.cpp:2864
#38 0x00007fbf85eb5627 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x227d130, event=0x7fffbb89dbb0) at kernel/qcoreapplication.cpp:846
#39 0x00007fbf852769b1 in QApplicationPrivate::notify_helper (this=0x19b5d00, receiver=0x227d130, e=0x7fffbb89dbb0) at kernel/qapplication.cpp:4458
#40 0x00007fbf8527bdb3 in QApplication::notify (this=<value optimized out>, receiver=0x227d130, e=0x7fffbb89dbb0) at kernel/qapplication.cpp:4023
#41 0x00007fbf86b6d866 in KApplication::notify (this=0x1987380, receiver=0x227d130, event=0x7fffbb89dbb0) at ../../kdeui/kernel/kapplication.cpp:311
#42 0x00007fbf85eb549c in QCoreApplication::notifyInternal (this=0x1987380, receiver=0x227d130, event=0x7fffbb89dbb0) at kernel/qcoreapplication.cpp:731
#43 0x00007fbf85277a0d in sendEvent (receiver=0x227d130, event=0x7fffbb89dbb0, alienWidget=0x227d130, nativeWidget=0x273ede0, buttonDown=0x7fbf85d57218, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#44 QApplicationPrivate::sendMouseEvent (receiver=0x227d130, event=0x7fffbb89dbb0, alienWidget=0x227d130, nativeWidget=0x273ede0, buttonDown=0x7fbf85d57218, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3122
#45 0x00007fbf852f7600 in QETWidget::translateMouseEvent (this=0x273ede0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4556
#46 0x00007fbf852f604a in QApplication::x11ProcessEvent (this=0x1987380, event=0x7fffbb89e500) at kernel/qapplication_x11.cpp:3678
#47 0x00007fbf8531e162 in x11EventSourceDispatch (s=0x19b9810, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#48 0x00007fbf7d6b3bcd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#49 0x00007fbf7d6b43a8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#50 0x00007fbf7d6b4639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#51 0x00007fbf85ee03ef in QEventDispatcherGlib::processEvents (this=0x1936340, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#52 0x00007fbf8531ddfe in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#53 0x00007fbf85eb4882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#54 0x00007fbf85eb4abc in QEventLoop::exec (this=0x7fffbb89e800, flags=...) at kernel/qeventloop.cpp:201
#55 0x00007fbf85eb8ecb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#56 0x00007fbf88fcb897 in kdemain (argc=1, argv=0x7fffbb89ebc8) at ../../../../plasma/desktop/shell/main.cpp:118
#57 0x00007fbf88c17eff in __libc_start_main (main=0x400740 <main(int, char**)>, argc=1, ubp_av=0x7fffbb89ebc8, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fffbb89ebb8) at libc-start.c:226
#58 0x0000000000400669 in _start ()

Reported using DrKonqi
Comment 1 kovrov 2011-04-12 10:38:44 UTC
Ok, this particular core was generated when I was tried to enable desktop effects from system settings app. But same thing happens on session start as well.
Comment 2 kovrov 2011-04-12 10:39:42 UTC
Backtrace from 'session start scenario':

Application: KWin (kwin), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fd7583f67a0 (LWP 1529))]

Thread 3 (Thread 0x7fd737fff700 (LWP 1533)):
#0  0x00007fd757c40143 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fd75404132c in qt_safe_select (nfds=15, fdread=0x2346650, fdwrite=0x23468e8, fdexcept=0x2346b80, orig_timeout=<value optimized out>) at kernel/qcore_unix.cpp:82
#2  0x00007fd7540463d0 in QEventDispatcherUNIXPrivate::doSelect (this=0x2346490, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:219
#3  0x00007fd75404704a in QEventDispatcherUNIX::processEvents (this=0x2378f60, flags=...) at kernel/qeventdispatcher_unix.cpp:919
#4  0x00007fd754018882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fd754018abc in QEventLoop::exec (this=0x7fd737ffedb0, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007fd753f2f924 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#7  0x00007fd753ffac2f in QInotifyFileSystemWatcherEngine::run (this=0x232a8e0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fd753f32175 in QThreadPrivate::start (arg=0x232a8e0) at thread/qthread_unix.cpp:320
#9  0x00007fd74e625d8c in start_thread (arg=0x7fd737fff700) at pthread_create.c:304
#10 0x00007fd757c4804d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fd7377fe700 (LWP 1534)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fd756aa72a2 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7fd756dc0180) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007fd756aa72d9 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x7fd756dce254) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007fd74e625d8c in start_thread (arg=0x7fd7377fe700) at pthread_create.c:304
#4  0x00007fd757c4804d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fd7583f67a0 (LWP 1529)):
[KCrash Handler]
#6  memcpy () at ../sysdeps/x86_64/memcpy.S:267
#7  0x00007fd7554e1358 in __indirect_glProgramParameters4fvNV (target=1, index=37571364, num=1475285528, params=<value optimized out>) at /usr/include/bits/string3.h:52
#8  0x00007fd7361f726a in KWin::ARBBlurShader::init (this=0x23d4b10) at ../../../kwin/effects/blur/blurshader.cpp:473
#9  0x00007fd7361f4072 in KWin::BlurEffect::reconfigure (this=0x212e730, flags=<value optimized out>) at ../../../kwin/effects/blur/blur.cpp:76
#10 0x00007fd7361f41d7 in KWin::BlurEffect::BlurEffect (this=0x212e730) at ../../../kwin/effects/blur/blur.cpp:48
#11 0x00007fd7361f4286 in KWin::effect_create_kwin4_effect_blur () at ../../../kwin/effects/blur/blur.cpp:29
#12 0x00007fd757fd41eb in KWin::EffectsHandlerImpl::loadEffect (this=0x20bd140, name=...) at ../../kwin/effects.cpp:1128
#13 0x00007fd757fd53d1 in KWin::EffectsHandlerImpl::reconfigure (this=0x20bd140) at ../../kwin/effects.cpp:143
#14 0x00007fd757fb004c in KWin::Workspace::setupCompositing (this=0x7fd73800aa00) at ../../kwin/composite.cpp:216
#15 0x00007fd757f326b3 in KWin::Workspace::qt_metacall (this=0x7fd73800aa00, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x20d10f0) at ./workspace.moc:604
#16 0x00007fd75402d49a in QObject::event (this=0x7fd73800aa00, e=<value optimized out>) at kernel/qobject.cpp:1226
#17 0x00007fd7533da9e4 in QApplicationPrivate::notify_helper (this=0x1febd20, receiver=0x7fd73800aa00, e=0x20d0990) at kernel/qapplication.cpp:4462
#18 0x00007fd7533df3aa in QApplication::notify (this=<value optimized out>, receiver=0x7fd73800aa00, e=0x20d0990) at kernel/qapplication.cpp:4341
#19 0x00007fd757743866 in KApplication::notify (this=0x7fff1ac804b0, receiver=0x7fd73800aa00, event=0x20d0990) at ../../kdeui/kernel/kapplication.cpp:311
#20 0x00007fd75401949c in QCoreApplication::notifyInternal (this=0x7fff1ac804b0, receiver=0x7fd73800aa00, event=0x20d0990) at kernel/qcoreapplication.cpp:731
#21 0x00007fd75401cc25 in sendEvent (receiver=0x0, event_type=0, data=0x1f91b60) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#22 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1f91b60) at kernel/qcoreapplication.cpp:1372
#23 0x00007fd753482a0d in sendPostedEvents (this=0x1f91340, flags=...) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#24 QEventDispatcherX11::processEvents (this=0x1f91340, flags=...) at kernel/qeventdispatcher_x11.cpp:75
#25 0x00007fd754018882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#26 0x00007fd754018abc in QEventLoop::exec (this=0x7fff1ac803f0, flags=...) at kernel/qeventloop.cpp:201
#27 0x00007fd75401cecb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#28 0x00007fd757f4f1ec in kdemain (argc=<value optimized out>, argv=0x7fff1ac80b48) at ../../kwin/main.cpp:542
#29 0x00007fd757b80eff in __libc_start_main (main=0x400740 <main(int, char**)>, argc=3, ubp_av=0x7fff1ac80b48, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fff1ac80b38) at libc-start.c:226
#30 0x0000000000400669 in _start ()
Comment 3 Beat Wolf 2011-04-12 10:41:16 UTC
there are two different crashes here.
The first one is a plasma desktop crash, and the second one is a kwin crash.

Could you resubmit the second one as a kwin bug? thank you
Comment 4 kovrov 2011-04-12 10:43:50 UTC
I wonder if it is related to memcpy issue on 64-bit atch. (reported here https://bugzilla.redhat.com/show_bug.cgi?id=638477).
Comment 5 kovrov 2011-04-12 10:51:58 UTC
(In reply to comment #3)
> there are two different crashes here.
> The first one is a plasma desktop crash, and the second one is a kwin crash.
> 
> Could you resubmit the second one as a kwin bug? thank you

Well, for me it is wery relared issues. Sorry for messed report. let me clarify.

1. On startup, kwin crashes. Desktop effects being disabled. This is second backtrace, as in comment #2. This happens allways.

2. Attempt to enable desktop effects from systemsettings app allways lead to kwin crash. This is backtrace initially reported. Desktop effects become enabled on 2-5 try.
Comment 6 kovrov 2011-04-13 12:08:34 UTC
(In reply to comment #3)
> there are two different crashes here.
> The first one is a plasma desktop crash, and the second one is a kwin crash.
> 
> Could you resubmit the second one as a kwin bug? thank you

Bug 270818
Comment 7 Marco Martin 2011-12-03 19:45:55 UTC
This depends from a 3rd party applet: the global menubar from ubuntu