Bug 167215 - kwin crashs when adding or removing second monitor
Summary: kwin crashs when adding or removing second monitor
Status: RESOLVED DUPLICATE of bug 163045
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-22 15:13 UTC by Florian Sievert
Modified: 2008-07-22 15:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Crash log of kwin after performing the described action. (3.30 KB, application/octet-stream)
2008-07-22 15:13 UTC, Florian Sievert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Sievert 2008-07-22 15:13:00 UTC
Version:           KDE SVN Revision 836218 (using Devel)
Installed from:    Compiled sources
OS:                Linux

I am running a second monitor on a nvidia card via twinciew.The second monitor is not always used, so I am deactivating it via the nvidia-settings tool. KWin somestimes crash during this operation. This happens not always, but nearly 90% when performing this action.


Steps to reproduce: Run a twinview desktop with two screens. Go into "nvidia-settings", select "X Server Display Configuration". Select second screen, use "Configure" and disable it. Apply. Sometimes already yet kwin is crashing. If not, use "Configure" again setting on "twinview" and apply again. Nearly always kwin will crash at that moment making the desktop unsable. KWin does not try to relaunch again. Crash log will be provided.

I can reproduce this on KDE 4.1 RC1 (fedora) and in current trunk with revision 836218. Might be irrelevant, but if I have running a "Run command..." windows, launching Kwin again, everything seems to work fine. However on the second screen sometimes the background is just black. I guess kwin has a problem with the suddenly changed dimension of the desktop.
Comment 1 Florian Sievert 2008-07-22 15:13:44 UTC
Created attachment 26338 [details]
Crash log of kwin after performing the described action.
Comment 2 Christophe Marin 2008-07-22 15:17:57 UTC
[KCrash Handler]
#6  0x00110416 in __kernel_vsyscall ()
#7  0x06ccb660 in raise () from /lib/libc.so.6
#8  0x06ccd028 in abort () from /lib/libc.so.6
#9  0x004fdedc in qt_message_output (msgType=QtFatalMsg, 
    buf=0xbffc2900 "ASSERT failure in QVector<T>::operator[]: \"index out of range\", file /home/kdedevel/kde/src/qt-copy/include/QtCore/../../src/corelib/tools/qvector.h, line 331")
    at global/qglobal.cpp:2058
#10 0x004fdf40 in qFatal (msg=0x67fbc8 "ASSERT failure in %s: \"%s\", file %s, line %d") at global/qglobal.cpp:2260
#11 0x004fdf85 in qt_assert_x (where=0x25cf80 "QVector<T>::operator[]", what=0x25cf0d "index out of range", 
    file=0x25cf30 "/home/kdedevel/kde/src/qt-copy/include/QtCore/../../src/corelib/tools/qvector.h", line=331) at global/qglobal.cpp:1836
#12 0x001dec37 in QVector<QRect>::operator[] (this=0x8cfdabc, i=1) at /home/kdedevel/kde/src/qt-copy/include/QtCore/../../src/corelib/tools/qvector.h:331
#13 0x002318c8 in KWin::Workspace::updateClientArea (this=0x8ba8f98, force=false) at /home/kdedevel/kde/src/KDE/kdebase/workspace/kwin/geometry.cpp:181
#14 0x00231c17 in KWin::Workspace::updateClientArea (this=0x8ba8f98) at /home/kdedevel/kde/src/KDE/kdebase/workspace/kwin/geometry.cpp:213
#15 0x001d6855 in KWin::Workspace::addClient (this=0x8ba8f98, c=0x8cec3b0) at /home/kdedevel/kde/src/KDE/kdebase/workspace/kwin/workspace.cpp:547
#16 0x001d6b68 in KWin::Workspace::createClient (this=0x8ba8f98, w=52430122, is_mapped=false) at /home/kdedevel/kde/src/KDE/kdebase/workspace/kwin/workspace.cpp:498
#17 0x002045f0 in KWin::Workspace::workspaceEvent (this=0x8ba8f98, e=0xbffc5090) at /home/kdedevel/kde/src/KDE/kdebase/workspace/kwin/events.cpp:367
#18 0x001f326b in KWin::Application::x11EventFilter (this=0xbffc5398, e=0xbffc5090) at /home/kdedevel/kde/src/KDE/kdebase/workspace/kwin/main.cpp:360
#19 0x00cfa946 in qt_x11EventFilter (ev=0xbffc5090) at kernel/qapplication_x11.cpp:367
#20 0x00cfd531 in QApplication::x11ProcessEvent (this=0xbffc5398, event=0xbffc5090) at kernel/qapplication_x11.cpp:3013
#21 0x00d2bd33 in x11EventSourceDispatch (s=0x8b22208, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#22 0x02e180d8 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#23 0x02e1b783 in ?? () from /lib/libglib-2.0.so.0
#24 0x02e1b941 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#25 0x00651f0a in QEventDispatcherGlib::processEvents (this=0x8b140c8, flags={i = -1073982888}) at kernel/qeventdispatcher_glib.cpp:325
#26 0x00d2b3c8 in QGuiEventDispatcherGlib::processEvents (this=0x8b140c8, flags={i = -1073982840}) at kernel/qguieventdispatcher_glib.cpp:204
#27 0x0061860c in QEventLoop::processEvents (this=0xbffc5308, flags={i = -1073982784}) at kernel/qeventloop.cpp:149
#28 0x0061884a in QEventLoop::exec (this=0xbffc5308, flags={i = -1073982704}) at kernel/qeventloop.cpp:200
#29 0x0061c919 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#30 0x00c6add8 in QApplication::exec () at kernel/qapplication.cpp:3304
#31 0x001f4b51 in kdemain (argc=3, argv=0xbffc5554) at /home/kdedevel/kde/src/KDE/kdebase/workspace/kwin/main.cpp:511
#32 0x080487b6 in main (argc=) at /home/kdedevel/kde/build/KDE/kdebase/workspace/kwin/kwin_dummy.cpp:3
Comment 3 Christophe Marin 2008-07-22 15:20:08 UTC

*** This bug has been marked as a duplicate of 163045 ***