Bug 343712 - Application menu only highlights every second item.
Summary: Application menu only highlights every second item.
Status: RESOLVED DUPLICATE of bug 338150
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Launcher (Kickoff) (show other bugs)
Version: 5.2.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL: http://nyloc.de/public/k-menu-bug.ogv
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-02 21:21 UTC by Alexander Görtz
Modified: 2015-02-10 21:05 UTC (History)
4 users (show)

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


Attachments
Without dpi settings (73.64 KB, image/png)
2015-02-03 12:47 UTC, Alexander Görtz
Details
My kwin support information (4.94 KB, text/plain)
2015-02-10 04:18 UTC, Bhushan Shah
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Görtz 2015-02-02 21:21:15 UTC
As in the video http://nyloc.de/public/k-menu-bug.ogv the menu on my system only highlights every second element if I move the mouse over. Klicks are registered for the right items even if they are not highlighted.

Reproducible: Always

Steps to Reproduce:
1.Open Menu
2.Move mouse over Favorite items

Actual Results:  
Every second item is highlighted

Expected Results:  
Every item should be highlighted if the mouse hovers over them.

Im on a high dpi display set via xrandr at startup to 150dpi.
Comment 1 Marco Martin 2015-02-03 11:34:09 UTC
can't reproduce here
maybe drivers issue?
maybe high dpi issues?
Comment 2 Alexander Görtz 2015-02-03 12:47:01 UTC
Created attachment 90885 [details]
Without dpi settings
Comment 3 Alexander Görtz 2015-02-03 12:57:09 UTC
Sorry for the noise I didn't know that I cant edit the post after I added the screenshot.
I created a clean new user and launched it without any dpi settings and the bug is not there, but the kickoff menu seems to be broken. The bottom icons are cut off.
If I add xrandr --dpi 144 to my .xprofile file for the new test user it look ok and I also don't have the described bug. Now I tried to figure out what could cause the bug for my user. I deleted the kickoffrc (both kde4 and kde5) from my main users home directory but the bug is still there. Any idea what else to try. Resetting my user completely is not really an option as I would lose a lot of settings I might not even remember ;).
Comment 4 Bhushan Shah 2015-02-05 14:31:08 UTC
I can reproduce this problem.
Comment 5 Albert Astals Cid 2015-02-09 18:43:32 UTC
I just realized i am suffering this and after realizing why it worked yesterday and not today i found out the cause.

If i'm using kwin-XRender it works fine, if i'm using kwin-opengl2 or kwin-opengl3 i have this issue.
Comment 6 Alexander Görtz 2015-02-09 21:26:28 UTC
I resetted my .config directory and can't reproduce the bug any more but at the time I was using the kwin-opengl2 backend for redering. Maybe try to create a new user to check if the error still exists.
Comment 7 Thomas Lübking 2015-02-09 22:01:52 UTC
Can you please attach the output of
   qdbus org.kde.KWin /KWin supportInformation

(Alexander for the -now- working and Albert for the -still- broken condition, Bhushan for whatever the situation is for you now ;-)
Comment 8 Albert Astals Cid 2015-02-09 22:41:53 UTC
tsdgeos@xps:~$ qdbus org.kde.KWin /KWin supportInformation
Informació d'ajuda del KWin:
S'hauria d'utilitzar la informació següent quan se sol·liciti ajuda, p. ex. en http://forum.kde.org.
Proporciona informació sobre la instància actual en execució, amb les opcions que s'utilitzen,
quin controlador OpenGL i quins efectes s'estan executant.
Si us plau, publiqueu la informació que hi ha sota aquest text introductori en un servei d'enganxament
com http://paste.kde.org en lloc d'enganxar-ho en els fils d'ajuda.

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

Version
=======
KWin version: 5.2.0
Qt Version: 5.3.2

Operation Mode: X11 only

Decoration
==========
Plugin: org.kde.breeze
Theme: 
Blur: 0
onAllDesktopsAvailable: true
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 2
decorationButtonsRight: 6, 3, 4, 5
borderSize: 2
gridUnit: 10
font: DejaVu Sans,10,-1,5,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
showDesktopIsMinimizeAll: false
rollOverDesktops: true
focusStealingPreventionLevel: 2
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: false
glStrictBindingFollowsDriver: true
glCoreProfile: true
glPreferBufferSwap: 101
glPlatformInterface: 2

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 1x1
timeThreshold: 150
reActivateThreshold: 500
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 Geometry: 0,0,1920x1080

Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile 
OpenGL version string: 3.3 (Core Profile) Mesa 10.4.2
OpenGL platform interface: EGL
OpenGL shading language version string: 3.30
Driver: Intel
GPU class: SandyBridge
OpenGL version: 3.3
GLSL version: 3.30
Mesa version: 10.4.2
X server version: 1.16.2
Linux kernel version: 3.18
Direct rendering: Requires strict binding: no
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
desktopgrid
kwin4_effect_translucency
kwin4_effect_maximize
kwin4_effect_fade
presentwindows
kwin4_effect_dialogparent
highlightwindow
blur
contrast
logout
dashboard
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:

slide:

screenshot:

minimizeanimation:

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

kwin4_effect_translucency:

kwin4_effect_maximize:

kwin4_effect_fade:

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

kwin4_effect_dialogparent:

highlightwindow:

blur:
blurRadius: 12
cacheTexture: true

contrast:

logout:
useBlur: true

dashboard:
brightness: 0.5
saturation: 0.5
blur: false

startupfeedback:
type: 1

screenedge:

kscreen:
Comment 9 Thomas Lübking 2015-02-09 22:57:35 UTC
> OpenGL vendor string: Intel Open Source Technology Center
> glStrictBinding: false
> glStrictBindingFollowsDriver: true

err... what?

