sway icon indicating copy to clipboard operation
sway copied to clipboard

sway + radeon crashing

Open cequalspid opened this issue 1 year ago • 3 comments

Sway is installed on arch linux directly from the repo. Using only amd open source drivers and an amd cpu. GPU is a RX 580, cpu is a Ryzen 7 3700x. Mobo is Asus B550-i. No gaming on the desktop.

The crashes happen at random times, sometimes when I am not using the desktop I return to find myself at the tty login screen. I usually always have the following running even if I'm not active at/using my desktop: foot terminal, ranger file manager and firefox. docker containers are also running including HomeAssistant Installed but not using swaylock or swayidle. Waybar and Swaync are also running. Journal shows no errors/issues with the cpu/gpu.

sway version 1.9 sway -d 2> ~/sway.log: gist-swaylog coredumpctl info usr/bin/sway: gist-coredumpctl sway config: gist-config coredumpctl gdb sway and then bt full to obtain the stack trace:

`Reading symbols from /usr/bin/sway... (No debugging symbols found in /usr/bin/sway)

warning: Can't open file /memfd:foot-wayland-shm-buffer-pool (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:gdk-wayland (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:wayland-cursor (deleted) during file-backed mapping note processing [New LWP 2490] [New LWP 2514] [New LWP 2524] [New LWP 2528] [New LWP 2519] [New LWP 2522] [New LWP 2515] [New LWP 2521] [New LWP 2525] [New LWP 2516] [New LWP 2520] [New LWP 2518] [New LWP 2523] [New LWP 2517] [New LWP 2526] --Type for more, q to quit, c to continue without paging--c [New LWP 2527] Core was generated by 'sway -d'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007b30ff366cd9 in ?? () [Current thread is 1 (LWP 2490)] (gdb) bt full #0 0x00007b30ff366cd9 in ?? () No symbol table info available. https://github.com/swaywm/sway/issues/1 0x00000000000000e0 in ?? () No symbol table info available. https://github.com/swaywm/sway/issues/2 0x00000000000000fe in ?? () No symbol table info available. https://github.com/swaywm/sway/pull/3 0x0000000000000000 in ?? () No symbol table info available.`

cequalspid avatar Jul 16 '24 20:07 cequalspid

The backtrace you provided doesn't contain debug symbols. This most likely happens because the Sway binary you're using doesn't have debug information bundled.

Can you try again with a manually compiled Sway binary? See https://github.com/swaywm/sway/wiki/Development-Setup#compiling-as-a-subproject

emersion avatar Jul 17 '24 06:07 emersion

git clone https://github.com/swaywm/sway.git
cd sway
git clone https://gitlab.freedesktop.org/wlroots/wlroots.git subprojects/wlroots

# Build sway and wlroots
meson build/

when running meson build/ I get the following errors:

wlroots| Found CMake: /usr/bin/cmake (3.30.0)
wlroots| Run-time dependency wayland-protocols found: NO (tried pkgconfig and cmake)
wlroots| Looking for a fallback subproject for the dependency wayland-protocols

wlroots| subprojects/wlroots/protocol/meson.build:1:17: Exception: Neither a subproject directory nor a wayland-protocols.wrap file was found.

Subproject subprojects/wlroots is buildable: NO (disabling)
Run-time dependency wlroots-0.19 found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency wlroots-0.19

meson.build:48:10: ERROR: Subproject "subprojects/wlroots" required but not found.

A full log can be found at /home/camus/builds/sway/build/meson-logs/meson-log.txt
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.

sway/build/meson-log.txt

but /sway/subprojects/wlroots does exist from the git clone.

cequalspid avatar Jul 18 '24 05:07 cequalspid

@cequalspid since you are running Arch Linux, you can install debuginfod and add set debuginfod enabled on to your ~/.gdbinit to get debug symbols for Arch repo packages without needing to compile it yourself.

Ferdi265 avatar Jul 20 '24 10:07 Ferdi265