Bug 318941 (aurorae-slot-alpha) - Aurorae crashing KWin on startup
Summary: Aurorae crashing KWin on startup
Status: RESOLVED FIXED
Alias: aurorae-slot-alpha
Product: kwin
Classification: Plasma
Component: aurorae (show other bugs)
Version: 4.10.2
Platform: Ubuntu Linux
: NOR crash
Target Milestone: 4.10.3
Assignee: KWin default assignee
URL: https://git.reviewboard.kde.org/r/110...
Keywords:
: 319140 320631 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-04-26 18:18 UTC by Ulrich Egger
Modified: 2013-06-02 20:00 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.10.3
thomas.luebking: ReviewRequest+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Egger 2013-04-26 18:18:28 UTC
Application: kwin (4.10.2)
KDE Platform Version: 4.10.2
Qt Version: 4.8.4
Operating System: Linux 3.8.0-19-generic i686
Distribution: Ubuntu 13.04

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

After updating to Kubuntu 13.04, I opened a window (any window), which resultet in a crash of kwin, which makes windows hard to handle. Desktop Control bars disappeared, window control bars dissapeared

- Unusual behavior I noticed:

In Kubuntu 12.10, everything ran smoothly

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 0xb1126740 (LWP 2344))]

Thread 2 (Thread 0xadfffb40 (LWP 2346)):
#0  0xb770d424 in __kernel_vsyscall ()
#1  0xb219084b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0xb74dcd7c in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0xb65f70ed in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#4  0xb65f711f in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#5  0xb218cd78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#6  0xb74cf3de in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 1 (Thread 0xb1126740 (LWP 2344)):
[KCrash Handler]
#7  QObject::property (this=0x0, name=name@entry=0xae1a1b7b "alpha") at kernel/qobject.cpp:3733
#8  0xae19729b in Aurorae::AuroraeClient::slotAlphaChanged (this=this@entry=0xa17d2a0) at ../../../../../kwin/clients/aurorae/src/aurorae.cpp:568
#9  0xae19a48a in Aurorae::AuroraeClient::init (this=0xa17d2a0) at ../../../../../kwin/clients/aurorae/src/aurorae.cpp:280
#10 0xb75fa14d in updateDecoration (force=<optimized out>, check_workspace_pos=<optimized out>, this=0xa1ef950) at ../../kwin/client.cpp:441
#11 KWin::Client::updateDecoration (this=this@entry=0xa1ef950, check_workspace_pos=check_workspace_pos@entry=false, force=force@entry=false) at ../../kwin/client.cpp:422
#12 0xb762a714 in KWin::Client::manage (this=this@entry=0xa1ef950, w=w@entry=33554450, isMapped=isMapped@entry=false) at ../../kwin/manage.cpp:356
#13 0xb75e4831 in KWin::Workspace::createClient (this=this@entry=0xa09a778, w=33554450, is_mapped=is_mapped@entry=false) at ../../kwin/workspace.cpp:578
#14 0xb7619bde in KWin::Workspace::workspaceEvent (this=0xa09a778, e=e@entry=0xbf8f0b2c) at ../../kwin/events.cpp:362
#15 0xb760ce52 in KWin::Application::x11EventFilter (this=0xbf8f0e38, e=0xbf8f0b2c) at ../../kwin/main.cpp:362
#16 0xb546d4b6 in qt_x11EventFilter (ev=0xbf8f0b2c) at kernel/qapplication_x11.cpp:441
#17 qt_x11EventFilter (ev=0xbf8f0b2c) at kernel/qapplication_x11.cpp:429
#18 0xb547c6c3 in QApplication::x11ProcessEvent (this=0xbf8f0e38, event=0xbf8f0b2c) at kernel/qapplication_x11.cpp:3458
#19 0xb54ad57d in QEventDispatcherX11::processEvents (this=0x9fecea0, flags=...) at kernel/qeventdispatcher_x11.cpp:132
#20 0xb5f053ec in QEventLoop::processEvents (this=this@entry=0xbf8f0cb8, flags=...) at kernel/qeventloop.cpp:149
#21 0xb5f056e1 in QEventLoop::exec (this=this@entry=0xbf8f0cb8, flags=...) at kernel/qeventloop.cpp:204
#22 0xb5f0b3fa in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#23 0xb53f3fc4 in QApplication::exec () at kernel/qapplication.cpp:3828
#24 0xb760c8c1 in kdemain (argc=1, argv=0xbf8f0f24) at ../../kwin/main.cpp:537
#25 0x0804855b in main (argc=1, argv=0xbf8f0f24) at kwin_dummy.cpp:3

Reported using DrKonqi
Comment 1 Thomas Lübking 2013-04-26 19:23:57 UTC
Please attach
~/.kde/share/config/auroraerc

As workaround, change to the oxygen decoration, either by GUI or
kwriteconfig --file kwinrc --group Style --key PluginLib kwin3_oxygen
Comment 2 Ulrich Egger 2013-04-26 20:39:38 UTC
Thank you very much, that has fixed the problem for me


2013/4/26 Thomas Lübking <thomas.luebking@gmail.com>

