Bug 360211 - window decorations disappear randomly
Summary: window decorations disappear randomly
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.5.5
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-07 15:45 UTC by Florian Röhrer
Modified: 2016-08-31 11:54 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Röhrer 2016-03-07 15:45:10 UTC
very often if i open a window, the windows decorations of all windows disappear. Sometimes this happens if no window is open before but sometimes also if some other windows are already opened. The only action to get the decorations back is to log out from the session and log in again. 
I am using the Plasma packages from the KDE Repositorities for openSUSE Tumbleweed.
This bug is really annoying, because Plasma is simply not usable to work...It happens very often.

Reproducible: Sometimes
Comment 1 Martin Klapetek 2016-03-10 14:37:13 UTC
Thanks for the report, looks like KWin is crashing.
Comment 2 Thomas Lübking 2016-03-10 15:13:28 UTC
Please attach a backtrace ("Developer Information" from crash dialog) and the output of "qdbus org.kde.KWin /KWin supportInformation"
Comment 3 Florian Röhrer 2016-03-12 16:17:26 UTC
I don not get any crash report, the window decorations simply disappear. 
The demanded output is:

Florian@linux-vaio:~> qdbus org.kde.KWin /KWin supportInformation
KWin-Unterstützungsinformationen:
Benutzen Sie die folgenden Informationen, wenn Sie nach Unterstützung fragen, z. B. auf http://forum.kde.org.
Sie enthalten Informationen über die momentan laufende Instanz, welche Optionen verwendet werden,
welcher OpenGL-Treiber verwendet wird und welche Effekte laufen.
Bitte geben Sie die untenstehenden Informationen bei einem Pastebin-Dienst wie http://paste.kde.org ein, anstatt sie direkt in die Hilfediskussionen zu schreiben.

==========================

Version
=======
KWin version: 5.5.5
Qt Version: 5.5.1
Qt compile version: 5.5.1
XCB compile version: 1.11.1

Operation Mode: X11 only

Build Options
=============
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_INPUT: yes
HAVE_DRM: yes
HAVE_GBM: yes
HAVE_X11_XCB: yes
HAVE_EPOXY_GLX: yes
HAVE_WAYLAND_EGL: yes

X11
===
Vendor: The X.Org Foundation
Vendor Release: 11801000
Protocol Version/Revision: 11/0
SHAPE: yes; Version: 0x11
RANDR: yes; Version: 0x14
DAMAGE: yes; Version: 0x11
Composite: yes; Version: 0x4
RENDER: yes; Version: 0xb
XFIXES: yes; Version: 0x50
SYNC: yes; Version: 0x31
GLX: yes; Version: 0x0

Decoration
==========
Plugin: org.kde.kwin.aurorae
Theme: __aurorae__svg__SimpleGlass
Blur: 1
onAllDesktopsAvailable: true
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 2
decorationButtonsRight: 6, 3, 4, 5
borderSize: 3
gridUnit: 10
font: Noto Sans,9,-1,5,75,0,0,0,0,0
smallSpacing: 2
largeSpacing: 10

Options
=======
focusPolicy: 0
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
placement: 6
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
rollOverDesktops: true
focusStealingPreventionLevel: 1
legacyFullscreenSupport: false
operationTitlebarDblClick: 5000
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: 0
commandActiveTitlebar2: 30
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 30
commandInactiveTitlebar3: 2
commandWindow1: 7
commandWindow2: 8
commandWindow3: 8
commandWindowWheel: 31
commandAll1: 10
commandAll2: 3
commandAll3: 14
keyCmdAllModKey: 16777251
showGeometryTip: false
condensedTitle: false
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
hideUtilityWindowsForInactive: true
inactiveTabsSkipTaskbar: false
autogroupSimilarWindows: false
autogroupInForeground: true
compositingMode: 1
useCompositing: true
compositingInitialized: true
hiddenPreviews: 1
unredirectFullscreen: false
glSmoothScale: 2
colorCorrected: false
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glStrictBinding: true
glStrictBindingFollowsDriver: true
glCoreProfile: false
glPreferBufferSwap: 101
glPlatformInterface: 1

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 1x1
timeThreshold: 150
reActivateThreshold: 350
actionTopLeft: 0
actionTop: 0
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 0
actionLeft: 0

