Bug 320476 - KSnapshot captures region boundaries when compositing is enabled.
Summary: KSnapshot captures region boundaries when compositing is enabled.
Status: RESOLVED UPSTREAM
Alias: None
Product: ksnapshot
Classification: Applications
Component: general (show other bugs)
Version: 0.8.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Richard Moore
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-30 11:53 UTC by valdikss
Modified: 2013-06-03 14:58 UTC (History)
2 users (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 valdikss 2013-05-30 11:53:26 UTC
KSnapshot started to capture rectangular region boundaries and size toolbox.
http://i.imgur.com/MPaFYDS.png
This happens since some update. Maybe that was KDE 4.10.3 update, maybe Intel xf86-video-intel update.
This happens only with compositing turned on and set to OpenGL mode. Everything works fine with XRender compositing or without compositing.

Reproducible: Always

Steps to Reproduce:
1. Run KSnapshot and make sure you have OpenGL compositing enabled
2. Set capture mode to rectangular region and take a snapshot
Actual Results:  
Region boundaries are included in the snapshot

Expected Results:  
No region boundaries are in snapshot.
Comment 1 Thomas Lübking 2013-06-01 14:12:13 UTC
Does it also happen with GL compositing and the native graphicssystem?
Comment 2 valdikss 2013-06-01 14:13:05 UTC
(In reply to comment #1)
> Does it also happen with GL compositing and the native graphicssystem?

Yes, this happens with both native and raster with GL.
Comment 3 Martin Flöser 2013-06-01 14:42:16 UTC
please provide output of:
qdbus org.kde.kwin /KWin supportInformation

And I bet on Catalyst
Comment 4 valdikss 2013-06-01 14:43:25 UTC
No, I'm on Intel HD3000.

valdikss@valaptop:~ % qdbus org.kde.kwin /KWin supportInformation                                         [ 5:42PM]
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: 4.10.3
KDE SC version (runtime): 4.10.3
KDE SC version (compile): 4.10.3
Qt Version: 4.8.4

Options
=======
focusPolicy: 0
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
activeMouseScreen: false
placement: 4
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
showDesktopIsMinimizeAll: false
rollOverDesktops: true
focusStealingPreventionLevel: 1
legacyFullscreenSupport: false
operationTitlebarDblClick: 
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
electricBorders: false
electricBorderDelay: 150
electricBorderCooldown: 350
electricBorderPushbackPixels: 1
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
glVSync: true
colorCorrected: false
xrenderSmoothScale: false
maxFpsInterval: 17
refreshRate: 0
vBlankTime: 6144
glDirect: true
glStrictBinding: false
glStrictBindingFollowsDriver: true
glLegacy: false

Screens
=======
Multi-Head: no
Number of Screens: 1
Screen 0 Geometry: 0,0,1366x768

Compositing
===========
Qt Graphics System: raster
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.0 Mesa 9.1.3
Driver: Intel
GPU class: SandyBridge
OpenGL version: 3.0
Mesa version: 9.1.3
X server version: 1.14.1
Linux kernel version: 3.9.4
Direct rendering: yes
Requires strict binding: no
GLSL shaders:  yes
Texture NPOT support:  yes
Virtual Machine:  no
OpenGL 2 Shaders are used

Loaded Effects:
---------------
kwin4_effect_login
kwin4_effect_slidingpopups
kwin4_effect_slide
kwin4_effect_magiclamp
kwin4_effect_fade
kwin4_effect_dialogparent
kwin4_effect_highlightwindow
kwin4_effect_logout
kwin4_effect_dashboard
kwin4_effect_outline
kwin4_effect_startupfeedback

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

Effect Settings:
----------------
kwin4_effect_login:
fadeToBlack: false

kwin4_effect_slidingpopups:
fadeInTime: 250
fadeOutTime: 250

kwin4_effect_slide:

kwin4_effect_magiclamp:
animationDuration: 150

kwin4_effect_fade:

kwin4_effect_dialogparent:
changeTime: 300

kwin4_effect_highlightwindow:

kwin4_effect_logout:
useBlur: true

kwin4_effect_dashboard:
brightness: 0.5
saturation: 0.5
blur: false

kwin4_effect_outline:

kwin4_effect_startupfeedback:


valdikss@valaptop:~ %
Comment 5 Martin Flöser 2013-06-01 14:51:09 UTC
The ability to read can be an advantage: first comment mentioned Intel. It just looked too much like buggy drivers...

Could you please try two more things:
* kwin_gles --replace
* KWIN_OPENGL_INTERFACE=egl kwin --replace &
Comment 6 valdikss 2013-06-01 14:55:12 UTC
(In reply to comment #5)

> Could you please try two more things:
> * kwin_gles --replace
> * KWIN_OPENGL_INTERFACE=egl kwin --replace &

Should I run first command, try to capture, CTRL+C, run second command, and try to capture again? If yes, nothing changed in both cases.
Comment 7 Thomas Lübking 2013-06-01 14:56:46 UTC
> glVSync: true
Also please try turning that off.
Do you know from which mesa version you udpated?
Comment 8 valdikss 2013-06-01 15:00:05 UTC
(In reply to comment #7)
> > glVSync: true
> Also please try turning that off.

Still the same with vsync turned off.

> Do you know from which mesa version you udpated?
[2013-05-06 02:13] [PACMAN] upgraded mesa (9.1.1-1 -> 9.1.2-1)
[2013-05-26 12:40] [PACMAN] upgraded mesa (9.1.2-1 -> 9.1.3-1)

I suppose it worked fine with 9.1.2. I'll try to downgrade mesa and xf86-video-intel now and report soon.
Comment 9 Martin Flöser 2013-06-01 15:00:55 UTC
> Do you know from which mesa version you udpated?
I doubt that it's related to mesa version (running Mesa 9.2 on SandyBridge), 
but the X version could be relevant.
Comment 10 valdikss 2013-06-01 15:09:04 UTC
It's xf86-video-intel. Just downgraded it from 2.21.8 to 2.21.6 and KSnapshot works fine. 2.21.7 is also broken.
Now i'll build snapshot from git and see if it still happens.
Comment 11 valdikss 2013-06-01 15:22:08 UTC
It's broken in git. So is it xf86-video-intel bug?
Comment 12 Martin Flöser 2013-06-01 15:44:42 UTC
> So is it xf86-video-intel bug?
looks like it.
Comment 13 wojtek 2013-06-03 14:58:40 UTC
Comment from bug: https://bugs.freedesktop.org/show_bug.cgi?id=65250

"Once again KDE/Qt and kwin amaze me by their inefficient rendering" :)