Bug 125982

Summary: ksnapshot "denial of service"
Product: [Applications] ksnapshot Reporter: Tomasz Chmielewski <mangoo>
Component: generalAssignee: Richard Moore <rich>
Status: RESOLVED NOT A BUG    
Severity: normal CC: kde, pacho
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Mandriva RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Tomasz Chmielewski 2006-04-20 23:38:21 UTC
Version:            (using KDE KDE 3.5.2)
Installed from:    Mandriva RPMs
OS:                Linux

On my system, ksnapshot starts whenever I press PrintScreen button on the keyboard.

Unfortunately, if the PrintScreen button is pressed and not released, new instances of ksnapshot will start again and again.
The system will try to start dozens of ksnapshot processes every second, and, as a result, your system will be very slow or even freeze.

This can happen on several occasions:
1) if you accidentally press ksnapshot (you put a book on a keayboard)
2) if your system is slow, one presses PrintScreen to make a snapshot, and sees no immediate result (as ksnapshot is still starting), presses PrintScreen again, and again, or doesn't release it

IMO, ksnapshot, by default:
- shouldn't be allowed to start more than once at a time, or,
- start only once every few seconds, or,
- allow a maximum of 5 instances.

Perhaps the above values should be configurable.

I'm not sure if it's a bug or a feature request.
As I froze my system several times with ksnapshot started via PrintScreen, I'll post it as bug.
Comment 1 Maksim Orlovich 2006-04-20 23:50:16 UTC
PrintScreen invoking ksnapshot is a modification done by your distribution.
Comment 2 Nicolas L. 2006-06-15 23:43:30 UTC
for me this is a Ksnapshot bug anyway, because i have not to open multiple sessions of it,  it have t work like Kontact, konversation  like Kunique Application ( i hope that i use the good words :) )


WDYT ?
Comment 3 Richard Moore 2006-06-16 00:44:48 UTC
Still a won't fix
Comment 4 Tomasz Chmielewski 2006-06-16 00:53:01 UTC
Perhaps not a "WONTFIX", but a "WISHLIST" then.

IMHO attaching ksnapshot to PrintScreen key is quite useful.
Comment 5 Richard Moore 2006-06-16 01:00:49 UTC
On 15 Jun 2006 22:53:02 -0000, Tomasz Chmielewski <mangoo@interia.pl> wrote:
> ------- Additional Comments From mangoo interia pl  2006-06-16 00:53 -------
> Perhaps not a "WONTFIX", but a "WISHLIST" then.
>
> IMHO attaching ksnapshot to PrintScreen key is quite useful.
>


The trouble is that I use that to launch multiple snapshots for
different things, so a KUniqueApplication won't do it. In fact I think
it's one of those things where there isn't a right answer.

What I could see, is some sort of limit on the rate with which things
would get launched by global shortcuts. Either way, I don't see a bug
in ksnapshot here.

Cheers

Rich.
Comment 6 Tomasz Chmielewski 2006-06-16 11:41:29 UTC
> Either way, I don't see a bug in ksnapshot here.

It really depends on the user's perspective. From your point of view it's a feature, as you're able to launch multiple instances of ksnapshot.
From my point of view (and Nicolas Lécureuil's) it's a bug, because it's too easy to break the system.
Comment 7 Pacho Ramos 2007-07-07 19:20:21 UTC
This bug MUST be reopened, I have exactly the same behavior under Gentoo