> https://bugs.kde.org/show_bug.cgi?id=318941
>
> Thomas Lübking <thomas.luebking@gmail.com> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>           Component|general                     |aurorae
>
> --- Comment #1 from Thomas Lübking <thomas.luebking@gmail.com> ---
> Please attach
> ~/.kde/share/config/auroraerc
>
> As workaround, change to the oxygen decoration, either by GUI or
> kwriteconfig --file kwinrc --group Style --key PluginLib kwin3_oxygen
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 3 Thomas Lübking 2013-04-26 21:38:33 UTC
Good to hear.
Unfortunately it's not possible to add attachments via mail - you have to use the bugtracker webservice (you're mailing to the tracker, therefore it's also not required to quote - everything here is achieved =)
Comment 4 Ulrich Egger 2013-04-27 19:56:27 UTC
Sorry, I forgot to attach the file requested before I made the changes.
After I applied the command that you sent me, I changed to tenuto-light.
Now the content of the file is:

[Engine]
EngineType[$d]
ThemeName=Tenuto-Light
Comment 5 Thomas Lübking 2013-04-27 20:06:42 UTC
(In reply to comment #4)
> Now the content of the file is:
m(

=)
Ok, that's no longer interesting.
The "Tenuto" deco works, i assume?

Do you happen to know which decoration you used before switching to oxygen? (with the command from comment #1) - ie. "What was the crashing decoration configuration"?
Comment 6 Martin Flöser 2013-05-01 07:18:19 UTC
*** Bug 319140 has been marked as a duplicate of this bug. ***
Comment 7 diehard67 2013-05-01 08:46:42 UTC
reply to post here https://bugs.kde.org/show_bug.cgi?id=319140
Martin Gräßlin 2013-05-01 07:18:19 UTC
please see duplicate bug report for workaround. Please also add to that report which window decoration you were using, thanks.

*** This bug has been marked as a duplicate of bug 318941 ***

my response, sorry if there is a better way to do this, kinda new to this bug reporting stuff.

I honestly can't remember exactly what window decorator I was using, I think oxygen-air or something like that, after going into systemsettings and changing the decoration to anything actually in the list kwin worked, I had upgraded my ubuntu from 12.10 to 13.04 and this was the first time I ran kde, beast guess ubuntu removed or renamed the decoration I was using and kwin doesn't have any fallback, probably a good idea to make it fall back to maybe a built in theme when a problem like this happens, so at least the system is usable.

on a side note, my other computer had no problems with the upgrade, but it was using the default oxygen window decorator, and I changed the one on this computer to one that was more transparent.
Comment 8 Martin Flöser 2013-05-01 09:15:39 UTC
I think that explains it. Do you have the package "kdeartwork-theme-window" 
installed?

In Quantal (KDE SC 4.9) that contained oxygen-air and oxygen which got removed 
in raring (KDE SC 4.10).

So I think what we're facing here is the case that the configured theme got 
deleted.
Comment 9 Ulrich Egger 2013-05-01 11:12:43 UTC
Unfortunately I don't remember the decoration I used before
Comment 10 Ulrich Egger 2013-05-01 11:15:37 UTC
(In reply to comment #8)
> I think that explains it. Do you have the package "kdeartwork-theme-window" 
> installed?
> 
> In Quantal (KDE SC 4.9) that contained oxygen-air and oxygen which got
> removed 
> in raring (KDE SC 4.10).
> 
> So I think what we're facing here is the case that the configured theme got 
> deleted.

 I don't have the package "kdeartwork-theme-window" installed now after update to raring. I don't know whether if was installed before.
Comment 11 Thomas Lübking 2013-05-01 11:28:07 UTC
Doesn't really matter - fact is that there's some uncacthed nullptr accesses and the most likely case to get there is to "silently" remove a decoration, what's apparently the case in John McClane's case and -since you're on the very same distro- will be on yours as well (impossible to figure if you cannot recall what deco was in use)

I've patch & tested, but reviewboard is somehow lagging atm.
Comment 12 Thomas Lübking 2013-05-01 18:40:38 UTC
Git commit b9d96009681cb90b822d9e98f4aa7e050e323a0a by Thomas Lübking.
Committed on 01/05/2013 at 13:25.
Pushed by luebking into branch 'KDE/4.10'.

catch some m_item nullptr accesses
FIXED-IN: 4.10.3
REVIEW: 110254

M  +15   -6    kwin/clients/aurorae/src/aurorae.cpp

http://commits.kde.org/kde-workspace/b9d96009681cb90b822d9e98f4aa7e050e323a0a
Comment 13 Thomas Lübking 2013-05-01 18:42:29 UTC
Git commit f68d646d9f1c191f23e223f4d0518e413021962e by Thomas Lübking.
Committed on 01/05/2013 at 13:25.
Pushed by luebking into branch 'master'.

catch some m_item nullptr accesses
FIXED-IN: 4.10.3
REVIEW: 110254
(cherry picked from commit b9d96009681cb90b822d9e98f4aa7e050e323a0a)

M  +15   -6    kwin/clients/aurorae/src/aurorae.cpp

http://commits.kde.org/kde-workspace/f68d646d9f1c191f23e223f4d0518e413021962e
Comment 14 Steffen Michalek 2013-05-10 13:54:01 UTC
Hello, the hint of missing window decoration also solved my problem of kwin crashing directly after logging in.
However: in my case, the missing window decoration was "air-oxygen" (vice versa of the mentioned "oxygen-air". And, additionally, it was not contained in the mentioned 
package "kdeartwork-theme-window" (which was installed already).
I changed to decoration "air" in system settings -> desktop -> appearence -> decorations.
(? correct translation from my german description, here?)
and also tested kwin to work with "air-oxygen" by dowhnloading that (button "download new
decoration" at the same place in system settings).
Thanks for Your work!
Comment 15 Thomas Lübking 2013-06-02 20:00:17 UTC
*** Bug 320631 has been marked as a duplicate of this bug. ***