@Martin
I assume we write/wrote back that setting? (and the glStrictBindingFollowsDriver reply is wrong?)

@Albert
kreadconfig --file kwinrc --group Compositing --key GLStrictBinding
if that prints "false" either
kreadconfig --file kwinrc --group Compositing --key GLStrictBinding true

or delete the key in ~/.config/kwinrc -> restart "kwin_x11 --replace &" and see what happens.

----
relevant review: https://git.reviewboard.kde.org/r/118893/
Comment 10 Albert Astals Cid 2015-02-09 23:04:26 UTC
kreadconfig --file kwinrc --group Compositing --key GLStrictBinding
returned an empty line
I understand you meant 
kwriteconfig --file kwinrc --group Compositing --key GLStrictBinding true
right?

I did that since the key wasn't present in kwinrc.

After restarting kwin_x11 i still get the same behaviour and now have
glStrictBinding: false
glStrictBindingFollowsDriver: true
Comment 11 Thomas Lübking 2015-02-09 23:12:48 UTC
(In reply to Albert Astals Cid from comment #10)

> I understand you meant 
Yes, sorry.

> After restarting kwin_x11 i still get the same behaviour and now have
> glStrictBinding: false
> glStrictBindingFollowsDriver: true

Ok, there's something totally wrong here then - can you please confirm that the key was altered in ~/.config/kwinrc (and not ~/.kde/share/config/kwinrc, ie. kwriteconfig being the SC4 variant)?
Comment 12 Albert Astals Cid 2015-02-09 23:47:17 UTC
tsdgeos@xps:~$ cat ~/.config/kwinrc  | grep -i bind
GLStrictBinding=true
tsdgeos@xps:~$ qdbus org.kde.KWin /KWin supportInformation | grep -i bind
glStrictBinding: true
glStrictBindingFollowsDriver: false
Direct rendering: Requires strict binding: no
Comment 13 Thomas Lübking 2015-02-09 23:50:16 UTC
(In reply to Albert Astals Cid from comment #12)

> glStrictBinding: true
> glStrictBindingFollowsDriver: false
> Direct rendering: Requires strict binding: no

That looks more like it.  But the problem persists (I assume?)
Comment 14 Albert Astals Cid 2015-02-10 00:32:28 UTC
Yep, problem still around.
Comment 15 Bhushan Shah 2015-02-10 04:18:43 UTC
Created attachment 91000 [details]
My kwin support information
Comment 16 Bhushan Shah 2015-02-10 04:19:47 UTC
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.2.90
Qt Version: 5.4.0

Operation Mode: X11 only

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: Oxygen-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
showDesktopIsMinimizeAll: 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: 0
unredirectFullscreen: false
glSmoothScale: 2
colorCorrected: false
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glStrictBinding: false
glStrictBindingFollowsDriver: true
glCoreProfile: true
glPreferBufferSwap: 101
glPlatformInterface: 2

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 1x1
timeThreshold: 100
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 Geometry: 0,0,1366x768

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 10.4.3
OpenGL platform interface: EGL
OpenGL shading language version string: 3.30
Driver: Intel
GPU class: Haswell
OpenGL version: 3.3
GLSL version: 3.30
Mesa version: 10.4.3
X server version: 1.16.3
Linux kernel version: 3.18.5
Direct rendering: Requires strict binding: no
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
screenshot
minimizeanimation
glide
desktopgrid
kwin4_effect_translucency
cubeslide
kwin4_effect_maximize
kwin4_effect_fade
presentwindows
highlightwindow
kwin4_effect_dialogparent
blur
contrast
logout
dashboard
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:

screenshot:

minimizeanimation:

glide:
duration: 350
effect: 0
angle: -90

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

kwin4_effect_translucency:

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

kwin4_effect_maximize:

kwin4_effect_fade:

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: 11
cacheTexture: false

contrast:

logout:
useBlur: true

dashboard:
brightness: 0.5
saturation: 0.5
blur: false

startupfeedback:
type: 1

screenedge:

kscreen:

Pasted inline too
Comment 17 Martin Flöser 2015-02-10 06:49:20 UTC
@Albert: you are using the egl platform, please try with glx (the supported one).
Comment 18 Martin Flöser 2015-02-10 06:50:01 UTC
and also better use OpenGL 2 instead of 3, Intel drivers are a little bit shaky with the newer GL.
Comment 19 Alexander Görtz 2015-02-10 08:27:09 UTC
Here is my now working config output:
https://paste.kde.org/puve20v9m
Comment 20 Thomas Lübking 2015-02-10 15:34:51 UTC
(In reply to Martin Gräßlin from comment #17)
> @Albert: you are using the egl platform, please try with glx (the supported
> one).

So is Bhushan (with the same strict binding condition btw) while Alexander is "back" on GLX - so EGL (+intel?) is very likely the key.
Comment 21 Martin Flöser 2015-02-10 16:14:21 UTC
> So is Bhushan (with the same strict binding condition btw) while Alexander
> is "back" on GLX - so EGL (+intel?) is very likely the key.

Bhushan already confirmed this morning on IRC that switching back to GLX fixes the issue. Also Vishesh once showed me this problem on his system and switching to GLX fixed the issue. I'm quite certain it's caused by that :-)

I'm considering updating the warnings for EGL that it can cause rendering glitches.
Comment 22 Albert Astals Cid 2015-02-10 18:05:42 UTC
Yes, GLX fixes it for me, tbh i didn't see any EGL warning anywhere.
Comment 23 Alexander Görtz 2015-02-10 20:18:08 UTC
Yes switching between EGL and GLX with a clean new user triggers the bug for me. No Idea why I switched to EGL at the first place, but thanks for clarification.
Comment 24 Thomas Lübking 2015-02-10 21:05:02 UTC

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