Bug 301646

Summary: kwindecoration crashes
Product: [Plasma] kwin Reporter: Phoeniks ;) <powerfeniks>
Component: decorationsAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: crash CC: aj, cfeck, dkeenaghan, emilio.simoes, gaska9201, harshi.hustle1990, houtventertje, izenzon, jdeking1, jr, jussi.kekkonen, kaj, leobarriofino, mirza.dervisevic, paulestebanms, sabayon11, sdewittofm, spearhead2k3, totokid, zwulf
Priority: NOR    
Version: 4.8.80   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.9RC2
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
valgrind log when opening Workspace Apperance in SystemSettings
system settings - workspace appearance crash 1
system settings - workspace appearance crash 2
system settings - workspace appearance crash 3

Description Phoeniks ;) 2012-06-11 13:27:52 UTC
Application: systemsettings (1.0)
KDE Platform Version: 4.8.80 (4.8.80)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-24-generic x86_64
Distribution: Ubuntu 12.04 LTS

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

phoeniks-3machine@phoeniks-3machine-Aspire-5830TG:~$ kcmshell4 kwindecoration
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::end: Painter not active, aborted
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::end: Painter not active, aborted
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::end: Painter not active, aborted
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::end: Painter not active, aborted
kcmshell(3883)/kwin KDecorationPlugins::loadPlugin: "******

The library /usr/lib/kde4/kwin3_qtcurve.so has no API version
Please use the KWIN_DECORATION or future versions of kwin will no longer load this decoration!
*******" 
KCrash: Application 'kcmshell4' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/home/phoeniks-3machine/.kde/socket-phoeniks-3machinekwindecoration crash-Aspire-5830TG/kdeinit4__0

[1]+  Stopped                 kcmshell4 kwindecoration
phoeniks-kracht-3@phoeniks-kracht-3-Aspire-5830TG:~$ QSocketNotifier: Invalid socket 17 and type 'Read', disabling...

[1]+  Exit 253                kcmshell4 kwindecoration

*No posibility to change decoration, direct crash when i try to klick icon in system setings, not starting from terminal

-- Backtrace:
Application: Ustawienia systemowe (systemsettings), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f12f149f780 (LWP 3347))]

Thread 3 (Thread 0x7f12d4fdc700 (LWP 3348)):
#0  __pthread_mutex_unlock_usercnt (mutex=<optimized out>, decr=<optimized out>) at pthread_mutex_unlock.c:46
#1  __pthread_mutex_unlock (mutex=0x7f12d0000a60) at pthread_mutex_unlock.c:290
#2  0x00007f12e7bc5591 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f12e7b890d8 in g_main_context_acquire () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f12e7b89ec4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f12e7b8a124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f12eebb8426 in QEventDispatcherGlib::processEvents (this=0x7f12d00008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0x00007f12eeb87c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#8  0x00007f12eeb87ed7 in QEventLoop::exec (this=0x7f12d4fdbdd0, flags=...) at kernel/qeventloop.cpp:204
#9  0x00007f12eea86fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#10 0x00007f12eeb679ff in QInotifyFileSystemWatcherEngine::run (this=0x2065cf0) at io/qfilesystemwatcher_inotify.cpp:248
#11 0x00007f12eea89fcb in QThreadPrivate::start (arg=0x2065cf0) at thread/qthread_unix.cpp:298
#12 0x00007f12e8056e9a in start_thread (arg=0x7f12d4fdc700) at pthread_create.c:308
#13 0x00007f12ee4434bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#14 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f12cffff700 (LWP 3349)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f12ec27d222 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007f12ec27d259 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007f12e8056e9a in start_thread (arg=0x7f12cffff700) at pthread_create.c:308
#4  0x00007f12ee4434bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f12f149f780 (LWP 3347)):
[KCrash Handler]
#6  0x00007f12ce328156 in KDecorationOptions::font(bool, bool) const () from /usr/lib/libkdecorations.so.4
#7  0x00007f12ce545db4 in ?? () from /usr/lib/kde4/kwin3_qtcurve.so
#8  0x00007f12ce5460e6 in ?? () from /usr/lib/kde4/kwin3_qtcurve.so
#9  0x00007f12ce546196 in create_factory () from /usr/lib/kde4/kwin3_qtcurve.so
#10 0x00007f12d4395e32 in KDecorationPlugins::loadPlugin (this=0x21d2920, nameStr=...) at ../../../kwin/libkdecorations/kdecoration_plugins_p.cpp:194
#11 0x00007f12d45c60d4 in KWin::DecorationModel::regeneratePreview (this=0x21d2800, index=..., size=...) at ../../../../kwin/kcmkwin/kwindecoration/decorationmodel.cpp:290
#12 0x00007f12d45c64b2 in KWin::DecorationModel::regeneratePreviews (this=0x21d2800) at ../../../../kwin/kcmkwin/kwindecoration/decorationmodel.cpp:261
#13 0x00007f12d45bb013 in KWin::KWinDecorationModule::KWinDecorationModule (this=0x2180a80, parent=<optimized out>) at ../../../../kwin/kcmkwin/kwindecoration/kwindecoration.cpp:121
#14 0x00007f12d45bbdf4 in KPluginFactory::createInstance<KWin::KWinDecorationModule, QWidget> (parentWidget=<optimized out>, parent=<optimized out>, args=...) at /usr/include/KDE/../kpluginfactory.h:477
#15 0x00007f12ef37b891 in KPluginFactory::create (this=0x21805c0, iface=0x7f12f06bdc00 "KCModule", parentWidget=0x0, parent=0x217bca0, args=..., keyword=...) at ../../kdecore/util/kpluginfactory.cpp:203
#16 0x00007f12f0b9f708 in create<KCModule> (parent=0x217bca0, this=0x21805c0, args=..., keyword=..., parentWidget=0x0) at ../../kdecore/util/kpluginfactory.h:531
#17 createInstance<KCModule> (error=0x7fff2e0bda50, args=..., parent=0x217bca0, parentWidget=0x0, this=0x1dece60) at ../../kdecore/services/kservice.h:559
#18 createInstance<KCModule> (error=0x7fff2e0bda50, args=..., parent=0x217bca0, this=0x1dece60) at ../../kdecore/services/kservice.h:536
#19 KCModuleLoader::loadModule (mod=..., report=KCModuleLoader::Inline, parent=0x217bca0, args=...) at ../../kutils/kcmoduleloader.cpp:89
#20 0x00007f12f0ba45f8 in KCModuleProxyPrivate::loadModule (this=0x1e8b4c0) at ../../kutils/kcmoduleproxy.cpp:106
#21 0x00007f12f0ba5315 in KCModuleProxy::realModule (this=<optimized out>) at ../../kutils/kcmoduleproxy.cpp:83
#22 0x00007f12f0ba5352 in KCModuleProxy::showEvent (this=0x217bca0, ev=0x7fff2e0be8e0) at ../../kutils/kcmoduleproxy.cpp:197
#23 0x00007f12ef8513f5 in QWidget::event (this=0x217bca0, event=0x7fff2e0be8e0) at kernel/qwidget.cpp:8569
#24 0x00007f12ef800894 in notify_helper (e=0x7fff2e0be8e0, receiver=0x217bca0, this=0x1a9f1b0) at kernel/qapplication.cpp:4559
#25 QApplicationPrivate::notify_helper (this=0x1a9f1b0, receiver=0x217bca0, e=0x7fff2e0be8e0) at kernel/qapplication.cpp:4531
#26 0x00007f12ef805713 in QApplication::notify (this=0x7fff2e0c13c0, receiver=0x217bca0, e=0x7fff2e0be8e0) at kernel/qapplication.cpp:4420
#27 0x00007f12f053abc6 in KApplication::notify (this=0x7fff2e0c13c0, receiver=0x217bca0, event=0x7fff2e0be8e0) at ../../kdeui/kernel/kapplication.cpp:311
#28 0x00007f12eeb88e9c in QCoreApplication::notifyInternal (this=0x7fff2e0c13c0, receiver=0x217bca0, event=0x7fff2e0be8e0) at kernel/qcoreapplication.cpp:876
#29 0x00007f12ef853810 in sendEvent (event=0x7fff2e0be8e0, receiver=0x217bca0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#30 QWidgetPrivate::show_helper (this=0x217b110) at kernel/qwidget.cpp:7542
#31 0x00007f12ef853607 in QWidgetPrivate::showChildren (this=<optimized out>, spontaneous=false) at kernel/qwidget.cpp:7850
#32 0x00007f12ef8536fd in QWidgetPrivate::show_helper (this=<optimized out>) at kernel/qwidget.cpp:7489
#33 0x00007f12ef853b02 in QWidget::setVisible (this=0x1ef9e90, visible=<optimized out>) at kernel/qwidget.cpp:7764
#34 0x00007f12ef853676 in show (this=0x1ef9e90) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:494
#35 QWidgetPrivate::showChildren (this=<optimized out>, spontaneous=false) at kernel/qwidget.cpp:7852
#36 0x00007f12ef8536fd in QWidgetPrivate::show_helper (this=<optimized out>) at kernel/qwidget.cpp:7489
#37 0x00007f12ef853b02 in QWidget::setVisible (this=0x2069190, visible=<optimized out>) at kernel/qwidget.cpp:7764
#38 0x00007f12ef835389 in show (this=0x2069190) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:494
#39 QStackedLayout::setCurrentIndex (this=0x1e12a50, index=1) at kernel/qstackedlayout.cpp:311
#40 0x00007f12f056a397 in KPageViewPrivate::_k_pageSelected (this=0x1e43820, index=..., previous=...) at ../../kdeui/paged/kpageview.cpp:235
#41 0x00007f12eeb9d281 in QMetaObject::activate (sender=0x1b49620, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff2e0bedd0) at kernel/qobject.cpp:3547
#42 0x00007f12efd7d8b7 in QItemSelectionModel::selectionChanged (this=<optimized out>, _t1=..., _t2=...) at .moc/release-shared/moc_qitemselectionmodel.cpp:166
#43 0x00007f12efd83714 in QItemSelectionModel::emitSelectionChanged (this=0x1b49620, newSelection=..., oldSelection=...) at itemviews/qitemselectionmodel.cpp:1544
#44 0x00007f12efd846a1 in QItemSelectionModel::select (this=0x1b49620, selection=..., command=...) at itemviews/qitemselectionmodel.cpp:1110
#45 0x00007f12efd7f8ea in QItemSelectionModel::select (this=0x1b49620, index=..., command=...) at itemviews/qitemselectionmodel.cpp:985
#46 0x00007f12efd7db27 in QItemSelectionModel::setCurrentIndex (this=0x1b49620, index=..., command=...) at itemviews/qitemselectionmodel.cpp:1174
#47 0x00007f12f05690e7 in KPageViewPrivate::_k_rebuildGui (this=0x1e43820) at ../../kdeui/paged/kpageview.cpp:70
#48 0x00007f12f056a0e5 in KPageViewPrivate::_k_modelChanged (this=0x1e43820) at ../../kdeui/paged/kpageview.cpp:190
#49 0x00007f12eeb9d281 in QMetaObject::activate (sender=0x1e1b150, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#50 0x00007f12f056f460 in KPageWidgetModel::addPage (this=0x1e1b150, item=0x1d78020) at ../../kdeui/paged/kpagewidgetmodel.cpp:401
#51 0x00007f12f097ddbc in ModuleView::addModule (this=0x1e46df0, module=0x1e20408) at ../../../systemsettings/core/ModuleView.cpp:191
#52 0x00007f12f097e232 in ModuleView::loadModule (this=0x1e46df0, menuItem=...) at ../../../systemsettings/core/ModuleView.cpp:144
#53 0x00007f12d6062678 in IconMode::changeModule (this=0x1e526d0, activeModule=...) at ../../../systemsettings/icons/IconMode.cpp:134
#54 0x00007f12eeb9d281 in QMetaObject::activate (sender=0x1a8f210, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff2e0bf7a0) at kernel/qobject.cpp:3547
#55 0x00007f12efd26b05 in QAbstractItemView::activated (this=<optimized out>, _t1=...) at .moc/release-shared/moc_qabstractitemview.cpp:362
#56 0x00007f12efd2700f in QAbstractItemView::mouseReleaseEvent (this=0x1a8f210, event=0x7fff2e0c06e0) at itemviews/qabstractitemview.cpp:1821
#57 0x00007f12efd45f8e in QListView::mouseReleaseEvent (this=<optimized out>, e=<optimized out>) at itemviews/qlistview.cpp:799
#58 0x00007f12f050df9c in KCategorizedView::mouseReleaseEvent (this=0x1a8f210, event=0x7fff2e0c06e0) at ../../kdeui/itemviews/kcategorizedview.cpp:1059
#59 0x00007f12ef851144 in QWidget::event (this=0x1a8f210, event=0x7fff2e0c06e0) at kernel/qwidget.cpp:8362
#60 0x00007f12efc113b6 in QFrame::event (this=0x1a8f210, e=0x7fff2e0c06e0) at widgets/qframe.cpp:557
#61 0x00007f12efd2589b in QAbstractItemView::viewportEvent (this=0x1a8f210, event=0x7fff2e0c06e0) at itemviews/qabstractitemview.cpp:1644
#62 0x00007f12eeb89028 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<optimized out>, receiver=0x1e4ad00, event=0x7fff2e0c06e0) at kernel/qcoreapplication.cpp:986
#63 0x00007f12ef80085f in notify_helper (e=0x7fff2e0c06e0, receiver=0x1e4ad00, this=0x1a9f1b0) at kernel/qapplication.cpp:4555
#64 QApplicationPrivate::notify_helper (this=0x1a9f1b0, receiver=0x1e4ad00, e=0x7fff2e0c06e0) at kernel/qapplication.cpp:4531
#65 0x00007f12ef8060bf in QApplication::notify (this=<optimized out>, receiver=0x1e4ad00, e=0x7fff2e0c06e0) at kernel/qapplication.cpp:4102
#66 0x00007f12f053abc6 in KApplication::notify (this=0x7fff2e0c13c0, receiver=0x1e4ad00, event=0x7fff2e0c06e0) at ../../kdeui/kernel/kapplication.cpp:311
#67 0x00007f12eeb88e9c in QCoreApplication::notifyInternal (this=0x7fff2e0c13c0, receiver=0x1e4ad00, event=0x7fff2e0c06e0) at kernel/qcoreapplication.cpp:876
#68 0x00007f12ef801862 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#69 QApplicationPrivate::sendMouseEvent (receiver=0x1e4ad00, event=0x7fff2e0c06e0, alienWidget=0x1e4ad00, nativeWidget=0x1bdf730, buttonDown=0x1e4ad00, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3170
#70 0x00007f12ef880bf5 in QETWidget::translateMouseEvent (this=0x1bdf730, event=<optimized out>) at kernel/qapplication_x11.cpp:4617
#71 0x00007f12ef87fbae in QApplication::x11ProcessEvent (this=0x7fff2e0c13c0, event=0x7fff2e0c0fb0) at kernel/qapplication_x11.cpp:3732
#72 0x00007f12ef8a90d2 in x11EventSourceDispatch (s=0x1a96520, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#73 0x00007f12e7b89c9a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#74 0x00007f12e7b8a060 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#75 0x00007f12e7b8a124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#76 0x00007f12eebb83bf in QEventDispatcherGlib::processEvents (this=0x1a4cad0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#77 0x00007f12ef8a8d5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#78 0x00007f12eeb87c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#79 0x00007f12eeb87ed7 in QEventLoop::exec (this=0x7fff2e0c1350, flags=...) at kernel/qeventloop.cpp:204
#80 0x00007f12eeb8cf67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#81 0x000000000040a9e5 in main (argc=5, argv=0x7fff2e0c1688) at ../../../systemsettings/app/main.cpp:49

