Bug 311863 - Kwin crashs after login
Summary: Kwin crashs after login
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Mageia RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-18 04:05 UTC by Dimitrios Glentadakis
Modified: 2013-01-02 12:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Output of glxinfo (28.16 KB, text/plain)
2012-12-19 05:55 UTC, Dimitrios Glentadakis
Details
Output of 'kwin --replace&' (823 bytes, text/plain)
2012-12-19 05:55 UTC, Dimitrios Glentadakis
Details
New crash information added by DrKonqi (5.69 KB, text/plain)
2012-12-22 12:10 UTC, Dimitrios Glentadakis
Details
Output of /var/log/syslog (193.70 KB, text/plain)
2012-12-27 17:10 UTC, Dimitrios Glentadakis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitrios Glentadakis 2012-12-18 04:05:55 UTC
Application: kwin (4.8.5 (4.8.5))
KDE Platform Version: 4.8.5 (4.8.5)
Qt Version: 4.8.2
Operating System: Linux 3.4.20-desktop-1.mga2 x86_64
Distribution: "Mageia 2"

-- Information about the crash:
This happens since 1 week, after login the plasma crashs and after a few seconds the open windows freeze

The crash can be reproduced some of the time.

-- Backtrace:
Application: KWin (kwin), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f0578760740 (LWP 4932))]

Thread 2 (Thread 0x7f056bd8d700 (LWP 4939)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f058b67ad72 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f058b973e80) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007f058b67ada9 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007f058ae24ae4 in ?? () from /usr/lib64/nvidia-current/libGL.so.1
#4  0x00007f0589ef5b99 in start_thread (arg=0x7f056bd8d700) at pthread_create.c:301
#5  0x00007f058ebf00cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f0578760740 (LWP 4932)):
[KCrash Handler]
#6  0x00007f0589580045 in QPrinter::paperSize (this=<optimized out>) at painting/qprinter.cpp:1083
#7  0x00007f0589580365 in QPrinter::paperSize (this=<optimized out>, unit=3695185584) at painting/qprinter.cpp:1173
#8  0x0000000001cf60d0 in ?? ()
#9  0x00007f058ef51d6b in KWin::Scene::paintSimpleScreen (this=0x0, orig_mask=8, region=) at /usr/src/debug/kde-workspace-4.8.5/kwin/scene.cpp:329
#10 0x00007f058ef50504 in KWin::Scene::finalPaintScreen (this=0x1cf60d0, mask=8, region=<optimized out>, data=<optimized out>) at /usr/src/debug/kde-workspace-4.8.5/kwin/scene.cpp:198
#11 0x00007f058ef73e87 in KWin::EffectsHandlerImpl::paintScreen (this=0x228bab0, mask=8, region=..., data=...) at /usr/src/debug/kde-workspace-4.8.5/kwin/effects.cpp:222
#12 0x00007f0570328565 in KWin::BeClock::paintScreen (this=0x2352570, mask=8, region=<optimized out>, data=...) at /usr/src/debug/beclock-kwin-fx-0.18/beclock.cpp:530
#13 0x00007f058ef73e2b in KWin::EffectsHandlerImpl::paintScreen (this=0x228bab0, mask=8, region=..., data=...) at /usr/src/debug/kde-workspace-4.8.5/kwin/effects.cpp:219
#14 0x00007f058cd362f8 in KWin::Effect::paintScreen (this=<optimized out>, mask=8, region=<optimized out>, data=...) at /usr/src/debug/kde-workspace-4.8.5/kwin/libkwineffects/kwineffects.cpp:141
#15 0x00007f058ef73e2b in KWin::EffectsHandlerImpl::paintScreen (this=0x228bab0, mask=8, region=..., data=...) at /usr/src/debug/kde-workspace-4.8.5/kwin/effects.cpp:219
#16 0x00007f058cd362f8 in KWin::Effect::paintScreen (this=<optimized out>, mask=8, region=<optimized out>, data=...) at /usr/src/debug/kde-workspace-4.8.5/kwin/libkwineffects/kwineffects.cpp:141
#17 0x00007f058ef73e2b in KWin::EffectsHandlerImpl::paintScreen (this=0x228bab0, mask=8, region=..., data=...) at /usr/src/debug/kde-workspace-4.8.5/kwin/effects.cpp:219
#18 0x00007f058cd362f8 in KWin::Effect::paintScreen (this=<optimized out>, mask=8, region=<optimized out>, data=...) at /usr/src/debug/kde-workspace-4.8.5/kwin/libkwineffects/kwineffects.cpp:141
#19 0x00007f058ef73e2b in KWin::EffectsHandlerImpl::paintScreen (this=0x228bab0, mask=8, region=..., data=...) at /usr/src/debug/kde-workspace-4.8.5/kwin/effects.cpp:219
#20 0x00007f058ef52c05 in KWin::Scene::paintScreen (this=0x1cf60d0, mask=0x7fffdc4015f8, region=0x7fffdc4016c0) at /usr/src/debug/kde-workspace-4.8.5/kwin/scene.cpp:156
#21 0x00007f058ef693dd in KWin::SceneOpenGL::paint (this=0x1cf60d0, damage=..., toplevels=<optimized out>) at /usr/src/debug/kde-workspace-4.8.5/kwin/scene_opengl_glx.cpp:459
#22 0x00007f058ef4d0cc in KWin::Workspace::performCompositing (this=0x1d81370) at /usr/src/debug/kde-workspace-4.8.5/kwin/composite.cpp:412
#23 0x00007f058a29ce09 in QObject::event (this=0x1d81370, e=<optimized out>) at kernel/qobject.cpp:1157
#24 0x00007f05893f5cc4 in notify_helper (e=0x7fffdc401dc0, receiver=0x1d81370, this=0x1cabab0) at kernel/qapplication.cpp:4551
#25 QApplicationPrivate::notify_helper (this=0x1cabab0, receiver=0x1d81370, e=0x7fffdc401dc0) at kernel/qapplication.cpp:4523
#26 0x00007f05893faa93 in QApplication::notify (this=0x7fffdc4021e0, receiver=0x1d81370, e=0x7fffdc401dc0) at kernel/qapplication.cpp:4412
#27 0x00007f058e658ac6 in KApplication::notify (this=0x7fffdc4021e0, receiver=0x1d81370, event=0x7fffdc401dc0) at /usr/src/debug/kdelibs-4.8.5/kdeui/kernel/kapplication.cpp:311
#28 0x00007f058a2841bc in QCoreApplication::notifyInternal (this=0x7fffdc4021e0, receiver=0x1d81370, event=0x7fffdc401dc0) at kernel/qcoreapplication.cpp:915
#29 0x00007f058a2b4d72 in sendEvent (event=0x7fffdc401dc0, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#30 QTimerInfoList::activateTimers (this=0x1cac4a8) at kernel/qeventdispatcher_unix.cpp:611
#31 0x00007f058a2b5854 in QEventDispatcherUNIX::processEvents (this=0x1bfbad0, flags=...) at kernel/qeventdispatcher_unix.cpp:930
#32 0x00007f0589499b88 in QEventDispatcherX11::processEvents (this=0x1bfbad0, flags=...) at kernel/qeventdispatcher_x11.cpp:152
#33 0x00007f058a282cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#34 0x00007f058a282f47 in QEventLoop::exec (this=0x7fffdc402120, flags=...) at kernel/qeventloop.cpp:204
#35 0x00007f058a287cf5 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#36 0x00007f058ef028b6 in kdemain (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kde-workspace-4.8.5/kwin/main.cpp:541
#37 0x00007f058eb3732d in __libc_start_main (main=0x400640 <main(int, char**)>, argc=3, ubp_av=0x7fffdc402908, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffdc4028f8) at libc-start.c:226
#38 0x0000000000400671 in _start () at ../sysdeps/x86_64/elf/start.S:113

