Skip to content

Sway VMWare loads but crashes on any action like starting terminal or dmenu #8608

@rhodes-b

Description

@rhodes-b

Please fill out the following:

font pango:monospace 8.000000
floating_modifier Mod1
default_border normal 2
default_floating_border normal 2
hide_edge_borders none
focus_wrapping no
focus_follows_mouse yes
focus_on_window_activation smart
mouse_warping output
workspace_layout default
workspace_auto_back_and_forth no
client.focused #4c7899 #285577 #ffffff #2e9ef4 #285577
client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
client.unfocused #333333 #222222 #888888 #292d2e #222222
client.urgent #2f343a #900000 #ffffff #900000 #900000
client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
client.background #ffffff

bindsym Mod1+0 workspace number 10
bindsym Mod1+1 workspace number 1
bindsym Mod1+2 workspace number 2
bindsym Mod1+3 workspace number 3
bindsym Mod1+4 workspace number 4
bindsym Mod1+5 workspace number 5
bindsym Mod1+6 workspace number 6
bindsym Mod1+7 workspace number 7
bindsym Mod1+8 workspace number 8
bindsym Mod1+9 workspace number 9
bindsym Mod1+Down focus down
bindsym Mod1+Left focus left
bindsym Mod1+Return exec ghostty
bindsym Mod1+Right focus right
bindsym Mod1+Shift+0 move container to workspace number 10
bindsym Mod1+Shift+1 move container to workspace number 1
bindsym Mod1+Shift+2 move container to workspace number 2
bindsym Mod1+Shift+3 move container to workspace number 3
bindsym Mod1+Shift+4 move container to workspace number 4
bindsym Mod1+Shift+5 move container to workspace number 5
bindsym Mod1+Shift+6 move container to workspace number 6
bindsym Mod1+Shift+7 move container to workspace number 7
bindsym Mod1+Shift+8 move container to workspace number 8
bindsym Mod1+Shift+9 move container to workspace number 9
bindsym Mod1+Shift+Down move down
bindsym Mod1+Shift+Left move left
bindsym Mod1+Shift+Right move right
bindsym Mod1+Shift+Up move up
bindsym Mod1+Shift+c reload
bindsym Mod1+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
bindsym Mod1+Shift+h move left
bindsym Mod1+Shift+j move down
bindsym Mod1+Shift+k move up
bindsym Mod1+Shift+l move right
bindsym Mod1+Shift+minus move scratchpad
bindsym Mod1+Shift+q kill
bindsym Mod1+Shift+space floating toggle
bindsym Mod1+Up focus up
bindsym Mod1+a focus parent
bindsym Mod1+b splith
bindsym Mod1+d exec /nix/store/8igdpig2jg0d1dsjdi1pxm2v7xz9jcjx-dmenu-5.3/bin/dmenu_path | /nix/store/8igdpig2jg0d1dsjdi1pxm2v7xz9jcjx-dmenu-5.3/bin/dmenu | /nix/store/vc2d1bfy1a5y1195nq7k6p0zcm6q89nx-findutils-4.10.0/bin/xargs swaymsg exec --
bindsym Mod1+e layout toggle split
bindsym Mod1+f fullscreen toggle
bindsym Mod1+h focus left
bindsym Mod1+j focus down
bindsym Mod1+k focus up
bindsym Mod1+l focus right
bindsym Mod1+minus scratchpad show
bindsym Mod1+r mode resize
bindsym Mod1+s layout stacking
bindsym Mod1+space focus mode_toggle
bindsym Mod1+v splitv
bindsym Mod1+w layout tabbed

mode "resize" {
 bindsym Down resize grow height 10 px
 bindsym Escape mode default
 bindsym Left resize shrink width 10 px
 bindsym Return mode default
 bindsym Right resize grow width 10 px
 bindsym Up resize shrink height 10 px
 bindsym h resize shrink width 10 px
 bindsym j resize grow height 10 px
 bindsym k resize shrink height 10 px
 bindsym l resize grow width 10 px
}

bar {
 font pango:monospace 8.000000
 mode dock
 hidden_state hide
 position bottom
 status_command /nix/store/jdbgavq91r64imb7pr3y9nwiahbsyigb-i3status-2.15/bin/i3status
 swaybar_command /nix/store/278ybwwjh83zg7gfmgz5m9jzfgzg0074-sway-1.10/bin/swaybar
 workspace_buttons yes
 strip_workspace_numbers no
 tray_output primary
 colors {
   background #000000
   statusline #ffffff
   separator #666666
   focused_workspace #4c7899 #285577 #ffffff
   active_workspace #333333 #5f676a #ffffff
   inactive_workspace #333333 #222222 #888888
   urgent_workspace #2f343a #900000 #ffffff
   binding_mode #2f343a #900000 #ffffff
 }
}

exec "/nix/store/zx0zzjg75gln6lldyb9k7b96acrcdc34-dbus-1.14.10/bin/dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP XDG_SESSION_TYPE NIXOS_OZONE_WL XCURSOR_THEME XCURSOR_SIZE; systemctl --user reset-failed && systemctl --user start sway-session.target && swaymsg -mt subscribe '[]' || true && systemctl --user stop sway-session.target"
output Virtual-1 mode 1920x1080

note this is the default NixOS config, I tried with and without the additional output Virtual-1 mode 1920x1080 in the config

  • Stack Trace:
(gdb) bt full
#0  0x00007feabf455ed0 in wl_event_loop_dispatch ()
   from /nix/store/fqjmm31anyclsikj1wsp3rwb14a20idh-wayland-1.23.1/lib/libwayland-server.so.0
No symbol table info available.
#1  0x00007feabf4535d5 in wl_display_run ()
   from /nix/store/fqjmm31anyclsikj1wsp3rwb14a20idh-wayland-1.23.1/lib/libwayland-server.so.0
No symbol table info available.
#2  0x0000000000413257 in main ()

Note it crashes instantly in gdb, this does not happen normally It can launch and I can switch workspaces etc I just cant do anything

I was also able to capture this if it helps
Image

  • Description:
    New NixOS VMWare VM, add sway do any keybinds that exec something. Even the exit sway keybind (note swaynag works but clicking the button crashes sway).

I have this exact same nixos setup on both a non VM laptop and a qemu based vm and they both work perfectly fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugNot working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions