Bug 372931 - Plasma 5 get frozen if I grab a window and move it to any edge of the screen (on wayland)
Summary: Plasma 5 get frozen if I grab a window and move it to any edge of the screen ...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.8.4
Platform: Arch Linux Linux
: NOR grave
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-25 21:12 UTC by eduardo
Modified: 2016-11-28 16:05 UTC (History)
0 users

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 eduardo 2016-11-25 21:12:32 UTC
In wayland if I grab a window (any window, it does not matter if a native wayland application like dolphin or something using xwayland as firefox), and move it to any edge of the screen, the PC get frozen. So I have to abruptly force a restart to continue using the PC.

This on Manjaro, intel hardware, on Wayland
Comment 1 eduardo 2016-11-25 21:16:33 UTC
to reproduce the bug, I have to grab the window with the mouse and (while keeping the left button pressed) move it to any edge of the screen until the cursor touch the edge. In that moment, the pc gets frozen.
Comment 2 Martin Flöser 2016-11-26 06:22:56 UTC
Please provide the output of
qdbus org.kde.KWin /KWin supportInformation

If you are able please gdb into the hung KWin and provide a backyard of all threads. Of course I don't see this problem...
Comment 3 eduardo 2016-11-27 22:56:08 UTC
I took this while I was using wayland
https://paste.kde.org/peslqxmiq
Comment 4 Martin Flöser 2016-11-28 09:17:39 UTC
you are using the QPainter compositor? Why?
Comment 5 Martin Flöser 2016-11-28 09:18:13 UTC
Copy from paste (pastes expire):
Version
=======
KWin version: 5.8.4
Qt Version: 5.7.0
Qt compile version: 5.7.0
XCB compile version: 1.12

Operation Mode: Xwayland

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: 11804000                                                                                                                                      
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: 10
font: Noto Sans,10,-1,0,50,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: 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: 4
useCompositing: true
compositingInitialized: true
hiddenPreviews: 1
glSmoothScale: 2
colorCorrected: false
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glStrictBinding: true
glStrictBindingFollowsDriver: true
glCoreProfile: false
glPreferBufferSwap: 97
glPlatformInterface: 2
windowsBlockCompositing: true

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: B156HTN03.6 unknown
Geometry: 0,0,1920x1080
Refresh Rate: 60.052


Compositing
===========
Compositing is active
Compositing Type: QPainter

Loaded Effects:
---------------
zoom
slidingpopups
slide
minimizeanimation
desktopgrid
presentwindows
highlightwindow
screenedge
kscreen

Currently Active Effects:
-------------------------

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

slide:

minimizeanimation:

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

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:

screenedge:
Comment 6 eduardo 2016-11-28 14:37:31 UTC
The problem indeed was the compositing, I was using xrender (since on X11 opengl 2.0 & 3.1 has given me some issues, so on my case xrender is the best option there), but I switched to OpenGL 3.1 and now this specific bug is fixed.
Here is the new output, now with opengl 3.1
http://pastebin.com/kQrGD6Wf

In other words, xrender is just not compatible with wayland.
Comment 7 Martin Flöser 2016-11-28 16:05:14 UTC
Good! It shouldn't freeze nevertheless, but it kind of makes sense.

And yes Xrender (having X in it's name) doesn't work and doesn't make sense on Wayland.