Bug 445805

Summary: Konsole freezes when printing certain characters, bisected to 8d9cdd1b0
Product: [Applications] konsole Reporter: Katalin Rebhan <me>
Component: fontAssignee: Konsole Bugs <konsole-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: 1i5t5.duncan, tcanabrava
Priority: NOR Keywords: regression
Version First Reported In: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: attachment-28440-0.html

Description Katalin Rebhan 2021-11-20 12:25:19 UTC
SUMMARY
Since 8d9cdd1 Move hasSamecolors to Character [1], konsole freezes when starting tmux (and others like downloading a file with wget).

More specifically, the freeze can be triggered by printing for example ‘ or ’ (opening/closing quotes) which appear in the output of wget.

[1]: https://invent.kde.org/utilities/konsole/-/commit/8d9cdd1b00d8e7d9ef938bcbb57464eed62c6a9e

STEPS TO REPRODUCE
1. Open konsole
2. Run xxd -r <<< '0: e280 98' to print the ‘ character, or start tmux or download a file with wget

OBSERVED RESULT
Konsole will freeze and stay unresponsive until you kill it

EXPECTED RESULT
Konsole displays terminal output correctly

SOFTWARE/OS VERSIONS
Operating System: Gentoo 2.8
KDE Plasma Version: 5.23.80
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2
Kernel Version: 5.14.20-gentoo-dist (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor
Memory: 23.4 GiB of RAM
Graphics Processor: Radeon RX Vega

ADDITIONAL INFORMATION
Comment 1 Duncan 2021-11-22 08:50:10 UTC
Seeing this here too.  Konsole's basically unusable so I reverted to 83113f561 (immediately prior to the culprit 8d9cdd1b0).  Haven't yet tried reverting the culprit on HEAD.

Sets the CPU fan to high also, tho I think it's only 1 core maxing (didn't think to look but heard the fan, but with the rest of the system remaining responsive I think it's just the one core/thread going whacko).
Comment 2 Duncan 2021-11-22 09:04:11 UTC
Won't revert on HEAD.
Comment 3 tcanabrava 2021-11-22 12:38:29 UTC
Created attachment 143833 [details]
attachment-28440-0.html

Should be fixed on master, can you update and try again?


On Mon, 22 Nov 2021 at 06:04 Duncan <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=445805
>
> --- Comment #2 from Duncan <1i5t5.duncan@cox.net> ---
> Won't revert on HEAD.
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
Comment 4 Katalin Rebhan 2021-11-22 15:29:49 UTC
Yup, it's fixed. Great, thanks!