Bug 181446 - KWin Signal 6 Crash (KWin::SceneOpenGL::flushBuffer , libGL related)
Summary: KWin Signal 6 Crash (KWin::SceneOpenGL::flushBuffer , libGL related)
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: unspecified
Platform: Ubuntu Unspecified
: LO crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 199969 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-21 01:05 UTC by L.Bryce Whitson Jr.
Modified: 2010-06-20 20:12 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description L.Bryce Whitson Jr. 2009-01-21 01:05:27 UTC
Version:            (using KDE 4.1.3)
Installed from:    Ubuntu Packages

Application: KWin (kwin), signal SIGABRT
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0x7f5dbc62f730 (LWP 7813)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#5  0x00007f5dbc008fd5 in raise () from /lib/libc.so.6
#6  0x00007f5dbc00ab43 in abort () from /lib/libc.so.6
#7  0x00007f5dbc685ce9 in ?? () from /usr/lib/libGL.so.1
#8  0x00007f5db577e09e in ?? () from /usr/lib/libGLcore.so.1
#9  0x00007f5db577ec73 in ?? () from /usr/lib/libGLcore.so.1
#10 0x00007f5db54ea404 in ?? () from /usr/lib/libGLcore.so.1
#11 0x00007f5db5233536 in ?? () from /usr/lib/libGLcore.so.1
#12 0x00007f5dbc3d7b65 in ?? () from /usr/lib/libkdeinit4_kwin.so
#13 0x00007f5dbc3d831a in ?? () from /usr/lib/libkdeinit4_kwin.so
#14 0x00007f5dbc3ca1b4 in ?? () from /usr/lib/libkdeinit4_kwin.so
#15 0x00007f5dbc36e6b2 in ?? () from /usr/lib/libkdeinit4_kwin.so
#16 0x00007f5dbb46d134 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#17 0x00007f5dbb467a43 in QObject::event () from /usr/lib/libQtCore.so.4
#18 0x00007f5dba03cc3d in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#19 0x00007f5dba0449ba in QApplication::notify () from /usr/lib/libQtGui.so.4
#20 0x00007f5db8e0cfcb in KApplication::notify () from /usr/lib/libkdeui.so.5
#21 0x00007f5dbb458d61 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#22 0x00007f5dbb484ab6 in ?? () from /usr/lib/libQtCore.so.4
#23 0x00007f5dbb4811fd in ?? () from /usr/lib/libQtCore.so.4
#24 0x00007f5db7915d3b in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#25 0x00007f5db791950d in ?? () from /usr/lib/libglib-2.0.so.0
#26 0x00007f5db79196cb in g_main_context_iteration ()
   from /usr/lib/libglib-2.0.so.0
#27 0x00007f5dbb48115f in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#28 0x00007f5dba0cea6f in ?? () from /usr/lib/libQtGui.so.4
#29 0x00007f5dbb457682 in QEventLoop::processEvents ()
   from /usr/lib/libQtCore.so.4
#30 0x00007f5dbb45780d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#31 0x00007f5dbb459cbd in QCoreApplication::exec ()
   from /usr/lib/libQtCore.so.4
#32 0x00007f5dbc387761 in kdemain () from /usr/lib/libkdeinit4_kwin.so
#33 0x00007f5dbbff4466 in __libc_start_main () from /lib/libc.so.6
#34 0x0000000000400659 in _start ()
#0  0x00007f5dbc07e5f0 in nanosleep () from /lib/libc.so.6
Comment 1 L.Bryce Whitson Jr. 2009-01-21 01:05:57 UTC
Occured when I logged out and logged back in.
Comment 2 Dario Andres 2009-01-21 01:34:14 UTC
I suppose you were using Desktop Effects ("Compositing") What graphics card and
drivers are you using? If you can reproduce the crash at will, may you read
http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports
and post a complete backtrace here? Thanks :)

Comment 3 L.Bryce Whitson Jr. 2009-01-21 03:06:14 UTC
Alright, here is what I did. I attempted to install Compiz-Fusion through the adept installer.  After installing that and Emerald, I ran emerald --replace and compiz --replace.  The screen started acting weird and I lost all of my title bars.  I then attempted to uninstall both of them, but they still seemed to be installed no matter what I did.

My video card is an nVidia 9800 GTX+ with driver 177.22 (I think that is the right number)

Application: KWin (kwin), signal SIGABRT
[Thread debugging using libthread_db enabled]
[New Thread 0x7fc4c3e46730 (LWP 5931)]
[KCrash handler]
#5  0x00007fc4c381ffd5 in raise () from /lib/libc.so.6
#6  0x00007fc4c3821b43 in abort () from /lib/libc.so.6
#7  0x00007fc4c3e9cce9 in ?? () from /usr/lib/libGL.so.1
#8  0x00007fc4bcf9509e in ?? () from /usr/lib/libGLcore.so.1
#9  0x00007fc4bcf95c73 in ?? () from /usr/lib/libGLcore.so.1
#10 0x00007fc4bcd01404 in ?? () from /usr/lib/libGLcore.so.1
#11 0x00007fc4bca4a536 in ?? () from /usr/lib/libGLcore.so.1
#12 0x00007fc4c3beeb65 in ?? () from /usr/lib/libkdeinit4_kwin.so
#13 0x00007fc4c3bef31a in ?? () from /usr/lib/libkdeinit4_kwin.so
#14 0x00007fc4c3be11b4 in ?? () from /usr/lib/libkdeinit4_kwin.so
#15 0x00007fc4c3b856b2 in ?? () from /usr/lib/libkdeinit4_kwin.so
#16 0x00007fc4c2c84134 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#17 0x00007fc4c2c7ea43 in QObject::event () from /usr/lib/libQtCore.so.4
#18 0x00007fc4c1853c3d in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#19 0x00007fc4c185b9ba in QApplication::notify () from /usr/lib/libQtGui.so.4
#20 0x00007fc4c0623fcb in KApplication::notify () from /usr/lib/libkdeui.so.5
#21 0x00007fc4c2c6fd61 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#22 0x00007fc4c2c9bab6 in ?? () from /usr/lib/libQtCore.so.4
#23 0x00007fc4c2c981fd in ?? () from /usr/lib/libQtCore.so.4
#24 0x00007fc4bf12cd3b in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#25 0x00007fc4bf13050d in ?? () from /usr/lib/libglib-2.0.so.0
#26 0x00007fc4bf1306cb in g_main_context_iteration ()
   from /usr/lib/libglib-2.0.so.0
#27 0x00007fc4c2c9815f in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#28 0x00007fc4c18e5a6f in ?? () from /usr/lib/libQtGui.so.4
#29 0x00007fc4c2c6e682 in QEventLoop::processEvents ()
   from /usr/lib/libQtCore.so.4
#30 0x00007fc4c2c6e80d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#31 0x00007fc4c2c70cbd in QCoreApplication::exec ()
   from /usr/lib/libQtCore.so.4
#32 0x00007fc4c3b9e761 in kdemain () from /usr/lib/libkdeinit4_kwin.so
#33 0x00007fc4c380b466 in __libc_start_main () from /lib/libc.so.6
#34 0x0000000000400659 in _start ()
#0  0x00007fc4c38955f0 in nanosleep () from /lib/libc.so.6
Comment 4 Dario Andres 2009-01-22 21:26:21 UTC
Can you install the following packages:

libqt4-dbg
kdelibs5-dbg
kdebase-dbg
kdebase-runtime-dbg
kdebase-workspace-dbg

and try again to generate a better backtrace?

Look at a Ubuntu forum/guide to know howto install a get Compiz-Fusion running
Thanks
Comment 5 L.Bryce Whitson Jr. 2009-01-23 00:28:42 UTC
Alright, I installed the packages you requested and here is the output.

Application: KWin (kwin), signal SIGABRT
[Thread debugging using libthread_db enabled]
[New Thread 0x7fc48caad730 (LWP 10696)]
[KCrash handler]
#5  0x00007fc48c486fd5 in raise () from /lib/libc.so.6
#6  0x00007fc48c488b43 in abort () from /lib/libc.so.6
#7  0x00007fc48cb03ce9 in ?? () from /usr/lib/libGL.so.1
#8  0x00007fc485bfc09e in ?? () from /usr/lib/libGLcore.so.1
#9  0x00007fc485bfcc73 in ?? () from /usr/lib/libGLcore.so.1
#10 0x00007fc485968404 in ?? () from /usr/lib/libGLcore.so.1
#11 0x00007fc4856b1536 in ?? () from /usr/lib/libGLcore.so.1
#12 0x00007fc48c855b65 in KWin::SceneOpenGL::flushBuffer (this=0x24be970, 
    mask=<value optimized out>, damage=
        {d = 0x241a6e0, static shared_empty = {ref = {_q_value = 48}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}})
    at /build/buildd/kdebase-workspace-4.1.3/kwin/scene_opengl.cpp:696
#13 0x00007fc48c85631a in KWin::SceneOpenGL::paint (this=0x24be970, damage=
        {d = 0x7fff94c9e600, static shared_empty = {ref = {_q_value = 48}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, toplevels=<value optimized out>)
    at /build/buildd/kdebase-workspace-4.1.3/kwin/scene_opengl.cpp:628
#14 0x00007fc48c8481b4 in KWin::Workspace::performCompositing (this=0x22039f0)
    at /build/buildd/kdebase-workspace-4.1.3/kwin/composite.cpp:357
#15 0x00007fc48c7ec6b2 in KWin::Workspace::qt_metacall (this=0x22039f0, 
    _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, 
    _a=0x7fff94c9e770)
    at /build/buildd/kdebase-workspace-4.1.3/obj-x86_64-linux-gnu/kwin/workspace.moc:433
#16 0x00007fc48b8eb134 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#17 0x00007fc48b8e5a43 in QObject::event () from /usr/lib/libQtCore.so.4
#18 0x00007fc48a4bac3d in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#19 0x00007fc48a4c29ba in QApplication::notify () from /usr/lib/libQtGui.so.4
#20 0x00007fc48928afcb in KApplication::notify (this=0x7fff94c9f190, 
    receiver=0x2203de8, event=0x7fff94c9ee20)
    at /build/buildd/kde4libs-4.1.3/kdeui/kernel/kapplication.cpp:311
#21 0x00007fc48b8d6d61 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#22 0x00007fc48b902ab6 in ?? () from /usr/lib/libQtCore.so.4
#23 0x00007fc48b8ff1fd in ?? () from /usr/lib/libQtCore.so.4
#24 0x00007fc487d93d3b in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#25 0x00007fc487d9750d in ?? () from /usr/lib/libglib-2.0.so.0
#26 0x00007fc487d976cb in g_main_context_iteration ()
   from /usr/lib/libglib-2.0.so.0
#27 0x00007fc48b8ff15f in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#28 0x00007fc48a54ca6f in ?? () from /usr/lib/libQtGui.so.4
#29 0x00007fc48b8d5682 in QEventLoop::processEvents ()
   from /usr/lib/libQtCore.so.4
#30 0x00007fc48b8d580d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#31 0x00007fc48b8d7cbd in QCoreApplication::exec ()
   from /usr/lib/libQtCore.so.4
#32 0x00007fc48c805761 in kdemain (argc=3, argv=0x7fff94c9f638)
    at /build/buildd/kdebase-workspace-4.1.3/kwin/main.cpp:511
#33 0x00007fc48c472466 in __libc_start_main () from /lib/libc.so.6
#34 0x0000000000400659 in _start ()
#0  0x00007fc48c4fc5f0 in __nanosleep_nocancel () from /lib/libc.so.6
Comment 6 Dario Andres 2009-01-23 00:37:39 UTC
Can you try installing the latest NVIDIA drivers (180.xx series) ?
This is probably a duplicate of bug 171726 as the backtrace seems to be the same
Comment 7 L.Bryce Whitson Jr. 2009-01-23 00:52:18 UTC
I have previously attempted to do that, but they are not offered via Adept or the Hardware wizard.  When I tried to install them manually I got a lot of errors during installation and then had to uninstall them before I could get back into X Server.
Comment 8 Martin Flöser 2009-01-23 09:03:48 UTC
(In reply to comment #7)
> I have previously attempted to do that, but they are not offered via Adept or
> the Hardware wizard.  When I tried to install them manually I got a lot of
> errors during installation and then had to uninstall them before I could get
> back into X Server.
> 
The driver is AFAIK available in the intrepid-proposed repository. But about two weeks ago there was only the older 180.11 driver and I installed the 180.22 from jaunty repository. I don't know which driver is available in proposed at the moment as packages.ubuntu.com does not allow to search in proposed repository :-( and I don't recommend you to install from jaunty repository (you have to know what you are doing in that case).
Comment 9 Lubos Lunak 2009-01-23 17:05:15 UTC
This is very likely a driver problem. ~/.xsession-errors could have the abort message.
Comment 10 Thomas Kallenberg 2009-02-02 00:54:20 UTC
Hi, I have the same problem on an amd64 Debian sid/experimental box with kde4.2.0-1 pachages installed.

Here is the backtrace:

Application: KWin (kwin), signal SIGABRT
0x00007f8067d9efc0 in __nanosleep_nocancel () from /lib/libc.so.6

Thread 1 (Thread 0x7f80683f8730 (LWP 9036)):
[KCrash Handler]
#5  0x00007f8067d32ed5 in raise () from /lib/libc.so.6
#6  0x00007f8067d343f3 in abort () from /lib/libc.so.6
#7  0x00007f806470f5a5 in qt_message_output (msgType=QtFatalMsg, buf=<value optimized out>) at global/qglobal.cpp:2102
#8  0x00007f806470f6e7 in qFatal (msg=<value optimized out>) at global/qglobal.cpp:2303
#9  0x00007f805cf57b82 in KWin::DesktopGridEffect::posToDesktop (this=0x27ecb60, pos=@0x7fff70530c28) at /usr/include/qt4/QtCore/qlist.h:391
#10 0x00007f805cf5b7f8 in KWin::DesktopGridEffect::windowInputMouseEvent (this=0x27ecb60, e=0x7fff70530c10) at ../../../kwin/effects/desktopgrid.cpp:299
#11 0x00007f80680f0bfd in KWin::EffectsHandlerImpl::checkInputWindowEvent (this=<value optimized out>, e=0x7fff70531620) at ../../kwin/effects.cpp:694
#12 0x00007f80680a3441 in KWin::Workspace::workspaceEvent (this=0x26b98f0, e=0x7fff70531620) at ../../kwin/events.cpp:258
#13 0x00007f80680912a8 in KWin::Application::x11EventFilter (this=0x7fff70531a10, e=0x7fff70531620) at ../../kwin/main.cpp:359
#14 0x00007f8064f795ff in qt_x11EventFilter (ev=0x7fff70531620) at kernel/qapplication_x11.cpp:361
#15 0x00007f8064f8abfe in QApplication::x11ProcessEvent (this=0x7fff70531a10, event=0x7fff70531620) at kernel/qapplication_x11.cpp:2920
#16 0x00007f8064fb2cb4 in x11EventSourceDispatch (s=0x25bb2c0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:142
#17 0x00007f8060efc78b in IA__g_main_context_dispatch (context=0x25ba520) at /build/buildd/glib2.0-2.16.6/glib/gmain.c:2012
#18 0x00007f8060efff5d in g_main_context_iterate (context=0x25ba520, block=1, dispatch=1, self=<value optimized out>) at /build/buildd/glib2.0-2.16.6/glib/gmain.c:2645
#19 0x00007f8060f0011b in IA__g_main_context_iteration (context=0x25ba520, may_block=1) at /build/buildd/glib2.0-2.16.6/glib/gmain.c:2708
#20 0x00007f806482771f in QEventDispatcherGlib::processEvents (this=0x25b7540, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:319
#21 0x00007f8064fb247f in QGuiEventDispatcherGlib::processEvents (this=0x234c, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:198
#22 0x00007f80647fdcb2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 1884494096}) at kernel/qeventloop.cpp:143
#23 0x00007f80647fde3d in QEventLoop::exec (this=0x7fff70531950, flags={i = 1884494176}) at kernel/qeventloop.cpp:194
#24 0x00007f80648002ed in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#25 0x00007f8068094c5f in kdemain (argc=3, argv=0x7fff70531ee8) at ../../kwin/main.cpp:519
#26 0x00007f8067d1f1a6 in __libc_start_main () from /lib/libc.so.6
#27 0x0000000000400629 in _start ()

I also checked the .xsession-error file:

ASSERT failure in QList<T>::operator[]: "index out of range", file /usr/include/qt4/QtCore/qlist.h, line 391
Application::crashHandler() called with signal 6; recent crashes: 1
KCrash: Application 'kwin' crashing...
kdeinit4: preparing to launch /usr/lib/kde4/libexec/drkonqi
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x12000c5
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x12000c5
kwin(9392): Compositing self-check failed, disabling compositing.
kwin(9392): Failed to initialize compositing, compositing disabled
kwin(9392): Consult http://techbase.kde.org/Projects/KWin/4.0-release-notes#Setting_up

Driver is:  NVIDIA-Linux-x86_64-180.22-pkg2 
Kernel: 2.6.29-rc3
Comment 11 Martin Flöser 2009-02-02 08:56:32 UTC
Thomas your backtrace looks quite different to the one posted before. Given from your backtrace it seems to me that crash happend during using DesktopGrid effect. If that's right, please open a seperate bugreport including this backtrace and the steps to reproduce the crash.
Comment 12 Thomas Kallenberg 2009-02-02 10:45:06 UTC
Hi Martin!

Yes, the crash does appear on DesktopGrid. It looked very much like a driver problem with twinview so I posted here... 
Will open a new report.

Thanks, Thomas
Comment 13 Dima Ryazanov 2009-07-13 10:06:20 UTC
*** Bug 199969 has been marked as a duplicate of this bug. ***
Comment 14 Dima Ryazanov 2009-07-13 10:10:47 UTC
I got this crash when using NVidia drivers version 185.

Is there a way to report bugs to NVidia?
Comment 15 Dario Andres 2009-07-15 00:40:17 UTC
This could help:
http://www.nvnews.net/vbulletin/showthread.php?t=46678
Comment 16 Martin Flöser 2010-06-20 20:12:08 UTC
It crashes in the driver -> upstream