Bug 241263

Summary: KWin crashes when changing color theme (driver bug) [dri2DrawableGetMSC, __glXGetVideoSyncSGI, KWin::SceneOpenGL::waitSync, KWin::SceneOpenGL::flushBuffer]
Product: [Plasma] kwin Reporter: Yaohan Chen <yaohan.chen>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: crash CC: andresbajotierra, bottingah, bwvb, freekdekruijf, Freiheits, georgosn, jesus.guerrero.botella, kontrik, kurmikon, marokanski.kazak, musicrazyjavier, nicholas.tripp, raphicycle, richts, shawn.starr, subscuba2, sz.zoli1990, tomek-deputat
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Yaohan Chen 2010-06-10 03:57:08 UTC
Application: kwin (4.4.85 (KDE 4.4.85 (KDE 4.5 Beta2)))
KDE Platform Version: 4.4.85 (KDE 4.4.85 (KDE 4.5 Beta2))
Qt Version: 4.7.0
Operating System: Linux 2.6.34-020634-generic i686
Distribution: Ubuntu 10.04 LTS

-- Information about the crash:
- What I was doing when the application crashed:
I opened System Settings - Color Settings - Colors, and changed the color for Active Titlebar Text, and clicked Apply.

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin), signal: Segmentation fault
[Current thread is 1 (Thread 0xb3303720 (LWP 3611))]

