Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sway + radeon crashing #8255

Open
cequalspid opened this issue Jul 16, 2024 · 3 comments
Open

sway + radeon crashing #8255

cequalspid opened this issue Jul 16, 2024 · 3 comments
Labels
bug Not working as intended

Comments

@cequalspid
Copy link

cequalspid commented Jul 16, 2024

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.
#1 0x00000000000000e0 in ?? ()
No symbol table info available.
#2 0x00000000000000fe in ?? ()
No symbol table info available.
#3 0x0000000000000000 in ?? ()
No symbol table info available.`

@cequalspid cequalspid added the bug Not working as intended label Jul 16, 2024
@cequalspid cequalspid changed the title sway + radeon card keeps crashing sway + radeon keeps crashing Jul 16, 2024
@cequalspid cequalspid changed the title sway + radeon keeps crashing sway + radeon crashing Jul 17, 2024
@emersion
Copy link
Member

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

@cequalspid
Copy link
Author

cequalspid commented Jul 18, 2024

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.

@Ferdi265
Copy link
Contributor

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended
Development

No branches or pull requests

3 participants