Reported using DrKonqi
Comment 1 Thomas Lübking 2012-12-18 07:40:36 UTC
> QPrinter::paperSize
=)

#9  0x00007f058ef51d6b in KWin::Scene::paintSimpleScreen (this=0x0, orig_mask=8, region=) at /usr/src/debug/kde-workspace-4.8.5/kwin/scene.cpp:329
#10 0x00007f058ef50504 in KWin::Scene::finalPaintScreen (this=0x1cf60d0, mask=8, region=<optimized out>, data=<optimized out>) at /usr/src/debug/kde-workspace-4.8.5/kwin/scene.cpp:198

Seems like stack corruption.

> after login the plasma crashs
Only the windowmanager (kwin, "titlebars") or also the desktop (wallpaper & panels)?
Does this only happen after a cold login (first time ater re/boot of the system)?

> and after a few seconds the open windows freeze
really freeze, ie. the don't even react on mouse events? (and did kwin + compositor restart, ie do you have shadows under the windows?)

can you restart kwin afterwards (resp. "does it happen automatically")

#12 0x00007f0570328565 in KWin::BeClock::paintScreen (this=0x2352570, mask=8, region=<optimized out>, data=...) at /usr/src/debug/beclock-kwin-fx-0.18/beclock.cpp:530

While it's normal to have the effect active at that time, please try to deactivate it to rule out eg. some ABI incompatibility (ie. 3rd party, may require a recompile - effects are not ABI stable)