Thread 2 (Thread 0xa9654b70 (LWP 3618)):
#0  0xb3d70e16 in *__GI_clock_gettime (clock_id=-1277734924, tp=0xa9653f80) at ../sysdeps/unix/clock_gettime.c:100
#1  0xb672dceb in do_gettime () at tools/qelapsedtimer_unix.cpp:105
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:119
#3  0xb6804045 in QTimerInfoList::updateCurrentTime (this=0xa5e9944) at kernel/qeventdispatcher_unix.cpp:339
#4  0xb680408a in QTimerInfoList::timerWait (this=0xa5e9944, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0xb6802128 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xa96540ac) at kernel/qeventdispatcher_glib.cpp:136
#6  0xb68021b5 in timerSourcePrepare (source=0x0, timeout=0xb3d74ff4) at kernel/qeventdispatcher_glib.cpp:169
#7  0xb3ce1aca in IA__g_main_context_prepare (context=0xa5c5398, priority=0xa965412c) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2280
#8  0xb3ce1ee9 in g_main_context_iterate (context=0xa5c5398, block=<value optimized out>, dispatch=1, self=0xa5e9bd8) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2571
#9  0xb3ce24b8 in IA__g_main_context_iteration (context=0xa5c5398, may_block=1) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2654
#10 0xb6801f1f in QEventDispatcherGlib::processEvents (this=0xa5a9ba8, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#11 0xb67d21a9 in QEventLoop::processEvents (this=0xa9654280, flags=) at kernel/qeventloop.cpp:149
#12 0xb67d25fa in QEventLoop::exec (this=0xa9654280, flags=...) at kernel/qeventloop.cpp:201
#13 0xb66cfaee in QThread::exec (this=0xa5b5338) at thread/qthread.cpp:490
#14 0xb67b12eb in QInotifyFileSystemWatcherEngine::run (this=0xa5b5338) at io/qfilesystemwatcher_inotify.cpp:248
#15 0xb66d2dc9 in QThreadPrivate::start (arg=0xa5b5338) at thread/qthread_unix.cpp:266
#16 0xb665696e in start_thread (arg=0xa9654b70) at pthread_create.c:300
#17 0xb75d8a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb3303720 (LWP 3611)):
[KCrash Handler]
#7  0xb6c719aa in dri2DrawableGetMSC (psc=0x9f5f5d0, pdraw=0x0, ust=0xbf9ce508, msc=0xbf9ce500, sbc=0xbf9ce4f8) at dri2_glx.c:249
#8  0xb6c4b21c in __glXGetVideoSyncSGI (count=0xbf9ce54c) at glxcmds.c:2317
#9  0xb774e623 in KWin::SceneOpenGL::waitSync (this=0x9fba150) at ../../kwin/scene_opengl.cpp:781
#10 0xb7753027 in KWin::SceneOpenGL::flushBuffer (this=0x9fba150, mask=0, damage=...) at ../../kwin/scene_opengl.cpp:830
#11 0xb77540d4 in KWin::SceneOpenGL::paint (this=0x9fba150, damage=..., toplevels=...) at ../../kwin/scene_opengl.cpp:761
#12 0xb773bd84 in KWin::Workspace::performCompositing (this=0x9fdcaf0) at ../../kwin/composite.cpp:455
#13 0xb76adb8e in KWin::Workspace::qt_metacall (this=0x9fdcaf0, _c=QMetaObject::InvokeMetaMethod, _id=190, _a=0xbf9ce86c) at ./workspace.moc:583
#14 0xb67d942a in QMetaObject::metacall (object=0x9fdcaf0, cl=3066501504, idx=190, argv=0xbf9ce86c) at kernel/qmetaobject.cpp:237
#15 0xb67ec1a5 in QMetaObject::activate (sender=0x9fdcda0, m=0xb69055a4, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3280
#16 0xb683d8d7 in QTimer::timeout (this=0x9fdcda0) at .moc/release-shared/moc_qtimer.cpp:134
#17 0xb67f1d4e in QTimer::timerEvent (this=0x9fdcda0, e=0xbf9cedc0) at kernel/qtimer.cpp:271
#18 0xb67e6014 in QObject::event (this=0x9fdcda0, e=0x9f5f5d0) at kernel/qobject.cpp:1183
#19 0xb5cd532c in QApplicationPrivate::notify_helper (this=0x9e9c290, receiver=0x9fdcda0, e=0xbf9cedc0) at kernel/qapplication.cpp:4358
#20 0xb5cdc6fe in QApplication::notify (this=0xbf9cf13c, receiver=0x9fdcda0, e=0xbf9cedc0) at kernel/qapplication.cpp:3762
#21 0xb732e90a in KApplication::notify (this=0xbf9cf13c, receiver=0x9fdcda0, event=0xbf9cedc0) at ../../kdeui/kernel/kapplication.cpp:302
#22 0xb76ca62f in KWin::Application::notify (this=0xbf9cf13c, o=0x9fdcda0, e=0xbf9cedc0) at ../../kwin/main.cpp:371
#23 0xb67d36cb in QCoreApplication::notifyInternal (this=0xbf9cf13c, receiver=0x9fdcda0, event=0xbf9cedc0) at kernel/qcoreapplication.cpp:732
#24 0xb6805426 in QCoreApplication::sendEvent (this=0x9e9f534) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#25 QTimerInfoList::activateTimers (this=0x9e9f534) at kernel/qeventdispatcher_unix.cpp:602
#26 0xb6802227 in timerSourceDispatch (source=0x9e9f570) at kernel/qeventdispatcher_glib.cpp:184
#27 idleTimerSourceDispatch (source=0x9e9f570) at kernel/qeventdispatcher_glib.cpp:231
#28 0xb3cde5e5 in g_main_dispatch (context=0x9e9e698) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:1960
#29 IA__g_main_context_dispatch (context=0x9e9e698) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2513
#30 0xb3ce22d8 in g_main_context_iterate (context=0x9e9e698, block=<value optimized out>, dispatch=1, self=0x9e9c430) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2591
#31 0xb3ce24b8 in IA__g_main_context_iteration (context=0x9e9e698, may_block=1) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2654
#32 0xb6801ee5 in QEventDispatcherGlib::processEvents (this=0x9e9c270, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#33 0xb5d96105 in QGuiEventDispatcherGlib::processEvents (this=0x9e9c270, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#34 0xb67d21a9 in QEventLoop::processEvents (this=0xbf9cf084, flags=) at kernel/qeventloop.cpp:149
#35 0xb67d25fa in QEventLoop::exec (this=0xbf9cf084, flags=...) at kernel/qeventloop.cpp:201
#36 0xb67d6baf in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#37 0xb5cd4157 in QApplication::exec () at kernel/qapplication.cpp:3637
#38 0xb76ccdd5 in kdemain (argc=3, argv=0xbf9cf344) at ../../kwin/main.cpp:523
#39 0x0804860b in main (argc=3, argv=0xbf9cf344) at kwin_dummy.cpp:3

