Bug 301718

Summary: Kwin segfault on startup (Kdecoration and oxygen-transparent?)
Product: [Plasma] Oxygen Reporter: loic.grobol
Component: win decoAssignee: Hugo Pereira Da Costa <hugo.pereira.da.costa>
Status: RESOLVED NOT A BUG    
Severity: crash CC: hugo.pereira.da.costa, kde, thomas.luebking
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description loic.grobol 2012-06-12 10:05:15 UTC
Application: kwin (4.8.80 (4.8.80))
KDE Platform Version: 4.8.80 (4.8.80)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-25-generic x86_64
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
- What I was doing when the application crashed: Right after logging in, I noticed that the transparency effecs on panels were somehow disabled, but I assumed that it was because kwin was loading. Then Kwin crashed and fired up this lovely DrKonqi. I can launch a Konsole via keyboard, so I tried to launch kwin from there, it displays this
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
kwin(6978) KDecorationPlugins::loadPlugin: "******

The library /usr/lib/kde4/kwin3_oxygen_transparent.so has no API version
Please use the KWIN_DECORATION or future versions of kwin will no longer load this decoration!

I use the beta backport kubuntu ppa and oxygen transparent. It seems to suggest that this crash is related.

-- Backtrace:
Application: KWin (kwin), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f1792211780 (LWP 7067))]

Thread 2 (Thread 0x7f1777625700 (LWP 7071)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:215
#1  0x00007f178d56843f in wait (time=30000, this=0x17714e0) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x1771458, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f178d55b5bf in QThreadPoolThread::run (this=0x176eb00) at concurrent/qthreadpool.cpp:141
#4  0x00007f178d567fcb in QThreadPrivate::start (arg=0x176eb00) at thread/qthread_unix.cpp:298
#5  0x00007f178674de9a in start_thread (arg=0x7f1777625700) at pthread_create.c:308
#6  0x00007f1791a364bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f1792211780 (LWP 7067)):
[KCrash Handler]
#6  0x00007f17769b4300 in KDecorationOptions::showTooltips() const () from /usr/lib/libkdecorations.so.4
#7  0x00007f17769b43a7 in KDecoration::createMainWidget(QFlags<Qt::WindowType>) () from /usr/lib/libkdecorations.so.4
#8  0x00007f17769b9b98 in KCommonDecoration::createMainWidget(QFlags<Qt::WindowType>) () from /usr/lib/libkdecorations.so.4
#9  0x00007f17769bc5d7 in KCommonDecoration::init() () from /usr/lib/libkdecorations.so.4
#10 0x00007f1776c08c53 in Oxygen::Client::init() () from /usr/lib/kde4/kwin3_oxygen_transparent.so
#11 0x00007f1791d564ab in updateDecoration (force=<optimized out>, check_workspace_pos=<optimized out>, this=0x17b6330) at ../../kwin/client.cpp:400
#12 KWin::Client::updateDecoration (this=0x17b6330, check_workspace_pos=false, force=<optimized out>) at ../../kwin/client.cpp:387
#13 0x00007f1791d8038a in KWin::Client::manage (this=<optimized out>, w=<optimized out>, isMapped=<optimized out>) at ../../kwin/manage.cpp:353
#14 0x00007f1791d403e2 in KWin::Workspace::createClient (this=<optimized out>, w=31457298, is_mapped=true) at ../../kwin/workspace.cpp:567
#15 0x00007f1791d47205 in KWin::Workspace::init (this=0x176f250) at ../../kwin/workspace.cpp:444
#16 0x00007f1791d483e1 in KWin::Workspace::Workspace (this=0x176f250, restore=false) at ../../kwin/workspace.cpp:258
#17 0x00007f1791d62561 in KWin::Application::Application (this=<optimized out>) at ../../kwin/main.cpp:325
#18 0x00007f1791d641ad in kdemain (argc=<optimized out>, argv=<optimized out>) at ../../kwin/main.cpp:521
#19 0x00007f179196576d in __libc_start_main (main=0x400640 <main(int, char**)>, argc=3, ubp_av=0x7fff746dc5a8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff746dc598) at libc-start.c:226
#20 0x0000000000400671 in _start ()

Reported using DrKonqi
Comment 1 Thomas Lübking 2012-06-12 11:07:13 UTC
The unstable decoration ABI changed
-> did you recompile oxygen-transparent after installing kde-workspace/kwin beta?
Comment 2 loic.grobol 2012-06-12 11:20:39 UTC
I tried, but it doesn't compile, due to guess what? Decorations.

[ 14%] Building CXX object decoration/CMakeFiles/kwin3_oxygen_transparent.dir/oxygenbutton.o
In file included from /home/loic/oxygen-transparent/src/decoration/oxygenbutton.cpp:30:0:
/home/loic/oxygen-transparent/src/decoration/oxygenclient.h: In member function ‘bool Oxygen::Client::isForcedActive() const’:
/home/loic/oxygen-transparent/src/decoration/oxygenclient.h:92:51: erreur: ‘clientGroupItems’ was not declared in this scope
/home/loic/oxygen-transparent/src/decoration/oxygenclient.h: In member function ‘bool Oxygen::Client::hideTitleBar() const’:
/home/loic/oxygen-transparent/src/decoration/oxygenclient.h:119:34: erreur: ‘clientGroupItems’ was not declared in this scope
In file included from /home/loic/oxygen-transparent/src/decoration/oxygenbutton.cpp:30:0:
/home/loic/oxygen-transparent/src/decoration/oxygenclient.h: In member function ‘bool Oxygen::Client::hasTitleOutline() const’:
/home/loic/oxygen-transparent/src/decoration/oxygenclient.h:365:34: erreur: ‘clientGroupItems’ was not declared in this scope
/home/loic/oxygen-transparent/src/decoration/oxygenclient.h: In member function ‘bool Oxygen::Client::hideTitleBar() const’:
/home/loic/oxygen-transparent/src/decoration/oxygenclient.h:120:9: erreur: contrôle a atteint la fin non void de la fonction [-Werror=return-type]
/home/loic/oxygen-transparent/src/decoration/oxygenclient.h: In member function ‘bool Oxygen::Client::isForcedActive() const’:
/home/loic/oxygen-transparent/src/decoration/oxygenclient.h:92:66: erreur: contrôle a atteint la fin non void de la fonction [-Werror=return-type]
Comment 3 Thomas Lübking 2012-06-12 11:25:49 UTC
forwarding to Hugo, no idea whether an updated branch is already available.

(the bug is none, the decoration is incompatible - crash happens because nobody thought about adding an API version to the deco, but that's available now as well ;-)
Comment 4 loic.grobol 2012-06-12 11:43:47 UTC
Okay, I'll try to figure out how to revert to Oxygen without KWin, then. As for an oxygen-transparent upgrade, since I can't access anongit.kde.org atm, I would not be of much help.
Comment 5 Hugo Pereira Da Costa 2012-06-12 11:44:10 UTC
@Loic:
checkout the "master" branch of oxygen transparent on kde look, it compiles and runs just fine (read the comments at the top of the page)
Comment 6 Christoph Feck 2012-06-13 11:39:45 UTC
*** Bug 301787 has been marked as a duplicate of this bug. ***