Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 653370 - sys-process/nmon-16g with kde-apps/konsole : Rendering problems
Summary: sys-process/nmon-16g with kde-apps/konsole : Rendering problems
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at if you want to take care of it
Depends on:
Blocks: ncurses-6.1
  Show dependency tree
Reported: 2018-04-17 10:00 UTC by tazinblack
Modified: 2022-07-20 12:28 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

Screenshot of nmon showing rendering problems (nmon_2018-04-17.png,93.93 KB, image/png)
2018-04-17 10:00 UTC, tazinblack
build log of nmon (build.log,2.00 KB, text/x-log)
2018-06-26 06:35 UTC, tazinblack

Note You need to log in before you can comment on or make changes to this bug.
Description tazinblack 2018-04-17 10:00:15 UTC
Created attachment 527672 [details]
Screenshot of nmon showing rendering problems

Since some system updates I see strange rendering problems in nmon. 
Doesn't matter which version. See screenshot attached.
Happens in KDE console, lxterminal. Classic x11-terms/xterm and linux text console seem not to be affected.
Comment 1 Pacho Ramos gentoo-dev 2018-04-17 20:03:41 UTC
In Fedora they were applying this patch to fix some "rendering issues with ncurses apps" with konsole-17.12*

Maybe you could give it a try
Comment 2 Holger Hoffstätte 2018-04-17 21:46:34 UTC
I have the same issue but with xfce4-terminal; all other ncurses-based apps work (alpine, htop..) except nmon, and the problem is definitely the recent ncurses update to 6.1. Everything was fine with 6.0.

Since 6.0 is now gone I was forced to update as well and started investigating. What I found was that while xfce4-terminal sets TERM to "xterm" by default, setting TERM to something else in the shell ("konsole" or "xterm-color" worked for me) seems to fix the problem and nmon immediately renders properly again. I have no idea whether this is a problem with the terminal emulator, ncurses or the application itself.

So tl;dr: try to set TERM=xterm-color in your profile.
Comment 3 Nelo-T. Wallus (ntnn) 2018-06-05 19:18:15 UTC
I haven't been able to replicate the issue with other VTE-based terminal emulators.

Did somebody try if the patch works and if it breaks other stuff?
Comment 4 Nelo-T. Wallus (ntnn) 2018-06-06 19:22:13 UTC
tazinblack, please attach the emerge info and the build log, as well as the DE/WM you're using.
I can't reproduce the issue with Konsole in i3 on X.
Comment 5 tazinblack 2018-06-10 07:09:07 UTC
emerge --info 
Portage 2.3.24 (python 3.4.8-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-6.4.0, glibc-2.25-r11, 4.9.95-gentoo x86_64)
System uname: Linux-4.9.95-gentoo-x86_64-Intel-R-_Core-TM-_i7-4500U_CPU_@_1.80GHz-with-gentoo-2.4.1
KiB Mem:     7933208 total,     75288 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Sun, 10 Jun 2018 06:30:01 +0000
Head commit of repository gentoo: f5264c7158be1f58cf3c283110055553b331ec5a
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.8::gentoo, 3.5.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r11::gentoo

    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://
    priority: -1000
    sync-rsync-verify-metamanifest: no

CFLAGS="-march=core-avx2 -O2 -pipe"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/sddm/scripts/Xsetup"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core-avx2 -O2 -pipe"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
USE="X a52 aac acl acpi activities aes alsa amd64 apache2 avx avx2 berkdb bluetooth branding bzip2 cairo cdda cdr cli client-libs consolekit crypt cryptsetup cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg flac fma3 fortran gdbm gif glamor gpm gtk iconv ipod ipv6 jpeg kde kipi kwallet lcms ldap libnotify libtirpc mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses networkmanager nls nptl nvidia ogg opengl openmp opus pam pango pcre pdf phonon php plasma png policykit popcnt ppds pulseaudio qml qt3support qt5 readline savedconfig sdl seccomp semantic-desktop spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vdpau vhosts vorbis widgets wxwidgets x264 x265 xattr xcb xcomposite xml xv xvid xvmc zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python3_4 python3_5 python2_7" RUBY_TARGETS="ruby23" SANE_BACKENDS="xerox_mfp" USERLAND="GNU" VIDEO_CARDS="nvidia modesetting" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Comment 6 tazinblack 2018-06-10 07:18:07 UTC
(In reply to Nelo-T. Wallus (ntnn) from comment #4)
> tazinblack, please attach the emerge info and the build log, as well as the
> DE/WM you're using.
> I can't reproduce the issue with Konsole in i3 on X.

I use standard KDE plasma
Comment 7 Nelo-T. Wallus (ntnn) 2018-06-11 19:54:50 UTC
Are you using 6.1-r2 ncurses and is nmon built against it? If not please rebuild and test again.
Comment 8 tazinblack 2018-06-26 06:30:13 UTC
(In reply to Nelo-T. Wallus (ntnn) from comment #7)
> Are you using 6.1-r2 ncurses and is nmon built against it? If not please
> rebuild and test again.

Yes I use that version and to make sure nmon is build against it I just rebuilt it. But that does not change the behavior.

A functional workaround is to change $TERM from xterm-256color to xterm-color before starting nmon with 'export TERM="xterm-color"'
Comment 9 tazinblack 2018-06-26 06:35:54 UTC
Created attachment 537266 [details]
build log of nmon
Comment 10 tazinblack 2018-06-26 06:39:06 UTC
if you give me detailed instructions how to apply the patch mentioned above I'm going to give it a try
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-17 01:52:55 UTC
Is this still an issue...?