Bug 302211 - KWin crash after applying new font size
Summary: KWin crash after applying new font size
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-19 20:43 UTC by Hrvoje Senjan
Modified: 2012-07-13 13:16 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hrvoje Senjan 2012-06-19 20:43:20 UTC
Application: kwin (4.8.90 (4.8.90))
KDE Platform Version: 4.8.90 (4.8.90)
Qt Version: 4.8.2
Operating System: Linux 3.4.0-4-generic x86_64
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
- What I was doing when the application crashed:
Tried a few more times, but didn't occured again.
Using kdelibs 4.9 beta2 + qt4.8.2 + kde-workspace up to commit af5f375f5298a4c877a813beb96930a273885ac6

-- Backtrace:
Application: KWin (kwin), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:39
[Current thread is 1 (Thread 0x7f1d23578780 (LWP 1917))]

Thread 4 (Thread 0x7f1d19c05700 (LWP 1931)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f1d32f91222 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007f1d32f91259 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007f1d2adfee9a in start_thread (arg=0x7f1d19c05700) at pthread_create.c:308
#4  0x00007f1d3609c4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f1d1b0cb700 (LWP 2624)):
[KCrash Handler]
#6  0x00007f1d31c229bc in length (this=0x2aad1a0) at ../../include/QtCore/../../src/corelib/tools/qbytearray.h:356
#7  qstrcmp (str1=..., str2=...) at tools/qbytearray.cpp:344
#8  0x00007f1d3238e043 in operator< (k2=..., k1=...) at ../../kdecore/config/kconfigdata.h:122
#9  qMapLessThanKey<KEntryKey> (key2=..., key1=...) at /usr/include/qt4/QtCore/qmap.h:107
#10 findNode (akey=..., this=0x26ba750) at /usr/include/qt4/QtCore/qmap.h:487
#11 find (akey=..., this=0x26ba750) at /usr/include/qt4/QtCore/qmap.h:608
#12 findEntry (flags=..., key=..., group=..., this=0x26ba750) at ../../kdecore/config/kconfigdata.h:211
#13 getEntryOption (option=KEntryMap::EntryImmutable, flags=..., key=..., group=..., this=0x26ba750) at ../../kdecore/config/kconfigdata.h:403
#14 KConfig::isGroupImmutableImpl (this=<optimized out>, aGroup=...) at ../../kdecore/config/kconfig.cpp:743
#15 0x00007f1d323979d4 in KConfigGroupPrivate (name=..., owner=..., this=0x7f1d10001af0) at ../../kdecore/config/kconfiggroup.cpp:55
#16 KConfigGroup::KConfigGroup (this=0x7f1d1b0ca650, master=..., _group=<optimized out>) at ../../kdecore/config/kconfiggroup.cpp:493
#17 0x00007f1d324f56b5 in KSycocaPrivate::KSycocaPrivate (this=<optimized out>) at ../../kdecore/sycoca/ksycoca.cpp:106
#18 0x00007f1d324f58f3 in KSycoca::KSycoca (this=0x7f1d100008c0) at ../../kdecore/sycoca/ksycoca.cpp:181
#19 0x00007f1d324f60d5 in sycoca (this=0x7f1d100016f0) at ../../kdecore/sycoca/ksycoca.cpp:166
#20 KSycoca::self () at ../../kdecore/sycoca/ksycoca.cpp:295
#21 0x00007f1d324fb171 in KSycocaFactory::KSycocaFactory (this=0x7f1d100015d0, factory_id=KST_KServiceTypeFactory) at ../../kdecore/sycoca/ksycocafactory.cpp:53
#22 0x00007f1d3247e55e in KServiceTypeFactory::KServiceTypeFactory (this=0x7f1d100015d0) at ../../kdecore/services/kservicetypefactory.cpp:31
#23 0x00007f1d3247e9ca in self (this=<optimized out>) at ../../kdecore/sycoca/ksycocafactory.h:200
#24 KServiceTypeFactory::self () at ../../kdecore/services/kservicetypefactory.cpp:65
#25 0x00007f1d3247ed5f in KServiceTypeProfiles::ensureParsed (this=0x7f1d10001610) at ../../kdecore/services/kservicetypeprofile.cpp:71
#26 0x00007f1d32480651 in hasProfile (serviceType=..., this=<optimized out>) at ../../kdecore/services/kservicetypeprofile.cpp:50
#27 KServiceTypeProfile::hasProfile (serviceType=...) at ../../kdecore/services/kservicetypeprofile.cpp:173
#28 0x00007f1d32482d2e in KServiceTypeTrader::query (this=0x7f1d10001710, serviceType=..., constraint=...) at ../../kdecore/services/kservicetypetrader.cpp:137
#29 0x00007f1d364493af in ?? () from /usr/lib/kde4/libkdeinit/libkdeinit4_kwin.so
#30 0x00007f1d3644bd5a in ?? () from /usr/lib/kde4/libkdeinit/libkdeinit4_kwin.so
#31 0x00007f1d3644bdfb in ?? () from /usr/lib/kde4/libkdeinit/libkdeinit4_kwin.so
#32 0x00007f1d31c145a2 in QThreadPoolThread::run (this=0x262ca00) at concurrent/qthreadpool.cpp:107
#33 0x00007f1d31c2107b in QThreadPrivate::start (arg=0x262ca00) at thread/qthread_unix.cpp:307
#34 0x00007f1d2adfee9a in start_thread (arg=0x7f1d1b0cb700) at pthread_create.c:308
#35 0x00007f1d3609c4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#36 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f1d1c301700 (LWP 2625)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:39
#1  0x00007f1d31c1fb4b in _q_futex (val2=0, addr2=0x0, timeout=0x0, val=2, op=0, addr=0x7f1d100014d0) at thread/qmutex_unix.cpp:99
#2  QMutexPrivate::wait (this=0x7f1d100014d0, timeout=<optimized out>) at thread/qmutex_unix.cpp:113
#3  0x00007f1d31c1b91d in QMutex::lockInternal (this=<optimized out>) at thread/qmutex.cpp:450
#4  0x00007f1d324806c8 in lockInline (this=0x7f1d10001618) at /usr/include/qt4/QtCore/qmutex.h:190
#5  QMutexLocker (m=0x7f1d10001618, this=<synthetic pointer>) at /usr/include/qt4/QtCore/qmutex.h:109
#6  hasProfile (serviceType=..., this=<optimized out>) at ../../kdecore/services/kservicetypeprofile.cpp:49
#7  KServiceTypeProfile::hasProfile (serviceType=...) at ../../kdecore/services/kservicetypeprofile.cpp:173
#8  0x00007f1d32482d2e in KServiceTypeTrader::query (this=0x7f1d10001710, serviceType=..., constraint=...) at ../../kdecore/services/kservicetypetrader.cpp:137
#9  0x00007f1d364421fe in ?? () from /usr/lib/kde4/libkdeinit/libkdeinit4_kwin.so
#10 0x00007f1d364422ab in ?? () from /usr/lib/kde4/libkdeinit/libkdeinit4_kwin.so
#11 0x00007f1d31c145a2 in QThreadPoolThread::run (this=0x27c27c0) at concurrent/qthreadpool.cpp:107
#12 0x00007f1d31c2107b in QThreadPrivate::start (arg=0x27c27c0) at thread/qthread_unix.cpp:307
#13 0x00007f1d2adfee9a in start_thread (arg=0x7f1d1c301700) at pthread_create.c:308
#14 0x00007f1d3609c4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#15 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f1d23578780 (LWP 1917)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:39
#1  0x00007f1d31c1fb4b in _q_futex (val2=0, addr2=0x0, timeout=0x0, val=2, op=0, addr=0x7f1d100014d0) at thread/qmutex_unix.cpp:99
#2  QMutexPrivate::wait (this=0x7f1d100014d0, timeout=<optimized out>) at thread/qmutex_unix.cpp:113
#3  0x00007f1d31c1b91d in QMutex::lockInternal (this=<optimized out>) at thread/qmutex.cpp:450
#4  0x00007f1d324805b0 in lockInline (this=0x7f1d10001618) at /usr/include/qt4/QtCore/qmutex.h:190
#5  QMutexLocker (m=0x7f1d10001618, this=<synthetic pointer>) at /usr/include/qt4/QtCore/qmutex.h:109
#6  clear (this=0x7f1d10001610) at ../../kdecore/services/kservicetypeprofile.cpp:43
#7  ~KServiceTypeProfiles (this=0x7f1d10001610, __in_chrg=<optimized out>) at ../../kdecore/services/kservicetypeprofile.cpp:41
#8  destroy () at ../../kdecore/services/kservicetypeprofile.cpp:60
#9  0x00007f1d35fe5921 in __run_exit_handlers (status=1, listp=0x7f1d36360688, run_list_atexit=true) at exit.c:78
#10 0x00007f1d35fe59a5 in __GI_exit (status=<optimized out>) at exit.c:100
#11 0x00007f1d3110d508 in qt_xio_errhandler () at kernel/qapplication_x11.cpp:780
#12 0x00007f1d35b74cb8 in KApplication::xioErrhandler (this=0x7fff15b41950, dpy=0x262fb10) at ../../kdeui/kernel/kapplication.cpp:419
#13 0x00007f1d3412241e in _XIOError () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#14 0x00007f1d3412038b in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#15 0x00007f1d3282b85b in ?? () from /usr/lib/fglrx/libGL.so.1
#16 0x00007f1d36432e4c in ?? () from /usr/lib/kde4/libkdeinit/libkdeinit4_kwin.so
#17 0x00007f1d36433470 in ?? () from /usr/lib/kde4/libkdeinit/libkdeinit4_kwin.so
#18 0x00007f1d36415ff2 in ?? () from /usr/lib/kde4/libkdeinit/libkdeinit4_kwin.so
#19 0x00007f1d31d39739 in QObject::event (this=0x27caff0, e=<optimized out>) at kernel/qobject.cpp:1157
#20 0x00007f1d310a17b4 in notify_helper (e=0x7fff15b41570, receiver=0x27caff0, this=0x261d3e0) at kernel/qapplication.cpp:4556
#21 QApplicationPrivate::notify_helper (this=0x261d3e0, receiver=0x27caff0, e=0x7fff15b41570) at kernel/qapplication.cpp:4528
#22 0x00007f1d310a6583 in QApplication::notify (this=0x7fff15b41950, receiver=0x27caff0, e=0x7fff15b41570) at kernel/qapplication.cpp:4417
#23 0x00007f1d35b769f6 in KApplication::notify (this=0x7fff15b41950, receiver=0x27caff0, event=0x7fff15b41570) at ../../kdeui/kernel/kapplication.cpp:311
#24 0x00007f1d31d203ec in QCoreApplication::notifyInternal (this=0x7fff15b41950, receiver=0x27caff0, event=0x7fff15b41570) at kernel/qcoreapplication.cpp:915
#25 0x00007f1d31d517b2 in sendEvent (event=0x7fff15b41570, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#26 QTimerInfoList::activateTimers (this=0x261df98) at kernel/qeventdispatcher_unix.cpp:611
#27 0x00007f1d31d52274 in QEventDispatcherUNIX::processEvents (this=0x25b8ad0, flags=...) at kernel/qeventdispatcher_unix.cpp:930
#28 0x00007f1d3114ab78 in QEventDispatcherX11::processEvents (this=0x25b8ad0, flags=...) at kernel/qeventdispatcher_x11.cpp:152
#29 0x00007f1d31d1ef22 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#30 0x00007f1d31d1f177 in QEventLoop::exec (this=0x7fff15b418d0, flags=...) at kernel/qeventloop.cpp:204
#31 0x00007f1d31d244c7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#32 0x00007f1d363ca7b3 in kdemain () from /usr/lib/kde4/libkdeinit/libkdeinit4_kwin.so
#33 0x00007f1d35fcb76d in __libc_start_main (main=0x400640, argc=1, ubp_av=0x7fff15b42048, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff15b42038) at libc-start.c:226
#34 0x0000000000400671 in _start ()

This bug may be a duplicate of or related to bug 279834.

Possible duplicates by query: bug 279834.

Reported using DrKonqi
Comment 1 Thomas Lübking 2012-06-19 21:40:12 UTC
#15 0x00007f1d3282b85b in ?? () from /usr/lib/fglrx/libGL.so.1
#16 0x00007f1d36432e4c in ?? () from /usr/lib/kde4/libkdeinit/libkdeinit4_kwin.so
#17 0x00007f1d36433470 in ?? () from /usr/lib/kde4/libkdeinit/libkdeinit4_kwin.so
#18 0x00007f1d36415ff2 in ?? () from /usr/lib/kde4/libkdeinit/libkdeinit4_kwin.so

Unfortunately the relevant libraries are stripped.

a) Can you compile with debug enabled?
b) The backtrace ends in fglxr and is most likely a driver issue.
c) it might only occur on the very first execution after booting (undefined state in the driver), pot. it re-occurs after logging out and back in.