Reported using DrKonqi
Comment 1 Thomas Lübking 2012-06-11 19:35:06 UTC
the unstable ABI changed. did you recompile QtCurve after installing kde-workspace/kwin?
Comment 2 Thomas Lübking 2012-06-12 18:25:41 UTC
*** Bug 301746 has been marked as a duplicate of this bug. ***
Comment 3 Thomas Lübking 2012-06-12 19:28:58 UTC
might as well be caused similar to bug #301728, but NOTICE that the unstable deco ABI broke nevertheless - any deco inheriting the unstable deco MUST be recompiled, regardless of whether 301728 gets fixed or not.
Comment 4 Christoph Feck 2012-06-16 12:14:51 UTC
*** Bug 301994 has been marked as a duplicate of this bug. ***
Comment 5 Thomas Lübking 2012-06-28 16:51:41 UTC
*** Bug 302029 has been marked as a duplicate of this bug. ***
Comment 6 Thomas Lübking 2012-07-05 17:55:20 UTC
Git commit 7abe24039517e50dcda843beac2e5deff5a789b3 by Thomas Lübking.
Committed on 28/06/2012 at 18:16.
Pushed by luebking into branch 'KDE/4.9'.

block some unversioned decoration plugins

... which are known to use the unstable API (qtcurve, crystal, oxygen*)
FIXED-IN: 4.9RC2
REVIEW: 105378

M  +22   -11   kwin/libkdecorations/kdecoration_plugins_p.cpp

http://commits.kde.org/kde-workspace/7abe24039517e50dcda843beac2e5deff5a789b3
Comment 7 Mirza 2012-08-01 19:33:01 UTC
Created attachment 72879 [details]
New crash information added by DrKonqi

systemsettings (1.0) on KDE Platform 4.9.00 using Qt 4.8.1

- What I was doing when the application crashed:
system settings crashed after opening workspace apperance

