Bug 343988

Summary: "no window borders" + fullscreen windows
Product: [Plasma] Breeze Reporter: FabiB <plusfabi>
Component: window decorationAssignee: Hugo Pereira Da Costa <hugo.pereira.da.costa>
Status: RESOLVED FIXED    
Severity: crash CC: hugo.pereira.da.costa, oliver.bobo2
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description FabiB 2015-02-10 01:41:17 UTC
Application: kwin_x11 (5.2.0)

Qt Version: 5.3.2
Operating System: Linux 3.18.0-12-generic x86_64
Distribution: Ubuntu Vivid Vervet (development branch)

-- Information about the crash:
- What I was doing when the application crashed:
set your window borders to "no borders", so you get the resize handler on the bottom right of every window. 
next start a video on youtube, and set it to fullscreen. 

now the resize handler is not on the bottomright anymore, but somewhere on the screen. when you grab them with the mouse, kwin crashes

- Custom settings of the application:
window border size: no window borders

The crash can be reproduced every time.

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

Thread 4 (Thread 0x7f5a6edb7700 (LWP 3739)):
#0  0x00007f5a8de62283 in select () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f5a8bef57c1 in qt_safe_select (nfds=14, fdread=fdread@entry=0x7f5a64000a78, fdwrite=fdwrite@entry=0x7f5a64000d08, fdexcept=fdexcept@entry=0x7f5a64000f98, orig_timeout=orig_timeout@entry=0x0) at kernel/qcore_unix.cpp:83
#2  0x00007f5a8bef5fb3 in QEventDispatcherUNIX::select (this=this@entry=0x7f5a640008c0, nfds=<optimized out>, readfds=readfds@entry=0x7f5a64000a78, writefds=writefds@entry=0x7f5a64000d08, exceptfds=exceptfds@entry=0x7f5a64000f98, timeout=timeout@entry=0x0) at kernel/qeventdispatcher_unix.cpp:328
#3  0x00007f5a8bef7432 in QEventDispatcherUNIXPrivate::doSelect (this=this@entry=0x7f5a640008e0, flags=..., flags@entry=..., timeout=timeout@entry=0x0) at kernel/qeventdispatcher_unix.cpp:204
#4  0x00007f5a8bef79a5 in QEventDispatcherUNIX::processEvents (this=0x7f5a640008c0, flags=...) at kernel/qeventdispatcher_unix.cpp:615
#5  0x00007f5a8be9f6e2 in QEventLoop::exec (this=this@entry=0x7f5a6edb6dc0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#6  0x00007f5a8bc5fcb4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:511
#7  0x00007f5a8bc64d2e in QThreadPrivate::start (arg=0x10a87f0) at thread/qthread_unix.cpp:345
#8  0x00007f5a843f80a5 in start_thread (arg=0x7f5a6edb7700) at pthread_create.c:309
#9  0x00007f5a8de6a90d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f5a5e01f700 (LWP 3742)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f5a6d12e3eb in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#2  0x00007f5a6d12db67 in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#3  0x00007f5a843f80a5 in start_thread (arg=0x7f5a5e01f700) at pthread_create.c:309
#4  0x00007f5a8de6a90d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f5a5ca4f700 (LWP 3774)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f5a8a401d34 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#2  0x00007f5a8a401d79 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#3  0x00007f5a843f80a5 in start_thread (arg=0x7f5a5ca4f700) at pthread_create.c:309
#4  0x00007f5a8de6a90d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f5a8e501800 (LWP 3714)):
[KCrash Handler]
#6  0x00007f5a88d830f0 in KDecoration2::Decoration::client() const () from /usr/lib/x86_64-linux-gnu/libkdecorations2.so.5
#7  0x00007f5a6edd5170 in Breeze::SizeGrip::sendMoveResizeEvent (this=this@entry=0x1d85a40, position=...) at ../../kdecoration/breezesizegrip.cpp:222
#8  0x00007f5a6edd56b5 in Breeze::SizeGrip::mousePressEvent (this=0x1d85a40, event=0x7ffff3eeb510) at ../../kdecoration/breezesizegrip.cpp:182
#9  0x00007f5a8cbbdfe7 in QWidget::event (this=0x1d85a40, event=0x7ffff3eeb510) at kernel/qwidget.cpp:7961
#10 0x00007f5a8cb7f1ec in QApplicationPrivate::notify_helper (this=0xee7b20, receiver=0x1d85a40, e=0x7ffff3eeb510) at kernel/qapplication.cpp:3499
#11 0x00007f5a8cb84ccc in QApplication::notify (this=0x1d85a40, receiver=0x0, e=0x7ffff3eeb510) at kernel/qapplication.cpp:3066
#12 0x00007f5a8bea1f9b in QCoreApplication::notifyInternal (this=0x7ffff3eebc70, receiver=receiver@entry=0x1d85a40, event=event@entry=0x7ffff3eeb510) at kernel/qcoreapplication.cpp:935
#13 0x00007f5a8cb8345a in sendSpontaneousEvent (event=0x7ffff3eeb510, receiver=0x1d85a40) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:240
#14 QApplicationPrivate::sendMouseEvent (receiver=0x1d85a40, event=0x7ffff3eeb510, alienWidget=0x0, nativeWidget=0x1d85a40, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:2539
#15 0x00007f5a8cbdc677 in QWidgetWindow::handleMouseEvent (this=0x1bf02d0, event=0x7ffff3eeb930) at kernel/qwidgetwindow.cpp:507
#16 0x00007f5a8cbdea83 in QWidgetWindow::event (this=0x1bf02d0, event=0x7ffff3eeb930) at kernel/qwidgetwindow.cpp:179
#17 0x00007f5a8cb7f1ec in QApplicationPrivate::notify_helper (this=0xee7b20, receiver=0x1bf02d0, e=0x7ffff3eeb930) at kernel/qapplication.cpp:3499
#18 0x00007f5a8cb846c0 in QApplication::notify (this=0x7ffff3eebc70, receiver=0x1bf02d0, e=0x7ffff3eeb930) at kernel/qapplication.cpp:3282
#19 0x00007f5a8bea1f9b in QCoreApplication::notifyInternal (this=0x7ffff3eebc70, receiver=0x1bf02d0, event=0x7ffff3eeb930) at kernel/qcoreapplication.cpp:935
#20 0x00007f5a8c3ecdc2 in sendSpontaneousEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:240
#21 QGuiApplicationPrivate::processMouseEvent (e=0x1d51d20) at kernel/qguiapplication.cpp:1751
#22 0x00007f5a8c3ee655 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x1d51d20) at kernel/qguiapplication.cpp:1552
#23 0x00007f5a8c3d367f in QWindowSystemInterface::sendWindowSystemEvents (flags=..., flags@entry=...) at kernel/qwindowsysteminterface.cpp:579
#24 0x00007f5a77be9c26 in QUnixEventDispatcherQPA::processEvents (this=<optimized out>, flags=...) at eventdispatchers/qunixeventdispatcher.cpp:71
#25 0x00007f5a8be9f6e2 in QEventLoop::exec (this=this@entry=0x7ffff3eebb90, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#26 0x00007f5a8bea732c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1188
#27 0x00007f5a8c3e474c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1486
#28 0x00007f5a8cb7d7f5 in QApplication::exec () at kernel/qapplication.cpp:2744
#29 0x00007f5a8e13c8e3 in kdemain (argc=1, argv=0x7ffff3eebdc8) at ../main_x11.cpp:294
#30 0x00007f5a8dd91ec5 in __libc_start_main (main=0x400790 <main(int, char**)>, argc=1, argv=0x7ffff3eebdc8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffff3eebdb8) at libc-start.c:287
#31 0x00000000004007be in _start ()

Reported using DrKonqi
Comment 1 Hugo Pereira Da Costa 2015-02-10 12:35:36 UTC
Can reproduce (with any app)
Investigating
Comment 2 Hugo Pereira Da Costa 2015-02-10 12:49:47 UTC
Git commit ed9e0961107305342a8e8250ab4987d109fba26a by Hugo Pereira Da Costa.
Committed on 10/02/2015 at 12:48.
Pushed by hpereiradacosta into branch 'Plasma/5.2'.

explicitly delete sizeGrip in destructor
(apparently not done automatically)

M  +3    -0    kdecoration/breezedecoration.cpp

http://commits.kde.org/breeze/ed9e0961107305342a8e8250ab4987d109fba26a
Comment 3 Hugo Pereira Da Costa 2015-02-10 12:49:48 UTC
Git commit d6738d382f53b8f4604fbe3e24a453fd3f540873 by Hugo Pereira Da Costa.
Committed on 10/02/2015 at 12:48.
Pushed by hpereiradacosta into branch 'master'.

explicitly delete sizeGrip in destructor
(apparently not done automatically)

M  +3    -0    kdecoration/breezedecoration.cpp

http://commits.kde.org/breeze/d6738d382f53b8f4604fbe3e24a453fd3f540873
Comment 4 Thomas Lübking 2015-02-11 14:58:15 UTC
*** Bug 344029 has been marked as a duplicate of this bug. ***