Reported using DrKonqi
Comment 1 Martin Flöser 2010-06-10 19:15:01 UTC
*** Bug 241325 has been marked as a duplicate of this bug. ***
Comment 2 Martin Flöser 2010-06-10 19:16:21 UTC
The crash is caused by your graphics driver. I would recommend you to not use the bleeding edge drivers provided by the PPA.
Comment 3 Thomas Lübking 2010-07-20 22:05:08 UTC
*** Bug 245238 has been marked as a duplicate of this bug. ***
Comment 4 Igor Strelnikoff 2010-08-12 21:33:46 UTC
Created attachment 50081 [details]
New crash information added by DrKonqi

kwin (4.5.00 (KDE 4.5.0)) on KDE Platform 4.5.00 (KDE 4.5.0) using Qt 4.6.3

- What I was doing when the application crashed: Click "Apply" in the menu font hinting

- Unusual behavior I noticed: Slow drawing windows

- Custom settings of the application: Standard settings, build packages from this repository: http://download.opensuse.org/repositories/KDE%3a/Distro%3a/Factory/openSUSE_11.3/

-- Backtrace (Reduced):
#9  0xb76d95c4 in KWin::SceneOpenGL::waitSync (this=0x81669f0) at /usr/src/debug/kdebase-workspace-4.5.0/kwin/scene_opengl.cpp:781
#10 0xb76ef8b0 in KWin::SceneOpenGL::flushBuffer (this=0x81669f0, mask=8, damage=...) at /usr/src/debug/kdebase-workspace-4.5.0/kwin/scene_opengl.cpp:793
#11 0xb774188a in KWin::SceneOpenGL::paint (this=0x81669f0, damage=..., toplevels=...) at /usr/src/debug/kdebase-workspace-4.5.0/kwin/scene_opengl.cpp:761
#12 0xb771e794 in KWin::Workspace::performCompositing (this=0x815def0) at /usr/src/debug/kdebase-workspace-4.5.0/kwin/composite.cpp:454
#13 0xb7751a5b in KWin::Workspace::qt_metacall (this=0x815def0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbfca5f0c)
    at /usr/src/debug/kdebase-workspace-4.5.0/build/kwin/workspace.moc:583
Comment 5 Christoph Feck 2010-08-17 21:15:55 UTC
Igor, no matter how many people you add to the CC list, it remains a driver issue problem. Please report the bug to the people responsible for the graphics/GLX driver you are using.
Comment 6 Thomas Lübking 2010-08-27 11:59:18 UTC
*** Bug 249159 has been marked as a duplicate of this bug. ***
Comment 7 Martin Flöser 2010-09-11 08:38:11 UTC
*** Bug 250844 has been marked as a duplicate of this bug. ***
Comment 8 Valentyn Pavliuchenko 2010-09-13 23:09:43 UTC
I have no problems on my system:
Debian unstable + KDE 4.5.1 (semi-official packages)
Xorg 1.7.7, xf86-video-ati 6.13.99(git) on my HD4870x2. Mesa 7.8.2(git)
Comment 9 Thomas Lübking 2010-09-14 15:19:56 UTC
*** Bug 251170 has been marked as a duplicate of this bug. ***
Comment 10 Martin Flöser 2010-09-16 17:43:40 UTC
*** Bug 251467 has been marked as a duplicate of this bug. ***
Comment 11 Thomas Lübking 2010-09-20 15:49:15 UTC
*** Bug 251820 has been marked as a duplicate of this bug. ***
Comment 12 Igor Strelnikoff 2010-09-25 15:15:36 UTC
New crash report