-- Backtrace (Reduced):
#7  0x0320bc04 in KDecorationOptions::showTooltips() const () from /usr/lib/libkdecorations.so.4
#8  0x0320bcde in KDecoration::createMainWidget(QFlags<Qt::WindowType>) () from /usr/lib/libkdecorations.so.4
[...]
#10 0x031a11c9 in KDecorationPreview::recreateDecoration (this=0x8fd94e0, plugins=0x8df3088) at ../../../../kwin/kcmkwin/kwindecoration/preview.cpp:77
#11 0x031a38ca in KWin::DecorationModel::regeneratePreview (this=0x8fd8698, index=..., size=...) at ../../../../kwin/kcmkwin/kwindecoration/decorationmodel.cpp:332
#12 0x031a3c2e in KWin::DecorationModel::regenerateNextPreview (this=0x8fd8698) at ../../../../kwin/kcmkwin/kwindecoration/decorationmodel.cpp:279
Comment 8 Mirza 2012-08-01 19:43:48 UTC
Removed from my system kwin-dekorator and kwin-crystal still produces error:
log from the console:
systemsettings(4260)/kwin KDecorationPlugins::canLoad: "****** The library /usr/lib/kde4/kwin3_kde2.so has no API version ******" 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: ****** Please use the KWIN_DECORATION macro in extern "C" to get this decoration loaded in future versions of kwin 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: "****** The library /usr/lib/kde4/kwin3_keramik.so has no API version ******" 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: ****** Please use the KWIN_DECORATION macro in extern "C" to get this decoration loaded in future versions of kwin 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: "****** The library /usr/lib/kde4/kwin3_modernsys.so has no API version ******" 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: ****** Please use the KWIN_DECORATION macro in extern "C" to get this decoration loaded in future versions of kwin 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: "****** The library /usr/lib/kde4/kwin3_oxygen_transparent.so has no API version ******" 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: ****** Please use the KWIN_DECORATION macro in extern "C" to get this decoration loaded in future versions of kwin 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: "****** The library /usr/lib/kde4/kwin3_qtcurve.so has no API version ******" 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: ****** Please use the KWIN_DECORATION macro in extern "C" to get this decoration loaded in future versions of kwin 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: "****** The library /usr/lib/kde4/kwin3_quartz.so has no API version ******" 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: ****** Please use the KWIN_DECORATION macro in extern "C" to get this decoration loaded in future versions of kwin 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: "****** The library /usr/lib/kde4/kwin3_redmond.so has no API version ******" 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: ****** Please use the KWIN_DECORATION macro in extern "C" to get this decoration loaded in future versions of kwin 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: "****** The library /usr/lib/kde4/kwin3_smaragd.so has no API version ******" 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: ****** Please use the KWIN_DECORATION macro in extern "C" to get this decoration loaded in future versions of kwin 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: "****** The library /usr/lib/kde4/kwin3_web.so has no API version ******" 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: ****** Please use the KWIN_DECORATION macro in extern "C" to get this decoration loaded in future versions of kwin 
couldn't create image from  "/home/diau/overlay.png" 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: "****** The library /usr/lib/kde4/kwin3_kde2.so has no API version ******" 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: ****** Please use the KWIN_DECORATION macro in extern "C" to get this decoration loaded in future versions of kwin 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: "****** The library /usr/lib/kde4/kwin3_keramik.so has no API version ******" 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: ****** Please use the KWIN_DECORATION macro in extern "C" to get this decoration loaded in future versions of kwin 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: "****** The library /usr/lib/kde4/kwin3_modernsys.so has no API version ******" 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: ****** Please use the KWIN_DECORATION macro in extern "C" to get this decoration loaded in future versions of kwin 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: "****** The library /usr/lib/kde4/kwin3_quartz.so has no API version ******" 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: ****** Please use the KWIN_DECORATION macro in extern "C" to get this decoration loaded in future versions of kwin 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: "****** The library /usr/lib/kde4/kwin3_redmond.so has no API version ******" 
systemsettings(4260)/kwin KDecorationPlugins::canLoad: ****** Please use the KWIN_DECORATION macro in extern "C" to get this decoration loaded in future versions of kwin    
systemsettings(4260)/kwin KDecorationPlugins::canLoad: "****** The library /usr/lib/kde4/kwin3_smaragd.so has no API version ******"                                         
systemsettings(4260)/kwin KDecorationPlugins::canLoad: ****** Please use the KWIN_DECORATION macro in extern "C" to get this decoration loaded in future versions of kwin    
KCrash: Application 'systemsettings' crashing...
Comment 9 Thomas Lübking 2012-08-01 19:54:09 UTC
crasehs in deKorator deco which is not blocked for using unstable API.
However, we had an (hopefully) interim ABI break (because parts of the unstable API leaked into the stable one)  which should hopefully be restored by now.

Did you possibly recompile deKorator against one of the betas or release candidates?
Comment 10 Mirza 2012-08-01 20:02:43 UTC
(In reply to comment #9)
> crasehs in deKorator deco which is not blocked for using unstable API.
> However, we had an (hopefully) interim ABI break (because parts of the
> unstable API leaked into the stable one)  which should hopefully be restored
> by now.
> 
> Did you possibly recompile deKorator against one of the betas or release
> candidates?

No, I just downloaded new Kubuntu packages.
And I removed from my system dekorator and crystal kwin packages, but then I saw that console output complains about every possible kwin decoration:oxygen, oxygen-transparent,keramik, qtcurve ...
Comment 11 Thomas Lübking 2012-08-01 20:25:09 UTC
The konsole output is irrelevant, it's merely a warning for developers to start supporting the API version tag.

> And I removed from my system dekorator
the decoration "deKorator" [1] is what triggers this crash, it must still be installed.
It's however not using the unstable API, so the last crash would be a dupe of bug #301728

It is not the same as "kde4-window-decorator" what is a compiz decorator on the kwin decoration API.

Please to 
     grep -iE '(mime|clientgroup)' /usr/lib/kde4/kwin3_deKorator.so
and check whether there's match.

[1] http://kde-look.org/content/show.php/deKorator?content=87921
Comment 12 Mirza 2012-08-01 20:33:54 UTC
(In reply to comment #11)
> The konsole output is irrelevant, it's merely a warning for developers to
> start supporting the API version tag.
> 
> > And I removed from my system dekorator
> the decoration "deKorator" [1] is what triggers this crash, it must still be
> installed.
> It's however not using the unstable API, so the last crash would be a dupe
> of bug #301728
> 
> It is not the same as "kde4-window-decorator" what is a compiz decorator on
> the kwin decoration API.
> 
> Please to 
>      grep -iE '(mime|clientgroup)' /usr/lib/kde4/kwin3_deKorator.so
> and check whether there's match.
> 
> [1] http://kde-look.org/content/show.php/deKorator?content=87921

Here is the output of that command:
mirza@MirzaLaptop:~$ grep -iE '(mime|clientgroup)' /usr/lib/kde4/kwin3_deKorator.so
grep: /usr/lib/kde4/kwin3_deKorator.so: No such file or directory

Also the contenet of the /usr/lib/kde4/ starting with kwin* :

kwin3_aurorae.so, kwin3_oxygen_transparent.so, kwin4_effect_bereflected.so, kwin_modernsys_config.so
kwin3_b2.so, kwin3_plastik.so, kwin4_effect_builtins.so, kwin_oxygen_config.so, kwin3_kde2.so, kwin3_qtcurve.so, kwin4_effect_nightmode.so,   kwin_oxygen_transparent_config.so, kwin3_keramik.so, kwin3_quartz.so,  kwin4_effect_workspacestrap.sokwin_plastik_config.so, kwin3_laptop.so,  kwin3_redmond.so, kwin_b2_config.so, kwin_qtcurve_config.so
kwin3_modernsys.so, ,  kwin3_smaragd.so, kwin_kde2_config.so, , kwin_quartz_config.so
kwin3_oxygen.so,  kwin3_web.so,kwin_keramik_config.so, kwin_smaragd_config.so

If there is anything more that I can do to help please say :)
Comment 13 Thomas Lübking 2012-08-01 20:47:12 UTC
This is the crashtrace you attached. Did you uninstall dekorator decoration while the dialog/systemsettings was open or so?

> #7  0x0320bc04 in KDecorationOptions::showTooltips() const () from /usr/lib/libkdecorations.so.4
> #8  0x0320bcde in KDecoration::createMainWidget(QFlags<Qt::WindowType>) () from /usr/lib/libkdecorations.so.4

Watch this line
> #9  0x033d36a0 in ?? () from /usr/lib/kde4/kwin3_deKorator.so

> #10 0x031a11c9 in KDecorationPreview::recreateDecoration (this=0x8fd94e0, plugins=0x8df3088) at ../../../../kwin/kcmkwin/kwindecoration/preview.cpp:77
Comment 14 Mirza 2012-08-01 20:51:51 UTC
(In reply to comment #13)
> This is the crashtrace you attached. Did you uninstall dekorator decoration
> while the dialog/systemsettings was open or so?
> 
> > #7  0x0320bc04 in KDecorationOptions::showTooltips() const () from /usr/lib/libkdecorations.so.4
> > #8  0x0320bcde in KDecoration::createMainWidget(QFlags<Qt::WindowType>) () from /usr/lib/libkdecorations.so.4
> 
> Watch this line
> > #9  0x033d36a0 in ?? () from /usr/lib/kde4/kwin3_deKorator.so
> 
> > #10 0x031a11c9 in KDecorationPreview::recreateDecoration (this=0x8fd94e0, plugins=0x8df3088) at ../../../../kwin/kcmkwin/kwindecoration/preview.cpp:77

I am not sure, I think i first closed system settings than uninstaled decorator, but i every case here is the crash log again:

Application: System Settings (systemsettings), signal: Segmentation fault
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0xb77bf740 (LWP 9287))]

