Bug 445380 - Konsole stops receiving keyboard input after a while on GNOME Wayland session
Summary: Konsole stops receiving keyboard input after a while on GNOME Wayland session
Status: REPORTED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
: 444840 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-11-12 15:28 UTC by Emilio Cobos Álvarez (:emilio)
Modified: 2022-09-01 07:40 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Full backtrace (I don't see anything out of the ordinary) (119.55 KB, text/plain)
2021-11-12 15:28 UTC, Emilio Cobos Álvarez (:emilio)
Details
attachment-5745-0.html (1.16 KB, text/html)
2021-11-12 15:48 UTC, tcanabrava
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emilio Cobos Álvarez (:emilio) 2021-11-12 15:28:41 UTC
Created attachment 143490 [details]
Full backtrace (I don't see anything out of the ordinary)

SUMMARY

On a GNOME Wayland session (I haven't reproduced this ever in Plasma), Konsole will eventually stop receiving keyboard events (thus rendering the terminal useless).

Mouse input on the menus and so on still works as expected.

This happens usually about under a minute after Konsole is launched for the first time in the session, and re-launching again "fixes" it (or at least I've never seen it after a relaunch, but I see it every time on first launch).

STEPS TO REPRODUCE
1. Launch Konsole on a GNOME Wayland session (I'm using Gnome 40 on Fedora 35). 
2. Use the terminal.

OBSERVED RESULT

Usually (all the time?) in under a minute, I can't type anymore and have to re-launch (after which it doesn't happen).

EXPECTED RESULT

I can keep using the terminal without having to re-launch.

SOFTWARE/OS VERSIONS
Linux: Gnome 40 / Fedora 35 / konsole 21.08.3

ADDITIONAL INFORMATION
This has been happening for quite a while.
Comment 1 Emilio Cobos Álvarez (:emilio) 2021-11-12 15:29:22 UTC
I'm happy to help debugging it btw, if you let me know where to look at or this doesn't ring a bell :-)
Comment 2 Emilio Cobos Álvarez (:emilio) 2021-11-12 15:31:42 UTC
Ah, from the Help > Components menu:

KDE Frameworks Version 5.88.0
Qt Version 5.15.2 (built against 5.15.2)
The wayland windowing system (as expected)
Comment 3 tcanabrava 2021-11-12 15:48:42 UTC
Created attachment 143497 [details]
attachment-5745-0.html

Unfortunately I have never used wayland - my computer does not have the
necessary hardware for it.
I’d start looking if the keyPressEvent is ever triggered inside of a
TerminalDisplay

On Fri, 12 Nov 2021 at 16:31 Emilio Cobos Álvarez <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=445380
>
> --- Comment #2 from Emilio Cobos Álvarez (:emilio) <emilio@crisal.io> ---
> Ah, from the Help > Components menu:
>
> KDE Frameworks Version 5.88.0
> Qt Version 5.15.2 (built against 5.15.2)
> The wayland windowing system (as expected)
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
Comment 4 Daniel 2022-08-28 21:19:20 UTC
This also happens in Plasma Wayland sessions. Every tab in a Konsole window stops responding to keyboard input. I also can’t use keyboard shortcuts to open new tabs, but the menu still lets me do that. I have to close the window and reopen it to get it back into a working state.

The issue happens with SSH and local sessions. I can just open a Konsole window and do nothing with it, leave it for a few hours, and when I eventually get back to it just no longer works with the keyboard. I’ve also had this happen while I’m typing into the terminal, it just stops accepting keyboard input mid-sentence and leaves me hanging.

Konsole, Version 22.04.01
KDE Frameworks, Version 5.97.0
Qt, Version 5.15.5 (built against 5.15.5)
Fedora 36
Comment 5 Daniel 2022-09-01 07:40:18 UTC
*** Bug 444840 has been marked as a duplicate of this bug. ***