Bug 205404 - kwin crashed when disabling a second monitor via xrandr (Kephal::Screen::geom, Kephal::ScreenUtils::screenGeometry, KWin::Workspace::updateClientArea)
Summary: kwin crashed when disabling a second monitor via xrandr (Kephal::Screen::geom...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kephal
Classification: Miscellaneous
Component: General (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Aike J Sommer
URL:
Keywords:
: 210900 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-08-27 22:17 UTC by Christian Trippe
Modified: 2015-02-05 11:30 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Reporting Assistant (72.07 KB, image/png)
2010-03-30 16:58 UTC, Ladislav Nesnera
Details
crash report (4.85 KB, application/octet-stream)
2010-04-01 17:28 UTC, Ladislav Nesnera
Details
New crash information added by DrKonqi (6.52 KB, text/plain)
2010-10-05 17:21 UTC, gwkde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Trippe 2009-08-27 22:17:10 UTC
Application that crashed: kwin
Version of the application: 4.3.00 (KDE 4.3.0) "release 158"
KDE Version: 4.3.00 (KDE 4.3.0) "release 158"
Qt Version: 4.5.2
Operating System: Linux 2.6.27.29-0.1-default i686
Distribution: "openSUSE 11.1 (i586)"

What I was doing when the application crashed:
I have a second monitor connected to my notebook which is set up to be left of the notebook monitor. When I disabled the second monitor via 'xrand --output VGA-0 --off' kwin crashed.

 -- Backtrace:
Application: KWin (kwin), signal: Segmentation fault
[KCrash Handler]
#6  Kephal::Screen::geom (this=0x0) at /usr/src/debug/kdebase-workspace-4.3.0/libs/kephal/kephal/screens.cpp:84
#7  0xb7544e6d in Kephal::ScreenUtils::screenGeometry (id=0) at /usr/src/debug/kdebase-workspace-4.3.0/libs/kephal/kephal/screens.cpp:102
#8  0xb7ed5f27 in KWin::Workspace::updateClientArea (this=0x815e530, force=false) at /usr/src/debug/kdebase-workspace-4.3.0/kwin/geometry.cpp:97
#9  0xb7ed7599 in KWin::Workspace::updateClientArea (this=0x815e530) at /usr/src/debug/kdebase-workspace-4.3.0/kwin/geometry.cpp:238
#10 0xb7ed7601 in KWin::Workspace::desktopResized (this=0x815e530) at /usr/src/debug/kdebase-workspace-4.3.0/kwin/geometry.cpp:65
#11 0xb7e77df8 in KWin::Workspace::qt_metacall (this=0x815e530, _c=QMetaObject::InvokeMetaMethod, _id=136, _a=0xbfaacebc) at /usr/src/debug/kdebase-workspace-4.3.0/build/kwin/workspace.moc:460
#12 0xb6a5d788 in QMetaObject::activate (sender=0x8142998, from_signal_index=5, to_signal_index=5, argv=0xbfaacebc) at kernel/qobject.cpp:3113
#13 0xb6a5e412 in QMetaObject::activate (sender=0x8142998, m=0xb75694f0, local_signal_index=1, argv=0xbfaacebc) at kernel/qobject.cpp:3187
#14 0xb755c393 in Kephal::Screens::screenRemoved (this=0x8142998, _t1=0) at /usr/src/debug/kdebase-workspace-4.3.0/build/libs/kephal/libkephal/moc_screens.cxx:138
#15 0xb7545543 in Kephal::DBusScreens::screenRemovedSlot (this=0x8142998, id=0) at /usr/src/debug/kdebase-workspace-4.3.0/libs/kephal/screens/dbus/dbusscreens.cpp:123
#16 0xb755c9c1 in Kephal::DBusScreens::qt_metacall (this=0x8142998, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbfaacfdc)
    at /usr/src/debug/kdebase-workspace-4.3.0/build/libs/kephal/libkephal/moc_dbusscreens.cxx:74
#17 0xb6a5d788 in QMetaObject::activate (sender=0x812b068, from_signal_index=7, to_signal_index=7, argv=0xbfaacfdc) at kernel/qobject.cpp:3113
#18 0xb6a5e412 in QMetaObject::activate (sender=0x812b068, m=0xb7569d48, local_signal_index=2, argv=0xbfaacfdc) at kernel/qobject.cpp:3187
#19 0xb755eb43 in OrgKdeKephalScreensInterface::screenRemoved (this=0x812b068, _t1=0) at /usr/src/debug/kdebase-workspace-4.3.0/build/libs/kephal/libkephal/screens_interface.moc:125
#20 0xb755f3bf in OrgKdeKephalScreensInterface::qt_metacall (this=0x812b068, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbfaad25c)
    at /usr/src/debug/kdebase-workspace-4.3.0/build/libs/kephal/libkephal/screens_interface.moc:86
#21 0xb6b64873 in QDBusConnectionPrivate::deliverCall (this=0x8097f58, object=0x812b068, msg=@0x824ff94, metaTypes=@0x824ff98, slotIdx=7) at qdbusintegrator.cpp:891
#22 0xb6b6cab7 in QDBusCallDeliveryEvent::placeMetaCall(QObject*) () from /usr/lib/libQtDBus.so.4
#23 0xb6a58970 in QObject::event (this=0x812b068, e=0x824ff68) at kernel/qobject.cpp:1111
#24 0xb6cd37fc in QApplicationPrivate::notify_helper (this=0x8065f20, receiver=0x812b068, e=0x824ff68) at kernel/qapplication.cpp:4056
#25 0xb6cdbaee in QApplication::notify (this=0xbfaad9e4, receiver=0x812b068, e=0x824ff68) at kernel/qapplication.cpp:3603
#26 0xb79e976d in KApplication::notify (this=0xbfaad9e4, receiver=0x812b068, event=0x824ff68) at /usr/src/debug/kdelibs-4.3.0/kdeui/kernel/kapplication.cpp:302
#27 0xb7e8f5ad in KWin::Application::notify (this=0xbfaad9e4, o=0x812b068, e=0x824ff68) at /usr/src/debug/kdebase-workspace-4.3.0/kwin/main.cpp:366
#28 0xb6a4816b in QCoreApplication::notifyInternal (this=0xbfaad9e4, receiver=0x812b068, event=0x824ff68) at kernel/qcoreapplication.cpp:610
#29 0xb6a48db5 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x8050798) at kernel/qcoreapplication.h:213
#30 0xb6a48fad in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1140
#31 0xb6a73c8f in postEventSourceDispatch (s=0x8068310) at kernel/qcoreapplication.h:218
#32 0xb4d1e9c8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#33 0xb4d22083 in ?? () from /usr/lib/libglib-2.0.so.0
#34 0xb4d22241 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#35 0xb6a738d8 in QEventDispatcherGlib::processEvents (this=0x80505c0, flags={i = -1079322488}) at kernel/qeventdispatcher_glib.cpp:327
#36 0xb6d73ce5 in QGuiEventDispatcherGlib::processEvents (this=0x80505c0, flags={i = -1079322440}) at kernel/qguieventdispatcher_glib.cpp:202
#37 0xb6a4678a in QEventLoop::processEvents (this=0xbfaad930, flags={i = -1079322376}) at kernel/qeventloop.cpp:149
#38 0xb6a46bd2 in QEventLoop::exec (this=0xbfaad930, flags={i = -1079322312}) at kernel/qeventloop.cpp:201
#39 0xb6a49079 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#40 0xb6cd3677 in QApplication::exec () at kernel/qapplication.cpp:3525
#41 0xb7e91e23 in kdemain (argc=3, argv=0xbfaadbc4) at /usr/src/debug/kdebase-workspace-4.3.0/kwin/main.cpp:522
#42 0x080487c2 in main (argc=) at /usr/src/debug/kdebase-workspace-4.3.0/build/kwin/kwin_dummy.cpp:3

Reported using DrKonqi
Comment 1 Christian Trippe 2009-08-30 20:42:01 UTC
I only wanted to add, that the crash is reproducible for me (i.e. happens every time), as this information is missing in the initial description.
Comment 2 Christian Trippe 2009-09-15 19:05:49 UTC
The crash did not happen for me since the upgrade to KDE 4.3.1, while it was reproducible before.
Feel free to close the bug.
Comment 3 Martin Flöser 2009-09-15 19:34:31 UTC
seems to be fixed.
Comment 4 Dario Andres 2009-10-17 20:00:04 UTC
Mh, bug 210900 has the same backtrace but in KDE4.3.2 :-\
Comment 5 Ladislav Nesnera 2010-03-30 16:58:16 UTC
Created attachment 42384 [details]
Reporting Assistant

I have this problem with Qt: 4.6.2; KDE Development Platform: 4.4.1 (KDE 4.4.1); KWin: 4.4.1 (KDE 4.4.1) but crash report seems be useless :(
Comment 6 Dario Andres 2010-03-30 17:09:12 UTC
@Ladislav Nesnera: what is your distribution ?
Comment 7 Ladislav Nesnera 2010-03-30 20:38:45 UTC
(In reply to comment #6)
> @Ladislav Nesnera: what is your distribution ?

Linux 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12 04:38:19 UTC 2010 x86_64 GNU/Linux i.e. Ubuntu 9.10 karmic ;?)

dpkg -S /usr/bin/kwin
kde-window-manager: /usr/bin/kwin
Comment 8 Dario Andres 2010-03-31 14:23:11 UTC
@Ladislav : please install the "kdebase-workspace-dbg" package and generate a new (complete) backtrace to paste here, so the developers can check it. Thanks
Comment 9 Ladislav Nesnera 2010-04-01 17:28:43 UTC
Created attachment 42428 [details]
crash report

(In reply to comment #8)
Thanks for advice which dbg package is needed.
Comment 10 Dario Andres 2010-04-01 19:24:54 UTC
Pasting new backtrace (KDE SC 4.4.2):

[KCrash Handler]
#5  Kephal::Screen::geom (this=0x0) at ../../../../libs/kephal/kephal/screens.cpp:84
#6  0x00007f664b23b4c0 in Kephal::ScreenUtils::screenGeometry (id=0) at ../../../../libs/kephal/kephal/screens.cpp:102
#7  0x00007f664c5be5e4 in KWin::Workspace::updateClientArea (this=<value optimized out>, force=<value optimized out>) at ../../kwin/geometry.cpp:98
#8  0x00007f664c5c00fb in KWin::Workspace::desktopResized (this=0x17466b0) at ../../kwin/geometry.cpp:66
#9  0x00007f664c559d39 in KWin::Workspace::qt_metacall (this=0x17466b0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff34a2e8b0) at ./workspace.moc:522
#10 0x00007f6648124c0f in QMetaObject::activate (sender=0x1750290, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x20549e0) at kernel/qobject.cpp:3293
#11 0x00007f664b253c71 in Kephal::Screens::screenRemoved (this=0x0, _t1=0) at __/kephal/moc_screens.cxx:150
#12 0x00007f664b2540f5 in Kephal::DBusScreens::qt_metacall (this=0x1750290, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff34a2e9f0) at __/screens/dbus/moc_dbusscreens.cxx:80
#13 0x00007f6648124c0f in QMetaObject::activate (sender=0x1801090, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x20549e0) at kernel/qobject.cpp:3293
#14 0x00007f664b255ac1 in OrgKdeKephalScreensInterface::screenRemoved (this=0x0, _t1=0) at screens_interface.moc:131
#15 0x00007f664b255e77 in OrgKdeKephalScreensInterface::qt_metacall (this=0x1801090, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff34a2ee10) at screens_interface.moc:92
#16 0x00007f664844c25e in QDBusConnectionPrivate::deliverCall (this=<value optimized out>, object=<value optimized out>, msg=<value optimized out>, metaTypes=..., slotIdx=<value optimized out>)
    at qdbusintegrator.cpp:904
#17 0x00007f664845664f in QDBusCallDeliveryEvent::placeMetaCall (this=0x0, object=0x0) at qdbusintegrator_p.h:101
#18 0x00007f6648121b49 in QObject::event (this=0x1801090, e=0x1e2f960) at kernel/qobject.cpp:1248
#19 0x00007f664886012c in QApplicationPrivate::notify_helper (this=0x1663e50, receiver=0x1801090, e=0x1e2f960) at kernel/qapplication.cpp:4300
#20 0x00007f664886671b in QApplication::notify (this=0x7fff34a2f910, receiver=0x1801090, e=0x1e2f960) at kernel/qapplication.cpp:4183
#21 0x00007f664bd9f076 in KApplication::notify (this=0x7fff34a2f910, receiver=0x1801090, event=0x1e2f960) at ../../kdeui/kernel/kapplication.cpp:302
#22 0x00007f6648111e0c in QCoreApplication::notifyInternal (this=0x7fff34a2f910, receiver=0x1801090, event=0x1e2f960) at kernel/qcoreapplication.cpp:704
#23 0x00007f6648114587 in QCoreApplication::sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x164b3a0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#24 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x164b3a0) at kernel/qcoreapplication.cpp:1345
#25 0x00007f664813b7f3 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#26 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#27 0x00007f66426cbbce in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#28 0x00007f66426cf598 in ?? () from /lib/libglib-2.0.so.0
#29 0x00007f66426cf6c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#30 0x00007f664813b333 in QEventDispatcherGlib::processEvents (this=0x164abe0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#31 0x00007f664890ff0e in QGuiEventDispatcherGlib::processEvents (this=0x0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#32 0x00007f6648110732 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#33 0x00007f6648110b0c in QEventLoop::exec (this=0x7fff34a2f850, flags=) at kernel/qeventloop.cpp:201
#34 0x00007f664811484b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#35 0x00007f664c57361e in kdemain (argc=<value optimized out>, argv=<value optimized out>) at ../../kwin/main.cpp:526
#36 0x00007f664c1d3abd in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, 
    rtld_fini=<value optimized out>, stack_end=0x7fff34a2fe18) at libc-start.c:220
#37 0x0000000000400679 in _start () at ../sysdeps/x86_64/elf/start.S:113

Possible duplicates by query: bug 210900, bug 205404.
Comment 11 Martin Flöser 2010-06-20 20:21:36 UTC
*** Bug 210900 has been marked as a duplicate of this bug. ***
Comment 12 gwkde 2010-10-05 17:21:55 UTC
Created attachment 52242 [details]
New crash information added by DrKonqi

Screens::screen(id=0) returns null to ScreenUtils::screenGeometry() where it is dereferenced and dumps core.
Comment 13 Martin Flöser 2011-01-23 17:58:15 UTC
crash happens in kephal, though I have no idea if the crash is still reproducable.
Comment 14 Christoph Feck 2015-02-05 11:30:19 UTC
Thank you for your bug report or feature request.

Unfortunately, we did not have a maintainer for the "kephal" component, which is used to manage displays and monitors in the KDE Workspaces.

The "kephal" component has been superseded by "KScreen" in newer releases of the KDE Workspaces. It is compatible with all versions since 4.11, and is also used with Plasma 5. Please check with your distribution how to update to KScreen.

If this issue or feature request is still applicable to KScreen version 1.0.5 or newer, please add a comment. We will then reassign this ticket to KScreen developers.

If you are already using KScreen to manage displays or monitors, and found a different bug or need a specific feature, please create a new ticket for "KScreen" product in this bugzilla using this link: https://bugs.kde.org/enter_bug.cgi?product=KScreen

(This is an automatic message from the KDE Bug Triaging Team)