Bug 210916 - ksnapshot can lock up the screen when capturing context menu under the "region" mode, unless you use double clicking.
Summary: ksnapshot can lock up the screen when capturing context menu under the "regi...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: ksnapshot
Classification: Applications
Component: general (show other bugs)
Version: 0.8.2
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Richard Moore
URL:
Keywords: reproducible
: 240746 244246 245777 269012 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-17 23:03 UTC by Dima Ryazanov
Modified: 2018-09-04 04:19 UTC (History)
12 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
demonstration of two forms of hidden input (1.17 MB, video/ogg)
2015-02-02 12:49 UTC, kdebugs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dima Ryazanov 2009-10-17 23:03:14 UTC
Version:            (using KDE 4.3.2)
OS:                Linux
Installed from:    Ubuntu Packages

Select the "region" capture mode, and set the delay to a few seconds.
Right-click the taskbar or any application that displays a popup menu.
Wait for ksnapshot to take a screenshot.

Now, "Enter" and "ESC" keys don't work, presumably because they're captured by the popup menu. So there's no obvious way to exit out of ksnapshot. Double-clicking works, but that's not very intuitive.
Comment 1 Dario Andres 2009-10-18 02:15:11 UTC
Related to bug 183742 / bug 160880
Thanks
Comment 2 Janet 2009-11-14 17:33:12 UTC
I can confirm this for 4.3.2, Debian Sid. It only happens when I want to capture a region and a delay is set. Thanks for the double-click hint. But still, I cannot take the screenshot. Delayed region capturing should behave like normal region capturing, enter key should accomplish the task.
Comment 3 Christoph Feck 2010-06-12 20:16:15 UTC
*** Bug 240746 has been marked as a duplicate of this bug. ***
Comment 4 Algot Runeman 2010-08-13 21:20:26 UTC
Bug exists in Kubuntu KDE 4.5.0 when trying to capture region showing the color picker plasmoid with the history showing (behaves like a pulldown menu). Double-click works, so maybe a quick, if temporary, fix would be to add double click to the text that shows Enter and Escape for completing and canceling the capture (since neither of them work).
Comment 5 Christoph Feck 2011-03-21 03:12:48 UTC
*** Bug 269012 has been marked as a duplicate of this bug. ***
Comment 6 Del 2011-11-13 16:20:25 UTC
I believe I have encountered the same bug, but triggered differently. This is on an up-to-date Kubuntu 11.10 install. To reproduce simply start ksnapshot from konsole or krunner with the --region option. Then mark the region and press enter freezes the desktop. Double clicking (instead of pressing) enter works as expected.

I think this is a serious bug for ksnapshot. Starting ksnapshot with the --region option is the best way to bind it to Printscreen, and this will just freeze the desktop.
Comment 7 Jekyll Wu 2012-01-04 11:06:05 UTC
*** Bug 245777 has been marked as a duplicate of this bug. ***
Comment 8 Jekyll Wu 2013-04-01 05:53:54 UTC
*** Bug 244246 has been marked as a duplicate of this bug. ***
Comment 9 Janet 2014-08-01 13:10:58 UTC
This only seems to happen when you want to capture menus or context menus of KDE applications. It does work as expected (ESC cancels, Enter captures) when you capture something from the panel like the systray hidden objects or a shelf - or  capture menus of non-KDE applications like thunderbird, chromium,...
Comment 10 kdebugs 2015-02-02 12:49:29 UTC
Created attachment 90870 [details]
demonstration of two forms of hidden input

This bug isn't really about "locking up" the screen, although it presents that way to anyone who doesn't understand what's going on.  It's about ksnapshot failing to capture the input and instead leaking it through to the menu and to subsequently activated windows.

In the video clip I'm attaching, I do the following:
1) Start with a non-maximized Kate window.  Tell KSnapshot to capture a rectangle in 3 seconds.
2) During the three seconds, right-click on Kate in the task manager.  When the three seconds are up, you will observe that the context menu itself appears frozen, but its sub menu still displays when you move to "More Actions", showing that it's still capturing the mouse position as well as clicks.  Also, the mouse cursor is still an arrow instead of crosshairs.  (You can disregard the KeyMon in the corner - it properly "freezes" when KSnapshot snaps, so it's of no further value.)
3) I click on "Maximize", which doesn't appear to work, though you will see later that it did.  The cursor now changes to a crosshair, but it continues to leak keyboard input to the windows underneath.
4) I pressed Enter, 1, 2, 3, 4, Enter.  Then I drew a box and double-clicked.  You now see that the keyboard input was captured by Kate, and that Kate is maximized.

It's not just context menus that trigger this bug - it's other pop-ups too, like the volume control indicator.  If I press my Volume Up key while ksnapshot is capturing, the screen will continue to display 100% volume, and the mouse will work as expected (for kscreenshot), however I can turn the volume back down, I can input into a textbox in some other program, I can press Alt-Tab and go to another program and input there, move to Dolphin and press enter on some media file and have it launch in a new media player window and start playing (sound only, for now) (etc - you get the point) - all behind the scenes until I double-click to get rid of ksnapshot.
Comment 11 :Lee Cowell 2016-08-27 01:51:18 UTC
Reported years ago. attempting to capture ANY menu with say; a delay then selecting an hitting Enter locks the entire system. its reproducible at will.
Comment 12 Blucode 2017-03-26 12:36:26 UTC
The bug is still there, I can't believe I can track it back to 2008... no solution yet ?

Configuration:

fresh & up-to-date Mageia 5.1 install on x86_64 UEFI
Qt : 4.8.6
KDE Framework: 4.14.30
Advanced options for desktop effects:
 - compositing by OpenGL 2.0
 - Qt graphic system: raster
Windows decoration: Plastik
Desktop theme: Air
Application look -> Style -> Cleanlooks
Two desktops and two activities

To reproduce:

Start System config-> Workspace behaviour -> Screen Edges
Start ksnapshot, set 3s delay for a region capture, click capture
In less than 3 seconds click on one of the 8 edge buttons to display the context menu
Wait for the snapshot
Select a region: the screen edge window
Try to validate with Enter (you can't), try to escape with Esc (you can't), change TTY to kill ksnapshot and go back (black screen, complete mess)

Sample screenshot (I had to do it with fullscreen and crop later)
http://imgur.com/a/x0ejF
Comment 13 Christoph Feck 2017-03-31 16:59:38 UTC
Please try "spectacle" instead of "ksnapshot".
Comment 14 Blucode 2017-04-05 18:31:04 UTC
Ok I see:
https://www.kde.org/announcements/announce-applications-15.12.0.php

So the message is "forget Ksnapshot, move upward to Spectacle".

Thanks for the tip!
Comment 15 Andrew Crouthamel 2018-09-04 04:19:10 UTC
Hello! Sorry to be the bearer of bad news, but this project has been unmaintained for many years and I will be closing this bug. Spectacle is the replacement for ksnapshot now. Please test again and file a new bug for Spectacle if you still have issues. Thank you!