Bug 368021 - Task switcher causes screen to freeze/pause until triggered again with alt-tab
Summary: Task switcher causes screen to freeze/pause until triggered again with alt-tab
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: effects-window-management (show other bugs)
Version: 5.6.5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-30 18:29 UTC by jmk
Modified: 2016-09-03 08:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jmk 2016-08-30 18:29:11 UTC
Occasionally when I use alt-tab task switcher in KDE Plasma the new window will appear, but be frozen. Activity is not paused, only the screen.

Reproducible: Sometimes

Steps to Reproduce:
1. Alt-tab to a new window
2. Observe if the window is actually active or not (graphical response, text typed, etc)

Actual Results:  
Screen is frozen/paused, but user activity continues in the background. It is just not visible.

Expected Results:  
Switch to the window and make it active and visible without freezing.

If I alt-tab again it usually fixes it. Activity does not get suspended. E.g. if I switch to a text editor and type some things, while the screen appears frozen the text I typed will appear once I alt-tab again to fix the screen glitch. 

Sometimes the drawing of the window only partially completes (there will be some blur leftover), at other times it appears to have drawn correctly but it is frozen until I alt-tab again.

I have tried multiple different task switchers including Grid and Informatve.

If I turn off the Compositor I no longer have the problem but lose all effects. I use OpenGL 3.1, GLX as it is the only one that I could get to work with my hardware. (Intel integrated graphics chip: 00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06))
Comment 1 Martin Flöser 2016-08-30 18:53:07 UTC
Can you provide the output of: qdbus org.kde.KWin /KWin supportInformation

Are you using the xorg-intel or the xorg-modesettings driver? If the intel please give a try to the modesettings one.
Comment 2 jmk 2016-08-30 19:01:39 UTC
The output follows. You'll have to help me with the other request. How do I determine which driver I am using?

KWin Support Information:
The following information should be used when requesting support on e.g. http://forum.kde.org.
It provides information about the currently running instance, which options are used,
what OpenGL driver and which effects are running.
Please post the information provided underneath this introductory text to a paste bin service
like http://paste.kde.org instead of pasting into support threads.

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

Version
=======
KWin version: 5.6.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: 11803000
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.breeze
Theme: 
Blur: 0
onAllDesktopsAvailable: true
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 2
decorationButtonsRight: 6, 3, 4, 5
borderSize: 3
gridUnit: 12
font: Droid Sans,12,-1,5,50,0,0,0,0,0
smallSpacing: 3
largeSpacing: 12

Options
=======
focusPolicy: 0
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
placement: 4
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: 1
colorCorrected: false
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glStrictBinding: true
glStrictBindingFollowsDriver: true
glCoreProfile: true
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: VGA1
Geometry: 0,0,1920x1080
Refresh Rate: 60


Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile 
OpenGL version string: 3.3 (Core Profile) Mesa 11.2.0
OpenGL platform interface: GLX
OpenGL shading language version string: 3.30
Driver: Intel
GPU class: Haswell
OpenGL version: 3.3
GLSL version: 3.30
Mesa version: 11.2
X server version: 1.18.3
Linux kernel version: 4.4
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
slide
screenshot
minimizeanimation
kwin4_effect_scalein
kwin4_effect_translucency
flipswitch
kwin4_effect_windowaperture
diminactive
desktopgrid
coverswitch
kwin4_effect_morphingpopups
kwin4_effect_fade
kwin4_effect_maximize
presentwindows
kwin4_effect_dialogparent
highlightwindow
contrast
logout
startupfeedback
screenedge
kscreen

Currently Active Effects:
-------------------------
diminactive
contrast

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

slidingpopups:
fadeInTime: 75
fadeOutTime: 125

kwin4_effect_login:

slide:

screenshot:

minimizeanimation:

kwin4_effect_scalein:

kwin4_effect_translucency:

flipswitch:
tabBox: false
tabBoxAlternative: false
duration: 100
angle: 30
xPosition: 0.33000001311302185
yPosition: 1
windowTitle: true

kwin4_effect_windowaperture:

diminactive:
dimPanels: false
dimDesktop: false
dimKeepAbove: false
dimByGroup: true
dimStrength: 8

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

coverswitch:
animationDuration: 100
animateSwitch: true
animateStart: true
animateStop: true
reflection: true
windowTitle: true
zPosition: 955
primaryTabBox: false
secondaryTabBox: false

kwin4_effect_morphingpopups:

kwin4_effect_fade:

kwin4_effect_maximize:

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

kwin4_effect_dialogparent:

highlightwindow:

contrast:

logout:
useBlur: true

startupfeedback:
type: 1

screenedge:

kscreen:
Comment 3 jmk 2016-08-30 19:07:31 UTC
This may be what you're looking for, from my Xorg.0.log:

[     8.646] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20151010
Comment 4 Martin Flöser 2016-08-31 06:08:15 UTC
That looks like the xorg intel driver.
Comment 5 jmk 2016-08-31 19:02:04 UTC
I have switched to the modesettings driver and after a few hours I have not been able to reprodcue the problem so it seems like it is isolated to the intel driver.
Comment 6 Martin Flöser 2016-09-02 06:14:32 UTC
Glad to hear! I set to upstream. If it happens again on modesettings please reopen.
Comment 7 jmk 2016-09-02 13:36:36 UTC
Unfortunately with modesetting driver I can't use LibreOffice anymore. It crashes my Xorg session. Looks like a lot of people have this problem. I will have to revert back to the intel driver until I can figure that one out.
Comment 8 Martin Flöser 2016-09-03 08:25:51 UTC
Uh that's bad. Sorry I wasn't aware of that problem.