Bug 416790

Summary: Spectacle crashes KDE when rectangular region selection fired twice
Product: [Applications] Spectacle Reporter: Claus Appel <spectrumdt>
Component: GeneralAssignee: Boudhayan Gupta <me>
Status: RESOLVED FIXED    
Severity: normal CC: kde, nate
Priority: NOR    
Version First Reported In: 17.12.3   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Claus Appel 2020-01-26 15:01:07 UTC
SUMMARY
May be related to 413361 and/or 412817.


STEPS TO REPRODUCE
1. Have Meta+Shift+PrtScn set as global hotkey for capturing a rectangular region with Spectacle.
2. Press Meta+Shift+PrtScn.
3. Do not select a region. Instead, press Meta+Shift+PrtScn again quickly. I.e., press the shortcut twice in rapid succession without doing anything else in between.

OBSERVED RESULT
KDE is frozen. I can select a region, but I can't get out of rectangle selection mode. Enter does nothing, nor does Esc, Ctrl+Alt+Backspace, Ctrl+Alt+Del or anything.


EXPECTED RESULT
I should be able to exit rectangle selection mode using Enter, Esc or a global shortcut.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 18.04, 64-bit
KDE Plasma Version: 5.12.9
KDE Frameworks Version: 5.44.0
Qt Version: 5.9.5

ADDITIONAL INFORMATION

I believe the same thing happens if any application (perhaps any WINDOWED application) starts up while Spectacle is in rectangle selection mode. I have a number of applications that start up after login, but with a delay. If I launch Spectacle before all my applications have launched, there is a high risk of running into this crash bug.
Comment 1 Nate Graham 2020-01-28 20:40:51 UTC
Cannot reproduce with Spectacle 19.12.2. The version you're using is two years old. :/

Please attach the backtrace for the crash. See https://community.kde.org/Get_Involved/Issue_Reporting#Crash_reports_must_include_backtraces
Comment 2 Claus Appel 2020-02-05 17:10:40 UTC
Do you want a backtrace from version 17.12.3 or from version 19.*?
Comment 3 Christoph Feck 2020-02-13 14:23:51 UTC
If you are able to update, bug reports for newer versions are preferred.
Comment 4 Claus Appel 2020-02-16 16:21:46 UTC
I upgraded to Kubuntu 19.10 which has Spectacle 19.04.3. The problem no longer reproduces. 

I am not going to go through the hassle of producing a backtrace on the older version. Feel free to close this ticket.
Comment 5 Nate Graham 2020-02-16 21:00:59 UTC
Thanks for the info!