Bug 432804

Summary: Konsole hangs with urwid pallete test (xterm works)
Product: [Applications] konsole Reporter: Arcadiy Ivanov <arcadiy>
Component: emulationAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: major CC: joseph, mark, ninjalj
Priority: NOR Keywords: efficiency
Version: 20.12.1   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: v22.04.0
Sentry Crash Report:
Attachments: attachment-21708-0.html

Description Arcadiy Ivanov 2021-02-11 14:35:00 UTC
SUMMARY

Urwid is a TUI library for Python. 
Pallete test demonstrates console capabilities by printing monochrome, 16 colors, 88 colors, 256 colors and 24bit colors.
Pallete test works perfectly on xterm.
Pallete test hangs Konsole completely with any palletes other than monochrome and 16 colors.

STEPS TO REPRODUCE
1. pip install -U urwid
2. Downoad https://github.com/urwid/urwid/blob/master/examples/palette_test.py
3. Run `python palette_test.py` in konsole.

OBSERVED RESULT

On any color pallet above 16 colors Konsole hangs until the process is killed.

EXPECTED RESULT

Konsole behaves exactly like xterm, i.e. works.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 33
(available in About System)
KDE Frameworks 5.78.0
Qt 5.15.2 (built against 5.15.2)
The xcb windowing system
KDE Plasma Version: 5.20.5

ADDITIONAL INFORMATION
Comment 1 Kurt Hindenburg 2021-02-19 02:35:54 UTC
Hangs on 88 and 256 colors
Comment 2 Mark Qvist 2021-04-09 19:59:43 UTC
Observing same behaviour, but interestingly, I am able to execute palette_test.py correctly in both 88, 256 and true-color modes if it is run within a screen or tmux session in Konsole.

konsole version 19.12.3
urwid version 2.1.2
Comment 3 Arcadiy Ivanov 2022-11-04 02:20:09 UTC
I can't seem to be able to find commit 96a18a9b7f651e27da99f8b483d84fdb9a1a1e62 in github.com/KDE/konsole. I'm just curious what the fix was. Thanks!
Comment 4 ninjalj 2022-11-04 11:04:52 UTC
Created attachment 153452 [details]
attachment-21708-0.html

https://invent.kde.org/utilities/konsole/-/merge_requests/620/diffs?commit_id=96a18a9b7f651e27da99f8b483d84fdb9a1a1e62
, which was only applied to 22.04.  The master branch got it fixed with a
rewrite of the parser:
https://invent.kde.org/utilities/konsole/-/merge_requests/593

On Friday, November 4, 2022, Arcadiy Ivanov <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=432804
>
> --- Comment #3 from Arcadiy Ivanov <arcadiy@ivanov.biz> ---
> I can't seem to be able to find commit 96a18a9b7f651e27da99f8b483d84f
> db9a1a1e62
> in github.com/KDE/konsole. I'm just curious what the fix was. Thanks!
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.