please attach the output of glxinfo and "kwin --replace&" from konsole.
Comment 2 Dimitrios Glentadakis 2012-12-19 05:53:16 UTC
I did nt have a new crash yet

(In reply to comment #1)
> > after login the plasma crashs
> Only the windowmanager (kwin, "titlebars") or also the desktop (wallpaper &
> panels)?
Also the desktop. Everything is black except the windows. Also with alt+tab i can switch through the windows always with a black desktop background
> Does this only happen after a cold login (first time ater re/boot of the
> system)?
Yes
 
> > and after a few seconds the open windows freeze
> really freeze, ie. the don't even react on mouse events? (and did kwin +
> compositor restart, ie do you have shadows under the windows?)
Yes there is a really freeze, no mouse events, no keyboard events (ctrl+alt+f1 or f2 or f3 ...)

> can you restart kwin afterwards (resp. "does it happen automatically")
No, i have to restart manyally the computer from the power button
Comment 3 Dimitrios Glentadakis 2012-12-19 05:55:17 UTC
Created attachment 75915 [details]
Output of glxinfo
Comment 4 Dimitrios Glentadakis 2012-12-19 05:55:56 UTC
Created attachment 75916 [details]
Output of 'kwin --replace&'
Comment 5 Thomas Lübking 2012-12-19 10:44:51 UTC
Sounds like a kernel freeze - can you still ssh into the machine?
plasma & kwin likely crash because of libgl which then might induce the issue in the nvidia kernel module.
I assume you performed some system update including kernel and/or nvidia blob?

-> check the resolution of /usr/lib/libGL.so - should point the nvidia lib (suffixed by driver version)
In doubt up or downgrade the nvidia blob (buggy version, broken update process)

This is very unlikely a problem with kwin or even KDE (gl abstraction and user/kernelspace cross)
Comment 6 Dimitrios Glentadakis 2012-12-22 12:10:45 UTC
Created attachment 75968 [details]
New crash information added by DrKonqi

kwin (4.8.5 (4.8.5)) on KDE Platform 4.8.5 (4.8.5) using Qt 4.8.2

This time kwin crashed just after fresh boot, but i don't have any freeze, the desktop became operational immediately

