Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sway swings far away in some cases.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
JustAnother
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2016
Posts: 104

PostPosted: Fri Dec 20, 2019 2:07 am    Post subject: Sway swings far away in some cases. Reply with quote

I've taken on the task of trying to install i3 and sway on three different gentoo computers.

Machine 1: VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RS740 [Radeon 2100]
Machine 2: VGA compatible controller: NVIDIA Corporation NV18M [GeForce4 448 Go] (rev a2)
Machine 3: VGA compatible controller: NVIDIA Corporation GT218M [GeForce 310M] (rev a2)

All three also have xfce4 installed.
Machine one has problems with xf86-video-ati-19.1.0: xfce4 hangs with just an underscore in upper left.
Machine 2 renders xfce4 but has off-center items.
Machine 3 renders xfce4 but the external monitor, which used to work sometimes, shows garbage.

I got i3 and sway to run one all three machines, with one big problem.

First, couple of quick suggestions:

-> Sway needs to set use variable "wallpapers" as a default, or the person
will install sway with an ugly background, and snarky messages about a busted
config file. Better to have the beautiful blue background with the beautiful
logo.

-> Sway will apparently try to use the i3 config file if the person installs and
forgets to copy /etc/sway/config over to their .config/sway, like I did. That can make
sway act up. I know there is a config wizard that should run, but the person
may not get it right the first time and mess up their install. If this
happens, the person won't be able to get out of i3 or sway, as dmenu and/or
the nag utility won't work. Better to point out in the docs that commands like

Code:
swagmsg exec exit, or i3-msg exec exit


can get you out of there if they are issued from any terminal shell. Otherwise you will be stuck there forever.

-> The same issue comes up if the person forgets to install dmenu. Widgets won't
work to get out of there, and another weird problem comes up. If I run
xfce4-terminal and then run htop in it, when sway is broken, the sway instance
(one of two) that is owned by the user (not root), will mysteriously hog
100% of the cpu on my admittedly slower 2004 laptop. If sway has all the
subcomponents working, this doesn't seem to happen, nor does the problem seem
to show up with the UX terminal. Better to suggest that people try out ps aux
and htop after installation, to see if everything is as it should be.

On Machine 1 I tried to (from a bare login terminal) run
Code:
[exec] ck-launch-session sway

and the entire computer hung. I can get into another login terminal and try
to kill the two sways - either root or user-owned, and that will hang all
terminals. But the six-finger salute does work - hold shift+print-screen, then
reisub. It reboots. (When X hangs, the six-finger salute usually turns into the
one-finger salute on the power button.) This is what is called a negatory
first-time experience -- not good.

So I tried
Code:
[exec] ck-launch-session sway > sway.log 2>&1

and then the necessary six-finger salute&reboot.

This is what showed up in sway.log:

radeon: Failed to allocate a buffer:
radeon: size : 4096 bytes
radeon: alignment : 4096 bytes
radeon: domains : 2
radeon: flags : 0
radeon: Failed to allocate a buffer:
radeon: size : 4096 bytes
radeon: alignment : 4096 bytes
radeon: domains : 2
radeon: flags : 0
radeon: The kernel rejected CS, see dmesg for more information (-16).
2019-12-18 14:04:45 - [backend/drm/legacy.c:21] VGA-1: Failed to page flip: Invalid argument
radeon: Failed to allocate a buffer:
radeon: size : 4096 bytes
radeon: alignment : 4096 bytes
radeon: domains : 2
radeon: flags : 0
radeon: Failed to allocate a buffer:
radeon: size : 4096 bytes
radeon: alignment : 4096 bytes
radeon: domains : 2
radeon: flags : 0
radeon: Failed to allocate a buffer:
radeon: size : 4096 bytes
radeon: alignment : 4096 bytes
radeon: domains : 2
radeon: flags : 0
radeon: Failed to allocate a buffer:
radeon: size : 4096 bytes
radeon: alignment : 4096 bytes
radeon: domains : 2
radeon: flags : 0
r300: Failed to create a transfer object.
radeon: Failed to allocate a buffer:
radeon: size : 1048576 bytes
radeon: alignment : 4096 bytes
radeon: domains : 2
radeon: flags : 0
radeon: Failed to allocate a buffer:
radeon: size : 1048576 bytes
radeon: alignment : 4096 bytes
radeon: domains : 2
radeon: flags : 0
radeon: Failed to allocate a buffer:
radeon: size : 4096 bytes
radeon: alignment : 4096 bytes
radeon: domains : 2
radeon: flags : 0
radeon: Failed to allocate a buffer:
radeon: size : 4096 bytes
radeon: alignment : 4096 bytes
radeon: domains : 2
radeon: flags : 0
radeon: The kernel rejected CS, see dmesg for more information (-16).
radeon: Failed to allocate a buffer:
radeon: size : 4096 bytes
radeon: alignment : 4096 bytes
radeon: domains : 2
radeon: flags : 0
radeon: Failed to allocate a buffer:
radeon: size : 4096 bytes
radeon: alignment : 4096 bytes
radeon: domains : 2
radeon: flags : 0
radeon: The kernel rejected CS, see dmesg for more information (-16).
radeon: Failed to allocate a buffer:
radeon: size : 4096 bytes
radeon: alignment : 4096 bytes
radeon: domains : 2
radeon: flags : 0
radeon: Failed to allocate a buffer:
radeon: size : 4096 bytes
radeon: alignment : 4096 bytes
radeon: domains : 2
radeon: flags : 0
radeon: The kernel rejected CS, see dmesg for more information (-16).
2019-12-18 14:04:46 - [backend/drm/legacy.c:21] VGA-1: Failed to page flip: Invalid argument
2019-12-18 14:04:46 - [swaybg-1.0/main.c:300] Found config * for output VGA-1 (Acer Technologies Acer X193W LDW0D0158510)
2019-12-18 14:04:46 - [backend/drm/legacy.c:21] VGA-1: Failed to page flip: Invalid argument
radeon: Failed to allocate a buffer:
radeon: size : 5185536 bytes
radeon: alignment : 4096 bytes
radeon: domains : 2
radeon: flags : 0
radeon: Failed to allocate a buffer:
radeon: size : 5185536 bytes
radeon: alignment : 4096 bytes
radeon: domains : 2
radeon: flags : 0
radeon: Failed to allocate a buffer:
radeon: size : 5185536 bytes
radeon: alignment : 4096 bytes
radeon: domains : 2
radeon: flags : 0
radeon: Failed to allocate a buffer:
radeon: size : 5185536 bytes
radeon: alignment : 4096 bytes
radeon: domains : 2
radeon: flags : 0
r300: Failed to create a transfer object.
2019-12-18 14:04:46 - [backend/drm/legacy.c:21] VGA-1: Failed to page flip: Invalid argument
2019-12-18 14:04:46 - [backend/drm/legacy.c:21] VGA-1: Failed to page flip: Invalid argument
radeon: Failed to allocate a buffer:
radeon: size : 126976 bytes
radeon: alignment : 4096 bytes
radeon: domains : 2
radeon: flags : 0
radeon: Failed to allocate a buffer:
radeon: size : 126976 bytes
radeon: alignment : 4096 bytes
radeon: domains : 2
radeon: flags : 0
radeon: Failed to allocate a buffer:
radeon: size : 126976 bytes
radeon: alignment : 4096 bytes
radeon: domains : 2
radeon: flags : 0
radeon: Failed to allocate a buffer:
radeon: size : 126976 bytes
radeon: alignment : 4096 bytes
radeon: domains : 2
radeon: flags : 0
r300: Failed to create a transfer object.
2019-12-18 14:04:46 - [backend/drm/legacy.c:21] VGA-1: Failed to page flip: Invalid argument
2019-12-18 14:04:46 - [backend/drm/legacy.c:21] VGA-1: Failed to page flip: Invalid argument
2019-12-18 14:04:46 - [backend/drm/legacy.c:21] VGA-1: Failed to page flip: Invalid argument
2019-12-18 14:04:46 - [backend/drm/legacy.c:21] VGA-1: Failed to page flip: Invalid argument
2019-12-18 14:04:46 - [backend/drm/legacy.c:21] VGA-1: Failed to page flip: Invalid argument
2019-12-18 14:04:46 - [backend/drm/legacy.c:21] VGA-1: Failed to page flip: Invalid argument
2019-12-18 14:04:46 - [backend/drm/legacy.c:21] VGA-1: Failed to page flip: Invalid argument
2019-12-18 14:04:46 - [backend/drm/legacy.c:21] VGA-1: Failed to page flip: Invalid argument
... and on and on forever and forever. That is probably why it hangs - sway is in some kind of infinite loop.

Dmesg shows nothing.

Obviously, something ain't working right.

Here is some ldd info:

Code:
sudo ldd $(which sway)


linux-vdso.so.1 (0x00007fff524a1000)
libcairo.so.2 => /usr/lib64/libcairo.so.2 (0x00007f245ce83000)
libjson-c.so.4 => /usr/lib64/libjson-c.so.4 (0x00007f245cc74000)
libevdev.so.2 => /usr/lib64/libevdev.so.2 (0x00007f245cc57000)
libinput.so.10 => /usr/lib64/libinput.so.10 (0x00007f245cc0d000)
libm.so.6 => /lib64/libm.so.6 (0x00007f245cac6000)
libpango-1.0.so.0 => /usr/lib64/libpango-1.0.so.0 (0x00007f245ca7e000)
libgobject-2.0.so.0 => /usr/lib64/libgobject-2.0.so.0 (0x00007f245ca21000)
libglib-2.0.so.0 => /usr/lib64/libglib-2.0.so.0 (0x00007f245c904000)
libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f245c892000)
libpixman-1.so.0 => /usr/lib64/libpixman-1.so.0 (0x00007f245c5ee000)
libwayland-server.so.0 => /usr/lib64/libwayland-server.so.0 (0x00007f245c5d8000)
libwlroots.so.3 => /usr/lib64/libwlroots.so.3 (0x00007f245c539000)
libxkbcommon.so.0 => /usr/lib64/libxkbcommon.so.0 (0x00007f245c4f5000)
libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007f245c2cc000)
libpangocairo-1.0.so.0 => /usr/lib64/libpangocairo-1.0.so.0 (0x00007f245c2be000)
libc.so.6 => /lib64/libc.so.6 (0x00007f245c0f2000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f245c0cf000)
libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00007f245be8c000)
libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007f245bbd1000)
libEGL.so.1 => /usr/lib64/libEGL.so.1 (0x00007f245bb9c000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f245bb96000)
libpng16.so.16 => /usr/lib64/libpng16.so.16 (0x00007f245b960000)
libxcb-shm.so.0 => /usr/lib64/libxcb-shm.so.0 (0x00007f245b75d000)
libxcb-render.so.0 => /usr/lib64/libxcb-render.so.0 (0x00007f245b54f000)
libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x00007f245b343000)
libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007f245b204000)
libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007f245aff2000)
libz.so.1 => /lib64/libz.so.1 (0x00007f245afd8000)
libGL.so.1 => /usr/lib64/libGL.so.1 (0x00007f245af60000)
librt.so.1 => /lib64/librt.so.1 (0x00007f245af56000)
/lib64/ld-linux-x86-64.so.2 (0x00007f245d057000)
libmtdev.so.1 => /usr/lib64/libmtdev.so.1 (0x00007f245ad4e000)
libudev.so.1 => /lib64/libudev.so.1 (0x00007f245ad27000)
libfribidi.so.0 => /usr/lib64/libfribidi.so.0 (0x00007f245ad09000)
libffi.so.7 => /usr/lib64/libffi.so.7 (0x00007f245acfd000)
libcap.so.2 => /lib64/libcap.so.2 (0x00007f245acf5000)
libwayland-client.so.0 => /usr/lib64/libwayland-client.so.0 (0x00007f245ace2000)
libwayland-egl.so.1 => /usr/lib64/libwayland-egl.so.1 (0x00007f245acdd000)
libGLESv2.so.2 => /usr/lib64/libGLESv2.so.2 (0x00007f245acd1000)
libdrm.so.2 => /usr/lib64/libdrm.so.2 (0x00007f245acbd000)
libgbm.so.1 => /usr/lib64/libgbm.so.1 (0x00007f245acac000)
libxcb-composite.so.0 => /usr/lib64/libxcb-composite.so.0 (0x00007f245aaa9000)
libxcb-xfixes.so.0 => /usr/lib64/libxcb-xfixes.so.0 (0x00007f245a89f000)
libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007f245a69b000)
libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00007f245a495000)
libpangoft2-1.0.so.0 => /usr/lib64/libpangoft2-1.0.so.0 (0x00007f245a47d000)
libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007f245a442000)
libuuid.so.1 => /lib64/libuuid.so.1 (0x00007f245a437000)
libbz2.so.1 => /lib64/libbz2.so.1 (0x00007f245a424000)
libglapi.so.0 => /usr/lib64/libglapi.so.0 (0x00007f245a3f0000)
libX11-xcb.so.1 => /usr/lib64/libX11-xcb.so.1 (0x00007f245a3eb000)
libxcb-dri2.so.0 => /usr/lib64/libxcb-dri2.so.0 (0x00007f245a1e6000)
libxcb-dri3.so.0 => /usr/lib64/libxcb-dri3.so.0 (0x00007f2459fe2000)
libxcb-present.so.0 => /usr/lib64/libxcb-present.so.0 (0x00007f2459ddd000)
libxcb-sync.so.1 => /usr/lib64/libxcb-sync.so.1 (0x00007f2459bd6000)
libxshmfence.so.1 => /usr/lib64/libxshmfence.so.1 (0x00007f24599d4000)
libxcb-glx.so.0 => /usr/lib64/libxcb-glx.so.0 (0x00007f24597b9000)
libXfixes.so.3 => /usr/lib64/libXfixes.so.3 (0x00007f24595b3000)
libXdamage.so.1 => /usr/lib64/libXdamage.so.1 (0x00007f24593ae000)
libXxf86vm.so.1 => /usr/lib64/libXxf86vm.so.1 (0x00007f24591a8000)
libbsd.so.0 => /usr/lib64/libbsd.so.0 (0x00007f245918f000)
libharfbuzz.so.0 => /usr/lib64/libharfbuzz.so.0 (0x00007f2459089000)
libgraphite2.so.3 => /usr/lib64/libgraphite2.so.3 (0x00007f2459062000)

That's a lot of libraries. Any more libraries than that and the whole computer
would implode and become a black hole.

Anyway, I don't know what to do about this bug, execpt start searching the
source code, if there is any, or the binaries, for these error strings.
The sway web site does not mention any of this, so it could be a gentoo thing.

Other than this big nasty, sway works pretty well, ignoring a few quirks.

Any help would be appreciated.
Back to top
View user's profile Send private message
mike155
Veteran
Veteran


Joined: 17 Sep 2010
Posts: 1994
Location: Frankfurt, Germany

PostPosted: Fri Dec 20, 2019 2:31 am    Post subject: Reply with quote

Please post the output of
Code:
emerge --info

on machine 1. It will tell us more about your machine.
Back to top
View user's profile Send private message
JustAnother
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2016
Posts: 104

PostPosted: Fri Dec 20, 2019 3:31 am    Post subject: Reply with quote

Here goes:

Portage 2.3.79 (python 3.6.9-final-0, default/linux/amd64/17.0/desktop, gcc-8.3.0, glibc-2.29-r7, 4.19.86-gentoo_2019-12-01 x86_64)
=================================================================
System uname: Linux-4.19.86-gentoo_2019-12-01-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6000+-with-gentoo-2.6
KiB Mem: 2938616 total, 541724 free
KiB Swap: 16777212 total, 16337404 free
Timestamp of repository gentoo: Wed, 18 Dec 2019 02:30:01 +0000
Head commit of repository gentoo: 441645d6e78fd4a0f2cc9d2f5196f1ba5c2f85da
Head commit of repository brother-overlay: 7603f9a413f84b5b0f886bb58a7bbedec0aba62f

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash: 4.4_p23-r1::gentoo
dev-java/java-config: 2.2.0-r4::gentoo
dev-lang/perl: 5.30.1::gentoo
dev-lang/python: 2.7.17::gentoo, 3.6.9::gentoo
dev-util/cmake: 3.14.6::gentoo
dev-util/pkgconfig: 0.29.2::gentoo
sys-apps/baselayout: 2.6-r1::gentoo
sys-apps/openrc: 0.41.2::gentoo
sys-apps/sandbox: 2.13::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake: 1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils: 2.32-r1::gentoo
sys-devel/gcc: 8.3.0-r1::gentoo, 9.2.0-r2::gentoo
sys-devel/gcc-config: 2.1::gentoo
sys-devel/libtool: 2.4.6-r3::gentoo
sys-devel/make: 4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc: 2.29-r7::gentoo
Repositories:

gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-extra-opts:
sync-rsync-verify-jobs: 1
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-max-age: 24

brother-overlay
location: /usr/local/overlay/brother-overlay
sync-type: git
sync-uri: https://github.com/stefan-langenmaier/brother-overlay.git
masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE Vivaldi"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/ext-active/ /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="-march=native -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://lug.mtu.edu/gentoo/ ftp://lug.mtu.edu/gentoo/ ftp://mirrors.rit.edu/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/"
LANG="en_US.UTF-8"
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="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit crypt cscope cups cxx dbus dri dts dvd dvdr emboss encode exif fam flac fortran gdbm gif gpm gtk hddtemp iconv icu ipv6 jpeg lcms ldap libgda libnotify libtirpc lm-sensors mad mng mp3 mp4 mpeg multilib ncurses nls nptl objc ogg opengl openmp pam pango pcre pdf perl php png policykit postscript ppds python qt5 raw readline ruby samba sdl seccomp sockets sound spell split-usr sqlite ssl startup-notification svg symlink syslog tcpd tiff tokenizer truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext sse sse2 sse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="radeon" XFCE_PLUGINS="brightness clock trash" 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, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

I'm trying to find one of these strings by the shotgun approach, but not getting a hit:

Code:
find /lib64 -type f -name "*.so.*" | xargs strings  | egrep "allocate a buffer"


Don't these libraries contain the error strings?
Back to top
View user's profile Send private message
mike155
Veteran
Veteran


Joined: 17 Sep 2010
Posts: 1994
Location: Frankfurt, Germany

PostPosted: Fri Dec 20, 2019 6:26 am    Post subject: Reply with quote

Thanks for the data.

  1. I think you should add USE flag 'wayland' in 'make.conf', probably also USE flags 'egl' and 'libinput'. After that, run
    Code:
    emerge --update --deep --newuse -av @world

  2. Do you know the pages below? They helped me when I installed Sway.


  3. Not related to the problem you reported: GCC 9.2 is installed, but you haven't switched to it: use gcc-config to switch.

  4. Probably not related to the problem you reported: you're still on profile 17.0. Use this guide to switch to 17.1. Unfortunately, it's not trivial.
Back to top
View user's profile Send private message
JustAnother
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2016
Posts: 104

PostPosted: Sat Dec 21, 2019 1:19 am    Post subject: Reply with quote

I set wayland, egl, libinput in make.conf as you suggested.

I did this (the exclude is to keep xfce4 from hanging as mentioned above):

Code:
root%emerge:~$ emerge -uDNva --exclude xf86-video-ati @world

...
These are the packages that would be merged, in order:
  The following REQUIRED_USE flag constraints are unsatisfied:
    wayland? ( gles )
...

This appears to be a routine complaint that I fixed up in package.use

Once again:

Code:
Calculating dependencies  .. . ............. done!
[ebuild   R    ] media-libs/mesa-19.1.8::gentoo  USE="classic dri3 egl gallium gbm gles2 llvm lm-sensors wayland* -d3d9 -debug -gles1 (-libglvnd) -opencl -osm
esa -pax_kernel -pic (-selinux) -test -unwind -vaapi -valgrind -vdpau -vulkan -vulkan-overlay -xa -xvmc" ABI_X86="(64) -32 (-x32)" VIDEO_CARDS="radeon (-freed
reno) -i915 -i965 -intel -iris -nouveau -r100 -r200 -r300 -r600 -radeonsi (-vc4) -virgl (-vivante) -vmware" 0 KiB
[ebuild   R    ] media-libs/libsdl2-2.0.10::gentoo  USE="X alsa dbus gles* joystick opengl sound threads udev video wayland* (-altivec) (-aqua) (-custom-cflag
s) -haptic -kms -libsamplerate -nas -oss -pulseaudio -static-libs -tslib -vulkan -xinerama -xscreensaver" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="3dnow mmx s
se sse2" VIDEO_CARDS="(-vc4)" 0 KiB
[ebuild   R    ] media-libs/gst-plugins-base-1.14.5-r1:1.0::gentoo  USE="X alsa egl introspection nls ogg opengl orc pango vorbis wayland* -gbm -gles2 -ivorbis -theora" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] dev-qt/qtgui-5.12.5:5/5.12::gentoo  USE="dbus egl gif jpeg libinput png udev wayland* xcb -accessibility -debug -eglfs -evdev (-gles2) -ibus -test -tslib -tuio -vnc" 0 KiB
[ebuild  N     ] dev-qt/qtwayland-5.12.5:5/5.12::gentoo  USE="libinput -debug -test -xcomposite" 438 KiB
[ebuild   R    ] x11-libs/gtk+-3.24.11:3::gentoo  USE="X cups introspection wayland* (-aqua) -broadway -cloudprint -colord -examples -gtk-doc -test -vim-syntax -xinerama" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] media-plugins/gst-plugins-gtk-1.14.5:1.0::gentoo  USE="X egl opengl wayland* -gles2" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] dev-cpp/gtkmm-3.24.2:3.0::gentoo  USE="X wayland* (-aqua) -doc -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] media-libs/gst-plugins-bad-1.14.5:1.0::gentoo  USE="X bzip2 egl gtk introspection nls opengl orc wayland* -gles2 -test -vcd -vnc" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-block/gparted-0.33.0::gentoo  USE="policykit wayland* -btrfs -cryptsetup -dmraid -f2fs -fat -hfs -jfs -kde -mdadm -ntfs -reiser4 -reiserfs -udf -xfs" 0 KiB


And the packages built without incident.

There is a chance that when I said I ran

Code:
ck-launch-session sway -d > sway.log 2>&1

that I forgot the -d part. Anyway, here is what a new attempt to run sway produced:

Code:
2019-12-20 17:54:54 - [sway/main.c:152] Linux genny 4.19.86-gentoo_2019-12-01 #1 SMP Sun Dec 1 11:34:10 MST 2019 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 6000+ AuthenticAMD GNU/Linux
2019-12-20 17:54:54 - [sway/main.c:168] Contents of /etc/os-release:
2019-12-20 17:54:54 - [sway/main.c:152] NAME=Gentoo
2019-12-20 17:54:54 - [sway/main.c:152] ID=gentoo
2019-12-20 17:54:54 - [sway/main.c:152] PRETTY_NAME="Gentoo/Linux"
2019-12-20 17:54:54 - [sway/main.c:152] ANSI_COLOR="1;32"
2019-12-20 17:54:54 - [sway/main.c:152] HOME_URL="https://www.gentoo.org/"
2019-12-20 17:54:54 - [sway/main.c:152] SUPPORT_URL="https://www.gentoo.org/support/"
2019-12-20 17:54:54 - [sway/main.c:152] BUG_REPORT_URL="https://bugs.gentoo.org/"
2019-12-20 17:54:54 - [sway/main.c:168] Contents of /etc/gentoo-release:
2019-12-20 17:54:54 - [sway/main.c:152] Gentoo Base System release 2.6
2019-12-20 17:54:54 - [sway/main.c:140] LD_LIBRARY_PATH=(null)
2019-12-20 17:54:54 - [sway/main.c:140] LD_PRELOAD=(null)
2019-12-20 17:54:54 - [sway/main.c:140] PATH=/home/me/app/batch:/home/me/app/batch/back:/home/me/app/build/batch:/usr/lib/llvm/8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin
2019-12-20 17:54:54 - [sway/main.c:140] SWAYSOCK=(null)
2019-12-20 17:54:54 - [sway/server.c:39] Preparing Wayland server initialization
2019-12-20 17:54:54 - [backend/session/direct.c:271] Successfully loaded direct session
2019-12-20 17:54:54 - [backend/backend.c:192] Found 1 GPUs
2019-12-20 17:54:54 - [backend/drm/backend.c:152] Initializing DRM backend for /dev/dri/card0 (radeon)
2019-12-20 17:54:54 - [backend/drm/drm.c:66] Atomic modesetting unsupported, using legacy DRM interface
2019-12-20 17:54:54 - [backend/drm/drm.c:254] Found 2 DRM CRTCs
2019-12-20 17:54:54 - [backend/drm/drm.c:175] Found 2 DRM planes
2019-12-20 17:54:54 - [render/egl.c:174] Using EGL 1.4
2019-12-20 17:54:54 - [render/egl.c:175] Supported EGL extensions: EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_image_dma_buf_export EGL_WL_bind_wayland_display
2019-12-20 17:54:54 - [render/egl.c:176] EGL vendor: Mesa Project
2019-12-20 17:54:54 - [render/egl.c:119] Supported dmabuf buffer formats: AR24 XR24
2019-12-20 17:54:54 - [render/gles2/renderer.c:546] Using OpenGL ES 2.0 Mesa 19.1.8
2019-12-20 17:54:54 - [render/gles2/renderer.c:547] GL vendor: X.Org R300 Project
2019-12-20 17:54:54 - [render/gles2/renderer.c:548] GL renderer: ATI RS740
2019-12-20 17:54:54 - [render/gles2/renderer.c:549] Supported GLES2 extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_filter_anisotropic GL_EXT_texture_compression_s3tc GL_EXT_texture_compression_dxt1 GL_EXT_texture_format_BGRA8888 GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_stencil8 GL_OES_texture_3D GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_npot GL_OES_vertex_half_float GL_OES_EGL_image GL_OES_depth_texture GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV GL_NV_conditional_render GL_OES_get_program_binary GL_APPLE_texture_max_level GL_EXT_discard_framebuffer GL_EXT_read_format_bgra GL_EXT_frag_depth GL_NV_fbo_color_attachments GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_array_object GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_EXT_occlusion_query_boolean GL_EXT_texture_rg GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug GL_KHR_texture_compression_astc_ldr GL_OES_required_internalformat GL_OES_surfaceless_context GL_EXT_separate_shader_objects GL_EXT_compressed_ETC1_RGB8_sub_texture GL_EXT_draw_elements_base_vertex GL_EXT_texture_border_clamp GL_KHR_context_flush_control GL_OES_draw_elements_base_vertex GL_OES_texture_border_clamp GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_EXT_texture_compression_s3tc_srgb GL_KHR_parallel_shader_compile
2019-12-20 17:54:54 - [backend/noop/backend.c:51] Creating noop backend
2019-12-20 17:54:54 - [sway/main.c:363] Starting sway version 1.2
2019-12-20 17:54:54 - [sway/server.c:53] Initializing Wayland server
2019-12-20 17:54:54 - [types/wlr_idle.c:258] idle manager created
2019-12-20 17:54:54 - [types/wlr_idle_inhibit_v1.c:191] idle_inhibit manager created
2019-12-20 17:54:54 - [types/wlr_relative_pointer_v1.c:228] relative_pointer_v1 manager created
2019-12-20 17:54:54 - [sway/config.c:392] Loading config from /home/me/.config/sway/config
2019-12-20 17:54:54 - [sway/config.c:787] Read line 1: # Default config for sway
2019-12-20 17:54:54 - [sway/config.c:787] Read line 2: #
2019-12-20 17:54:54 - [sway/config.c:787] Read line 3: # Copy this to ~/.config/sway/config and edit it to your liking.
2019-12-20 17:54:54 - [sway/config.c:787] Read line 4: #
2019-12-20 17:54:54 - [sway/config.c:787] Read line 5: # Read `man 5 sway` for a complete reference.
2019-12-20 17:54:54 - [sway/config.c:787] Read line 6:
2019-12-20 17:54:54 - [sway/config.c:787] Read line 7: ### Variables
2019-12-20 17:54:54 - [sway/config.c:787] Read line 8: #
2019-12-20 17:54:54 - [sway/config.c:787] Read line 9: # Logo key. Use Mod1 for Alt.
2019-12-20 17:54:54 - [sway/config.c:787] Read line 10: set $mod Mod4
2019-12-20 17:54:54 - [sway/commands.c:367] Config command: set $mod Mod4
2019-12-20 17:54:54 - [sway/commands.c:387] After replacement: set $mod Mod4
2019-12-20 17:54:54 - [sway/config.c:787] Read line 11: # Home row direction keys, like vim
2019-12-20 17:54:54 - [sway/config.c:787] Read line 12: set $left h
2019-12-20 17:54:54 - [sway/commands.c:367] Config command: set $left h
2019-12-20 17:54:54 - [sway/commands.c:387] After replacement: set $left h
2019-12-20 17:54:54 - [sway/config.c:787] Read line 13: set $down j
2019-12-20 17:54:54 - [sway/commands.c:367] Config command: set $down j
2019-12-20 17:54:54 - [sway/commands.c:387] After replacement: set $down j
2019-12-20 17:54:54 - [sway/config.c:787] Read line 14: set $up k
2019-12-20 17:54:54 - [sway/commands.c:367] Config command: set $up k
2019-12-20 17:54:54 - [sway/commands.c:387] After replacement: set $up k
2019-12-20 17:54:54 - [sway/config.c:787] Read line 15: set $right l
2019-12-20 17:54:54 - [sway/commands.c:367] Config command: set $right l
2019-12-20 17:54:54 - [sway/commands.c:387] After replacement: set $right l
2019-12-20 17:54:54 - [sway/config.c:787] Read line 16: # Your preferred terminal emulator
2019-12-20 17:54:54 - [sway/config.c:787] Read line 17: set $term urxvt
2019-12-20 17:54:54 - [sway/commands.c:367] Config command: set $term urxvt
2019-12-20 17:54:54 - [sway/commands.c:387] After replacement: set $term urxvt
2019-12-20 17:54:54 - [sway/config.c:787] Read line 18: # Your preferred application launcher
2019-12-20 17:54:54 - [sway/config.c:787] Read line 19: # Note: it's recommended that you pass the final command to sway
2019-12-20 17:54:54 - [sway/config.c:787] Read line 20: set $menu dmenu_path | dmenu | xargs swaymsg exec
2019-12-20 17:54:54 - [sway/commands.c:367] Config command: set $menu dmenu_path | dmenu | xargs swaymsg exec
2019-12-20 17:54:54 - [sway/commands.c:387] After replacement: set $menu dmenu_path | dmenu | xargs swaymsg exec
2019-12-20 17:54:54 - [sway/config.c:787] Read line 21:
2019-12-20 17:54:54 - [sway/config.c:787] Read line 22: ### Output configuration
2019-12-20 17:54:54 - [sway/config.c:787] Read line 23: #
2019-12-20 17:54:54 - [sway/config.c:787] Read line 24: # Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
2019-12-20 17:54:54 - [sway/config.c:787] Read line 25: output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
2019-12-20 17:54:54 - [sway/commands.c:367] Config command: output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
2019-12-20 17:54:54 - [sway/commands.c:387] After replacement: output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
2019-12-20 17:54:54 - [sway/commands.c:418] Subcommand: bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
2019-12-20 17:54:55 - [sway/config/output.c:191] Adding output * config
2019-12-20 17:54:55 - [sway/config/output.c:199] Config stored for output * (enabled: -1) (-1x-1@-1.000000Hz position -1,-1 scale -1.000000 subpixel unknown transform -1) (bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill) (dpms 0)
2019-12-20 17:54:55 - [sway/config/output.c:614] spawn_swaybg cmd[0] = swaybg
2019-12-20 17:54:55 - [sway/config/output.c:614] spawn_swaybg cmd[1] = -o
2019-12-20 17:54:55 - [sway/config/output.c:614] spawn_swaybg cmd[2] = *
2019-12-20 17:54:55 - [sway/config/output.c:614] spawn_swaybg cmd[3] = -i
2019-12-20 17:54:55 - [sway/config/output.c:614] spawn_swaybg cmd[4] = /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png
2019-12-20 17:54:55 - [sway/config/output.c:614] spawn_swaybg cmd[5] = -m
2019-12-20 17:54:55 - [sway/config/output.c:614] spawn_swaybg cmd[6] = fill

-> This section parsed the config file.

2019-12-20 17:54:55 - [sway/server.c:176] Initializing Xwayland
2019-12-20 17:54:55 - [sway/server.c:193] Starting backend on wayland display 'wayland-0'
2019-12-20 17:54:55 - [backend/drm/drm.c:1161] Scanning DRM connectors
2019-12-20 17:54:55 - [backend/drm/drm.c:1224] Found connector 'VGA-1'
2019-12-20 17:54:55 - [backend/drm/drm.c:1260] 'VGA-1' connected
2019-12-20 17:54:55 - [backend/drm/drm.c:1262] Current CRTC: 39
2019-12-20 17:54:55 - [backend/drm/drm.c:1267] Physical size: 410x260
2019-12-20 17:54:55 - [backend/drm/drm.c:1278] Detected modes:
2019-12-20 17:54:55 - [backend/drm/drm.c:1302]   1440x900@59887
2019-12-20 17:54:55 - [backend/drm/drm.c:1302]   1280x1024@75025
2019-12-20 17:54:55 - [backend/drm/drm.c:1302]   1280x1024@60020
2019-12-20 17:54:55 - [backend/drm/drm.c:1302]   1440x900@74984
2019-12-20 17:54:55 - [backend/drm/drm.c:1302]   1280x960@60000
2019-12-20 17:54:55 - [backend/drm/drm.c:1302]   1280x800@59810
2019-12-20 17:54:55 - [backend/drm/drm.c:1302]   1152x864@75000
2019-12-20 17:54:55 - [backend/drm/drm.c:1302]   1280x720@60000
2019-12-20 17:54:55 - [backend/drm/drm.c:1302]   1024x768@75029
2019-12-20 17:54:55 - [backend/drm/drm.c:1302]   1024x768@70069
2019-12-20 17:54:55 - [backend/drm/drm.c:1302]   1024x768@60004
2019-12-20 17:54:55 - [backend/drm/drm.c:1302]   832x624@74551
2019-12-20 17:54:55 - [backend/drm/drm.c:1302]   800x600@75000
2019-12-20 17:54:55 - [backend/drm/drm.c:1302]   800x600@72188
2019-12-20 17:54:55 - [backend/drm/drm.c:1302]   800x600@60317
2019-12-20 17:54:55 - [backend/drm/drm.c:1302]   800x600@56250
2019-12-20 17:54:55 - [backend/drm/drm.c:1302]   640x480@75000
2019-12-20 17:54:55 - [backend/drm/drm.c:1302]   640x480@72809
2019-12-20 17:54:55 - [backend/drm/drm.c:1302]   640x480@66667
2019-12-20 17:54:55 - [backend/drm/drm.c:1302]   640x480@59940
2019-12-20 17:54:55 - [backend/drm/drm.c:1302]   720x400@70082
2019-12-20 17:54:55 - [backend/drm/drm.c:1224] Found connector 'DVI-D-1'
2019-12-20 17:54:55 - [backend/drm/drm.c:1224] Found connector 'DVI-D-2'
2019-12-20 17:54:55 - [backend/drm/drm.c:991] Reallocating CRTCs
2019-12-20 17:54:55 - [backend/drm/drm.c:1002] State before reallocation:
2019-12-20 17:54:55 - [backend/drm/drm.c:1011]   'VGA-1' crtc=0 state=1 desired_enabled=1
2019-12-20 17:54:55 - [backend/drm/drm.c:1011]   'DVI-D-1' crtc=-1 state=0 desired_enabled=0
2019-12-20 17:54:55 - [backend/drm/drm.c:1011]   'DVI-D-2' crtc=-1 state=0 desired_enabled=0
2019-12-20 17:54:55 - [backend/drm/drm.c:1060] State after reallocation:
2019-12-20 17:54:55 - [backend/drm/drm.c:1070]   'VGA-1' crtc=0 state=1 desired_enabled=1
2019-12-20 17:54:55 - [backend/drm/drm.c:1070]   'DVI-D-1' crtc=-1 state=0 desired_enabled=0
2019-12-20 17:54:55 - [backend/drm/drm.c:1070]   'DVI-D-2' crtc=-1 state=0 desired_enabled=0
2019-12-20 17:54:55 - [backend/drm/drm.c:1364] Requesting modeset for 'VGA-1'
2019-12-20 17:54:55 - [sway/desktop/output.c:686] New output 0x5639e6631400: VGA-1
2019-12-20 17:54:55 - [backend/drm/drm.c:595] Modesetting 'VGA-1' with '1440x900@59887 mHz'
2019-12-20 17:54:55 - [backend/drm/drm.c:503] Starting renderer on output 'VGA-1'
radeon: Failed to allocate a buffer:
radeon:    size      : 4096 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 0
radeon: Failed to allocate a buffer:
radeon:    size      : 4096 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 0
radeon: The kernel rejected CS, see dmesg for more information (-16).
2019-12-20 17:54:55 - [backend/drm/legacy.c:21] VGA-1: Failed to page flip: Invalid argument
2019-12-20 17:54:55 - [sway/tree/workspace.c:284] Workspace: Generating new workspace name for output VGA-1
2019-12-20 17:54:55 - [sway/tree/workspace.c:219] Got valid workspace command for target: '1'
2019-12-20 17:54:55 - [sway/tree/workspace.c:274] Workspace: Found free name 1
2019-12-20 17:54:55 - [sway/tree/workspace.c:219] Got valid workspace command for target: '2'
2019-12-20 17:54:55 - [sway/tree/workspace.c:219] Got valid workspace command for target: '3'
2019-12-20 17:54:55 - [sway/tree/workspace.c:219] Got valid workspace command for target: '4'
2019-12-20 17:54:55 - [sway/tree/workspace.c:219] Got valid workspace command for target: '5'
2019-12-20 17:54:55 - [sway/tree/workspace.c:219] Got valid workspace command for target: '6'
2019-12-20 17:54:55 - [sway/tree/workspace.c:219] Got valid workspace command for target: '7'
2019-12-20 17:54:55 - [sway/tree/workspace.c:219] Got valid workspace command for target: '8'
2019-12-20 17:54:55 - [sway/tree/workspace.c:219] Got valid workspace command for target: '9'
2019-12-20 17:54:55 - [sway/tree/workspace.c:219] Got valid workspace command for target: '10'
2019-12-20 17:54:55 - [sway/tree/output.c:132] Creating default workspace 1
2019-12-20 17:54:55 - [sway/tree/workspace.c:64] Adding workspace 1 for output VGA-1
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:244] Loaded cursor theme 'default', available cursors:
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] bottom_left_corner (1 images) 16x16+1,14
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] bottom_right_corner (1 images) 16x16+14,14
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] bottom_side (1 images) 15x16+7,14
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] grabbing (1 images) 16x16+8,8
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] left_ptr (1 images) 10x16+1,1
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] left_side (1 images) 16x15+1,7
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] right_side (1 images) 16x15+14,7
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] top_left_corner (1 images) 16x16+1,1
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] top_right_corner (1 images) 16x16+14,1
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] top_side (1 images) 15x16+7,1
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] xterm (1 images) 9x16+4,8
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] hand1 (1 images) 13x16+12,0
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] watch (1 images) 16x16+15,9
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:244] Loaded cursor theme 'default', available cursors:
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] bottom_left_corner (1 images) 16x16+1,14
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] bottom_right_corner (1 images) 16x16+14,14
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] bottom_side (1 images) 15x16+7,14
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] grabbing (1 images) 16x16+8,8
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] left_ptr (1 images) 10x16+1,1
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] left_side (1 images) 16x15+1,7
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] right_side (1 images) 16x15+14,7
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] top_left_corner (1 images) 16x16+1,1
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] top_right_corner (1 images) 16x16+14,1
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] top_side (1 images) 15x16+7,1
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] xterm (1 images) 9x16+4,8
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] hand1 (1 images) 13x16+12,0
2019-12-20 17:54:55 - [xcursor/wlr_xcursor.c:250] watch (1 images) 16x16+15,9
2019-12-20 17:54:55 - [sway/desktop/layer_shell.c:178] Usable area changed, rearranging output
2019-12-20 17:54:55 - [sway/tree/arrange.c:262] Usable area for ws: 1440x900@0,0
2019-12-20 17:54:55 - [sway/tree/arrange.c:292] Arranging workspace '1' at 0.000000, 0.000000
2019-12-20 17:54:55 - [sway/tree/arrange.c:262] Usable area for ws: 1440x900@0,0
2019-12-20 17:54:55 - [sway/tree/arrange.c:292] Arranging workspace '1' at 0.000000, 0.000000
2019-12-20 17:54:55 - [sway/desktop/transaction.c:412] Transaction 0x5639e6089410 committing with 2 instructions
2019-12-20 17:54:55 - [sway/desktop/transaction.c:280] Applying transaction 0x5639e6089410
2019-12-20 17:54:55 - [backend/libinput/backend.c:55] Initializing libinput
2019-12-20 17:54:55 - [backend/libinput/events.c:94] Added Power Button [0:1]
2019-12-20 17:54:55 - [sway/input/input-manager.c:216] adding device: '0:1:Power_Button'
2019-12-20 17:54:55 - [sway/input/input-manager.c:165] no fallback seat config - creating default
2019-12-20 17:54:55 - [sway/config/seat.c:60] Adding non-wildcard seat config
2019-12-20 17:54:55 - [sway/config/seat.c:77] Config stored for seat seat0
2019-12-20 17:54:55 - [sway/input/input-manager.c:398] applying seat config for seat seat0
2019-12-20 17:54:55 - [sway/input/seat.c:728] adding device 0:1:Power_Button to seat seat0
2019-12-20 17:54:55 - [backend/libinput/events.c:94] Added Power Button [0:1]
2019-12-20 17:54:55 - [sway/input/input-manager.c:216] adding device: '0:1:Power_Button'
2019-12-20 17:54:55 - [sway/input/seat.c:728] adding device 0:1:Power_Button to seat seat0
2019-12-20 17:54:55 - [backend/libinput/events.c:94] Added Logitech USB Optical Mouse [1133:49271]
2019-12-20 17:54:55 - [sway/input/input-manager.c:216] adding device: '1133:49271:Logitech_USB_Optical_Mouse'
2019-12-20 17:54:55 - [sway/input/seat.c:728] adding device 1133:49271:Logitech_USB_Optical_Mouse to seat seat0
radeon: Failed to allocate a buffer:
radeon:    size      : 4096 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 0
radeon: Failed to allocate a buffer:
radeon:    size      : 4096 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 0
radeon: Failed to allocate a buffer:
radeon:    size      : 4096 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 0
radeon: Failed to allocate a buffer:
radeon:    size      : 4096 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 0
r300: Failed to create a transfer object.
radeon: Failed to allocate a buffer:
radeon:    size      : 1048576 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 0
radeon: Failed to allocate a buffer:
radeon:    size      : 1048576 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 0
radeon: Failed to allocate a buffer:
radeon:    size      : 4096 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 0
radeon: Failed to allocate a buffer:
radeon:    size      : 4096 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 0
radeon: The kernel rejected CS, see dmesg for more information (-16).
radeon: Failed to allocate a buffer:
radeon:    size      : 4096 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 0
radeon: Failed to allocate a buffer:
radeon:    size      : 4096 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 0
radeon: The kernel rejected CS, see dmesg for more information (-16).
2019-12-20 17:54:55 - [backend/libinput/events.c:94] Added Logitech USB Keyboard [1133:49958]
2019-12-20 17:54:55 - [sway/input/input-manager.c:216] adding device: '1133:49958:Logitech_USB_Keyboard'
2019-12-20 17:54:55 - [sway/input/seat.c:728] adding device 1133:49958:Logitech_USB_Keyboard to seat seat0
2019-12-20 17:54:55 - [backend/libinput/events.c:94] Added Logitech USB Keyboard Consumer Control [1133:49958]
2019-12-20 17:54:55 - [sway/input/input-manager.c:216] adding device: '1133:49958:Logitech_USB_Keyboard_Consumer_Control'
2019-12-20 17:54:55 - [sway/input/seat.c:728] adding device 1133:49958:Logitech_USB_Keyboard_Consumer_Control to seat seat0
2019-12-20 17:54:55 - [sway/input/input-manager.c:216] adding device: '1133:49958:Logitech_USB_Keyboard_Consumer_Control'
2019-12-20 17:54:55 - [sway/input/seat.c:728] adding device 1133:49958:Logitech_USB_Keyboard_Consumer_Control to seat seat0
2019-12-20 17:54:55 - [backend/libinput/events.c:94] Added Logitech USB Keyboard System Control [1133:49958]
2019-12-20 17:54:55 - [sway/input/input-manager.c:216] adding device: '1133:49958:Logitech_USB_Keyboard_System_Control'
2019-12-20 17:54:55 - [sway/input/seat.c:728] adding device 1133:49958:Logitech_USB_Keyboard_System_Control to seat seat0
2019-12-20 17:54:55 - [backend/libinput/events.c:94] Added Logitech USB Keyboard [1133:49958]
2019-12-20 17:54:55 - [sway/input/input-manager.c:216] adding device: '1133:49958:Logitech_USB_Keyboard'
2019-12-20 17:54:55 - [sway/input/seat.c:728] adding device 1133:49958:Logitech_USB_Keyboard to seat seat0
2019-12-20 17:54:55 - [backend/libinput/events.c:94] Added HDA ATI SB Rear Mic [0:0]
2019-12-20 17:54:55 - [backend/libinput/events.c:94] Added HDA ATI SB Front Mic [0:0]
2019-12-20 17:54:55 - [backend/libinput/events.c:94] Added HDA ATI SB Line [0:0]
2019-12-20 17:54:55 - [backend/libinput/events.c:94] Added HDA ATI SB Line Out [0:0]
2019-12-20 17:54:55 - [backend/libinput/events.c:94] Added HDA ATI SB Front Headphone [0:0]
2019-12-20 17:54:55 - [backend/libinput/backend.c:101] libinput successfully initialized
2019-12-20 17:54:55 - [sway/config/bar.c:261] Invoking swaybar for bar id 'bar-0'
2019-12-20 17:54:55 - [sway/config/bar.c:253] Spawned swaybar bar-0
2019-12-20 17:54:55 - [sway/server.c:204] Running compositor on wayland display 'wayland-0'
2019-12-20 17:54:55 - [backend/drm/drm.c:950] VGA-1: Retrying pageflip
2019-12-20 17:54:55 - [backend/drm/drm.c:503] Starting renderer on output 'VGA-1'
radeon: Failed to allocate a buffer:
radeon:    size      : 4096 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 0
radeon: Failed to allocate a buffer:
radeon:    size      : 4096 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 0
radeon: The kernel rejected CS, see dmesg for more information (-16).
2019-12-20 17:54:55 - [backend/drm/legacy.c:21] VGA-1: Failed to page flip: Invalid argument
2019-12-20 17:54:55 - [swaybg-1.0/main.c:300] Found config * for output VGA-1 (Acer Technologies Acer X193W LDW0D0158510)
2019-12-20 17:54:55 - [types/wlr_surface.c:609] New wlr_surface 0x5639e67b6650 (res 0x5639e6875770)
2019-12-20 17:54:55 - [types/wlr_layer_shell_v1.c:416] new layer_surface 0x5639e67b6970 (res 0x5639e6811360)
2019-12-20 17:54:55 - [sway/desktop/layer_shell.c:495] new layer surface: namespace wallpaper layer 0 anchor 0 size 0x0 margin 0,0,0,0
2019-12-20 17:54:55 - [sway/ipc-server.c:154] Event on IPC listening socket
2019-12-20 17:54:55 - [sway/ipc-server.c:200] New client: fd 51
2019-12-20 17:54:55 - [sway/ipc-server.c:154] Event on IPC listening socket
2019-12-20 17:54:55 - [sway/ipc-server.c:200] New client: fd 54
2019-12-20 17:54:55 - [sway/ipc-server.c:220] Client 51 readable
2019-12-20 17:54:55 - [sway/ipc-server.c:938] Added IPC reply of type 0x6 to client 51 queue: { "id": "bar-0", "mode": "dock", "hidden_state": "hide", "position": "top", "status_command": "while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done", "font": "monospace 10", "gaps": { "top": 0, "right": 0, "bottom": 0, "left": 0 }, "bar_height": 0, "status_padding": 1, "status_edge_padding": 3, "wrap_scroll": false, "workspace_buttons": true, "strip_workspace_numbers": false, "strip_workspace_name": false, "binding_mode_indicator": true, "verbose": false, "pango_markup": false, "colors": { "background": "#323232ff", "statusline": "#ffffffff", "separator": "#666666ff", "focused_background": "#323232ff", "focused_statusline": "#ffffffff", "focused_separator": "#666666ff", "focused_workspace_border": "#4c7899ff", "focused_workspace_bg": "#285577ff", "focused_workspace_text": "#ffffffff", "inactive_workspace_border": "#32323200", "inactive_workspace_bg": "#32323200", "inactive_workspace_text": "#5c5c5cff", "active_workspace_border": "#333333ff", "active_workspace_bg": "#5f676aff", "active_workspace_text": "#ffffffff", "urgent_workspace_border": "#2f343aff", "urgent_workspace_bg": "#900000ff", "urgent_workspace_text": "#ffffffff", "binding_mode_border": "#2f343aff", "binding_mode_bg": "#900000ff", "binding_mode_text": "#ffffffff" } }
2019-12-20 17:54:55 - [sway/ipc-server.c:524] Client 51 writable
2019-12-20 17:54:55 - [sway/ipc-server.c:220] Client 51 readable
2019-12-20 17:54:55 - [sway/ipc-server.c:938] Added IPC reply of type 0x3 to client 51 queue: [ { "id": 3, "name": "VGA-1", "rect": { "x": 0, "y": 0, "width": 1440, "height": 900 }, "focus": [ 4 ], "border": "none", "current_border_width": 0, "layout": "output", "orientation": "none", "percent": 1.0, "window_rect": { "x": 0, "y": 0, "width": 0, "height": 0 }, "deco_rect": { "x": 0, "y": 0, "width": 0, "height": 0 }, "geometry": { "x": 0, "y": 0, "width": 0, "height": 0 }, "window": null, "urgent": false, "floating_nodes": [ ], "sticky": false, "type": "output", "active": true, "dpms": true, "primary": false, "make": "Acer Technologies", "model": "Acer X193W", "serial": "LDW0D0158510", "scale": 1.0, "transform": "normal", "current_workspace": "1", "modes": [ { "width": 720, "height": 400, "refresh": 70082 }, { "width": 640, "height": 480, "refresh": 59940 }, { "width": 640, "height": 480, "refresh": 66667 }, { "width": 640, "height": 480, "refresh": 72809 }, { "width": 640, "height": 480, "refresh": 75000 }, { "width": 800, "height": 600, "refresh": 56250 }, { "width": 800, "height": 600, "refresh": 60317 }, { "width": 800, "height": 600, "refresh": 72188 }, { "width": 800, "height": 600, "refresh": 75000 }, { "width": 832, "height": 624, "refresh": 74551 }, { "width": 1024, "height": 768, "refresh": 60004 }, { "width": 1024, "height": 768, "refresh": 70069 }, { "width": 1024, "height": 768, "refresh": 75029 }, { "width": 1280, "height": 720, "refresh": 60000 }, { "width": 1152, "height": 864, "refresh": 75000 }, { "width": 1280, "height": 800, "refresh": 59810 }, { "width": 1280, "height": 960, "refresh": 60000 }, { "width": 1440, "height": 900, "refresh": 74984 }, { "width": 1280, "height": 1024, "refresh": 60020 }, { "width": 1280, "height": 1024, "refresh": 75025 }, { "width": 1440, "height": 900, "refresh": 59887 } ], "current_mode": { "width": 1440, "height": 900, "refresh": 59887 }, "focused": true, "subpixel_hinting": "none" } ]
2019-12-20 17:54:55 - [sway/ipc-server.c:524] Client 51 writable
2019-12-20 17:54:55 - [sway/ipc-server.c:220] Client 54 readable
2019-12-20 17:54:55 - [sway/ipc-server.c:938] Added IPC reply of type 0x2 to client 54 queue: {"success": true}
2019-12-20 17:54:55 - [sway/ipc-server.c:524] Client 54 writable
2019-12-20 17:54:55 - [backend/drm/drm.c:950] VGA-1: Retrying pageflip
2019-12-20 17:54:55 - [backend/drm/drm.c:503] Starting renderer on output 'VGA-1'
2019-12-20 17:54:55 - [backend/drm/legacy.c:21] VGA-1: Failed to page flip: Invalid argument
2019-12-20 17:54:55 - [backend/drm/drm.c:950] VGA-1: Retrying pageflip
2019-12-20 17:54:55 - [backend/drm/drm.c:503] Starting renderer on output 'VGA-1'
2019-12-20 17:54:55 - [backend/drm/legacy.c:21] VGA-1: Failed to page flip: Invalid argument
radeon: Failed to allocate a buffer:
radeon:    size      : 5185536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 0
radeon: Failed to allocate a buffer:
radeon:    size      : 5185536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 0
radeon: Failed to allocate a buffer:
radeon:    size      : 5185536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 0
radeon: Failed to allocate a buffer:
radeon:    size      : 5185536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 0
r300: Failed to create a transfer object.
2019-12-20 17:54:55 - [backend/drm/drm.c:950] VGA-1: Retrying pageflip
2019-12-20 17:54:55 - [backend/drm/drm.c:503] Starting renderer on output 'VGA-1'
2019-12-20 17:54:55 - [backend/drm/legacy.c:21] VGA-1: Failed to page flip: Invalid argument
2019-12-20 17:54:55 - [sway/ipc-server.c:220] Client 51 readable
2019-12-20 17:54:55 - [sway/ipc-server.c:938] Added IPC reply of type 0x1 to client 51 queue: [ { "id": 4, "name": "1", "rect": { "x": 0, "y": 0, "width": 1440, "height": 900 }, "focus": [ ], "border": "none", "current_border_width": 0, "layout": "splith", "orientation": "horizontal", "percent": null, "window_rect": { "x": 0, "y": 0, "width": 0, "height": 0 }, "deco_rect": { "x": 0, "y": 0, "width": 0, "height": 0 }, "geometry": { "x": 0, "y": 0, "width": 0, "height": 0 }, "window": null, "urgent": false, "floating_nodes": [ ], "sticky": false, "num": 1, "output": "VGA-1", "type": "workspace", "representation": null, "focused": true, "visible": true } ]
2019-12-20 17:54:55 - [sway/ipc-server.c:524] Client 51 writable
2019-12-20 17:54:55 - [types/wlr_surface.c:609] New wlr_surface 0x5639e67b7940 (res 0x5639e679aaa0)
2019-12-20 17:54:55 - [types/wlr_layer_shell_v1.c:416] new layer_surface 0x5639e6759560 (res 0x5639e67f8660)
2019-12-20 17:54:55 - [sway/desktop/layer_shell.c:495] new layer surface: namespace panel layer 1 anchor 1 size 0x22 margin 0,0,0,0
2019-12-20 17:54:55 - [sway/desktop/layer_shell.c:178] Usable area changed, rearranging output
2019-12-20 17:54:55 - [sway/tree/arrange.c:262] Usable area for ws: 1440x878@0,22
2019-12-20 17:54:55 - [sway/tree/arrange.c:292] Arranging workspace '1' at 0.000000, 22.000000
2019-12-20 17:54:55 - [sway/desktop/transaction.c:412] Transaction 0x5639e67ac4a0 committing with 1 instructions
2019-12-20 17:54:55 - [sway/desktop/transaction.c:280] Applying transaction 0x5639e67ac4a0
2019-12-20 17:54:55 - [types/wlr_surface.c:609] New wlr_surface 0x5639e6800a80 (res 0x5639e5fe8e10)
radeon: Failed to allocate a buffer:
radeon:    size      : 126976 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 0
radeon: Failed to allocate a buffer:
radeon:    size      : 126976 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 0
radeon: Failed to allocate a buffer:
radeon:    size      : 126976 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 0
radeon: Failed to allocate a buffer:
radeon:    size      : 126976 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 0
r300: Failed to create a transfer object.
2019-12-20 17:54:55 - [backend/drm/drm.c:950] VGA-1: Retrying pageflip
2019-12-20 17:54:55 - [backend/drm/drm.c:503] Starting renderer on output 'VGA-1'
2019-12-20 17:54:55 - [backend/drm/legacy.c:21] VGA-1: Failed to page flip: Invalid argument
2019-12-20 17:54:55 - [backend/drm/drm.c:950] VGA-1: Retrying pageflip
2019-12-20 17:54:55 - [backend/drm/drm.c:503] Starting renderer on output 'VGA-1'
2019-12-20 17:54:55 - [backend/drm/legacy.c:21] VGA-1: Failed to page flip: Invalid argument
2019-12-20 17:54:55 - [backend/drm/drm.c:950] VGA-1: Retrying pageflip
2019-12-20 17:54:55 - [backend/drm/drm.c:503] Starting renderer on output 'VGA-1'
2019-12-20 17:54:55 - [backend/drm/legacy.c:21] VGA-1: Failed to page flip: Invalid argument
2019-12-20 17:54:55 - [backend/drm/drm.c:950] VGA-1: Retrying pageflip
2019-12-20 17:54:55 - [backend/drm/drm.c:503] Starting renderer on output 'VGA-1'

-> The same infinite loop as before.


The same gibberish shows up.
Back to top
View user's profile Send private message
mike155
Veteran
Veteran


Joined: 17 Sep 2010
Posts: 1994
Location: Frankfurt, Germany

PostPosted: Sat Dec 21, 2019 5:57 pm    Post subject: Reply with quote

I guess it's a low level graphics driver problem.
  1. Code:
    radeon: The kernel rejected CS, see dmesg for more information (-16).

    Are there any messages in dmesg?

  2. Please show us the output of:
    Code:
    cat /proc/cmdline

  3. Which options do you use when you load the radeon kernel module?
Back to top
View user's profile Send private message
JustAnother
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2016
Posts: 104

PostPosted: Sat Dec 21, 2019 9:06 pm    Post subject: Reply with quote

1: I checked more than once, and dmesg showed nothing.

Code:
2: cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.19.86-gentoo_2019-12-01 root=/dev/sda5 ro


Code:
3: lspci -k
1:05.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RS740 [Radeon 2100]
        Subsystem: ASUSTeK Computer Inc. RS740 [Radeon 2100]
        Kernel driver in use: radeon


So radeon is a built-in driver, with no parameters I ever set.

The first bug error string is "Failed to allocate a buffer:"

I tried to search the sway executable and direct library dependencies:

Code:
sudo ldd $(which sway) | sed -rn 's/.+> +([^ ]+) +.+$/\1/p' | xargs strings | egrep allocate | less
sudo strings $(which sway{,bar,nag,msg}) | egrep "allocate"


and that particular is not in there, suggesting that the complaints come from somewhere else, possibly a driver.

And note this: when xf86-video-ati went from 19.0.1 to 19.1.0 a few weeks ago, xfce4 would hang at startup with just an underscore in the upper left. I didn't get any logs because I freaked out trying to get my X desktop back up and running again. Could there be some connection here between these problems? The X people say 19.1.0 was supposed to fix stuff like this, and there is nobody else out there screaming that 19.1.0 broke their desktop, but it broke mine after a routine system update.
Back to top
View user's profile Send private message
mike155
Veteran
Veteran


Joined: 17 Sep 2010
Posts: 1994
Location: Frankfurt, Germany

PostPosted: Sat Dec 21, 2019 11:47 pm    Post subject: Reply with quote

Quote:
sudo ldd $(which sway) | sed -rn 's/.+> +([^ ]+) +.+$/\1/p' | xargs strings | egrep allocate | less
sudo strings $(which sway{,bar,nag,msg}) | egrep "allocate"

Try:
Code:
# cd /usr/src/linux
# grep -r "Failed to allocate a buffer" .
./drivers/gpu/drm/vmwgfx/vmwgfx_bo.c:           DRM_ERROR("Failed to allocate a buffer.\n");
Back to top
View user's profile Send private message
JustAnother
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2016
Posts: 104

PostPosted: Mon Dec 23, 2019 10:28 pm    Post subject: Reply with quote

The same command gives me the same output.

I looked in /sys/modules/radeon and there is no debug parameter.

What about the idea of running strace on the sway activation command, and trying to find the system call that results in the driver complaint? Do I just run strace and pick through the output, or is there a better way?

Edit: I found part of the answer about debugging. The DRM code uses debugfs, which I don't think I've built into the kernel -- yet. So I'll try to bring up the debugging interface.

Interestingly, the file radeon_drv.c (under /lib64, not /usr/src/linux) has a macro MODULE_PARM_DESC that can describe all the driver parameters. How does one call this? I've never seen anybody say that a parameter description can be had.

Code:
modinfo radeon says there is no such module (builtin driver).
/sys/modules has no description
lshw -C display -- nope

But the description functions are clearly there.

Edit: dmesg does not show the error, but there are radeon messages at early boot:

Code:
dmesg | egrep -i -e radeon -e drm
[    0.974871] [drm] radeon kernel modesetting enabled.
[    0.975369] [drm] initializing kernel modesetting (RS740 0x1002:0x796E 0x1043:0x835B 0x00).
[    0.976161] radeon 0000:01:05.0: VRAM: 128M 0x00000000B8000000 - 0x00000000BFFFFFFF (128M used)
[    0.976220] radeon 0000:01:05.0: GTT: 512M 0x0000000080000000 - 0x000000009FFFFFFF
[    0.976290] [drm] Detected VRAM RAM=128M, BAR=128M
[    0.976333] [drm] RAM width 128bits DDR
[    0.976631] [drm] radeon: 128M of VRAM memory ready
[    0.976674] [drm] radeon: 512M of GTT memory ready.
[    0.976731] [drm] GART: num cpu pages 131072, num gpu pages 131072
[    0.995199] [drm] radeon: 1 quad pipes, 1 z pipes initialized.
[    0.995248] [drm] PCIE GART of 512M enabled (table at 0x00000000B3380000).
[    0.995313] radeon 0000:01:05.0: WB enabled
[    0.995358] radeon 0000:01:05.0: fence driver on ring 0 use gpu addr 0x0000000080000000 and cpu addr 0x(____ptrval____)
[    0.995416] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    0.995459] [drm] Driver supports precise vblank timestamp query.
[    0.995502] radeon 0000:01:05.0: radeon: MSI limited to 32-bit
[    0.996066] [drm] radeon: irq initialized.
[    0.996117] [drm] Loading RS690/RS740 Microcode
[    0.996180] radeon 0000:01:05.0: Direct firmware load for radeon/RS690_cp.bin failed with error -2
[    0.996238] radeon_cp: Failed to load firmware "radeon/RS690_cp.bin"
[    0.996284] [drm:r100_cp_init.cold.22] *ERROR* Failed to load firmware!
[    0.996327] radeon 0000:01:05.0: failed initializing CP (-2).
[    0.996370] radeon 0000:01:05.0: Disabling GPU acceleration
[    0.996413] [drm] radeon: cp finalized
[    0.997355] [drm] Radeon Display Connectors
[    0.997403] [drm] Connector 0:
[    0.997445] [drm]   VGA-1
[    0.997488] [drm]   DDC: 0x7e50 0x7e40 0x7e54 0x7e44 0x7e58 0x7e48 0x7e5c 0x7e4c
[    0.997544] [drm]   Encoders:
[    0.997586] [drm]     CRT1: INTERNAL_KLDSCP_DAC1
[    0.997656] [drm] Connector 1:
[    0.997699] [drm]   DVI-D-1
[    0.997741] [drm]   HPD2
[    0.997782] [drm]   DDC: 0x7e40 0x7e60 0x7e44 0x7e64 0x7e48 0x7e68 0x7e4c 0x7e6c
[    0.997839] [drm]   Encoders:
[    0.997880] [drm]     DFP2: INTERNAL_DDI
[    0.997922] [drm] Connector 2:
[    0.997964] [drm]   DVI-D-2
[    0.998006] [drm]   DDC: 0x7e40 0x7e50 0x7e44 0x7e54 0x7e48 0x7e58 0x7e4c 0x7e5c
[    0.998063] [drm]   Encoders:
[    0.998104] [drm]     DFP3: INTERNAL_LVTM1
[    1.039985] [drm] fb mappable at 0xF0040000
[    1.040028] [drm] vram apper at 0xF0000000
[    1.040069] [drm] size 5300224
[    1.040111] [drm] fb depth is 24
[    1.040153] [drm]    pitch is 5888
[    1.040335] fbcon: radeondrmfb (fb0) is primary device
[    1.074662] radeon 0000:01:05.0: fb0: radeondrmfb frame buffer device
[    1.074764] [drm] Initialized radeon 2.50.0 20080528 for 0000:01:05.0 on minor 0


It turns out that I do have debugfs mounted, but I can't find any debug level setting in /sys/kernel/debug/dri/.

Also:

Code:
find /usr/src/linux /lib64 -type f -name 'RS690_cp.bin'
/lib64/firmware/radeon/RS690_cp.bin


So the file is out there, but won't load.

Note:
Code:
equery belongs /lib64/firmware/radeon/RS690_cp.bin
 * Searching for /lib64/firmware/radeon/RS690_cp.bin ...
me%main:~$ equery belongs RS690_cp.bin
 * Searching for RS690_cp.bin ...
sys-kernel/linux-firmware-20191215 (/lib/firmware/radeon/RS690_cp.bin)


Could the driver be looking for this file in the wrong place? Equery gets confused too.

Note:
Code:
locate RS690_cp.bin
/lib64/firmware/radeon/RS690_cp.bin


equery can't map this file when the correct absolute path is given.
Back to top
View user's profile Send private message
mike155
Veteran
Veteran


Joined: 17 Sep 2010
Posts: 1994
Location: Frankfurt, Germany

PostPosted: Wed Dec 25, 2019 10:56 pm    Post subject: Reply with quote

Quote:
Code:
[    0.996117] [drm] Loading RS690/RS740 Microcode
[    0.996180] radeon 0000:01:05.0: Direct firmware load for radeon/RS690_cp.bin failed with error -2
[    0.996238] radeon_cp: Failed to load firmware "radeon/RS690_cp.bin"
[    0.996284] [drm:r100_cp_init.cold.22] *ERROR* Failed to load firmware!
[    0.996327] radeon 0000:01:05.0: failed initializing CP (-2).
[    0.996370] radeon 0000:01:05.0: Disabling GPU acceleration

Great! That's probably the source of the problem. :-)

Do you use initrd / initramfs? Is the root filesystem already mounted when the kernel tries to read the firmware? Look at the output of dmesg. When does the kernel mount '/'? Before or after the 'failed to load firmware' message?

Do you build your own kernel? In case you do: you could try to build the firmware binary into the kernel. That's what I usually do if I have to deal with firmware.

See: https://wiki.gentoo.org/wiki/Radeon
Back to top
View user's profile Send private message
JustAnother
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2016
Posts: 104

PostPosted: Fri Dec 27, 2019 1:20 am    Post subject: Reply with quote

I missed the radeon driver complaint before because I looked at the end of dmesg, thinking that the complaint would be there.

To me this indeed looks like the builtin driver radeon is trying to grab a file before the root partition is mounted:

dmesg | egrep -e radeon -e sda5
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.19.86-gentoo_2019-12-01 root=/dev/sda5 ro
[ 0.188059] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.19.86-gentoo_2019-12-01 root=/dev/sda5 ro
[ 0.972015] [drm] radeon kernel modesetting enabled.
[ 0.973302] radeon 0000:01:05.0: VRAM: 128M 0x00000000B8000000 - 0x00000000BFFFFFFF (128M used)
[ 0.973360] radeon 0000:01:05.0: GTT: 512M 0x0000000080000000 - 0x000000009FFFFFFF
[ 0.973755] [drm] radeon: 128M of VRAM memory ready
[ 0.973799] [drm] radeon: 512M of GTT memory ready.
[ 0.980217] [drm] radeon: 1 quad pipes, 1 z pipes initialized.
[ 0.980331] radeon 0000:01:05.0: WB enabled
[ 0.980376] radeon 0000:01:05.0: fence driver on ring 0 use gpu addr 0x0000000080000000 and cpu addr 0x(____ptrval____)
[ 0.980521] radeon 0000:01:05.0: radeon: MSI limited to 32-bit
[ 0.981085] [drm] radeon: irq initialized.
[ 0.981200] radeon 0000:01:05.0: Direct firmware load for radeon/RS690_cp.bin failed with error -2
[ 0.981258] radeon_cp: Failed to load firmware "radeon/RS690_cp.bin"
[ 0.981348] radeon 0000:01:05.0: failed initializing CP (-2).
[ 0.981391] radeon 0000:01:05.0: Disabling GPU acceleration
[ 0.981434] [drm] radeon: cp finalized
[ 1.025461] fbcon: radeondrmfb (fb0) is primary device
[ 1.059760] radeon 0000:01:05.0: fb0: radeondrmfb frame buffer device
[ 1.059862] [drm] Initialized radeon 2.50.0 20080528 for 0000:01:05.0 on minor 0
[ 1.861734] sda: sda1 sda2 sda3 sda4 sda5 sda6 sda7 sda8
[ 2.205545] EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts: (null)
[ 8.915672] EXT4-fs (sda5): re-mounted. Opts: (null)

I didn't know that anything special had to be done with radeon drivers concerning firmware. Everything worked until now... So I'll rebuild the kernel now and see what happens.
Back to top
View user's profile Send private message
JustAnother
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2016
Posts: 104

PostPosted: Sat Dec 28, 2019 2:22 am    Post subject: Reply with quote

Per the radeon wiki page I set the kernel to build in radeon/RS690_cp.bin, and I think to built some kind of initramfs, possibly via a euse switch in the firmware package. After a kernel rebuild, I got this:

Code:
cpio -itv </boot/amd-uc.img
drwxr-xr-x   3 root     root            0 Dec 26 20:12 .
-rw-r--r--   1 root     root            2 Dec 26 20:12 early_cpio
drwxr-xr-x   3 root     root            0 Dec 26 20:12 kernel
drwxr-xr-x   3 root     root            0 Dec 26 20:12 kernel/x86
drwxr-xr-x   2 root     root            0 Dec 26 20:12 kernel/x86/microcode
-rw-r--r--   1 root     root        33770 Dec 26 20:12 kernel/x86/microcode/AuthenticAMD.bin

Anyway, the sway problem went away and sway came up. Whew.

I'll now let xfce-video-ati go from 19.0.1 to 19.1 and see if xfce4 blows up or not. I'll post results.
Back to top
View user's profile Send private message
mike155
Veteran
Veteran


Joined: 17 Sep 2010
Posts: 1994
Location: Frankfurt, Germany

PostPosted: Sat Dec 28, 2019 2:49 am    Post subject: Reply with quote

JustAnother wrote:
Anyway, the sway problem went away and sway came up. Whew.

Awesome! I am delighted that it works now!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum