Bug 346273

Summary: KWin crashes when dragging windows between desktops
Product: [Plasma] kwin Reporter: kde
Component: effects-window-managementAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description kde 2015-04-16 18:30:47 UTC
Application: kwin_x11 (5.1.1)

Qt Version: 5.3.0
Operating System: Linux 3.16.0-34-generic x86_64
Distribution: Ubuntu 14.10

-- Information about the crash:
- What I was doing when the application crashed:
Dragging an application between Desktop A and Desktop B


- Unusual behavior I noticed:
Window dragging is successful. Crash report modal pops up. System hangs momentarily.

- Configuration
Using 3d cube desktop switching animation

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin_x11), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ff27865c800 (LWP 3636))]

Thread 4 (Thread 0x7ff259f26700 (LWP 3640)):
#0  0x00007ff277fc3673 in select () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ff2760a43c1 in qt_safe_select (nfds=14, fdread=fdread@entry=0x7ff24c000a78, fdwrite=fdwrite@entry=0x7ff24c000d08, fdexcept=fdexcept@entry=0x7ff24c000f98, orig_timeout=orig_timeout@entry=0x0) at kernel/qcore_unix.cpp:83
#2  0x00007ff2760a4b93 in QEventDispatcherUNIX::select (this=this@entry=0x7ff24c0008c0, nfds=<optimized out>, readfds=readfds@entry=0x7ff24c000a78, writefds=writefds@entry=0x7ff24c000d08, exceptfds=exceptfds@entry=0x7ff24c000f98, timeout=timeout@entry=0x0) at kernel/qeventdispatcher_unix.cpp:328
#3  0x00007ff2760a6012 in QEventDispatcherUNIXPrivate::doSelect (this=this@entry=0x7ff24c0008e0, flags=..., flags@entry=..., timeout=timeout@entry=0x0) at kernel/qeventdispatcher_unix.cpp:204
#4  0x00007ff2760a6585 in QEventDispatcherUNIX::processEvents (this=0x7ff24c0008c0, flags=...) at kernel/qeventdispatcher_unix.cpp:615
#5  0x00007ff27604f042 in QEventLoop::exec (this=this@entry=0x7ff259f25dc0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#6  0x00007ff275e134a4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:511
#7  0x00007ff275e182ee in QThreadPrivate::start (arg=0xd709e0) at thread/qthread_unix.cpp:345
#8  0x00007ff26e88f0a5 in start_thread (arg=0x7ff259f26700) at pthread_create.c:309
#9  0x00007ff277fcbcfd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7ff253476700 (LWP 3641)):
#0  0x00007ff277fc3673 in select () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ff2760a43c1 in qt_safe_select (nfds=17, fdread=fdread@entry=0x7ff248000a78, fdwrite=fdwrite@entry=0x7ff248000d08, fdexcept=fdexcept@entry=0x7ff248000f98, orig_timeout=orig_timeout@entry=0x0) at kernel/qcore_unix.cpp:83
#2  0x00007ff2760a4b93 in QEventDispatcherUNIX::select (this=this@entry=0x7ff2480008c0, nfds=<optimized out>, readfds=readfds@entry=0x7ff248000a78, writefds=writefds@entry=0x7ff248000d08, exceptfds=exceptfds@entry=0x7ff248000f98, timeout=timeout@entry=0x0) at kernel/qeventdispatcher_unix.cpp:328
#3  0x00007ff2760a6012 in QEventDispatcherUNIXPrivate::doSelect (this=this@entry=0x7ff2480008e0, flags=..., flags@entry=..., timeout=timeout@entry=0x0) at kernel/qeventdispatcher_unix.cpp:204
#4  0x00007ff2760a6585 in QEventDispatcherUNIX::processEvents (this=0x7ff2480008c0, flags=...) at kernel/qeventdispatcher_unix.cpp:615
#5  0x00007ff27604f042 in QEventLoop::exec (this=this@entry=0x7ff253475dc0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#6  0x00007ff275e134a4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:511
#7  0x00007ff275e182ee in QThreadPrivate::start (arg=0x1369370) at thread/qthread_unix.cpp:345
#8  0x00007ff26e88f0a5 in start_thread (arg=0x7ff253476700) at pthread_create.c:309
#9  0x00007ff277fcbcfd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7ff2523b3700 (LWP 3643)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ff2743b5b34 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#2  0x00007ff2743b5b79 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#3  0x00007ff26e88f0a5 in start_thread (arg=0x7ff2523b3700) at pthread_create.c:309
#4  0x00007ff277fcbcfd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7ff27865c800 (LWP 3636)):
[KCrash Handler]
#5  0x00007ff277f08e37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#6  0x00007ff277f0a528 in __GI_abort () at abort.c:89
#7  0x00007ff275e06d38 in qt_message_fatal (context=..., message=...) at global/qlogging.cpp:1340
#8  QMessageLogger::fatal (this=this@entry=0x7ffdfac41ec0, msg=msg@entry=0x7ff27541ab80 "Splitting quads is allowed only in pre-paint calls!") at global/qlogging.cpp:669
#9  0x00007ff275407e17 in KWin::WindowQuad::makeSubQuad (this=this@entry=0x1e0fe30, x1=x1@entry=440.83933936288577, y1=y1@entry=33.506139502757378, x2=x2@entry=471, y2=y2@entry=58.659533281322467) at ../../libkwineffects/kwineffects.cpp:873
#10 0x00007ff277baf490 in KWin::SceneOpenGL::Window::beginRenderWindow (this=<optimized out>, mask=<optimized out>, region=..., data=...) at ../scene_opengl.cpp:1139
#11 0x00007ff277baf887 in KWin::SceneOpenGL2Window::performPaint (this=this@entry=0x1bb1570, mask=mask@entry=118, region=..., data=...) at ../scene_opengl.cpp:1295
#12 0x00007ff277bb4e92 in KWin::SceneOpenGL2::performPaintWindow (this=this@entry=0x16782b0, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../scene_opengl.cpp:966
#13 0x00007ff277bb5068 in KWin::SceneOpenGL2::finalDrawWindow (this=0x16782b0, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../scene_opengl.cpp:952
#14 0x00007ff277bc58c9 in KWin::EffectsHandlerImpl::drawWindow (this=0x1b9a3d0, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../effects.cpp:475
#15 0x00007ff275404731 in KWin::Effect::drawWindow (this=this@entry=0x154daa0, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:546
#16 0x00007ff277bc5861 in KWin::EffectsHandlerImpl::drawWindow (this=0x1b9a3d0, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../effects.cpp:472
#17 0x00007ff274fb1af5 in KWin::ContrastEffect::drawWindow (this=this@entry=0x1c53980, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../../effects/backgroundcontrast/contrast.cpp:345
#18 0x00007ff277bc5861 in KWin::EffectsHandlerImpl::drawWindow (this=0x1b9a3d0, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../effects.cpp:472
#19 0x00007ff274f2964b in KWin::BlurEffect::drawWindow (this=this@entry=0xd65fd0, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../../effects/blur/blur.cpp:415
#20 0x00007ff277bc5861 in KWin::EffectsHandlerImpl::drawWindow (this=0x1b9a3d0, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../effects.cpp:472
#21 0x00007ff275404731 in KWin::Effect::drawWindow (this=this@entry=0x10cc0c0, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:546
#22 0x00007ff277bc5861 in KWin::EffectsHandlerImpl::drawWindow (this=0x1b9a3d0, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../effects.cpp:472
#23 0x00007ff275404731 in KWin::Effect::drawWindow (this=this@entry=0x1bb1e70, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:546
#24 0x00007ff277bc5861 in KWin::EffectsHandlerImpl::drawWindow (this=0x1b9a3d0, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../effects.cpp:472
#25 0x00007ff275404731 in KWin::Effect::drawWindow (this=this@entry=0x10cb560, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:546
#26 0x00007ff277bc5861 in KWin::EffectsHandlerImpl::drawWindow (this=0x1b9a3d0, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../effects.cpp:472
#27 0x00007ff275404731 in KWin::Effect::drawWindow (this=this@entry=0x1d4bee0, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:546
#28 0x00007ff277bc5861 in KWin::EffectsHandlerImpl::drawWindow (this=0x1b9a3d0, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../effects.cpp:472
#29 0x00007ff277b9baf1 in KWin::Scene::finalPaintWindow (this=<optimized out>, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../scene.cpp:601
#30 0x00007ff277bc570a in KWin::EffectsHandlerImpl::paintWindow (this=0x1b9a3d0, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../effects.cpp:438
#31 0x00007ff2754045c1 in KWin::Effect::paintWindow (this=this@entry=0x154daa0, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:516
#32 0x00007ff277bc56b1 in KWin::EffectsHandlerImpl::paintWindow (this=0x1b9a3d0, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../effects.cpp:435
#33 0x00007ff2754045c1 in KWin::Effect::paintWindow (this=this@entry=0x1c53980, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:516
#34 0x00007ff277bc56b1 in KWin::EffectsHandlerImpl::paintWindow (this=0x1b9a3d0, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../effects.cpp:435
#35 0x00007ff2754045c1 in KWin::Effect::paintWindow (this=this@entry=0xd65fd0, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:516
#36 0x00007ff277bc56b1 in KWin::EffectsHandlerImpl::paintWindow (this=0x1b9a3d0, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../effects.cpp:435
#37 0x00007ff275412b97 in KWin::AnimationEffect::paintWindow (this=this@entry=0x10cc0c0, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../../libkwineffects/kwinanimationeffect.cpp:584
#38 0x00007ff277bc56b1 in KWin::EffectsHandlerImpl::paintWindow (this=0x1b9a3d0, w=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../effects.cpp:435
#39 0x00007ff274f3e131 in KWin::CubeSlideEffect::paintWindow (this=this@entry=0x1bb1e70, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../../effects/cube/cubeslide.cpp:347
#40 0x00007ff277bc56b1 in KWin::EffectsHandlerImpl::paintWindow (this=0x1b9a3d0, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../effects.cpp:435
#41 0x00007ff275412b97 in KWin::AnimationEffect::paintWindow (this=this@entry=0x10cb560, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../../libkwineffects/kwinanimationeffect.cpp:584
#42 0x00007ff277bc56b1 in KWin::EffectsHandlerImpl::paintWindow (this=0x1b9a3d0, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../effects.cpp:435
#43 0x00007ff274f8602d in KWin::WobblyWindowsEffect::paintWindow (this=this@entry=0x1d4bee0, w=w@entry=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../../effects/wobblywindows/wobblywindows.cpp:331
#44 0x00007ff277bc56b1 in KWin::EffectsHandlerImpl::paintWindow (this=0x1b9a3d0, w=0x1baed40, mask=mask@entry=118, region=..., data=...) at ../effects.cpp:435
#45 0x00007ff277b9fbdd in KWin::Scene::paintWindow (this=this@entry=0x16782b0, w=0x1bb1570, mask=118, region=..., quads=...) at ../scene.cpp:474
#46 0x00007ff277b9c9ff in KWin::Scene::paintGenericScreen (this=this@entry=0x16782b0, orig_mask=orig_mask@entry=112) at ../scene.cpp:240
#47 0x00007ff277babe9b in KWin::SceneOpenGL2::paintGenericScreen (this=this@entry=0x16782b0, mask=mask@entry=112, data=...) at ../scene_opengl.cpp:904
#48 0x00007ff277b9b1ad in KWin::Scene::finalPaintScreen (this=0x16782b0, mask=mask@entry=112, region=..., data=...) at ../scene.cpp:196
#49 0x00007ff277bc548f in KWin::EffectsHandlerImpl::paintScreen (this=0x1b9a3d0, mask=mask@entry=112, region=..., data=...) at ../effects.cpp:395
#50 0x00007ff274fa1587 in KWin::ScreenEdgeEffect::paintScreen (this=this@entry=0x154daa0, mask=mask@entry=112, region=..., data=...) at ../../effects/screenedge/screenedgeeffect.cpp:81
#51 0x00007ff277bc543d in KWin::EffectsHandlerImpl::paintScreen (this=0x1b9a3d0, mask=mask@entry=112, region=..., data=...) at ../effects.cpp:392
#52 0x00007ff2754044ef in KWin::Effect::paintScreen (this=this@entry=0x1c53980, mask=mask@entry=112, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:501
#53 0x00007ff277bc543d in KWin::EffectsHandlerImpl::paintScreen (this=0x1b9a3d0, mask=mask@entry=112, region=..., data=...) at ../effects.cpp:392
#54 0x00007ff2754044ef in KWin::Effect::paintScreen (this=this@entry=0xd65fd0, mask=mask@entry=112, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:501
#55 0x00007ff277bc543d in KWin::EffectsHandlerImpl::paintScreen (this=0x1b9a3d0, mask=mask@entry=112, region=..., data=...) at ../effects.cpp:392
#56 0x00007ff2754044ef in KWin::Effect::paintScreen (this=this@entry=0x10cc0c0, mask=mask@entry=112, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:501
#57 0x00007ff277bc543d in KWin::EffectsHandlerImpl::paintScreen (this=0x1b9a3d0, mask=mask@entry=112, region=..., data=...) at ../effects.cpp:392
#58 0x00007ff274f3dcfe in KWin::CubeSlideEffect::paintSlideCube (this=this@entry=0x1bb1e70, mask=mask@entry=112, region=..., data=...) at ../../effects/cube/cubeslide.cpp:170
#59 0x00007ff274f414a9 in KWin::CubeSlideEffect::paintScreen (this=this@entry=0x1bb1e70, mask=mask@entry=112, region=..., data=...) at ../../effects/cube/cubeslide.cpp:87
#60 0x00007ff277bc543d in KWin::EffectsHandlerImpl::paintScreen (this=0x1b9a3d0, mask=mask@entry=112, region=..., data=...) at ../effects.cpp:392
#61 0x00007ff2754044ef in KWin::Effect::paintScreen (this=this@entry=0x10cb560, mask=mask@entry=112, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:501
#62 0x00007ff277bc543d in KWin::EffectsHandlerImpl::paintScreen (this=0x1b9a3d0, mask=mask@entry=112, region=..., data=...) at ../effects.cpp:392
#63 0x00007ff2754044ef in KWin::Effect::paintScreen (this=this@entry=0x1d4bee0, mask=mask@entry=112, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:501
#64 0x00007ff277bc543d in KWin::EffectsHandlerImpl::paintScreen (this=0x1b9a3d0, mask=112, region=..., data=...) at ../effects.cpp:392
#65 0x00007ff277b9ac94 in KWin::Scene::paintScreen (this=this@entry=0x16782b0, mask=mask@entry=0x7ffdfac43c9c, damage=..., repaint=..., updateRegion=updateRegion@entry=0x7ffdfac43cb0, validRegion=validRegion@entry=0x7ffdfac43cc0) at ../scene.cpp:148
#66 0x00007ff277bb11a0 in KWin::SceneOpenGL::paint (this=0x16782b0, damage=..., toplevels=...) at ../scene_opengl.cpp:602
#67 0x00007ff277b9328a in KWin::Compositor::performCompositing (this=0xd6d180) at ../composite.cpp:654
#68 0x00007ff2760810e3 in QObject::event (this=0xd6d180, e=<optimized out>) at kernel/qobject.cpp:1263
#69 0x00007ff276d2316c in QApplicationPrivate::notify_helper (this=0xc86670, receiver=0xd6d180, e=0x7ffdfac44100) at kernel/qapplication.cpp:3504
#70 0x00007ff276d2841e in QApplication::notify (this=0x7ffdfac44340, receiver=0xd6d180, e=0x7ffdfac44100) at kernel/qapplication.cpp:3287
#71 0x00007ff27605181b in QCoreApplication::notifyInternal (this=0x7ffdfac44340, receiver=0xd6d180, event=event@entry=0x7ffdfac44100) at kernel/qcoreapplication.cpp:935
#72 0x00007ff2760a7d85 in sendEvent (event=0x7ffdfac44100, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:237
#73 QTimerInfoList::activateTimers (this=0xcd2228) at kernel/qtimerinfo_unix.cpp:643
#74 0x00007ff2760a5a00 in QEventDispatcherUNIX::activateTimers (this=this@entry=0xcbb640) at kernel/qeventdispatcher_unix.cpp:557
#75 0x00007ff2760a6553 in QEventDispatcherUNIX::processEvents (this=0xcbb640, flags=flags@entry=...) at kernel/qeventdispatcher_unix.cpp:619
#76 0x00007ff2623647dd in QUnixEventDispatcherQPA::processEvents (this=<optimized out>, flags=...) at eventdispatchers/qunixeventdispatcher.cpp:70
#77 0x00007ff27604f042 in QEventLoop::exec (this=this@entry=0x7ffdfac44260, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#78 0x00007ff276056acc in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1188
#79 0x00007ff27658e1dc in QGuiApplication::exec () at kernel/qguiapplication.cpp:1436
#80 0x00007ff276d21795 in QApplication::exec () at kernel/qapplication.cpp:2749
#81 0x00007ff27829a913 in kdemain (argc=3, argv=0x7ffdfac44498) at ../main_x11.cpp:294
#82 0x00007ff277ef3ec5 in __libc_start_main (main=0x4007d0 <main(int, char**)>, argc=3, argv=0x7ffdfac44498, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffdfac44488) at libc-start.c:287
#83 0x00000000004007fe in _start ()

Report to https://bugs.kde.org/

Reproducible: Always

Steps to Reproduce:
1. Enabled desktop cube animations
2. Drag a window from one desktop to another
3. ????
4. Profit
Comment 1 Thomas L├╝bking 2015-04-16 18:47:18 UTC
"abort" - happens because of debug enabled build.

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