Version: (using Devel) Installed from: Compiled sources I have a laptop with dual-monitor setup using xrandr. When activating the second monitor, kwin terminates with an assertion failure: ~$ xrandr --output VGA --mode 1280x1024 ~$ ASSERT failure in QVector<T>::operator[]: "index out of range", file /usr/include/qt4/QtCore/qvector.h, line 331 This is a Thinkpad running Linux 2.6.25 (x86_64), KDE 4.0.80 (Debian experimental). The xrandr config is: ~$ xrandr Screen 0: minimum 320 x 200, current 2560 x 1024, maximum 2560 x 1024 VGA connected 1280x1024+1280+0 (normal left inverted right x axis y axis) 376mm x 301mm 1280x1024 60.0*+ 75.0 59.9 1152x864 75.0 1024x768 74.9 75.1 60.0 832x624 74.6 800x600 75.0 74.9 60.3 640x480 75.0 74.8 60.0 720x400 70.1 LVDS connected 1280x800+0+0 (normal left inverted right x axis y axis) 331mm x 207mm 1280x800 60.0*+ 60.0 50.0 1280x768 60.0 1024x768 60.0 800x600 60.3 640x480 59.9 TMDS-1 disconnected (normal left inverted right x axis y axis)
Could you please provide the backtrace from the crash caused by the assert?
> Could you please provide the backtrace from the crash caused by the assert? Can you provide some hints on how to do it with the Debian packages? I have all the -dbg packages installed, and tried running kwin under gdb. But after the assertion failure, "bt" gave no results. I think the process terminates normally from the system's point of view. I could try a breakpoint somewhere but operator[] does not seem like a good candidate.
You probably need the debug package for Qt installed, then start "gdb kwin", and type "break qt_assert_x" and "break qt_assert" into the prompt before you type "run" to start the program. Then gdb will break as soon as it hits an assertion, and you can get the backtrace by typing "bt" into the prompt.
> ------- Additional Comments From david.nolden.kdevelop art-master de > 2008-06-02 14:01 ------- You probably need the debug package for Qt > installed, then start "gdb kwin", and type "break qt_assert_x" and "break > qt_assert" into the prompt before you type "run" to start the program. Great, got it: ~$ gdb kwin GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu"... (gdb) set args --replace (gdb) break qt_assert_x Function "qt_assert_x" not defined. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (qt_assert_x) pending. (gdb) break qt_assert Function "qt_assert" not defined. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 2 (qt_assert) pending. (gdb) r Starting program: /usr/bin/kwin --replace [Thread debugging using libthread_db enabled] [New Thread 0x7fb07c39b780 (LWP 17965)] kwin(17965) KDecorationPlugins::loadPlugin: kwin : path "/usr/lib/kde4/kwin3_ozone.so" for "kwin3_ozone" [Switching to Thread 0x7fb07c39b780 (LWP 17965)] Breakpoint 1, qt_assert_x (where=0x7fb07c098c59 "QVector<T>::operator[]", what=0x7fb07c098c46 "index out of range", file=0x7fb07c099040 "/usr/include/qt4/QtCore/qvector.h", line=331) at global/qglobal.cpp:1836 1836 global/qglobal.cpp: No such file or directory. in global/qglobal.cpp (gdb) bt full #0 qt_assert_x (where=0x7fb07c098c59 "QVector<T>::operator[]", what=0x7fb07c098c46 "index out of range", file=0x7fb07c099040 "/usr/include/qt4/QtCore/qvector.h", line=331) at global/qglobal.cpp:1836 No locals. #1 0x00007fb07c06f133 in KWin::Workspace::updateClientArea (this=0x6aedb0, force=false) at /usr/include/qt4/QtCore/qvector.h:331 iS = 1 i = 1 desktopwidget = <value optimized out> nscreens = 2 new_wareas = {{p = 0x769df0, d = 0x769df0}} new_sareas = {{p = 0x769ae0, d = 0x769ae0}} screens = {{p = 0x876ac0, d = 0x876ac0}} desktopArea = {x1 = 0, y1 = 0, x2 = 1279, y2 = 1023} changed = true #2 0x00007fb07c070208 in KWin::Workspace::desktopResized (this=0x6aedb0) at /build/buildd/kdebase-workspace-4.0.80/kwin/geometry.cpp:63 desktop_geometry = {width = 1280, height = 1024} #3 0x00007fb07c01e922 in KWin::Workspace::qt_metacall (this=0x6aedb0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff844ccec0) at /build/buildd/kdebase-workspace-4.0.80/obj-x86_64-linux-gnu/kwin/workspace.moc:421 No locals. #4 0x00007fb07a5f8cd6 in QMetaObject::activate (sender=0x6ae1e0, from_signal_index=<value optimized out>, to_signal_index=27, argv=0x14b) at kernel/qobject.cpp:3010 c = <value optimized out> method = 129 currentSender = {sender = 0x6ae1e0, signal = 27, ref = 1} previousSender = (QObjectPrivate::Sender * const) 0x0 i = 0 connectionList = (const QList<QObjectPrivate::Connection> &) @0x842a58: {{p = {static shared_null = { ref = {_q_value = 3577}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0x830160}, d = 0x830160}} count = 1 signal = 27 empty_argv = {0x0} locker = {{mtx = 0x601c88, val = 6298760}} currentThreadData = (QThreadData *) 0x601c30 connectionLists = (QObjectConnectionListVector *) 0x61e3b0 #5 0x00007fb07b471c6e in QDesktopWidget::resized (this=0x7fb07c098c59, _t1=0) at .moc/release-shared/moc_qdesktopwidget.cpp:79 _a = {0x0, 0x7fff844ccebc} #6 0x00007fb07af65f6f in QApplication::x11ProcessEvent (this=0x7fff844cd870, event=0x7fff844cd4a0) at kernel/qapplication_x11.cpp:3095 e = {<QEvent> = {_vptr.QEvent = 0x7fb07b83bf70, d = 0x0, t = 14, posted = 0, spont = 0, m_accept = 1, reserved = 2580}, s = {wd = 1280, ht = 1024}, olds = {wd = 1280, ht = 800}} scr = 0 w = (class QWidget *) 0x6ae1e0 oldSize = {wd = 1280, ht = 800} d = (class QApplicationPrivate * const) 0x613150 widget = (struct QETWidget *) 0x6ae1e0 keywidget = (struct QETWidget *) 0x0 grabbed = false tablets = <value optimized out> #7 0x00007fb07af8c3c3 in x11EventSourceDispatch (s=0x616bd0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148 event = {type = 115, xany = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, window = 119}, xkey = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, window = 119, root = 119, subwindow = 85095, time = 85095, x = 131071, y = 1, x_root = 1280, y_root = 1024, state = 371, keycode = 296, same_screen = 22}, xbutton = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, window = 119, root = 119, subwindow = 85095, time = 85095, x = 131071, y = 1, x_root = 1280, y_root = 1024, state = 371, button = 296, same_screen = 22}, xmotion = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, window = 119, root = 119, subwindow = 85095, time = 85095, x = 131071, y = 1, x_root = 1280, y_root = 1024, state = 371, is_hint = 40 '(', same_screen = 22}, xcrossing = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, window = 119, root = 119, subwindow = 85095, time = 85095, x = 131071, y = 1, x_root = 1280, y_root = 1024, mode = 371, detail = 296, same_screen = 22, focus = 0, state = 8797760}, xfocus = { type = 115, serial = 20643, send_event = 0, display = 0x61ced0, window = 119, mode = 119, detail = 0}, xexpose = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, window = 119, x = 119, y = 0, width = 85095, height = 0, count = 85095}, xgraphicsexpose = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, drawable = 119, x = 119, y = 0, width = 85095, height = 0, count = 85095, major_code = 0, minor_code = 131071}, xnoexpose = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, drawable = 119, major_code = 119, minor_code = 0}, xvisibility = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, window = 119, state = 119}, xcreatewindow = { type = 115, serial = 20643, send_event = 0, display = 0x61ced0, parent = 119, window = 119, x = 85095, y = 0, width = 85095, height = 0, border_width = 131071, override_redirect = 1}, xdestroywindow = { type = 115, serial = 20643, send_event = 0, display = 0x61ced0, event = 119, window = 119}, xunmap = { type = 115, serial = 20643, send_event = 0, display = 0x61ced0, event = 119, window = 119, from_configure = 85095}, xmap = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, event = 119, window = 119, override_redirect = 85095}, xmaprequest = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, parent = 119, window = 119}, xreparent = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, event = 119, window = 119, parent = 85095, x = 85095, y = 0, override_redirect = 131071}, xconfigure = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, event = 119, window = 119, x = 85095, y = 0, width = 85095, height = 0, border_width = 131071, above = 4398046512384, override_redirect = 371}, xgravity = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, event = 119, window = 119, x = 85095, y = 0}, xresizerequest = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, window = 119, width = 119, height = 0}, xconfigurerequest = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, parent = 119, window = 119, x = 85095, y = 0, width = 85095, height = 0, border_width = 131071, above = 4398046512384, detail = 371, value_mask = 22}, xcirculate = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, event = 119, window = 119, place = 85095}, xcirculaterequest = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, parent = 119, window = 119, place = 85095}, xproperty = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, window = 119, atom = 119, time = 85095, state = 85095}, xselectionclear = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, window = 119, selection = 119, time = 85095}, xselectionrequest = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, owner = 119, requestor = 119, selection = 85095, target = 85095, property = 4295098367, time = 4398046512384}, xselection = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, requestor = 119, selection = 119, target = 85095, property = 85095, time = 4295098367}, xcolormap = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, window = 119, colormap = 119, c_new = 85095, state = 0}, xclient = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, window = 119, message_type = 119, format = 85095, data = { b = "gL\001\000\000\000\000\000��\001\000\001\000\000\000\000\005\000", s = {19559, 1, 0, 0, -1, 1, 1, 0, 1280, 0}, l = {85095, 4295098367, 4398046512384, 1271310319987, 22}}}, xmapping = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, window = 119, request = 119, first_keycode = 0, count = 85095}, xerror = {type = 115, display = 0x50a3, resourceid = 0, serial = 6409936, error_code = 119 'w', request_code = 0 '\0', minor_code = 0 '\0'}, xkeymap = {type = 115, serial = 20643, send_event = 0, display = 0x61ced0, window = 119, key_vector = "w\000\000\000\000\000\000\000gL\001\000\000\000\000\000gL\001\000\000\000\000\000��\001\000\001\000\000"}, pad = {115, 20643, 0, 6409936, 119, 119, 85095, 85095, 4295098367, 4398046512384, 1271310319987, 22, 8797760, 25, 8798000, 33, 8797904, 34, 8797808, 0, 0, 0, 0, 0}} marker = 20644 #8 0x00007fb077b8e0f2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 No symbol table info available. #9 0x00007fb077b91396 in ?? () from /usr/lib/libglib-2.0.so.0 No symbol table info available. #10 0x00007fb077b9182f in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 No symbol table info available. #11 0x00007fb07a60ddff in QEventDispatcherGlib::processEvents (this=0x60f320, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:325 d = (QEventDispatcherGlibPrivate * const) 0x612f40 canWait = true #12 0x00007fb07af8c20f in QGuiEventDispatcherGlib::processEvents (this=0x7fb07c098c59, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204 d = (QGuiEventDispatcherGlibPrivate * const) 0x612f40 returnValue = <value optimized out> #13 0x00007fb07a5e4055 in QEventLoop::processEvents (this=<value optimized out>, flags=@0x7fff844cd770) at kernel/qeventloop.cpp:149 d = (QEventLoopPrivate * const) 0x86ba10 #14 0x00007fb07a5e41ab in QEventLoop::exec (this=0x7fff844cd7b0, flags=@0x7fff844cd7c0) at kernel/qeventloop.cpp:200 d = (QEventLoopPrivate * const) 0x86ba10 #15 0x00007fb07a5e61f9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845 threadData = (QThreadData *) 0x601c30 eventLoop = {<QObject> = {_vptr.QObject = 0x7fb07a8cb7d0, static staticMetaObject = {d = { superdata = 0x0, stringdata = 0x7fb07a671d40 "QObject", data = 0x7fb07a671dc0, extradata = 0x0}}, d_ptr = 0x86ba10, static staticQtMetaObject = {d = {superdata = 0x0, stringdata = 0x7fb07a67b0a0 "Qt", data = 0x7fb07a67cd40, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x7fb07a8c4a60, stringdata = 0x7fb07a680fa0 "QEventLoop", data = 0x7fb07a680fc0, extradata = 0x0}}} returnCode = <value optimized out> #16 0x00007fb07c0390e1 in kdemain (argc=2, argv=0x7fff844cdd28) at /build/buildd/kdebase-workspace-4.0.80/kwin/main.cpp:510 aboutData = {d = 0x60c0c0} args = {d = 0x6115d0} a = {<KApplication> = {<QApplication> = {<QCoreApplication> = {<QObject> = { _vptr.QObject = 0x7fb07c2b0950, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x7fb07a671d40 "QObject", data = 0x7fb07a671dc0, extradata = 0x0}}, d_ptr = 0x613150, static staticQtMetaObject = {d = {superdata = 0x0, stringdata = 0x7fb07a67b0a0 "Qt", data = 0x7fb07a67cd40, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x7fb07a8c4a60, stringdata = 0x7fb07a681020 "QCoreApplication", data = 0x7fb07a6810c0, extradata = 0x0}}, static self = 0x7fff844cd870}, static staticMetaObject = {d = {superdata = 0x7fb07a8cb860, stringdata = 0x7fb07b47d120 "QApplication", data = 0x7fb07b47d300, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x7fb07b83b7e0, stringdata = 0x7fb07a208140 "KApplication", data = 0x7fb07a2082e0, extradata = 0x0}}, static loadedByKdeinit = false, static KApp = 0x7fff844cd870, d = 0x6b6880}, static staticMetaObject = {d = {superdata = 0x7fb07a47b560, stringdata = 0x7fb07c09be00 "KWin::Application", data = 0x7fb07c09bea0, extradata = 0x0}}, owner = {<KSelectionOwner> = {<QObject> = {_vptr.QObject = 0x7fb07c2b0850, static staticMetaObject = {d = { superdata = 0x0, stringdata = 0x7fb07a671d40 "QObject", data = 0x7fb07a671dc0, extradata = 0x0}}, d_ptr = 0x6eff00, static staticQtMetaObject = {d = {superdata = 0x0, stringdata = 0x7fb07a67b0a0 "Qt", data = 0x7fb07a67cd40, extradata = 0x0}}}, static staticMetaObject = {d = { superdata = 0x7fb07a8c4a60, stringdata = 0x7fb07a210720 "KSelectionOwner", data = 0x7fb07a2107a0, extradata = 0x0}}, d = 0x6fc420}, static staticMetaObject = {d = {superdata = 0x7fb07a47f060, stringdata = 0x7fb07c09b600 "KWin::KWinSelectionOwner", data = 0x7fb07c09b680, extradata = 0x0}}, static xa_version = 370}, static crashes = 0} weAreIndeed = {<KSessionManager> = {_vptr.KSessionManager = 0x7fb07c2b15b0, d = 0x0}, <No data fields>} helper = {<QObject> = {_vptr.QObject = 0x7fb07c2b1530, static staticMetaObject = {d = { superdata = 0x0, stringdata = 0x7fb07a671d40 "QObject", data = 0x7fb07a671dc0, extradata = 0x0}}, d_ptr = 0x875ff0, static staticQtMetaObject = {d = {superdata = 0x0, stringdata = 0x7fb07a67b0a0 "Qt", data = 0x7fb07a67cd40, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x7fb07a8c4a60, stringdata = 0x7fb07c09cf00 "KWin::SessionSaveDoneHelper", data = 0x7fb07c09cf40, extradata = 0x0}}, notifier = 0x86d130, conn = 0x881b30} appname = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 3651}, alloc = 0, size = 0, data = 0x7fb07a8cfa9a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 64}, alloc = 0, size = 0, data = 0x7fb07a8cfaba, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x8409b0, static codecForCStrings = 0x0} #17 0x00007fb07bcd01c4 in __libc_start_main () from /lib/libc.so.6 No symbol table info available. #18 0x0000000000400629 in _start () No locals. (gdb)
Created attachment 25373 [details] a backtrace of a kwin's crash I'm not sure it is exactly the same bug but I have a similar crash when running "xrandr --output TMDS-1 --right-of LVDS". My xrandr output is creen 0: minimum 320 x 200, current 3200 x 1200, maximum 3200 x 2224 VGA disconnected (normal left inverted right x axis y axis) LVDS connected 1920x1200+0+0 (normal left inverted right x axis y axis) 331mm x 207mm 1920x1200 60.0*+ 1024x768 60.0 800x600 60.3 640x480 59.9 TMDS-1 connected 1280x1024+1920+0 (normal left inverted right x axis y axis) 376mm x 301mm 1280x1024 60.0*+ 75.0 59.9 1152x864 75.0 74.8 1024x768 75.1 70.1 60.0 832x624 74.6 800x600 72.2 75.0 60.3 56.2 640x480 75.0 72.8 66.7 60.0 720x400 70.1 TV disconnected (normal left inverted right x axis y axis) The attachment shows the backtrace of the crash. The problem is that it doesn't show the exact line doing the faulting call, it seems.
Same thing here, this is really a nasty one except that kwin graciously restarts itself automatically :) xrandr output is: Screen 0: minimum 320 x 200, current 3360 x 1050, maximum 3360 x 1050 VGA-0 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 474mm x 296mm 1680x1050 59.9*+ 60.0 1280x1024 75.0 59.9 1280x960 59.9 1152x864 75.0 74.8 1024x768 75.1 70.1 60.0 832x624 74.6 800x600 72.2 75.0 60.3 56.2 640x480 75.0 72.8 66.7 60.0 720x400 70.1 LVDS connected 1680x1050+1680+0 (normal left inverted right x axis y axis) 0mm x 0mm 1680x1050 59.9*+ 1280x800 60.0 1280x768 60.0 1024x768 60.0 800x600 60.3 640x480 59.9 S-video disconnected (normal left inverted right x axis y axis) My Backtrace differs a bit (and has no Qt debug symbols, because I removed the .debug files as it takes far to long here to load that stuff all the time) #8 0xb7a961e9 in qFatal () from /home/andreas/qt-copy/lib/libQtCore.so.4 #9 0xb7a9622e in qt_assert_x () from /home/andreas/qt-copy/lib/libQtCore.so.4 #10 0xb7f67da0 in KWin::Workspace::clientArea (this=0x8104ee0, opt=KWin::ScreenArea, screen=1, desktop=1) at /home/andreas/qt-copy/include/QtCore/qvector.h:327 #11 0xb7f67fe6 in KWin::Workspace::clientArea (this=0x8104ee0, opt=KWin::ScreenArea, p=@0xbfe039b8, desktop=-1) at /home/andreas/KDE-work/4.0/kdebase/workspace/kwin/geometry.cpp:281 #12 0xb7f6868b in KWin::Workspace::clientArea (this=0x8104ee0, opt=KWin::ScreenArea, c=0x818d808) at /home/andreas/KDE-work/4.0/kdebase/workspace/kwin/geometry.cpp:286 #13 0xb7f68954 in KWin::Client::adjustedClientArea (this=0x818d808, desktopArea=@0xbfe03c14, area=@0xbfe03c14) at /home/andreas/KDE-work/4.0/kdebase/workspace/kwin/geometry.cpp:759 #14 0xb7f71d60 in KWin::Workspace::updateClientArea (this=0x8104ee0, force=false) at /home/andreas/KDE-work/4.0/kdebase/workspace/kwin/geometry.cpp:115 #15 0xb7f73179 in KWin::Workspace::updateClientArea (this=0x8104ee0) at /home/andreas/KDE-work/4.0/kdebase/workspace/kwin/geometry.cpp:213 #16 0xb7f739e4 in KWin::Workspace::desktopResized (this=0x8104ee0) at /home/andreas/KDE-work/4.0/kdebase/workspace/kwin/geometry.cpp:63 #17 0xb7f16cf0 in KWin::Workspace::qt_metacall (this=0x8104ee0, _c=QMetaObject::InvokeMetaMethod, _id=125, _a=0xbfe03d9c) at /home/andreas/KDE-work/4.0/build/kdebase/workspace/kwin/workspace.moc:421 This is with SVN from last night.
*** Bug 163404 has been marked as a duplicate of this bug. ***
*** Bug 167215 has been marked as a duplicate of this bug. ***
seems like I have this bug too when I use nvidia-settings and want to use a second monitor using twinview, I get often a crash. Sometimes it works after several tries. here is the backtrace Application: KWin (kwin), signal SIGSEGV [Thread debugging using libthread_db enabled] [New Thread 0xb572c720 (LWP 15969)] [KCrash handler] #6 KWin::Scene::Window::isOpaque (this=0x0) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/scene.cpp:386 #7 0xb7ef0933 in KWin::Scene::paintSimpleScreen (this=0x841dcb0, orig_mask=0, region= {d = 0xbf857428, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/scene.cpp:225 #8 0xb7eeebe1 in KWin::Scene::finalPaintScreen (this=0x841dcb0, mask=<value optimized out>, region= {d = 0xbf857464, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/scene.cpp:173 #9 0xb7f027dc in KWin::EffectsHandlerImpl::paintScreen (this=0x8338470, mask=0, region= {d = 0xbf8574a8, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/effects.cpp:117 #10 0xb386ad81 in KWin::ShadowEffect::paintScreen (this=0x845d7e0, mask=<value optimized out>, region= {d = 0xbf8574e8, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/effects/shadow.cpp:169 #11 0xb7f02866 in KWin::EffectsHandlerImpl::paintScreen (this=0x8338470, mask=0, region= {d = 0xbf857554, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/effects.cpp:113 #12 0xb3858d90 in KWin::PresentWindowsEffect::paintScreen (this=0x844fc98, mask=0, region= {d = 0xbf857598, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/effects/presentwindows.cpp:136 #13 0xb7f02866 in KWin::EffectsHandlerImpl::paintScreen (this=0x8338470, mask=0, region= {d = 0xbf8575d8, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/effects.cpp:113 #14 0xb7ce6876 in KWin::Effect::paintScreen (this=0x8355e80, mask=0, region= {d = 0xbf857618, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/lib/kwineffects.cpp:180 #15 0xb7f02866 in KWin::EffectsHandlerImpl::paintScreen (this=0x8338470, mask=0, region= {d = 0xbf857658, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/effects.cpp:113 #16 0xb7ce6876 in KWin::Effect::paintScreen (this=0x84293d0, mask=0, region= {d = 0xbf857698, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/lib/kwineffects.cpp:180 #17 0xb7f02866 in KWin::EffectsHandlerImpl::paintScreen (this=0x8338470, mask=0, region= {d = 0xbf85793c, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/effects.cpp:113 #18 0xb3878655 in KWin::CoverSwitchEffect::paintScreen (this=0x8460c58, mask=0, region= {d = 0xbf857988, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/effects/coverswitch.cpp:84 #19 0xb7f02866 in KWin::EffectsHandlerImpl::paintScreen (this=0x8338470, mask=0, region= {d = 0xbf857a18, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/effects.cpp:113 #20 0xb3847dd9 in KWin::BoxSwitchEffect::paintScreen (this=0x81ef2d8, mask=0, region= {d = 0xbf857a58, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/effects/boxswitch.cpp:90 #21 0xb7f02866 in KWin::EffectsHandlerImpl::paintScreen (this=0x8338470, mask=0, region= {d = 0xbf857a98, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/effects.cpp:113 #22 0xb7ce6876 in KWin::Effect::paintScreen (this=0x84092b0, mask=0, region= {d = 0xbf857ad8, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/lib/kwineffects.cpp:180 #23 0xb7f02866 in KWin::EffectsHandlerImpl::paintScreen (this=0x8338470, mask=0, region= {d = 0xbf857b18, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/effects.cpp:113 #24 0xb7ce6876 in KWin::Effect::paintScreen (this=0x8185d90, mask=0, region= {d = 0xbf857b58, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/lib/kwineffects.cpp:180 #25 0xb7f02866 in KWin::EffectsHandlerImpl::paintScreen (this=0x8338470, mask=0, region= {d = 0xbf857c18, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/effects.cpp:113 #26 0xb384c490 in KWin::DesktopGridEffect::paintScreen (this=0x84275f8, mask=0, region= {d = 0xbf857c58, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/effects/desktopgrid.cpp:131 #27 0xb7f02866 in KWin::EffectsHandlerImpl::paintScreen (this=0x8338470, mask=0, region= {d = 0xbf857c98, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/effects.cpp:113 #28 0xb7ce6876 in KWin::Effect::paintScreen (this=0x83dbe20, mask=0, region= {d = 0xbf857cd8, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/lib/kwineffects.cpp:180 #29 0xb7f02866 in KWin::EffectsHandlerImpl::paintScreen (this=0x8338470, mask=0, region= {d = 0xbf857d18, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/effects.cpp:113 #30 0xb7ce6876 in KWin::Effect::paintScreen (this=0x8447420, mask=0, region= {d = 0xbf857d58, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/lib/kwineffects.cpp:180 #31 0xb7f02866 in KWin::EffectsHandlerImpl::paintScreen (this=0x8338470, mask=0, region= {d = 0xbf857d98, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/effects.cpp:113 #32 0xb7ce6876 in KWin::Effect::paintScreen (this=0x846ddb8, mask=0, region= {d = 0xbf857dd8, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/lib/kwineffects.cpp:180 #33 0xb7f02866 in KWin::EffectsHandlerImpl::paintScreen (this=0x8338470, mask=0, region= {d = 0xbf857e28, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/effects.cpp:113 #34 0xb3886910 in KWin::TrackMouseEffect::paintScreen (this=0x841ada8, mask=0, region= {d = 0xbf857e68, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/effects/trackmouse.cpp:69 #35 0xb7f02866 in KWin::EffectsHandlerImpl::paintScreen (this=0x8338470, mask=0, region= {d = 0xbf857ea8, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/effects.cpp:113 #36 0xb7ce6876 in KWin::Effect::paintScreen (this=0x8448de8, mask=0, region= {d = 0xbf857ee8, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/lib/kwineffects.cpp:180 #37 0xb7f02866 in KWin::EffectsHandlerImpl::paintScreen (this=0x8338470, mask=0, region= {d = 0xbf857f3c, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/effects.cpp:113 #38 0xb387364d in KWin::ZoomEffect::paintScreen (this=0x840f2f0, mask=0, region= {d = 0xbf857f88, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/effects/zoom.cpp:72 #39 0xb7f02866 in KWin::EffectsHandlerImpl::paintScreen (this=0x8338470, mask=0, region= {d = 0xbf858010, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbf857fc8) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/effects.cpp:113 #40 0xb7ef01ae in KWin::Scene::paintScreen (this=0x841dcb0, mask=0xbf858094, region=0xbf858148) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/scene.cpp:131 #41 0xb7efadea in KWin::SceneOpenGL::paint (this=0x841dcb0, damage= {d = 0xbf858148, static shared_empty = {ref = {_q_value = 254}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, toplevels= {{p = {static shared_null = {ref = {_q_value = 4309}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0xbf858144}, d = 0xbf858144}}) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/scene_opengl.cpp:622 #42 0xb7eebf9c in KWin::Workspace::performCompositing (this=0x81ec930) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/composite.cpp:351 #43 0xb7e8710d in KWin::Workspace::qt_metacall (this=0x81ec930, _c=QMetaObject::InvokeMetaMethod, _id=137, _a=0xbf858218) at /tmp/buildd/kdebase-workspace-4.0.98/obj-i486-linux-gnu/kwin/workspace.moc:433 #44 0xb6b4e0c0 in QMetaObject::activate (sender=0x81ecb7c, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3010 #45 0xb6b4ee42 in QMetaObject::activate (sender=0x81ecb7c, m=0xb6c1bae4, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3080 #46 0xb6b88f37 in QTimer::timeout (this=0x81ecb7c) at .moc/release-shared/moc_qtimer.cpp:126 #47 0xb6b54aee in QTimer::timerEvent (this=0x81ecb7c, e=0xbf8586dc) at kernel/qtimer.cpp:263 #48 0xb6b48baf in QObject::event (this=0x81ecb7c, e=0xbf8586dc) at kernel/qobject.cpp:1105 #49 0xb730966c in QApplicationPrivate::notify_helper (this=0x8122540, receiver=0x81ecb7c, e=0xbf8586dc) at kernel/qapplication.cpp:3772 #50 0xb731143e in QApplication::notify (this=0xbf8589b4, receiver=0x81ecb7c, e=0xbf8586dc) at kernel/qapplication.cpp:3366 #51 0xb703763d in KApplication::notify (this=0xbf8589b4, receiver=0x81ecb7c, event=0xbf8586dc) at /tmp/buildd/kde4libs-4.0.98+svn833207/kdeui/kernel/kapplication.cpp:311 #52 0xb7e9e48d in KWin::Application::notify (this=0xbf8589b4, o=0x81ecb7c, e=0xbf8586dc) at /tmp/buildd/kdebase-workspace-4.0.98/kwin/main.cpp:369 #53 0xb6b39571 in QCoreApplication::notifyInternal (this=0xbf8589b4, receiver=0x81ecb7c, event=0xbf8586dc) at kernel/qcoreapplication.cpp:587 #54 0xb6b675e1 in QTimerInfoList::activateTimers (this=0x81256d4) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215 #55 0xb6b63c20 in timerSourceDispatch (source=0x81256a0) at kernel/qeventdispatcher_glib.cpp:166 #56 0xb671a2f1 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #57 0xb671d983 in ?? () from /usr/lib/libglib-2.0.so.0 #58 0x081242d8 in ?? () #59 0x00000000 in ?? () #0 0xb7f3f424 in __kernel_vsyscall ()
SVN commit 839192 by lunakl: Fix out-of-bounds array access when increasing screen count with randr1.2. BUG: 163045 M +3 -1 geometry.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=839192
I'm now running Debian KDE 4.1.1 and the original assertion failure is gone, but I now consistently get the crash in comment #6. I assume the above fix should already be in, so reopening.
Created attachment 27331 [details] stack trace of new crash Similar to the trace in comment #6, uploading it just to be sure.
Created attachment 27848 [details] Quick-fix patch I used to fix this crash on my system The problem is that clientArea() is being called with the new screen/desktop indexes earlier in updateClientArea() through the call to adjustedClientArea() before the screenareas array is resized at the end of the updateClientArea() method. This patch is a simple work-around which just uses QDesktopWidget::screenGeometry() if the screenareas array hasn't been updated when clientArea() is called.
I use Kubuntu packages KDE 4.1.2 and ATI Mobility Radeon X2300 with proprietary drivers. I am experiencing the same problems using KRandRTray or xrandr. [KCrash handler] #5 0x00007f04ab3b1fd5 in raise () from /lib/libc.so.6 #6 0x00007f04ab3b3b43 in abort () from /lib/libc.so.6 #7 0x00007f04aa7116b5 in qt_message_output () from /usr/lib/libQtCore.so.4 #8 0x00007f04aa7117fd in qFatal () from /usr/lib/libQtCore.so.4 #9 0x00007f04ab75c747 in ?? () from /usr/lib/libkdeinit4_kwin.so #10 0x00007f04ab75c98c in ?? () from /usr/lib/libkdeinit4_kwin.so #11 0x00007f04ab75cdc1 in ?? () from /usr/lib/libkdeinit4_kwin.so #12 0x00007f04ab75d094 in ?? () from /usr/lib/libkdeinit4_kwin.so #13 0x00007f04ab7652d2 in ?? () from /usr/lib/libkdeinit4_kwin.so #14 0x00007f04ab766638 in ?? () from /usr/lib/libkdeinit4_kwin.so #15 0x00007f04ab71778d in ?? () from /usr/lib/libkdeinit4_kwin.so #16 0x00007f04aa816134 in QMetaObject::activate () from /usr/lib/libQtCore.so.4 #17 0x00007f04a996963e in QDesktopWidget::resized () from /usr/lib/libQtGui.so.4 #18 0x00007f04a9450fab in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4 #19 0x00007f04a94782f4 in ?? () from /usr/lib/libQtGui.so.4 #20 0x00007f04a6cbfd3b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #21 0x00007f04a6cc350d in ?? () from /usr/lib/libglib-2.0.so.0 #22 0x00007f04a6cc36cb in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #23 0x00007f04aa82a15f in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4 #24 0x00007f04a9477a9f in ?? () from /usr/lib/libQtGui.so.4 #25 0x00007f04aa800682 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4 #26 0x00007f04aa80080d in QEventLoop::exec () from /usr/lib/libQtCore.so.4 #27 0x00007f04aa802cbd in QCoreApplication::exec () from /usr/lib/libQtCore.so.4 #28 0x00007f04ab730731 in kdemain () from /usr/lib/libkdeinit4_kwin.so #29 0x00007f04ab39d466 in __libc_start_main () from /lib/libc.so.6 #30 0x0000000000400659 in _start () #0 0x00007f04ab427621 in nanosleep () from /lib/libc.so.6
I also face this bug when I try to enable my second monitor. Using kde 4.1.2 on kubuntu 8.10. The crash report: [KCrash handler] #6 0xb7f2f430 in __kernel_vsyscall () #7 0xb7d20880 in raise () from /lib/tls/i686/cmov/libc.so.6 #8 0xb7d22248 in abort () from /lib/tls/i686/cmov/libc.so.6 #9 0xb78c4795 in qt_message_output () from /usr/lib/libQtCore.so.4 #10 0xb78c4872 in qFatal () from /usr/lib/libQtCore.so.4 #11 0xb78c48cc in qt_assert_x () from /usr/lib/libQtCore.so.4 #12 0xb7ebd652 in ?? () from /usr/lib/libkdeinit4_kwin.so #13 0xb7ebd936 in ?? () from /usr/lib/libkdeinit4_kwin.so #14 0xb7ebdd8b in ?? () from /usr/lib/libkdeinit4_kwin.so #15 0xb7ebe001 in ?? () from /usr/lib/libkdeinit4_kwin.so #16 0xb7ec6d4b in ?? () from /usr/lib/libkdeinit4_kwin.so #17 0xb7ec81f9 in ?? () from /usr/lib/libkdeinit4_kwin.so #18 0xb7ec8264 in ?? () from /usr/lib/libkdeinit4_kwin.so #19 0xb7e704f0 in ?? () from /usr/lib/libkdeinit4_kwin.so #20 0xb79d1a60 in QMetaObject::activate () from /usr/lib/libQtCore.so.4 #21 0xb79d27e2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4 #22 0xb7577963 in QDesktopWidget::resized () from /usr/lib/libQtGui.so.4 #23 0xb6ffe8af in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4 #24 0xb70287ea in ?? () from /usr/lib/libQtGui.so.4 #25 0xb67426f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #26 0xb6745da3 in ?? () from /usr/lib/libglib-2.0.so.0 #27 0xb6745f61 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #28 0xb79e7478 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4 #29 0xb7027ee5 in ?? () from /usr/lib/libQtGui.so.4 #30 0xb79bb52a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4 #31 0xb79bb6ea in QEventLoop::exec () from /usr/lib/libQtCore.so.4 #32 0xb79bdda5 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4 #33 0xb6f8d767 in QApplication::exec () from /usr/lib/libQtGui.so.4 #34 0xb7e8b8ce in kdemain () from /usr/lib/libkdeinit4_kwin.so #35 0x080485a2 in _start () #0 0xb7f2f430 in __kernel_vsyscall ()
Crashes here, too -kubuntu intrepid, kde 4.1.2 -ati radeon mobility with radeon driver $ xrandr --output VGA-0 --auto #works, cool! $ xrandr --output VGA-0 --above LVDS # crashes Anwendung: KWin (kwin), Signal SIGABRT (no debugging symbols found) ... (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread 0xb65426c0 (LWP 8121)] (no debugging symbols found) ... (no debugging symbols found) [KCrash handler] #6 0xb8019430 in __kernel_vsyscall () #7 0xb7dfe880 in raise () from /lib/tls/i686/cmov/libc.so.6 #8 0xb7e00248 in abort () from /lib/tls/i686/cmov/libc.so.6 #9 0xb79a2795 in qt_message_output () from /usr/lib/libQtCore.so.4 #10 0xb79a2872 in qFatal () from /usr/lib/libQtCore.so.4 #11 0xb79a28cc in qt_assert_x () from /usr/lib/libQtCore.so.4 #12 0xb7f9b652 in ?? () from /usr/lib/libkdeinit4_kwin.so #13 0xb7f9b936 in ?? () from /usr/lib/libkdeinit4_kwin.so #14 0xb7f9bd8b in ?? () from /usr/lib/libkdeinit4_kwin.so #15 0xb7f9c001 in ?? () from /usr/lib/libkdeinit4_kwin.so #16 0xb7fa4d4b in ?? () from /usr/lib/libkdeinit4_kwin.so #17 0xb7fa61f9 in ?? () from /usr/lib/libkdeinit4_kwin.so #18 0xb7fa6264 in ?? () from /usr/lib/libkdeinit4_kwin.so #19 0xb7f4e4f0 in ?? () from /usr/lib/libkdeinit4_kwin.so #20 0xb7aafa60 in QMetaObject::activate () from /usr/lib/libQtCore.so.4 #21 0xb7ab07e2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4 #22 0xb7655963 in QDesktopWidget::resized () from /usr/lib/libQtGui.so.4 #23 0xb70dc8af in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4 #24 0xb71067ea in ?? () from /usr/lib/libQtGui.so.4 #25 0xb68206f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #26 0xb6823da3 in ?? () from /usr/lib/libglib-2.0.so.0 #27 0xb6823f61 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #28 0xb7ac5478 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4 #29 0xb7105ee5 in ?? () from /usr/lib/libQtGui.so.4 #30 0xb7a9952a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4 #31 0xb7a996ea in QEventLoop::exec () from /usr/lib/libQtCore.so.4 #32 0xb7a9bda5 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4 #33 0xb706b767 in QApplication::exec () from /usr/lib/libQtGui.so.4 #34 0xb7f698ce in kdemain () from /usr/lib/libkdeinit4_kwin.so #35 0x080485a2 in _start () #0 0xb8019430 in __kernel_vsyscall ()
I can confirm this bug still exist in KDE 4.1.3 on Kubuntu 8.10 using two monitors. Hardware: - IBM T42 Laptop in a docking station with ATI 9600, using HAL for detecting X.Org setup. Proprietary fglrx driver is _not_ installed, so its the open-source ati (radeon or radeonhd) being used. - Two NEC MultiSync 2070NX connected through VGA-0 and DVI-0 $ xrandr Screen 0: minimum 320 x 200, current 3200 x 1200, maximum 3200 x 1200 VGA-0 connected 1600x1200+0+0 (normal left inverted right x axis y axis) 408mm x 306mm 1600x1200 60.0*+ 60.0 1680x1050 60.0 1600x1024 60.2 1400x1050 74.8 70.0 60.0 1280x1024 85.0 85.0 75.0 60.0 60.0 1440x900 59.9 1280x960 85.0 75.0 60.0 1360x768 59.8 1152x864 85.1 85.0 75.0 75.0 75.0 70.0 60.0 1024x768 85.0 85.0 75.1 75.0 70.1 60.0 832x624 74.6 800x600 85.0 85.1 72.2 75.0 60.3 56.2 640x480 85.0 85.0 75.0 72.8 72.8 75.0 66.7 60.0 59.9 720x400 85.0 70.1 640x400 85.1 640x350 85.1 DVI-0 connected 1600x1200+1600+0 (normal left inverted right x axis y axis) 408mm x 306mm 1600x1200 60.0*+ 60.0 1680x1050 60.0 1600x1024 60.2 1400x1050 74.8 70.0 60.0 1280x1024 85.0 85.0 75.0 60.0 60.0 1440x900 59.9 1280x960 85.0 75.0 60.0 1360x768 59.8 1152x864 85.1 85.0 75.0 75.0 75.0 70.0 60.0 1024x768 85.0 85.0 75.1 75.0 70.1 60.0 832x624 74.6 800x600 85.0 85.1 72.2 75.0 60.3 56.2 640x480 85.0 85.0 75.0 72.8 72.8 75.0 66.7 60.0 59.9 720x400 85.0 70.1 640x400 85.1 640x350 85.1 LVDS connected (normal left inverted right x axis y axis) 1400x1050 60.2 + 1280x1024 60.0 1280x960 60.0 1360x768 59.8 1152x864 60.0 1024x768 60.0 800x600 60.3 640x480 59.9 S-video disconnected (normal left inverted right x axis y axis) $ xrandr --output LVDS --off --output DVI-0 --off $ xrandr --output LVDS --off --output DVI-0 --mode 1600x1200 $ xrandr --output LVDS --off --output DVI-0 --right-of VGA-0 $ ASSERT failure in QVector<T>::operator[]: "index out of range", file /usr/include/qt4/QtCore/qvector.h, line 321 Application::crashHandler() called with signal 6; recent crashes: 1 KCrash: Application 'kwin' crashing... sock_file=/home/faune/.kde/socket-foosa/kdeinit4__0 X Error: BadWindow (invalid Window parameter) 3 Major opcode: 20 (X_GetProperty) Resource id: 0x2e0001a kwin(10963) KDecorationPlugins::loadPlugin: kwin : path "/usr/lib/kde4/kwin3_ozone.so" for "kwin3_ozone" I've also tried the workaround provided above by Robert Knight, but it does not solve the problem for me. Please let me know if a backtrace is desired, however I'm hoping what others have provided will suffice in revealing where the problem is.
Merging all XRandR-related bugs together. *** This bug has been marked as a duplicate of bug 173017 ***
Also confirmation issue still exists Kubuntu 8.10 and nvidia-settings tool. (no debugging symbols found) [KCrash handler] #5 0x00007f7c62097fd5 in raise () from /lib/libc.so.6 #6 0x00007f7c62099b43 in abort () from /lib/libc.so.6 #7 0x00007f7c613f76b5 in qt_message_output () from /usr/lib/libQtCore.so.4 #8 0x00007f7c613f77fd in qFatal () from /usr/lib/libQtCore.so.4 #9 0x00007f7c624427a7 in ?? () from /usr/lib/libkdeinit4_kwin.so #10 0x00007f7c624429ec in ?? () from /usr/lib/libkdeinit4_kwin.so #11 0x00007f7c62442e21 in ?? () from /usr/lib/libkdeinit4_kwin.so #12 0x00007f7c624430f4 in ?? () from /usr/lib/libkdeinit4_kwin.so #13 0x00007f7c6244b332 in ?? () from /usr/lib/libkdeinit4_kwin.so #14 0x00007f7c6244c698 in ?? () from /usr/lib/libkdeinit4_kwin.so #15 0x00007f7c623fd78d in ?? () from /usr/lib/libkdeinit4_kwin.so #16 0x00007f7c614fc134 in QMetaObject::activate () from /usr/lib/libQtCore.so.4 #17 0x00007f7c6064f63e in QDesktopWidget::workAreaResized () from /usr/lib/libQtGui.so.4 #18 0x00007f7c60136fab in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4 #19 0x00007f7c6015e2f4 in ?? () from /usr/lib/libQtGui.so.4 #20 0x00007f7c5d9a4d3b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #21 0x00007f7c5d9a850d in ?? () from /usr/lib/libglib-2.0.so.0 #22 0x00007f7c5d9a86cb in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #23 0x00007f7c6151015f in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4 #24 0x00007f7c6015da9f in ?? () from /usr/lib/libQtGui.so.4 #25 0x0000000000ce9790 in ?? () #26 0x00007fff6a8afd30 in ?? () #27 0x00007f7c614e6682 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4 #28 0x00007f7c614e680d in QEventLoop::exec () from /usr/lib/libQtCore.so.4 #29 0x00007f7c614e8cbd in QCoreApplication::exec () from /usr/lib/libQtCore.so.4 #30 0x00007f7c62416761 in kdemain () from /usr/lib/libkdeinit4_kwin.so #31 0x00007f7c62083466 in __libc_start_main () from /lib/libc.so.6 #32 0x0000000000400659 in _start () #0 0x00007f7c6210d5f0 in nanosleep () from /lib/libc.so.6 graphics card: nvidia gtx 280, 2 monitors.. Issue not present using enlightenment e17.