Application: KWin (kwin), signal: Segmentation fault
[KCrash Handler]
#7  0xb6bac27b in dri2DrawableGetMSC (psc=0x80d52e0, pdraw=0x0, ust=0xbfcfb028,
msc=0xbfcfb020, sbc=0xbfcfb018) at dri2_glx.c:226
#8  0xb6b85107 in __glXGetVideoSyncSGI (count=0xbfcfb06c) at glxcmds.c:2317
#9  0xb76bb604 in KWin::SceneOpenGL::waitSync (this=0x8155e30) at
/usr/src/debug/kdebase-workspace-4.5.1/kwin/scene_opengl.cpp:781
#10 0xb76c8950 in KWin::SceneOpenGL::flushBuffer (this=0x8155e30, mask=8,
damage=...) at /usr/src/debug/kdebase-workspace-4.5.1/kwin/scene_opengl.cpp:793
#11 0xb7723c0a in KWin::SceneOpenGL::paint (this=0x8155e30, damage=...,
toplevels=...) at
/usr/src/debug/kdebase-workspace-4.5.1/kwin/scene_opengl.cpp:761
#12 0xb76fbe24 in KWin::Workspace::performCompositing (this=0x814ed70) at
/usr/src/debug/kdebase-workspace-4.5.1/kwin/composite.cpp:454
#13 0xb772d49b in KWin::Workspace::qt_metacall (this=0x814ed70,
_c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbfcfb35c)
    at /usr/src/debug/kdebase-workspace-4.5.1/build/kwin/workspace.moc:583
#14 0xb66f296d in QMetaObject::metacall (object=0x814ed70,
cl=QMetaObject::InvokeMetaMethod, idx=190, argv=0xbfcfb35c) at
kernel/qmetaobject.cpp:237
#15 0xb6702b1c in QMetaObject::activate (sender=0x814f020, m=0xb68265a4,
local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3272
#16 0xb6751ef5 in QTimer::timeout (this=0x814f020) at
.moc/release-shared/moc_qtimer.cpp:134
#17 0xb67090e6 in QTimer::timerEvent (this=0x814f020, e=0xbfcfb8b0) at
kernel/qtimer.cpp:271
#18 0xb67014e4 in QObject::event (this=0x814f020, e=0xbfcfb8b0) at
kernel/qobject.cpp:1175
#19 0xb5bed1a4 in QApplicationPrivate::notify_helper (this=0x806d748,
receiver=0x814f020, e=0xbfcfb8b0) at kernel/qapplication.cpp:4396
#20 0xb5bf5dd7 in QApplication::notify (this=0xbfcfbbc4, receiver=0x814f020,
e=0xbfcfb8b0) at kernel/qapplication.cpp:3798
#21 0xb722f401 in KApplication::notify (this=0xbfcfbbc4, receiver=0x814f020,
event=0xbfcfb8b0) at
/usr/src/debug/kdelibs-4.5.1/kdeui/kernel/kapplication.cpp:310
#22 0xb7695c8f in KWin::Application::notify (this=0xbfcfbbc4, o=0x814f020,
e=0xbfcfb8b0) at /usr/src/debug/kdebase-workspace-4.5.1/kwin/main.cpp:372
#23 0xb66ec12e in QCoreApplication::notifyInternal (this=0xbfcfbbc4,
receiver=0x814f020, event=0xbfcfb8b0) at kernel/qcoreapplication.cpp:732
#24 0xb671d4b4 in sendEvent (this=0x806ded0) at kernel/qcoreapplication.h:215
#25 QTimerInfoList::activateTimers (this=0x806ded0) at
kernel/qeventdispatcher_unix.cpp:617
#26 0xb671dbfd in QEventDispatcherUNIX::processEvents (this=0x8052b98,
flags=...) at kernel/qeventdispatcher_unix.cpp:938
#27 0xb5ca328a in QEventDispatcherX11::processEvents (this=0x8052b98,
flags=...) at kernel/qeventdispatcher_x11.cpp:152
#28 0xb66eb40d in QEventLoop::processEvents (this=0xbfcfbb14, flags=...) at
kernel/qeventloop.cpp:149
#29 0xb66eb639 in QEventLoop::exec (this=0xbfcfbb14, flags=...) at
kernel/qeventloop.cpp:201
#30 0xb66f0090 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#31 0xb5beaed4 in QApplication::exec () at kernel/qapplication.cpp:3672
#32 0xb77359db in kdemain (argc=1, argv=0xbfcfbe14) at
/usr/src/debug/kdebase-workspace-4.5.1/kwin/main.cpp:531
#33 0x0804860b in main (argc=1, argv=0xbfcfbe14) at
/usr/src/debug/kdebase-workspace-4.5.1/build/kwin/kwin_dummy.cpp:3
Comment 13 Igor Strelnikoff 2010-09-25 15:45:40 UTC
I reported this bug in X.Org's bugzilla