Thread 3 (Thread 0xb4c0db40 (LWP 9288)):
#0  0x02112dcd in clock_gettime () from /lib/i386-linux-gnu/librt.so.1
#1  0x07c2c315 in do_gettime (frac=0xb4c0cfb0, sec=0xb4c0cfa8) at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0x07d16226 in QTimerInfoList::updateCurrentTime (this=0xb4302074) at kernel/qeventdispatcher_unix.cpp:343
#4  0x07d1657a in QTimerInfoList::timerWait (this=0xb4302074, tm=...) at kernel/qeventdispatcher_unix.cpp:450
#5  0x07d14e23 in timerSourcePrepareHelper (src=<optimized out>, timeout=0xb4c0d0bc) at kernel/qeventdispatcher_glib.cpp:136
#6  0x07d14ebd in timerSourcePrepare (source=0xb4302040, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#7  0x024ce872 in g_main_context_prepare () from /lib/i386-linux-gnu/libglib-2.0.so.0
#8  0x024cefaf in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#9  0x024cf201 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#10 0x07d158e7 in QEventDispatcherGlib::processEvents (this=0xb4300468, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#11 0x07ce150d in QEventLoop::processEvents (this=0xb4c0d240, flags=...) at kernel/qeventloop.cpp:149
#12 0x07ce17a9 in QEventLoop::exec (this=0xb4c0d240, flags=...) at kernel/qeventloop.cpp:204
#13 0x07bca94c in QThread::exec (this=0x889aeb0) at thread/qthread.cpp:501
#14 0x07cbeb5d in QInotifyFileSystemWatcherEngine::run (this=0x889aeb0) at io/qfilesystemwatcher_inotify.cpp:248
#15 0x07bcdde0 in QThreadPrivate::start (arg=0x889aeb0) at thread/qthread_unix.cpp:298
#16 0x0211ed4c in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#17 0x02975ace in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 2 (Thread 0xb42ffb40 (LWP 9292)):
#0  0x00357416 in __kernel_vsyscall ()
#1  0x0212296b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0x029833dc in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0x05b64029 in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#4  0x05b6406f in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#5  0x0211ed4c in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#6  0x02975ace in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 1 (Thread 0xb77bf740 (LWP 9287)):
[KCrash Handler]
#7  0x07fee9f4 in KDecorationOptions::font(bool, bool) const () from /usr/lib/libkdecorations.so.4
#8  0x057db7fb in ?? () from /usr/lib/kde4/kwin3_smaragd.so
#9  0x057dc76d in create_factory () from /usr/lib/kde4/kwin3_smaragd.so
#10 0x056caf28 in KDecorationPlugins::loadPlugin (this=0x88a9f10, nameStr=...) at ../../../kwin/libkdecorations/kdecoration_plugins_p.cpp:241
#11 0x05689408 in KWin::DecorationModel::regeneratePreview (this=0x89a1170, index=..., size=...) at ../../../../kwin/kcmkwin/kwindecoration/decorationmodel.cpp:332
#12 0x05689c2e in KWin::DecorationModel::regenerateNextPreview (this=0x89a1170) at ../../../../kwin/kcmkwin/kwindecoration/decorationmodel.cpp:279
#13 0x05676995 in KWin::DecorationModel::qt_static_metacall (_o=0x89a1170, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x9097af0) at moc_decorationmodel.cpp:53
#14 0x07cf4c01 in QMetaCallEvent::placeMetaCall (this=0x923faa8, object=0x89a1170) at kernel/qobject.cpp:525
#15 0x07cfdc7b in QObject::event (this=0x89a1170, e=0x923faa8) at kernel/qobject.cpp:1195
#16 0x00faded4 in notify_helper (e=0x923faa8, receiver=0x89a1170, this=0x83dbef0) at kernel/qapplication.cpp:4559
#17 QApplicationPrivate::notify_helper (this=0x83dbef0, receiver=0x89a1170, e=0x923faa8) at kernel/qapplication.cpp:4531
#18 0x00fb330d in QApplication::notify (this=0x923faa8, receiver=0x89a1170, e=0x923faa8) at kernel/qapplication.cpp:4288
#19 0x00c1be41 in KApplication::notify (this=0xbfec96fc, receiver=0x89a1170, event=0x923faa8) at ../../kdeui/kernel/kapplication.cpp:311
#20 0x07ce297e in QCoreApplication::notifyInternal (this=0xbfec96fc, receiver=0x89a1170, event=0x923faa8) at kernel/qcoreapplication.cpp:876
#21 0x07ce6ad8 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#22 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x83aa130) at kernel/qcoreapplication.cpp:1500
#23 0x07ce6e0c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1393
#24 0x07d15494 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#25 postEventSourceDispatch (s=0x83db368) at kernel/qeventdispatcher_glib.cpp:279
#26 0x024ced86 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#27 0x024cf125 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#28 0x024cf201 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#29 0x07d15887 in QEventDispatcherGlib::processEvents (this=0x83aaea0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#30 0x01066aaa in QGuiEventDispatcherGlib::processEvents (this=0x83aaea0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#31 0x07ce150d in QEventLoop::processEvents (this=0xbfec9654, flags=...) at kernel/qeventloop.cpp:149
#32 0x07ce17a9 in QEventLoop::exec (this=0xbfec9654, flags=...) at kernel/qeventloop.cpp:204
#33 0x07ce6eba in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#34 0x00faba74 in QApplication::exec () at kernel/qapplication.cpp:3820
#35 0x08050438 in main (argc=110220, argv=0x89bb350) at ../../../systemsettings/app/main.cpp:49
Comment 15 Christoph Feck 2012-08-02 00:59:30 UTC
Mirza, can you add a valgrind log for the crash in comment #14?
Comment 16 Thomas Lübking 2012-08-02 17:55:35 UTC
(In reply to comment #14)

> #9  0x057dc76d in create_factory () from /usr/lib/kde4/kwin3_smaragd.so
it now crashes in the smaragd deco
Comment 17 Mirza 2012-08-02 18:00:35 UTC
Created attachment 72909 [details]
valgrind log when opening Workspace Apperance in SystemSettings

Here is output of command:
valgrind --log-file=valgrind_systemsettings.log systemsettings

If you need defferent parameters for valgrind just ask :)
Comment 18 Mirza 2012-08-02 18:07:37 UTC
(In reply to comment #16)
> (In reply to comment #14)
> 
> > #9  0x057dc76d in create_factory () from /usr/lib/kde4/kwin3_smaragd.so
> it now crashes in the smaragd deco

Removing Smaragd solved the crash,
But now I dont see QtCurve windows border style anywhere, and I checked that it is installed.
Comment 19 Thomas Lübking 2012-08-02 18:11:46 UTC
QtCurve is (was, craig recently removed tabbin support) binary instable for sure and thus blocked (until a new version exports the matching API version)
Comment 20 Mirza 2012-08-02 18:17:48 UTC
(In reply to comment #19)
> QtCurve is (was, craig recently removed tabbin support) binary instable for
> sure and thus blocked (until a new version exports the matching API version)

Thank you all for your help and comments, KUDOS  for KDE 4.9 :D
Comment 21 Thomas Lübking 2012-08-02 18:29:04 UTC
Why's /libkdecorations.so.4.8.0 in use?

==16162==    at 0x112D79F4: KDecorationOptions::font(bool, bool) const (in /usr/lib/libkdecorations.so.4.8.0)

@Mirza, can you please ensure there's such library at all on your box?

                 stat /usr/lib/libkdecorations.so.4.8.0

Is there also 

                stat /usr/lib/libkdecorations.so.4.9.0

?
Comment 22 Mirza 2012-08-02 18:36:35 UTC
(In reply to comment #21)
> Why's /libkdecorations.so.4.8.0 in use?
> 
> ==16162==    at 0x112D79F4: KDecorationOptions::font(bool, bool) const (in
> /usr/lib/libkdecorations.so.4.8.0)
> 
> @Mirza, can you please ensure there's such library at all on your box?
> 
>                  stat /usr/lib/libkdecorations.so.4.8.0
> 
> Is there also 
> 
>                 stat /usr/lib/libkdecorations.so.4.9.0
> 
> ?

mirza@MirzaLaptop:/usr/lib$ ls | grep libkdecoration
libkdecorations.so.4
libkdecorations.so.4.8.0
libkdecorations.so.4.8.0.abi1
libkdecorations.so.4abi1

Wierd, maybe a packaging error on the Kubuntu side ?
PS. all packages are up to date.
Comment 23 Thomas Lübking 2012-08-02 18:42:01 UTC
Where do you get those packages?
Comment 24 Mirza 2012-08-02 18:49:18 UTC
(In reply to comment #23)
> Where do you get those packages?
From "standart" Kubuntu Backports:
http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu
Comment 25 Mirza 2012-08-02 19:04:10 UTC
Package Details:
http://img855.imageshack.us/img855/362/packagedetails.jpg
Comment 26 Thomas Lübking 2012-08-02 19:29:47 UTC
I've downloaded the package and it does apparently not have "clientGroupItemDragMimeType" (unlike my version of the library) what (possibly) means
https://projects.kde.org/projects/kde/kde-workspace/repository/revisions/412f28e5c88803109c56b8cbd923a69fc09bdfeb
(ABI restorage) is not part of that library?!
Comment 27 Martin Flöser 2012-08-02 19:49:39 UTC
adding Jonathan to CC: please have a look starting from comment #21. There might be something wrong with your 4.9 packages
Comment 28 Thomas Lübking 2012-08-04 13:02:01 UTC
GA-RUMPF!

The absent "clientGroupItemDragMimeType" symbol is matter of stripped ./. not stripped.
The reason is that I re-added it as "semi-inline (?)" header implementation (ie. just let it return tabDragMimeType) what is apparently not ABI stable....

Making it a nice clone of tabDragMimeType instead with accurate implementation in the sources leaves the symbol in the library.
Comment 29 Thomas Lübking 2012-08-04 13:06:06 UTC
*** Bug 304407 has been marked as a duplicate of this bug. ***
Comment 30 Christoph Feck 2012-08-05 01:55:19 UTC
*** Bug 304581 has been marked as a duplicate of this bug. ***
Comment 31 Christoph Feck 2012-08-05 01:55:51 UTC
*** Bug 304584 has been marked as a duplicate of this bug. ***
Comment 32 Christoph Feck 2012-08-05 02:37:59 UTC
From the valgrind log in comment #17:

==16162== Invalid read of size 4
==16162==    at 0x112D79F4: KDecorationOptions::font(bool, bool) const (in /usr/lib/libkdecorations.so.4.8.0)
==16162==    by 0x1133976C: create_factory (in /usr/lib/kde4/kwin3_smaragd.so)
==16162==    by 0x10473F27: KDecorationPlugins::loadPlugin(QString) (kdecoration_plugins_p.cpp:241)
==16162==    by 0xA61FB6F: ???
==16162==  Address 0x4 is not stack'd, malloc'd or (recently) free'd

The last line indicates that the options pointer, or a pointer referenced internally be the options, is 0. So the regression is not an ABI change, but an internal change in KWin (some pointer isn't initialized correctly). I guess it has to do with the version checks, which would explain why it doesn't crash when recompiling.
Comment 33 Thomas Lübking 2012-08-05 09:23:49 UTC
(In reply to comment #32)
> From the valgrind log in comment #17:
> 
> ==16162== Invalid read of size 4
> ==16162==    at 0x112D79F4: KDecorationOptions::font(bool, bool) const (in
> /usr/lib/libkdecorations.so.4.8.0)
> ==16162==    by 0x1133976C: create_factory (in
> /usr/lib/kde4/kwin3_smaragd.so)
> ==16162==    by 0x10473F27: KDecorationPlugins::loadPlugin(QString)
> (kdecoration_plugins_p.cpp:241)
> ==16162==    by 0xA61FB6F: ???
> ==16162==  Address 0x4 is not stack'd, malloc'd or (recently) free'd
> 
> The last line indicates that the options pointer, or a pointer referenced
> internally be the options, is 0.

Unlikely. The options are a global instance created as first element of the only m_preview object in the entire lifetime of the kcm and deleted last (with it)
Also iirc, we got these crashes with kwin as well, where the options are the only and global kwin options.

Nothing changed in that area at all (not to mention that with an invalid m_preview we'd get a crash before since we can't access any of the factory pointers)

It's also not the factory pointers (this time) as smaragd crashes when creating one (since it has the first options pointer then, while decoraktor and skulpture access options when creating a decoration - in doubt in createMainWidget)

Plus: this doesn't explain at all why it only happens for selected decorations and mystically vanishes with recompilation, because:

> I guess it has to do with the version checks,
No.

> which would explain why it doesn't crash when recompiling.
Just recompiling will not get you a matching API version - it needs to be exported in extern "C" KDE_EXPORT int decoration_version()

Also for every decoration but the ones known to have used the unstable API, the version is just sanitized and the remaining codepath is the same (what is irrelevant, because just recompiling will still not change this at all)

I don't know what causes those crashes. Removing and re-adding the mimetype symbol from libkdecoration did not crash any decoration here.

Bug #304584 is on i686, all others on x64
Could be compiler options (-O3 magic, the only constant i see here is Ubuntu) - I don't know.

It's however not by a difference in the runtime code after recompilation.
If recompilation fixes the issue, it's likely rather relinking - and by this some ABI juggle.
Comment 34 Thomas Lübking 2012-08-05 09:26:58 UTC
@Mirza:

you'vve got a bunch of old decorations not shiped with kwin since ages here - can you check which package installed them?

TIA...

/usr/lib/kde4/kwin3_kde2.so
/usr/lib/kde4/kwin3_keramik.so
/usr/lib/kde4/kwin3_modernsys.so
/usr/lib/kde4/kwin3_quartz.so
/usr/lib/kde4/kwin3_redmond.so
/usr/lib/kde4/kwin3_web.so
Comment 35 Mirza 2012-08-05 09:35:12 UTC
(In reply to comment #34)
> @Mirza:
> 
> you'vve got a bunch of old decorations not shiped with kwin since ages here
> - can you check which package installed them?
> 
> TIA...
> 
> /usr/lib/kde4/kwin3_kde2.so
> /usr/lib/kde4/kwin3_keramik.so
> /usr/lib/kde4/kwin3_modernsys.so
> /usr/lib/kde4/kwin3_quartz.so
> /usr/lib/kde4/kwin3_redmond.so
> /usr/lib/kde4/kwin3_web.so

They all come from: kdeartwork-theme-window
I found that out by running:
mirza@MirzaLaptop:~$ dlocate /usr/lib/kde4/kwin3_kde2.so
kdeartwork-theme-window: /usr/lib/kde4/kwin3_kde2.so

all styles contained int this package:
/usr/lib/kde4/kwin3_kde2.so
/usr/lib/kde4/kwin3_keramik.so
/usr/lib/kde4/kwin3_modernsys.so
/usr/lib/kde4/kwin3_quartz.so
/usr/lib/kde4/kwin3_redmond.so
/usr/lib/kde4/kwin3_web.so
/usr/lib/kde4/kwin_kde2_config.so
/usr/lib/kde4/kwin_keramik_config.so
/usr/lib/kde4/kwin_modernsys_config.so
/usr/lib/kde4/kwin_quartz_config.so
Comment 36 Thomas Lübking 2012-08-05 10:17:59 UTC
Ok, thanks - those are new compilations as well what explains why they don't cause trouble.
Comment 37 Christoph Feck 2012-08-05 12:25:19 UTC
*** Bug 304610 has been marked as a duplicate of this bug. ***
Comment 38 Christoph Feck 2012-08-05 22:42:15 UTC
*** Bug 304638 has been marked as a duplicate of this bug. ***
Comment 39 Christoph Feck 2012-08-06 09:12:10 UTC
*** Bug 304645 has been marked as a duplicate of this bug. ***
Comment 40 Jonathan Riddell 2012-08-06 10:18:29 UTC
Tested the packages today on Kubuntu 12.04 and kcmshell4 kwindecoration loads without crashing with kdeartwork-theme-window installed, so I presume this is down to self compiled window decorations.  The ABI version was changed in our packages in libkdecorations because there was an ABI compatibility.
Comment 41 Jekyll Wu 2012-08-06 13:25:51 UTC
*** Bug 304662 has been marked as a duplicate of this bug. ***
Comment 42 Christoph Feck 2012-08-06 14:45:26 UTC
Jonathan, the problem is not "self" compiled, but "compiled using 4.8 headers". If the ABI version had changed, the old decorations would not load at all, because of a library missing. Instead, they simply crash when accessing options. And I am sure the package you tested was compiled against the 4.9 headers.
Comment 43 Thomas Lübking 2012-08-06 15:37:32 UTC
Also, I'm quite sure that it's about some compiler option.

Reason:
i've a bunch of legacy decos installed.
I compiled and added them after they got removed in 4.5 or so.
I'm also pretty sure to never have cared much about them later on - and esp. not recompiled them ever.

Nevertheless, none of those decos has *ever* crashed the kcm for me.
Comment 44 Jussi Kekkonen 2012-08-06 17:08:05 UTC
For me the crashing ended after I removed Skulpture windeco package.

So to me it seems like there's binary incompatibility that isn't taken care of with package dependencies?
Comment 45 Jekyll Wu 2012-08-08 03:32:06 UTC
*** Bug 304766 has been marked as a duplicate of this bug. ***
Comment 46 Christoph Feck 2012-08-10 22:43:20 UTC
*** Bug 304949 has been marked as a duplicate of this bug. ***
Comment 47 Jekyll Wu 2012-08-14 10:34:35 UTC
*** Bug 305124 has been marked as a duplicate of this bug. ***
Comment 48 Jonathan Riddell 2012-08-14 11:23:59 UTC
third party kwin-style packages recompiling now in the PPA to pick up the new ABI, sorry for the hassle
Comment 49 Martin Flöser 2012-08-14 15:49:22 UTC
thanks for taking care of it. I think from our side there is nothing we can do about this issue anymore, so I set to RESOLVED DOWNSTREAM. In future we will inform the packagers about ABI changes in libkdecoration and also tell them that there is no need to change the so number ;-)
Comment 50 Christoph Feck 2012-08-14 16:21:22 UTC
Jonathan, the message that KWin developers forgot to communicate downstream is: "There is no ABI change, despite it looking so", so I am not sure recompilation against "the new ABI" (which does not really exists) is the right solution. Maybe simply revert the ABI bump, so that old compiled code does not crash. KWin automatically rejects "unstable" decorations anyway, unless they provide new version information.
Comment 51 Jekyll Wu 2012-08-21 08:41:06 UTC
*** Bug 305536 has been marked as a duplicate of this bug. ***
Comment 52 Christoph Feck 2012-09-19 14:27:02 UTC
*** Bug 307043 has been marked as a duplicate of this bug. ***
Comment 53 Jekyll Wu 2012-10-02 13:27:26 UTC
*** Bug 307724 has been marked as a duplicate of this bug. ***
Comment 54 Thomas Lübking 2013-10-26 11:43:02 UTC
*** Bug 326676 has been marked as a duplicate of this bug. ***
Comment 55 Jay DeKing 2013-11-01 13:11:26 UTC
(In reply to comment #54)
> *** Bug 326676 has been marked as a duplicate of this bug. ***

Thanks Thomas. I had to purge kwin-style-qtcurve and kde-style-qtcurve before systemsettings would let me into "Window Decorations" because qtcurve was evidently still referenced there until I removed all of it..

First I purged kwin-style-qtcurve and restarted X. The initial kwin crash went away and the desktop was back to normal. But, when I went to systemsettings/Window Decorations, systemsettings would always crash.

Then I purged kde-style-qtcurve and I can once again use systemsettings without a crash.

It's a pity, I really like qtcurve, but it has caused me trouble before too. I guess I don't like it that much after all.
Comment 56 Thomas Lübking 2013-11-01 14:30:17 UTC
(In reply to comment #55)

> It's a pity, I really like qtcurve, but it has caused me trouble before too.
> I guess I don't like it that much after all.

NOTICE that QtCurve itself is NOT broken.
This is just an issue with binary compatibility, ie. the compiled binary for QtCurve does not match the compiled binary for kwin.
-> Just ask your distro for a clean/updated package or compile it yourself.
Comment 57 apache 2014-10-03 07:51:54 UTC
Created attachment 88934 [details]
system settings - workspace appearance crash 1
Comment 58 apache 2014-10-03 07:52:32 UTC
Created attachment 88935 [details]
system settings - workspace appearance crash 2
Comment 59 apache 2014-10-03 07:53:32 UTC
Created attachment 88936 [details]
system settings - workspace appearance crash 3
Comment 60 apache 2014-10-03 08:22:25 UTC
Ups, sorry for this attachments. I wasn't carefull I didn't noticed that it is resolved downstream. But I reported bug for Kubuntu:
https://bugs.launchpad.net/ubuntu/+bug/1377051
Comment 61 Thomas Lübking 2014-10-03 08:32:43 UTC
crashes 1&2 happen for the smaragd decoration.
notice, that the bug is NOT in smaragd, this happens for the downstream symbol relocation.
uninstall or update ALL 3rd party decoration plugins.

crash 3 is entirely different and caused by a python plasmoid, likely ultimately caused by pykde and/or pyqt binary inpompatibilities (but i lack expertise in this context)
Comment 62 apache 2014-10-03 09:24:05 UTC
Thank you very much for your help, Thomas. Your diagnosis was right. I had to uninstall smaragd and it works. Sorry for trouble.