-- Backtrace (Reduced):
#6  0x00007f50cf60b045 in QPrinter::paperSize (this=<optimized out>) at painting/qprinter.cpp:1083
#7  0x00007f50cf60b365 in QPrinter::paperSize (this=<optimized out>, unit=3752702064) at painting/qprinter.cpp:1173
[...]
#9  0x00007f50d4fdcd6b in KWin::Scene::paintSimpleScreen (this=0xffffffffffffffff, orig_mask=8, region=) at /usr/src/debug/kde-workspace-4.8.5/kwin/scene.cpp:329
#10 0x00007f50d4fdb504 in KWin::Scene::finalPaintScreen (this=0xc91e80, mask=8, region=<optimized out>, data=<optimized out>) at /usr/src/debug/kde-workspace-4.8.5/kwin/scene.cpp:198
#11 0x00007f50d4ffee87 in KWin::EffectsHandlerImpl::paintScreen (this=0xece920, mask=8, region=..., data=...) at /usr/src/debug/kde-workspace-4.8.5/kwin/effects.cpp:222
Comment 7 Thomas Lübking 2012-12-22 13:40:24 UTC
(In reply to comment #6)

> #9  0x00007f50d4fdcd6b in KWin::Scene::paintSimpleScreen
> (this=0xffffffffffffffff, orig_mask=8, region=) at

stack corruption for sure (though the constant QPrinter calls are impressive) - since this is after some actual painting, you'll unfortunately have to valgrind kwin to figure where the stack corruption occurs :-(

You could try to "bisect" the issue before - try using the XRender backend.
If the issue does not remain, switch back to GL and disable *all* effect plugins (notably beclock, in case it's ABI broken, ie. "incompatible build". also set the scale method to "smooth" in the 3rd tab) and see whether the problem reoccurs.
If yes, alter the nvidia driver - there'd be a good chance it's the cuplrit)
If not, re-enable the effect plugins (and start with be-clock) to check for the culprit.

Personal gut feeling is that it smells like a false binary offset (but in case it only happens at cold starts, could just as well be in the driver instead of the plugin)
Comment 8 Dimitrios Glentadakis 2012-12-27 17:08:32 UTC
Until now i don't have the crash.
I have the beclock effect disabled.
But i have many freezes, after a cold boot and may be is related.
I have these lines in syslog just before the hard reset that i did due the freeze:
Dec 27 17:58:32 localhost kernel: [  327.404364] virtuoso-t[4093]: segfault at 7fd79cf438ff ip 00007fd7d9371481 sp 00007fd7d37780c8 error 6 in libc-2.14.1.so[7fd7d92f2000+182000]
Dec 27 17:58:32 localhost kernel: [  327.508585] nepomukservices[4062]: segfault at ffff80517df94fcf ip 00007faed0e03481 sp 00007fae96ffcb08 error 6 in libc-2.14.1.so[7faed0d84000+182000]
Dec 27 17:58:32 localhost kernel: [  327.555582] nepomukserver[3576]: segfault at fffffffffffee3cf ip 00007fb286424481 sp 00007fff8a347a68 error 6 in libc-2.14.1.so[7fb2863a5000+182000]
Dec 27 17:58:57 localhost kernel: [  352.424022] nepomukindexer[4693]: segfault at 7fdb92dc9ffd ip 00007fdb92dc8851 sp 00007ffff3ac9800 error 6 in libexiv2.so.11.0.0[7fdb92cbd000+213000]

Please can you suggest me if there is anything that i have to search for ?
Comment 9 Dimitrios Glentadakis 2012-12-27 17:10:28 UTC
Created attachment 76041 [details]
Output of /var/log/syslog

The last entry is at 17:58:57
after, i did a hard reset.
Comment 10 Thomas Lübking 2012-12-27 17:39:35 UTC
(In reply to comment #8)
> Until now i don't have the crash.
> I have the beclock effect disabled.
Ok, this *could* point an incompatible build.
Where did you obtain the plugin - does it come "legally" with your distro?
Is the build newer than the kwin (kdebase-workspace) one?

> But i have many freezes, after a cold boot and may be is related.
>
> I have these lines in syslog just before the hard reset that i did due the
> freeze:
Looks more like virtuoso/nepomukindexer is runnig wild - i don't use nepomuk, can't say anything about that. Sorry.
It's however not related to the WM at all.

Only a wild guess would be that there are more mixed up libs/binaries (eg /usr/local shadowing /usr or an incomplete update or similar)
Comment 11 Dimitrios Glentadakis 2012-12-27 18:46:02 UTC
(In reply to comment #10)
> (In reply to comment #8)
> > Until now i don't have the crash.
> > I have the beclock effect disabled.
> Ok, this *could* point an incompatible build.
> Where did you obtain the plugin - does it come "legally" with your distro?
> Is the build newer than the kwin (kdebase-workspace) one?
> 
I have these rpm installed (beclock installed from official repos):
kwin-effect-beclock-0.18-1.mga2
kdebase4-workspace-4.8.5-1.2.mga2
> > But i have many freezes, after a cold boot and may be is related.
> >
> > I have these lines in syslog just before the hard reset that i did due the
> > freeze:
> Looks more like virtuoso/nepomukindexer is runnig wild - i don't use
> nepomuk, can't say anything about that. Sorry.
> It's however not related to the WM at all.
> 
I disabled nepomuk.

> Only a wild guess would be that there are more mixed up libs/binaries (eg
> /usr/local shadowing /usr or an incomplete update or similar)
Comment 12 Thomas Lübking 2012-12-27 19:19:26 UTC
(In reply to comment #11)

> I have these rpm installed (beclock installed from official repos):
> kwin-effect-beclock-0.18-1.mga2
https://bugs.mageia.org/show_bug.cgi?id=1802
Did you compile it yourself?
Is there any equivalent to "packages.mageia.org" (like debian, arch or suse which allow you to inspect packages online)

> I disabled nepomuk.
Before you got those segfaults from comment 8??
-> Nepomuk or just strigi?
Comment 13 Dimitrios Glentadakis 2012-12-28 05:38:12 UTC
(In reply to comment #12)
> (In reply to comment #11)
> 
> > I have these rpm installed (beclock installed from official repos):
> > kwin-effect-beclock-0.18-1.mga2
> https://bugs.mageia.org/show_bug.cgi?id=1802
> Did you compile it yourself?
> Is there any equivalent to "packages.mageia.org" (like debian, arch or suse
> which allow you to inspect packages online)
>
I use tis site:
http://pkgs.org/
I know that exist this one too but it does nt work for me:
http://mageia.madb.org/

> > I disabled nepomuk.
> Before you got those segfaults from comment 8??
> -> Nepomuk or just strigi?
I disabled Nepomuk and strigi (i uncheck the three checkboxes from systemsettings→Desktop search) after the segfaults
Comment 14 Dimitrios Glentadakis 2013-01-02 12:33:19 UTC
Until now i don't have the crash any more.
May be the reason was the beclock, i will turn it on again to test and if there is a problem i will let you know.
The nepomuk is always disabled

Also, i installed these packages as i was be suggested from here:
https://bugs.mageia.org/show_bug.cgi?id=6285#c25
and since that i don't have the freezes anymore.

Thank you very much for the support , and for your advices. 
Happy new year :)


I close the report...