Do you force direct GL?
If not you can *try* exporting KWIN_DIRECT_GL=1

temporarily run
KWIN_DIRECT_GL=1 kwin --replace &

for long time setting, add an *executable* shell script to ~/.kde/env

 -------- snip force_dri.sh ------------
#!/bin/sh
export KWIN_DIRECT_GL=1
 -------- /snip force_dri.sh ------------

DRI with fglrx used to fail but latter reports suggest it meanwhile works (better than indirect rendering)
Comment 2 Hrvoje Senjan 2012-06-19 22:15:22 UTC
Thomas, i'm sorry for missing backtraces, drkonqi fooled me with it's 3 little stars, i didn't noticed i don't have kde-workspace debug package installed, and backtraces anyway look like hieroglyphs to me :) (other than library names).

So far i didn't manage trigger the crash, and i am not forcing direct rendering, these newer, "better" working drivers don't cover my hardware anymore, and lately fglrx has been behaving pretty good (no crashes for a long time, until this one).

Do you have any idea what could trigger the crash? (If that does mean anything, systemsettings window was maximized.)
Comment 3 Thomas Lübking 2012-06-20 12:47:50 UTC
(In reply to comment #2)
> Do you have any idea what could trigger the crash? (If that does mean
> anything, systemsettings window was maximized.)

Nope, sorry - not w/o a backtrace ;-)

