Skip to content

Crashes on closing and re-opening laptop's lid: IOT instruction (core dumped) swayosd-server #151

@ritiek

Description

@ritiek

Hi, I've been using swayosd-server on my lappy with NixOS + Hyprland and it works very nicely. However, I've noticed this issue where swayosd-server crashes after I close my laptop's lid and re-open it back after a minute (lappy's set to do "nothing" when lid closes):

$ echo $WAYLAND_DISPLAY
wayland-1

$ swayosd-server
SwayOSD LibInput Backend isn't available, waiting...
...
PropertiesChanged Signal received:
        Source: org.mpris.MediaPlayer2.Player
active_player:         org.mpris.MediaPlayer2.spotify
active_player's owner: :1.24
sender:                :1.24

<i shut my lappy's lid down for a minute and re-open it here>

[1]    481870 IOT instruction (core dumped)  swayosd-server

I'm able to consistently replicate the crash. Here's the backtrace returned with gdb attached:

PropertiesChanged Signal received:
        Source: org.mpris.MediaPlayer2.Player
active_player:         org.mpris.MediaPlayer2.spotify
active_player's owner: :1.24
sender:                :1.24

<i shut my lappy's lid down for a minute and re-open it here>

Thread 1 ".swayosd-server" received signal SIGABRT, Aborted.
0x00007ffff6a99cdc in __pthread_kill_implementation () from /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6
(gdb) bt
#0  0x00007ffff6a99cdc in __pthread_kill_implementation () from /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6
#1  0x00007ffff6a413c6 in raise () from /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6
#2  0x00007ffff6a2893a in abort () from /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6
#3  0x00007ffff7027221 in wl_abort () from /nix/store/mxyi7nahmxs41d2xnyfx9kvanqh3p706-wayland-1.23.1/lib/libwayland-client.so.0
#4  0x00007ffff7022d3e in wl_display_read_events () from /nix/store/mxyi7nahmxs41d2xnyfx9kvanqh3p706-wayland-1.23.1/lib/libwayland-client.so.0
#5  0x00007ffff78a5dd6 in gdk_wayland_poll_source_check () from /nix/store/c32l5amwpibpjsiymkzysfgxq4r9xi41-gtk4-4.18.5/lib/libgtk-4.so.1
#6  0x00007ffff7091494 in g_main_context_check_unlocked () from /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0
#7  0x00007ffff7091925 in g_main_context_iterate_unlocked.isra () from /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0
#8  0x00007ffff70922bc in g_main_context_iteration () from /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libglib-2.0.so.0
#9  0x00007ffff6ef633d in g_application_run () from /nix/store/bkpj51fz88rbyjd60i6lrp0xdax1b24g-glib-2.84.1/lib/libgio-2.0.so.0
#10 0x00005555556493e2 in gio::application::ApplicationExtManual::run_with_args ()
#11 0x00005555556494c9 in gio::application::ApplicationExtManual::run ()
#12 0x000055555564be2c in swayosd_server::application::SwayOSDApplication::start ()
#13 0x00005555555cd7e2 in swayosd_server::main ()
#14 0x00005555555e24fb in core::ops::function::FnOnce::call_once ()
#15 0x000055555560fbbe in std::sys::backtrace::__rust_begin_short_backtrace ()
#16 0x00005555555d08d1 in std::rt::lang_start::{{closure}} ()
#17 0x0000555555b3a425 in std::rt::lang_start_internal ()
#18 0x00005555555d08b7 in std::rt::lang_start ()
#19 0x00005555555ced3e in main ()

Is there anything more I can help with? I'm using swayosd v0.2.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions