Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 650106

Summary: x11-base/xorg-server-1.19.99.901-r1: freezes of plasmashell (KDE)
Product: Gentoo Linux Reporter: Nils Freydank <holgersson>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: normal CC: asturm, mihai.dontu, mike, paolo.pedroni, roberto.castagnola, tpfaff, tsmksubc
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Nils Freydank 2018-03-10 13:46:35 UTC
Hi,

with the current xorg-server on ~amd64 my plasmashell freezes, and the only way to recover is to kill and restart it (e.g. via KDE’s application launcher, krunner).
I couldn't find any related message in dmesg, Xorg’s Logfiles nor in the output of plasmashell started from a Konsole.

My system runs with an intel GPU (HD 4400 on a i5-4300U CPU). Emerge --info:
Portage 2.3.24 (python 3.5.4-final-0, default/linux/amd64/17.0/no-multilib/hardened, gcc-7.3.0, glibc-2.26-r6, 4.15.8-x240 x86_64)
=================================================================
System uname: Linux-4.15.7-x240-x86_64-Intel-R-_Core-TM-_i5-4300U_CPU_@_1.90GHz-with-gentoo-2.4.1 /* That's vanilla with some genkernel patches */
KiB Mem:     8000000 total,    800000 free
KiB Swap:    8000000 total,   8000000 free
Timestamp of repository gentoo: Sat, 10 Mar 2018 13:27:31 +0000
Head commit of repository gentoo: 04485deb694c6951d997eb2ae32ef817a2d7245c

Timestamp of repository go-overlay: Sat, 10 Mar 2018 13:32:34 +0000
Timestamp of repository holgersson-overlay: Sat, 10 Mar 2018 13:32:32 +0000
Head commit of repository holgersson-overlay: f0084e0f93095c7e2f5a4a2bbb34dfed47c0bcc7

Timestamp of repository imaging: Sat, 10 Mar 2018 13:32:31 +0000
Timestamp of repository kde: Sat, 10 Mar 2018 13:32:29 +0000
sh bash 4.4_p19
ld GNU ld (Gentoo 2.30 p1) 2.30.0
app-shells/bash:          4.4_p19::gentoo
dev-lang/perl:            5.26.1-r2::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.10.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.35.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo, 1.16-r1::gentoo
sys-devel/binutils:       2.30::gentoo
sys-devel/gcc:            7.3.0::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r2::gentoo
sys-kernel/linux-headers: 4.15::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r6::gentoo
Repositories:

gentoo
    location: /var/portage/tree
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    sync-user: portage
    priority: -1000
    sync-git-clone-extra-opts: --branch master

g-cpan
    location: /var/portage/g-cpan-overlay
    masters: gentoo
    priority: 0

local
    location: /var/portage/overlay
    masters: gentoo
    priority: 1

go-overlay
    location: /var/layman/go-overlay
    sync-type: laymansync
    sync-uri: https://github.com/Dr-Terrible/go-overlay.git
    masters: gentoo
    priority: 50

holgersson-overlay
    location: /var/layman/holgersson-overlay
    sync-type: git
    sync-uri: https://git.holgersson.xyz/holgersson-overlay
    sync-user: portage
    masters: gentoo
    priority: 50

imaging
    location: /var/layman/imaging
    sync-type: laymansync
    sync-uri: https://github.com/gerddie/gentoo-imaging.git
    masters: gentoo
    priority: 50

kde
    location: /var/layman/kde
    sync-type: laymansync
    sync-uri: https://github.com/gentoo/kde.git
    masters: gentoo
    priority: 50

Installed sets: @SDR, @custom_KDE, @electronics, @games, @jupyter
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
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 -frecord-gcc-switches"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build --autounmask=n --binpkg-respect-use=y"
FCFLAGS="-O2 -pipe -march=native -frecord-gcc-switches"
FEATURES="assume-digests binpkg-logs buildpkg cgroup clean-logs compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nodoc noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native -frecord-gcc-switches"
GENTOO_MIRRORS="http://ftp.halifax.rwth-aachen.de/gentoo/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de de_DE ru ru_RU"
MAKEOPTS="-j5 -l5"
PKGDIR="/var/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-6 -T4"
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="/var/tmp"
USE="X acl acpi alsa amd64 bash-completion bluetooth bzip2 caps cgroups crypt cryptsetup cups cxx dbus djvu egl elogind exif fam firefox flac fontconfig git glamor gles gpg gpm graphicsmagick gstreamer hardened hunspell iconv icu int64 ipv6 jit jpeg kipi lapack ldap libinput lzma ncurses networkmanager nftables nls nptl offensive ogg opengl openmp openmpi openmpi2 opus pam pcre pdf phonon pic pie pkcs11 plasma png policykit postscript pulseaudio qml qt5 readline samba sasl sdl seccomp semantic-desktop smp sound spell ssh ssl ssp startup-notification svg theora threads tiff truetype udev udisks unicode upower usb v4l vaapi video vim-syntax vorbis vpx wavpack wayland widgets x264 x265 xattr xcb xcomposite xkb xtpax xv xvid zlib zsh-completion" ABI_X86="64" 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="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 avx2 f16c fma3 mmx mmxext pclmul 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 synaptics wacom" KERNEL="linux" L10N="de de_DE ru ru_RU" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="BPF X86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="intel i965" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS




Reproducible: Always
Comment 1 Mihai Donțu 2018-03-11 21:42:30 UTC
I have encountered the same issue with x11-base/xorg-server-1.19.5-r1, modesetting (i916 and amdgpu) and mesa-9999. plasmashell hangs in:

#0  0x0000794bd9a75c55 in __GI___poll (fds=0x7fff9c37a618, nfds=1, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x0000794be0168097 in _xcb_conn_wait () from /usr/lib64/libxcb.so.1
#2  0x0000794be0169dca in xcb_wait_for_special_event () from /usr/lib64/libxcb.so.1
#3  0x0000794bd6fe640b in dri3_wait_for_event_locked () from /usr/lib64/libGL.so.1
#4  0x0000794bd6fe6568 in dri3_find_back () from /usr/lib64/libGL.so.1
#5  0x0000794bd6fe776e in dri3_get_buffer.isra () from /usr/lib64/libGL.so.1
#6  0x0000794bd6fe858f in loader_dri3_get_buffers () from /usr/lib64/libGL.so.1
#7  0x0000794b2f6958a2 in dri2_allocate_textures () from /usr/lib64/dri/radeonsi_dri.so
#8  0x0000794b2f690b9b in dri_st_framebuffer_validate () from /usr/lib64/dri/radeonsi_dri.so
#9  0x0000794b2f51f945 in st_framebuffer_validate () from /usr/lib64/dri/radeonsi_dri.so
#10 0x0000794b2f52131b in st_manager_validate_framebuffers () from /usr/lib64/dri/radeonsi_dri.so
#11 0x0000794b2f4dcf15 in st_validate_state () from /usr/lib64/dri/radeonsi_dri.so
#12 0x0000794b2f4e5114 in st_Clear () from /usr/lib64/dri/radeonsi_dri.so
#13 0x0000794bdf59403e in QSGBatchRenderer::Renderer::renderBatches() () from /usr/lib64/libQt5Quick.so.5
#14 0x0000794bdf599ac4 in QSGBatchRenderer::Renderer::render() () from /usr/lib64/libQt5Quick.so.5
#15 0x0000794bdf589e54 in QSGRenderer::renderScene(QSGBindable const&) () from /usr/lib64/libQt5Quick.so.5
#16 0x0000794bdf58a31b in QSGRenderer::renderScene(unsigned int) () from /usr/lib64/libQt5Quick.so.5
#17 0x0000794bdf5c54ac in QSGDefaultRenderContext::renderNextFrame(QSGRenderer*, unsigned int) () from /usr/lib64/libQt5Quick.so.5
#18 0x0000794bdf623ff6 in QQuickWindowPrivate::renderSceneGraph(QSize const&) () from /usr/lib64/libQt5Quick.so.5
#19 0x0000794bdf5b7469 in QSGGuiThreadRenderLoop::renderWindow(QQuickWindow*) () from /usr/lib64/libQt5Quick.so.5
#20 0x0000794bdf62e059 in QQuickWindow::event(QEvent*) () from /usr/lib64/libQt5Quick.so.5
#21 0x00005e9a0f7cf9db in PanelView::event(QEvent*) ()
#22 0x0000794bdba1c888 in QApplicationPrivate::notify_helper (this=this@entry=0x5e9a10f2be60, receiver=receiver@entry=0x5e9a115afd60, e=e@entry=0x7fff9c37b3e0) at kernel/qapplication.cpp:3722
#23 0x0000794bdba2442c in QApplication::notify (this=0x7fff9c37bae0, receiver=0x5e9a115afd60, e=0x7fff9c37b3e0) at kernel/qapplication.cpp:3481
#24 0x0000794bda8ee19b in QCoreApplication::notifyInternal2 (receiver=0x5e9a115afd60, event=0x7fff9c37b3e0) at kernel/qcoreapplication.cpp:1016
#25 0x0000794bdae466c1 in QWindowPrivate::deliverUpdateRequest() () from /usr/lib64/libQt5Gui.so.5
#26 0x0000794bdae46be9 in QWindow::event(QEvent*) () from /usr/lib64/libQt5Gui.so.5
#27 0x0000794bdf62dff5 in QQuickWindow::event(QEvent*) () from /usr/lib64/libQt5Quick.so.5
#28 0x00005e9a0f7cf9db in PanelView::event(QEvent*) ()
#29 0x0000794bdba1c888 in QApplicationPrivate::notify_helper (this=this@entry=0x5e9a10f2be60, receiver=receiver@entry=0x5e9a115afd60, e=e@entry=0x7fff9c37b790) at kernel/qapplication.cpp:3722
#30 0x0000794bdba2442c in QApplication::notify (this=0x7fff9c37bae0, receiver=0x5e9a115afd60, e=0x7fff9c37b790) at kernel/qapplication.cpp:3481
#31 0x0000794bda8ee19b in QCoreApplication::notifyInternal2 (receiver=0x5e9a115afd60, event=event@entry=0x7fff9c37b790) at kernel/qcoreapplication.cpp:1016
#32 0x0000794bda93f8cb in QCoreApplication::sendEvent (event=0x7fff9c37b790, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:233
#33 QTimerInfoList::activateTimers (this=0x5e9a10f7ffa0) at kernel/qtimerinfo_unix.cpp:643
#34 0x0000794bda9401fc in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:182
#35 idleTimerSourceDispatch (source=source@entry=0x5e9a10f7f510) at kernel/qeventdispatcher_glib.cpp:229
#36 0x0000794bd1a71baa in g_main_dispatch (context=0x794bc4004ff0) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:3234
#37 g_main_context_dispatch (context=context@entry=0x794bc4004ff0) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:3899
#38 0x0000794bd1a71de0 in g_main_context_iterate (context=context@entry=0x794bc4004ff0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:3972
#39 0x0000794bd1a71e6c in g_main_context_iteration (context=0x794bc4004ff0, may_block=may_block@entry=1) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:4033
#40 0x0000794bda9405ff in QEventDispatcherGlib::processEvents (this=0x5e9a10f81ba0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#41 0x0000794bda8eceda in QEventLoop::exec (this=this@entry=0x7fff9c37b9e0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#42 0x0000794bda8f5774 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1289
#43 0x00005e9a0f7c0d3a in main ()

There seems to be a protocol mismatch somewhere.
Comment 2 Mihai Donțu 2018-03-11 21:56:33 UTC
(In reply to Mihai Donțu from comment #1)
> I have encountered the same issue with x11-base/xorg-server-1.19.5-r1,
> modesetting (i916 and amdgpu) and mesa-9999. plasmashell hangs in:

Apologies. The correct version above is x11-base/xorg-server-1.19.99.901-r1.
Comment 3 Amaury Bouchra Pilet 2018-03-12 03:56:31 UTC
I have the same issue on my two laptops with Intel GPUs. Everything is fine on my desktop with an AMD GPU and the AMDGPU open-source driver.
Comment 4 Matt Turner gentoo-dev 2018-04-15 23:05:48 UTC
Please try 1.19.99.904.
Comment 5 Paolo Pedroni 2018-04-20 08:56:16 UTC
(In reply to Matt Turner from comment #4)
> Please try 1.19.99.904.

Still happening. :(((
Comment 6 Matt Turner gentoo-dev 2018-05-10 18:18:00 UTC
Any luck with 1.20.0?

Mike, is this the bug you've been working with people upstream on?
Comment 7 Andreas Sturmlechner gentoo-dev 2018-05-10 20:22:42 UTC
I just tried with 1.20.0 and reproduced the freeze after about an hour. HD Graphics 4600
Comment 8 Mike Lothian 2018-05-11 01:45:47 UTC
The freeze is caused by a Mesa bug. The fix has been posted to the list, hopefully should be picked up soon
Comment 9 George Diamantopoulos 2018-05-24 18:55:05 UTC
To anyone in a hurry, applying the following three-liner as a user patch fixed this for me:

https://patchwork.freedesktop.org/patch/220544/
Comment 10 Andreas Sturmlechner gentoo-dev 2018-05-24 21:40:30 UTC
(In reply to George Diamantopoulos from comment #9)
> To anyone in a hurry, applying the following three-liner as a user patch
> fixed this for me:
> 
> https://patchwork.freedesktop.org/patch/220544/
Brief testing seems to confirm that. Still applies to mesa-18.1.0.
Comment 11 George Diamantopoulos 2018-06-02 00:10:41 UTC
Variant 2 of this patch is included with mesa-18.1.1, which is now in portage. Will test soon
Comment 12 Thomas Pfaff 2018-06-06 09:06:35 UTC
no more problems with mesa-18.1.1 and xorg-server-1.20.0, running for 2 days now
Comment 13 Paolo Pedroni 2018-06-07 09:31:55 UTC
(In reply to Thomas Pfaff from comment #12)
> no more problems with mesa-18.1.1 and xorg-server-1.20.0, running for 2 days
> now

I can confirm that.
Comment 14 Nils Freydank 2018-06-07 12:02:23 UTC
(In reply to Paolo Pedroni from comment #13)
> (In reply to Thomas Pfaff from comment #12)
> > no more problems with mesa-18.1.1 and xorg-server-1.20.0, running for 2 days
> > now
> 
> I can confirm that.

It runs fine on my system aswell (with same versions of mesa & xorg-server) for about a day. If I remember correctly the bug was triggered much faster (t <2h), so I assume it's safe see the bug as fixed.