<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>314409</bug_id>
          
          <creation_ts>2013-02-04 11:13:07 +0000</creation_ts>
          <short_desc>Moving to Other Workspace Crashed KWin</short_desc>
          <delta_ts>2013-02-19 01:00:43 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>kwin</product>
          <component>effects-window-management</component>
          <version>4.9.98 (RC3)</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://git.reviewboard.kde.org/r/108775/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>4.10.1</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>yo</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          
          
          <cf_commitlink>http://commits.kde.org/kde-workspace/63bf41ed8e4e5731d50369c82286b76dd99a8989</cf_commitlink>
          <cf_versionfixedin>4.10.1</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      <flag name="ReviewRequest"
          id="517"
          type_id="14"
          status="+"
          setter="thomas.luebking"
    />

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1337718</commentid>
    <comment_count>0</comment_count>
    <who name="">yo</who>
    <bug_when>2013-02-04 11:13:07 +0000</bug_when>
    <thetext>Application: kwin (4.9.98)
KDE Platform Version: 4.9.98
Qt Version: 4.8.4
Operating System: Linux 3.8.0-3-generic x86_64
Distribution: Ubuntu Raring Ringtail (development branch)

-- Information about the crash:
- What I was doing when the application crashed:

I was attempting to move to another workspace. By hitting the key combination for such a path, KWin crashed.

The crash can be reproduced some of the time.

-- Backtrace:
Application: KWin (kwin), signal: Segmentation fault
Using host libthread_db library &quot;/lib/x86_64-linux-gnu/libthread_db.so.1&quot;.
[Current thread is 1 (Thread 0x7ffdb81567c0 (LWP 4678))]

Thread 3 (Thread 0x7ffd9a906700 (LWP 4687)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffdb4263d87 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007ffdb4263db9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007ffdabd89f8f in start_thread (arg=0x7ffd9a906700) at pthread_create.c:311
#4  0x00007ffdb7974ded in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7ffd99560700 (LWP 4688)):
#0  0x00007ffdb796d203 in select () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ffdb2da84c3 in qt_safe_select (nfds=21, fdread=0x7ffd84000ac8, fdwrite=0x7ffd84000d60, fdexcept=0x7ffd84000ff8, orig_timeout=0x0) at kernel/qcore_unix.cpp:83
#2  0x00007ffdb2dacf59 in QEventDispatcherUNIXPrivate::doSelect (this=this@entry=0x7ffd84000910, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:223
#3  0x00007ffdb2dada22 in QEventDispatcherUNIX::processEvents (this=0x7ffd840008f0, flags=...) at kernel/qeventdispatcher_unix.cpp:937
#4  0x00007ffdb2d7b3ff in QEventLoop::processEvents (this=this@entry=0x7ffd9955fd90, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007ffdb2d7b688 in QEventLoop::exec (this=0x7ffd9955fd90, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007ffdb2c7cc00 in QThread::exec (this=&lt;optimized out&gt;) at thread/qthread.cpp:542
#7  0x00007ffdb2d5bb2f in QInotifyFileSystemWatcherEngine::run (this=0x1dad4e0) at io/qfilesystemwatcher_inotify.cpp:256
#8  0x00007ffdb2c7fbdc in QThreadPrivate::start (arg=0x1dad4e0) at thread/qthread_unix.cpp:338
#9  0x00007ffdabd89f8f in start_thread (arg=0x7ffd99560700) at pthread_create.c:311
#10 0x00007ffdb7974ded in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7ffdb81567c0 (LWP 4678)):
[KCrash Handler]
#6  0x00007ffd89de525e in KWin::PresentWindowsEffect::calculateWindowTransformationsClosest (this=this@entry=0x2374a10, windowlist=..., screen=1, motionManager=...) at ../../../kwin/effects/presentwindows/presentwindows.cpp:1000
#7  0x00007ffd89de5e51 in KWin::PresentWindowsEffect::calculateWindowTransformations (this=0x2374a10, windowlist=..., screen=&lt;optimized out&gt;, motionManager=..., external=&lt;optimized out&gt;) at ../../../kwin/effects/presentwindows/presentwindows.cpp:966
#8  0x00007ffd89deb822 in KWin::PresentWindowsEffectProxy::calculateWindowTransformations (this=0x2374a20, windows=..., screen=&lt;optimized out&gt;, manager=...) at ../../../kwin/effects/presentwindows/presentwindows_proxy.cpp:39
#9  0x00007ffd89dfed6d in KWin::DesktopGridEffect::setup (this=this@entry=0x251b4c0) at ../../../kwin/effects/desktopgrid/desktopgrid.cpp:1109
#10 0x00007ffd89dff615 in setActive (active=true, this=0x251b4c0) at ../../../kwin/effects/desktopgrid/desktopgrid.cpp:1044
#11 KWin::DesktopGridEffect::setActive (this=0x251b4c0, active=&lt;optimized out&gt;) at ../../../kwin/effects/desktopgrid/desktopgrid.cpp:1033
#12 0x00007ffdb2d920af in QMetaObject::activate (sender=0x266b740, m=&lt;optimized out&gt;, local_signal_index=&lt;optimized out&gt;, argv=0x7fff337a68d0) at kernel/qobject.cpp:3539
#13 0x00007ffdb211cb52 in QAction::triggered (this=this@entry=0x266b740, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#14 0x00007ffdb211cd40 in QAction::activate (this=0x266b740, event=&lt;optimized out&gt;) at kernel/qaction.cpp:1257
#15 0x00007ffdb74a09f1 in trigger (this=0x266b740) at /usr/include/qt4/QtGui/qaction.h:218
#16 KGlobalAccelPrivate::_k_invokeAction (this=0x1ef1080, componentUnique=..., actionUnique=..., timestamp=13659758) at ../../kdeui/shortcuts/kglobalaccel.cpp:449
#17 0x00007ffdb2d920af in QMetaObject::activate (sender=0x1ebf240, m=&lt;optimized out&gt;, local_signal_index=&lt;optimized out&gt;, argv=0x7fff337a6ae0) at kernel/qobject.cpp:3539
#18 0x00007ffdb75a0329 in OrgKdeKglobalaccelComponentInterface::globalShortcutPressed (this=&lt;optimized out&gt;, _t1=..., _t2=..., _t3=13659758) at kglobalaccel_component_interface.moc:164
#19 0x00007ffdb75a0794 in qt_static_metacall (_a=&lt;optimized out&gt;, _id=&lt;optimized out&gt;, _o=&lt;optimized out&gt;, _c=&lt;optimized out&gt;) at kglobalaccel_component_interface.moc:75
#20 OrgKdeKglobalaccelComponentInterface::qt_static_metacall (_o=0x1ebf240, _c=&lt;optimized out&gt;, _id=&lt;optimized out&gt;, _a=0x7fff337a6e30) at kglobalaccel_component_interface.moc:69
#21 0x00007ffdb75a0dff in OrgKdeKglobalaccelComponentInterface::qt_metacall (this=0x1ebf240, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff337a6e30) at kglobalaccel_component_interface.moc:130
#22 0x00007ffdb30fe123 in QDBusConnectionPrivate::deliverCall (this=0x1d38f50, object=0x1ebf240, msg=..., metaTypes=..., slotIdx=5) at qdbusintegrator.cpp:951
#23 0x00007ffdb2d9158e in QObject::event (this=0x1ebf240, e=&lt;optimized out&gt;) at kernel/qobject.cpp:1194
#24 0x00007ffdb2122fbc in QApplicationPrivate::notify_helper (this=this@entry=0x1d3fd90, receiver=receiver@entry=0x1ebf240, e=e@entry=0x262e590) at kernel/qapplication.cpp:4567
#25 0x00007ffdb212742b in QApplication::notify (this=0x7fff337a7b30, receiver=0x1ebf240, e=0x262e590) at kernel/qapplication.cpp:4428
#26 0x00007ffdb745c7c6 in KApplication::notify (this=0x7fff337a7b30, receiver=0x1ebf240, event=0x262e590) at ../../kdeui/kernel/kapplication.cpp:311
#27 0x00007ffdb2d7c6ae in QCoreApplication::notifyInternal (this=0x7fff337a7b30, receiver=receiver@entry=0x1ebf240, event=event@entry=0x262e590) at kernel/qcoreapplication.cpp:946
#28 0x00007ffdb2d80531 in sendEvent (event=0x262e590, receiver=0x1ebf240) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#29 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1cca1f0) at kernel/qcoreapplication.cpp:1570
#30 0x00007ffdb21c8a8c in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#31 QEventDispatcherX11::processEvents (this=0x1ccbad0, flags=...) at kernel/qeventdispatcher_x11.cpp:75
#32 0x00007ffdb2d7b3ff in QEventLoop::processEvents (this=this@entry=0x7fff337a7840, flags=...) at kernel/qeventloop.cpp:149
#33 0x00007ffdb2d7b688 in QEventLoop::exec (this=0x7fff337a7840, flags=...) at kernel/qeventloop.cpp:204
#34 0x00007ffdb2d80848 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#35 0x00007ffdb7caadca in kdemain (argc=3, argv=0x7fff337a7c78) at ../../kwin/main.cpp:537
#36 0x00007ffdb789cea5 in __libc_start_main (main=0x4006d0 &lt;main(int, char**)&gt;, argc=3, ubp_av=0x7fff337a7c78, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7fff337a7c68) at libc-start.c:260
#37 0x0000000000400701 in _start ()

Reported using DrKonqi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1338102</commentid>
    <comment_count>1</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2013-02-05 18:32:42 +0000</bug_when>
    <thetext>Git commit e4ef2f072336a59039b1372266e4a5ab05d29cc0 by Thomas Lübking.
Committed on 04/02/2013 at 16:46.
Pushed by luebking into branch &apos;master&apos;.

react on screenCountChanged to re-validate lists
REVIEW: 108775

M  +29   -13   kwin/effects/presentwindows/presentwindows.cpp
M  +1    -0    kwin/effects/presentwindows/presentwindows.h

http://commits.kde.org/kde-workspace/e4ef2f072336a59039b1372266e4a5ab05d29cc0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1340313</commentid>
    <comment_count>2</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2013-02-11 10:29:33 +0000</bug_when>
    <thetext>i actually considered to backport this for 4.10.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1341156</commentid>
    <comment_count>3</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2013-02-12 21:29:37 +0000</bug_when>
    <thetext>Git commit 63bf41ed8e4e5731d50369c82286b76dd99a8989 by Thomas Lübking.
Committed on 04/02/2013 at 16:46.
Pushed by luebking into branch &apos;KDE/4.10&apos;.

react on screenCountChanged to re-validate lists

includes fixing commit 1ac2f407c67c5740fb79cb11b610814a056b3268
REVIEW: 108775
FIXED-IN: 4.10.1
(cherry picked from commit e4ef2f072336a59039b1372266e4a5ab05d29cc0)

M  +28   -13   kwin/effects/presentwindows/presentwindows.cpp
M  +1    -0    kwin/effects/presentwindows/presentwindows.h

http://commits.kde.org/kde-workspace/63bf41ed8e4e5731d50369c82286b76dd99a8989</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>