blue-systems / plasma-5.5

Plasma 5.2 - 5.5
0 stars 0 forks source link

ksnapshot: taking a snapshot has sometimes the opened file dialog window where to save the file added to the screenshot afterwards #52

Closed star-buck closed 9 years ago

star-buck commented 9 years ago

sounds like timewarp magic has been added to frameworks lately...

star-buck commented 9 years ago

Example (not Photoshopped!!! only removed the annoying "e" in jpeg per hand): ksnapshot

eikehein commented 9 years ago

^ It's worth noting that this is the KDE 4 version of KSnapshot (you can tell by the position of the buttons in the Save As dialog - the KF5 dialog uses QDialogButtonBox and has the buttons at the bottom, which is ugly by the way). It's probably a real bug in the KDE 4 version, but I'm not sure if we're ever going to make a release of it again -- the next KDE Applications release should probably ship the KF5 port, where I can't reproduce this ...

star-buck commented 9 years ago

another weirdness: PRINT brings up ksnapshot with its own popup overlaying the snapshot already (which it didnt do in kde4) qdbus org.kde.kwin /Effects unloadEffect screenshot

eikehein commented 9 years ago

Edit: I theorized asynchronous screenshot-taking via KWin might be at fault, but KWin isn't used in fullscreen screenshot mode.

(I currently can't reproduce this problem on the system installed from the ISO or on other systems.)

star-buck commented 9 years ago

just posted on IRC: another angle i tried testing your kwin theory: (10:31:19 PM) starbuck11: xrender instead of opengl solves this even with mouse cursor disabled! (10:31:23 PM) starbuck11: hooray! (10:32:18 PM) starbuck11: so thats why with netrunner over here constantly failing with opengl and intel and therefore setting to xrender default (as advised) was taking screenshots just fine

star-buck commented 9 years ago

https://www.dropbox.com/s/yo7fyv1y0zpceit/knsapshot.mkv?dl=0

mgraesslin commented 9 years ago

I'm able to reproduce the problem on my notebook with the current ISO.

mgraesslin commented 9 years ago

I did some testing yesterday and tried all possible combinations of repaint strategies and buffer handling in KWin with OpenGL compositing. The problem was present with all of them.

My current theory is that X reads from KWin's write buffer instead of the read buffer. If that's the case the problem should be reproducable with any OpenGL compositor.

mgraesslin commented 9 years ago

Not reproducable with Compton. This makes everything more confusable.

mgraesslin commented 9 years ago

Doesn't happen with EGL

mgraesslin commented 9 years ago

and I cannot reproduce on Debian.

mgraesslin commented 9 years ago

Maybe relevant packages:

Overall the ISO (based on utopic) has older versions than Debian testing. Especially bug fix releases are missing in X, mesa and drm. All of them are updated in vivid to the same version which is in Debian testing. Given that I suggest that we move back any further investigations till the ISO switched over to vivid.

Another possibility is that the xserver-xorg-video-intel is at fault here. Ubuntu is shipping an experimental package (notice the version number .99 and it's in Debian experimental with an explicit "exp" suffix in the package version). I could try to install that package on my system, but I'm hesitant as I fear to destroy the system by installing experimental drivers.

mgraesslin commented 9 years ago

I just tested the vivid live cd (still Plasma 5.1, though) and there the problem is not reproducable.

mgraesslin commented 9 years ago

and another test: Kubuntu 14.10 tech preview live iso shows the problem.

star-buck commented 9 years ago

yes, it is very likely xserver-xorg-video-intel: I updated to 2.99.917 on utopic and ksnapshot became normal, so I would rule out the other packages.

You think it is safe to close this or might there be something on our side lurking, as the ksnapshot behaviour was certainly a bit frightening ;)

mgraesslin commented 9 years ago

Given the testing I did I'm 99.9 % sure that we are innocent here.

star-buck commented 9 years ago

okay, closing then here