Screens
=======
Multi-Head: no
Active screen follows mouse:  no
Number of Screens: 1

Screen 0:
---------
Name: LVDS1
Geometry: 0,0,1920x1080
Refresh Rate: 60.0057


Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile 
OpenGL version string: 3.0 Mesa 11.1.2
OpenGL platform interface: GLX
OpenGL shading language version string: 1.30
Driver: Intel
GPU class: IvyBridge
OpenGL version: 3.0
GLSL version: 1.30
Mesa version: 11.1.2
X server version: 1.18.1
Linux kernel version: 4.4.3
Direct rendering: Requires strict binding: yes
GLSL shaders:  yes
Texture NPOT support:  yes
Virtual Machine:  no
OpenGL 2 Shaders are used
Painting blocks for vertical retrace:  no

Loaded Effects:
---------------
zoom
slidingpopups
kwin4_effect_login
wobblywindows
screenshot
magiclamp
kwin4_effect_translucency
kwin4_effect_windowaperture
desktopgrid
cubeslide
kwin4_effect_scalein
cube
sheet
kwin4_effect_fade
kwin4_effect_maximize
presentwindows
highlightwindow
kwin4_effect_dialogparent
blur
contrast
logout
startupfeedback
screenedge
kscreen

Currently Active Effects:
-------------------------
blur
contrast

Effect Settings:
----------------
zoom:
zoomFactor: 1.2
mousePointer: 0
mouseTracking: 0
enableFocusTracking: false
followFocus: true
focusDelay: 350
moveFactor: 20
targetZoom: 1

slidingpopups:
fadeInTime: 150
fadeOutTime: 250

kwin4_effect_login:

wobblywindows:
stiffness: 0.029999999999999999
drag: 0.92000000000000004
moveFactor: 0.20000000000000001
xTesselation: 20
yTesselation: 20
minVelocity: 0
maxVelocity: 1000
stopVelocity: 0.5
minAcceleration: 0
maxAcceleration: 1000
stopAcceleration: 0.5
moveEffectEnabled: true
openEffectEnabled: false
closeEffectEnabled: false
moveWobble: true
resizeWobble: true

screenshot:

magiclamp:
animationDuration: 250

kwin4_effect_translucency:

kwin4_effect_windowaperture:

desktopgrid:
zoomDuration: 300
border: 10
desktopNameAlignment: 0
layoutMode: 0
customLayoutRows: 2
usePresentWindows: true

cubeslide:
rotationDuration: 500
dontSlidePanels: false
dontSlideStickyWindows: false
usePagerLayout: false
useWindowMoving: false

kwin4_effect_scalein:

cube:
cubeOpacity: 0.80000001192092896
opacityDesktopOnly: false
displayDesktopName: true
reflection: true
rotationDuration: 500
backgroundColor: #000000
capColor: #ebe2d2
paintCaps: true
closeOnMouseRelease: true
zPosition: 2107
useForTabBox: true
invertKeys: false
invertMouse: false
capDeformationFactor: 0
useZOrdering: true
texturedCaps: true

sheet:
duration: 500

kwin4_effect_fade:

kwin4_effect_maximize:

presentwindows:
layoutMode: 0
showCaptions: true
showIcons: true
doNotCloseWindows: false
ignoreMinimized: false
accuracy: 20
fillGaps: true
fadeDuration: 150
showPanel: false
leftButtonWindow: 1
rightButtonWindow: 2
middleButtonWindow: 0
leftButtonDesktop: 2
middleButtonDesktop: 0
rightButtonDesktop: 0

highlightwindow:

kwin4_effect_dialogparent:

blur:
blurRadius: 12
cacheTexture: true

contrast:

logout:
useBlur: true

startupfeedback:
type: 1

screenedge:

kscreen:
Comment 4 Thomas Lübking 2016-03-12 16:19:51 UTC
Can you still drag windows around (Alt+LeftMouseButton anywhere on the window) in such case?

Otherwise:
> Plugin: org.kde.kwin.aurorae
I'm pretty sure this will stop if you switch to the breeze decoration (kcmshell5 kwindecoration)
Comment 5 Florian Röhrer 2016-03-12 16:23:16 UTC
I will if i can move windows the next time it happens. 

In respect to your recommendation to change the windows decoration i have to disagree. I also tried to use breeze and the same problem occurs.
Comment 6 Thomas Lübking 2016-03-12 16:28:14 UTC
(In reply to Florian Röhrer from comment #5)

> In respect to your recommendation to change the windows decoration i have to
> disagree.

Just a wild guess since it's the major cause of all crashes in the recent half year (that oc. implies we're actually dealing with a crash, thus the question for the movability)

If you can, also try to check whether a kwin_x11 process is still running after the decos disappeared and whether suspending the compositor (SHIFT+Alt+F12) brings them back.
Comment 7 Florian Röhrer 2016-03-13 11:54:02 UTC
Yesterday the system update brought also an update for kwin. Since then i can't reproduce the behavior anymore. Anyway, if it happens in the future i will give the necessary information.
Comment 8 Nikolay Naydenov 2016-08-31 08:40:48 UTC
I have the same problem and a lot more info as well as crash report. I can provide a way to reproduce the bug in 100% in 60 sec after a fresh install of the latest Kubuntu. I have no info for other distros. The bug is not related to the graphic adapter - it is reproducible on my laptop, as well on virtualbox on 100%. Let give now the info. First the bug report. It do not contains backtrace, but you can collect it for sure, as it is easily reproducible with few clicks:
Application: kwin_x11 (5.6.5)

Qt Version: 5.5.1
Frameworks Version: 5.23.0
Operating System: Linux 4.4.0-36-generic x86_64
Distribution: Ubuntu 16.04.1 LTS

-- Information about the crash:
<In detail, tell us what you were doing  when the application crashed.>

The crash can be reproduced every time.

-- Backtrace:
A useful backtrace could not be generated

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

No how to reproduce it:
1. Fresh install of Kubuntu
2. You can update the KDE from backports or not. The bug is present on plasma 5.5 as well on latest 5.6.5 (that is available in kubuntu backports). It does not mater of the version for the moment.
3. Open system settings -> application stile -> window decorations and choose plastik. Apply it. 
4. Open konsole. Just open no other action is need.
5. Close the system settings first and next konsole
6. Open again system settings and go to: system settings -> startup and shutdown -> login screen (sddm) -> background and open the file browser to choose the background image.
7. You are presented with a little delay in opening the file browser and at the moment it shows all decorations on all windows disappears. 
8. The bug does not occur or at least not easy reproducible with default breeze decorations, but plastik come by default. 

Even remove plastik or fix it. 
The bug also happens frequently (if not always) on other case:
1. Install skype
2. Login to skype and check the box to log automatically when skype opens
3. Leave the desktop session with skype running, so skype will be remembered in the session and  started on the next login
4. When you login next time, skype try to log-in to your account and require networking to work
5. In case you are with wifi, kwallet prompt will be opened to ask for password (kwallet password to unlock the wallet and extract the wifi password from the wallet)
6. At the moment you are represented with the password prompt bug happens (all the time) and all decorations disappears. Again this happens only when you choose to use the plastik decorations. It is ok with breeze

I hope this bug will be reopened. If not I will file a new one (in case I see no reaction)
Comment 9 Martin Flöser 2016-08-31 11:54:11 UTC
> Again this happens only when you choose to use the plastik decorations

This sounds a lot like bug #361236. Thanks for the very detailed steps to reproduce. On first try I was not able to reproduce on Neon dev edition, but that has a newer Qt version. Will also try on a standard Kubuntu system.