Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 614564 - xfce-base/xfwm4-4.13.0 refresh issues - especially terminal windows
Summary: xfce-base/xfwm4-4.13.0 refresh issues - especially terminal windows
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major with 1 vote (vote)
Assignee: XFCE Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-03 13:23 UTC by jsurveyor
Modified: 2018-09-01 13:39 UTC (History)
7 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jsurveyor 2017-04-03 13:23:54 UTC
I am experiencing severe refresh problems with xfce-base/xfwm4-4.13.0. I have downgraded back to 
4.12.3-r1 to fix them.

I tried downgrading several other packages, including xorg-server and x11-drivers but it was xfwm4 which made the difference. The system was barely useable with 4.13.0

xfce4-terminal: when typing the area around the cursor becomes completely transparent (for 2-3 char widths).

xfce4-terminal: when this or any overlapping window is busy the terminal disappears (that is becomes completely transparent, including window decorations, borders & title bar). It can spend many seconds flickering in and out of existence until it settles.

Typing commands in xterm or xfce4-terminal: the command output often does not appear until many 10s of seconds. Changing the focus off and on the window or typing an additional character, such as a space or newline, can trigger the delayed refresh.

Similarly, when command line editing the cursor position can lag by 10's of seconds.

Moving windows: they also completely disappear, including decorations, borders & title bar, until the mouse button is released.

On the panel, icons disappear (showing the background behind) when moving the mouse over them.

However some applications are not affected: firefox, chrome, rdesktop.  xfce4-terminal's which cover
these appplications are unuseable but when these applications are on top they work fine.

I am using 
x11-base/xorg-server-1.19.2 (downgraded 1.19.3)
x11-drivers/xf86-video-intel-2.99.917_p20170216  (downgraded from 2.99.917_p20170216)
x11-drivers/xf86-input-evdev-2.10.5
x11-drivers/xf86-input-keyboard-1.9.0

# emerge -pv xfwm4

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] xfce-base/xfwm4-4.13.0::gentoo [4.12.3-r1::gentoo] USE="opengl%* startup-notification xcomposite (-debug%) (-dri%*)" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB

# emerge --info  xfce-base/xfwm4

Portage 2.3.5 (python 3.4.6-final-0, default/linux/amd64/13.0/desktop, gcc-5.4.0, glibc-2.24-r1, 4.10.6-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.10.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-3630QM_CPU_@_2.40GHz-with-gentoo-2.3
KiB Mem:     8028272 total,   6188484 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Mon, 03 Apr 2017 10:15:01 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.27 p1.0) 2.27
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.7.2-r1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.24.2::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.12.6-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.au.gentoo.org/gentoo-portage
    priority: -1000

java
    location: /var/lib/layman/java
    sync-type: rsync
    sync-uri: git://anongit.gentoo.org/proj/java.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/home/portage_distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync 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"
GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTAGE_TMPDIR="/home/portage_tmp"
USE="X a52 aac acl acpi alsa amd64 apache2 avx berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg laptop lcms libnotify mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl nvidia ogg opengl openmp oss pam pango pcre pdf perl png policykit ppds pulseaudio qt3support qt4 readline sdl seccomp session spell sse sse2 sse4_2 ssl ssse3 startup-notification svg tcpd tetex tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xulrunner xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx 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" GRUB_PLATFORMS="efi-32 efi-64 emu pc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" 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" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="i810 fbdev vesa intel" 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"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

xfce-base/xfwm4-4.12.3-r1::gentoo was built with the following:
USE="dri startup-notification xcomposite -debug" ABI_X86="64"
Comment 1 Jacob Braun 2017-04-03 19:29:43 UTC
I can confirm this. Downgrading to 4.12.4 makes everything fine again.
Comment 2 Adrian Bassett 2017-04-05 21:42:50 UTC
(In reply to Jacob Braun from comment #1)
> I can confirm this. Downgrading to 4.12.4 makes everything fine again.

Similar experience, same fix.  amd64.
Comment 3 Christian Tietz 2017-04-08 13:45:24 UTC
(In reply to Jacob Braun from comment #1)
> I can confirm this. Downgrading to 4.12.4 makes everything fine again.

Confirmed on amd64 and x86. Maybe xfwm4-4.13.0 should be masked for now.
Comment 4 MZ 2017-04-17 14:53:43 UTC
same problem, amd64
disable -opengl flag helps me.
Comment 5 Wojciech Pyczak 2017-05-11 22:25:44 UTC
I'd like to add that disabling opengl might possibly help with some setups using amdgpu kernel driver with older (GCNv1 like my Pitcairn based) graphic cards.
 
Recently I decided to switch/test amdgpu on my system using latest kernel but after logging in I was welcomed with white screen (with cursor on top of it), rebuilding/updating xorg related packages didn't seem to help but today I tested xfwm with -opengl +xpresent and that appears to work.

However, take it with a grain of salt, since there was some time lag I last booted 4.11.0 (I updated other packages in the mean time) and I'm actually too lazy to confirm it but it might help someone.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-08-26 19:23:57 UTC
Guys, it would really be more helpful if you could provide some specific information since I (obviously) can't reproduce it. For a start, the video driver and USE flags (if you could test multiple combinations, that would be appreciated too).
Comment 7 n05ph3r42 2018-03-24 15:28:24 UTC
 Can confirm, have 2 notebooks, 1 have sandybridge, another one ivybridge. When using xf86-video-intel, both laptops have bug. Tried with stable and unstable versions of intel driver, same as xorg, helps only xfwm4 downgrade to 4.12. With amdgpu or nuveau there is no problems. Definitely (my opinion) main problem is in 945 driver (causes segfaults or kernel panic in dmesg)... or it can be some kernel bug related to intel video. will check on stable kernel. 
 Bug looks like tearing or something like that - blinking screen, parts of screen, generating segfaults, until panic.

 Moreover, last 2 weeks after some update (Xorg or mesa, have no idea) 945 causing segfaults in mupdf and mpv, but its another story.

x11-drivers/xf86-video-intel-2.99.917_p20180214::gentoo  USE="dri dri3 sna udev -debug -tools -uxa -xvmc"

"emerge --info" https://paste.pound-python.org/show/rqyfF8sayNdyUSJqYSpy/

"equery u xorg-server" https://paste.pound-python.org/show/6e8XbcJG9qhsbTYQLyUn/

"equery u mesa" https://paste.pound-python.org/show/yJxaY8TDRN31D7lP81HU/


Im going to make a clean install on sandybridge machine, and check will problem persist.
Comment 8 n05ph3r42 2018-03-24 16:44:48 UTC
dmesg with segfault on sandybridge machine after boot, xfwm4-13 dies  immediately.
https://paste.pound-python.org/show/eZwKLQNYMPBpUwzjtqjA/

emerge --info 
https://paste.pound-python.org/show/ufcpUPZ2Pz0qbIdesVM1/

wgetpaste -c "equery u xorg-server"
https://paste.pound-python.org/show/4Tqh2bVEUoSjYQgf88AT/

wgetpaste -c "equery u mesa"
https://paste.pound-python.org/show/uSFbYYuclPR3LjIM42u1/

wgetpaste -c "equery u xf86-video-intel"
https://paste.pound-python.org/show/ykwAoarNs0QPEsBdqNZv/

equery u libepoxy libXdamage libXcomposite libXfixes libwnck libXrender libXrandr libX11 libXext dev-libs/glib

 * Found these USE flags for media-libs/libepoxy-1.5.0:
 U I
 + + X          : Add support for X11
 - - abi_x86_32 : 32-bit (x86) libraries
 - - test       : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles this internally, so don't set it in make.conf/package.use anymore

 * Found these USE flags for x11-libs/libXdamage-1.1.4-r1:
 U I
 - - abi_x86_32  : 32-bit (x86) libraries
 - - static-libs : Build static versions of dynamic libraries as well

 * Found these USE flags for x11-libs/libXcomposite-0.4.4-r1:
 U I
 - - abi_x86_32  : 32-bit (x86) libraries
 - - doc         : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
 - - static-libs : Build static versions of dynamic libraries as well

 * Found these USE flags for x11-libs/libXfixes-5.0.3:
 U I
 - - abi_x86_32  : 32-bit (x86) libraries
 - - static-libs : Build static versions of dynamic libraries as well

 * Found these USE flags for x11-libs/libwnck-3.24.1:
 U I
 + + introspection        : Add support for GObject based introspection
 + + startup-notification : Enable application startup event feedback mechanism
 - - tools                : Install wnckprop-3 and wnck-urgency-monitor-3 command-line tools

 * Found these USE flags for x11-libs/libXrender-0.9.10:
 U I
 - - abi_x86_32  : 32-bit (x86) libraries
 - - static-libs : Build static versions of dynamic libraries as well

 * Found these USE flags for x11-libs/libXrandr-1.5.1:
 U I
 - - abi_x86_32  : 32-bit (x86) libraries
 - - static-libs : Build static versions of dynamic libraries as well

 * Found these USE flags for x11-libs/libX11-1.6.5:
 U I
 - - abi_x86_32  : 32-bit (x86) libraries
 - - doc         : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
 - - ipv6        : Add support for IP version 6
 - - static-libs : Build static versions of dynamic libraries as well
 - - test        : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles this internally, so don't set it in make.conf/package.use anymore

 * Found these USE flags for x11-libs/libXext-1.3.3:
 U I
 - - abi_x86_32  : 32-bit (x86) libraries
 - - doc         : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
 - - static-libs : Build static versions of dynamic libraries as well

 * Found these USE flags for dev-libs/glib-2.52.3:
 U I
 - - abi_x86_32               : 32-bit (x86) libraries
 + + dbus                     : Enable dependencies required by glib libraries using dbus service to manage settings saving 
 - - debug                    : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see
                                https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
 - + mime                     : Pull in shared MIME database that many glib-based applications require at runtime to detect or open files. Warning: do not disable this flag unless
                                installing on a headless server. 
 + + python_targets_python2_7 : Build with Python 2.7
 - - static-libs              : Build static versions of dynamic libraries as well
 - - systemtap                : Build support for profiling and tracing using dev-util/systemtap 
 - - test                     : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles this internally, so don't set it in make.conf/package.use anymore
 + + utils                    : Install gtester-report utility to generate test report files for your software; build gresource utility with ELF support. 
 + + xattr                    : Add support for extended attributes (filesystem-stored metadata)
Comment 9 n05ph3r42 2018-03-24 17:11:51 UTC
Not kernel dependent, checked on gentoo-sources 4.9.76-r1.
Comment 10 n05ph3r42 2018-03-25 01:55:17 UTC
Oops meant not 945 but 965 intel driver
Comment 11 n05ph3r42 2018-03-30 13:11:56 UTC
Reinstalled clean system (ACCEPT_KEYWORDS="~amd64" ABI_X86="64") on sandybridge machine.

 Bug is present with xf86-video-intel driver only with xfwm4 +opengl flag.
 
I think if xf86-video-intel is really deprecating, then no need in fixing this issue.
Comment 12 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-08-06 20:06:45 UTC
Ok, fun fact: this started happening to me with 4.13.1.  Downgrading to 4.13.0 solves it, so it's something they changed that extended this issue.  I'll try to find time later to bisect it.
Comment 13 Larry the Git Cow gentoo-dev 2018-08-09 10:11:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f46528d4c0e9309f2625de2d365376f38deb199a

commit f46528d4c0e9309f2625de2d365376f38deb199a
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2018-08-09 09:49:29 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2018-08-09 09:49:29 +0000

    xfce-base/xfwm4: Backport refresh issue fixes
    
    Backport the 3 upstream patches that fix the refresh issues.  They
    at least fix the issues introduced by 4.13.1, and hopefully the older
    ones as well.
    
    Closes: https://bugs.gentoo.org/614564

 xfce-base/xfwm4/Manifest               |  1 +
 xfce-base/xfwm4/xfwm4-4.13.1-r1.ebuild | 77 ++++++++++++++++++++++++++++++++++
 2 files changed, 78 insertions(+)
Comment 14 n05ph3r42 2018-08-17 13:44:14 UTC
after updating mesa to 18.2.0_rc2 problem returned, but now xfwm4 just terminates.

(once it not died, but panel was duplicated on top of screen and some of panel plugins images was corrupt).

I believe its the same problem, because i solved it same way - downgraded xfwm4 to 4.12.
Comment 15 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-08-18 06:00:41 UTC
Could you please try xfwm from git?  You'd need xfce4-dev-tools to build it.  Once built, you can start it locally via './xfwm4 --replace'.
Comment 16 n05ph3r42 2018-08-22 13:11:35 UTC
same situation, but panel is left on screen (no sure how it works, maybe its old panel, but tray images corrupt, and some of plugins is not working)

https://imgur.com/YWbbdnul.png

wm crashes, keyboard is working partially, same as GUI.

there is no window controls - maximize/minimize/close, same as window title bar. AFAIK wm draws that. 

Also there is no any error in console and dmesg, except warning in console:

me@localhost ~/prj/xfwm4 $ src/xfwm4 --replace

(xfwm4:22886): xfwm4-WARNING **: 13:00:00.620: Missing defaults file


BTW, i'm using stable mesa now (media-libs/mesa-18.1.6).
Comment 17 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-08-22 13:48:13 UTC
I'm afraid I can't help you.  This is really something that needs to be fixed upstream.  If you could either report your problem there, or find a bug that matches it exactly, that could help.  You can also try experimenting with USE flags (-> configure options).  Finally, you could try 'git bisect' to find the first bad commit.  Report your findings upstream, and they may be able to help you debug it further.