However the xio error seems to be usually caused by some installation issues, remaining mesa installation, whatever - esp. ensure you ran "/usr/bin/aticonfig --initial"
Comment 4 Hrvoje Senjan 2012-07-13 13:16:45 UTC
I'll close this for now, cause can't get the crash anymore.

Thomas:
ldconfig -p | grep libGL
        libGLU.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libGLU.so.1
        libGLU.so.1 (libc6) => /usr/lib/i386-linux-gnu/libGLU.so.1
        libGLU.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libGLU.so
        libGLEW.so.1.5 (libc6,x86-64) => /usr/lib/libGLEW.so.1.5
        libGLEW.so (libc6,x86-64) => /usr/lib/libGLEW.so
        libGLESv2.so.2 (libc6,x86-64, OS ABI: Linux 2.4.20) => /usr/lib/x86_64-linux-gnu/mesa-egl/libGLESv2.so.2
        libGL.so.1 (libc6,x86-64) => /usr/lib/fglrx/libGL.so.1
        libGL.so.1 (libc6) => /usr/lib32/fglrx/libGL.so.1
        libGL.so (libc6,x86-64, OS ABI: Linux 2.4.20) => /usr/lib/x86_64-linux-gnu/libGL.so
        libGL.so (libc6,x86-64) => /usr/lib/fglrx/libGL.so