https://bugs.freedesktop.org/show_bug.cgi?id=29711
Comment 14 Thomas Lübking 2010-09-30 14:53:35 UTC
*** Bug 252853 has been marked as a duplicate of this bug. ***
Comment 15 Martin Flöser 2010-10-02 10:10:00 UTC
*** Bug 252999 has been marked as a duplicate of this bug. ***
Comment 16 Thomas Lübking 2010-10-09 16:27:53 UTC
*** Bug 253664 has been marked as a duplicate of this bug. ***
Comment 17 Thomas Lübking 2010-10-09 22:31:28 UTC
*** Bug 253698 has been marked as a duplicate of this bug. ***
Comment 18 Thomas Lübking 2010-11-04 13:34:24 UTC
*** Bug 256037 has been marked as a duplicate of this bug. ***
Comment 19 Dario Andres 2010-11-20 14:31:58 UTC
[Comment from a bug triager]
Bug 256037 comment 2 mentions that upgrading to mesa 7.9 seems to help stopping this crash
Comment 20 Dario Andres 2010-11-20 14:33:20 UTC
*** Bug 257395 has been marked as a duplicate of this bug. ***
Comment 21 Thomas Lübking 2010-12-04 10:51:51 UTC
*** Bug 258774 has been marked as a duplicate of this bug. ***
Comment 22 Dario Andres 2010-12-11 23:25:20 UTC
*** Bug 259557 has been marked as a duplicate of this bug. ***
Comment 23 Thomas Lübking 2010-12-22 11:51:24 UTC
*** Bug 260952 has been marked as a duplicate of this bug. ***
Comment 24 Thomas Lübking 2010-12-22 11:52:32 UTC
*** Bug 247408 has been marked as a duplicate of this bug. ***
Comment 25 Martin Flöser 2011-01-15 09:58:43 UTC
*** Bug 263190 has been marked as a duplicate of this bug. ***
Comment 26 Martin Flöser 2011-01-15 11:12:55 UTC
*** Bug 263208 has been marked as a duplicate of this bug. ***
Comment 27 Christoph Feck 2011-02-02 13:55:25 UTC
*** Bug 265174 has been marked as a duplicate of this bug. ***
Comment 28 Thomas Lübking 2011-02-04 16:47:44 UTC
*** Bug 265351 has been marked as a duplicate of this bug. ***
Comment 29 Thomas Lübking 2011-02-10 21:22:59 UTC
*** Bug 266013 has been marked as a duplicate of this bug. ***