Bug 420687

Summary: Unable to open Konsole with keyboard after a while
Product: [Applications] konsole Reporter: Daniel Tang <danielzgtg.opensource>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: normal CC: justin.zobel
Priority: NOR    
Version: 19.12.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Daniel Tang 2020-04-27 23:43:22 UTC
SUMMARY

After a while I stop being able to open Konsole with the keyboard.

STEPS TO REPRODUCE

1. Spend an hour doing something like using Android Studio
2. Try one of the following:
   - Press SHIFT + F4 in Dolphin
   - Press CTRL + ALT + T anywhere (make sure it's set as a custom shortcut)
3. Try one of the following
   - Press F4 in Dolphin
   - Open Konsole from the start menu
   - Open another Konsole window by typing "konsole" in Bash

OBSERVED RESULT

None of the things in Step 2 work. They are silently ignored. All of the things in step 3 work.

I can get "CTRL + ALT + T" to work if I "kquitapp5 kded5" and "kstart5 kded5". I can't get "SHIFT + F4" until I log out and log back in. Both the "CTRL + ALT + T" and "SHIFT + F4" seem to stop working at the same time.

EXPECTED RESULT

To be always able to open Konsole.

That is, for the things in step 2 to always work just as well as the things in step 3.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Ubuntu 20.04
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

ADDITIONAL INFORMATION

This started happening in April 2020 (but I also started using Android Studio at that time).
Comment 1 Justin Zobel 2020-11-03 01:16:03 UTC
Thanks for the report Daniel, I am unable to reproduce this issue on KDE Neon with the latest Konsole from git master.

Can you please retest and confirm this is still an issue, thanks.
Comment 2 Bug Janitor Service 2020-11-18 04:33:56 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Daniel Tang 2020-11-18 23:32:42 UTC
This bug hasn't occurred to me since.
But again, I haven't being using Android Studio much either.

I've thought about this, and it seems like the problem is with DBus as I remember seeing a kglobalaccel5 crash and having DBus problems right before this issue started happening.
I think the problem might be because DBus enters an error state and my environment variables are still pointing to that errored DBus.
Konsole might be trying to do something with DBus on startup, and ends up waiting forever.

I haven't had any Konsole, kglobalaccel5, or DBus problems since and my system has been stable for months, so I think some bug has been fixed somewhere