Hi,
first of all: thx for waybar ! It was the missing piece I needed to migrate from i3 to sway!
However, one app doesn't work like expected. nm-applet keeps segfaulting reproducibly on trying to connect to unknown wifi networks:
 ~ $ nm-applet
(nm-applet:11642): Gtk-WARNING **: 17:03:07.720: Can't set a parent on widget which has a parent
(nm-applet:11642): Gtk-CRITICAL **: 17:03:11.848: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
…
nm-applet-Message: 17:03:12.088: No keyring secrets found for FRITZ!Box 7490 AB/802-11-wireless-security; asking user.
[1] 11642 segmentation fault (core dumped) nm-applet
here's the regarding system log:
Mai 05 17:03:11 rocinante NetworkManager[11124]: <info> [1557068591.9335] manager: NetworkManager state is now CONNECTING
Mai 05 17:03:11 rocinante NetworkManager[11124]: <info> [1557068591.9344] device (wlp2s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Mai 05 17:03:11 rocinante NetworkManager[11124]: <info> [1557068591.9354] device (wlp2s0): Activation: (wifi) access point 'FRITZ!Box 7490 AB' has security, but secrets are required.
Mai 05 17:03:11 rocinante NetworkManager[11124]: <info> [1557068591.9357] device (wlp2s0): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
Mai 05 17:03:11 rocinante NetworkManager[11124]: <info> [1557068591.9362] sup-iface[0x55d5ca362130,wlp2s0]: wps: type pbc start...
Mai 05 17:03:11 rocinante nm-dispatcher[10728]: req:14 'down' [wlp2s0]: new request (2 scripts)
Mai 05 17:03:11 rocinante nm-dispatcher[10728]: req:14 'down' [wlp2s0]: start running ordered scripts...
Mai 05 17:03:11 rocinante systemd[1]: Starting resolvconf-pull-resolved.service...
Mai 05 17:03:11 rocinante whoopsie[2948]: [17:03:11] Could not determine if /org/freedesktop/NetworkManager/ActiveConnection/6 is a default route:
Mai 05 17:03:11 rocinante whoopsie[2948]: [17:03:11] GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager/ActiveConnection/6
Mai 05 17:03:11 rocinante whoopsie[2948]: [17:03:11] Could not determine if /org/freedesktop/NetworkManager/ActiveConnection/6 is a default route:
Mai 05 17:03:11 rocinante whoopsie[2948]: [17:03:11] GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager/ActiveConnection/6
Mai 05 17:03:12 rocinante dnsmasq[1437]: reading /run/dnsmasq/resolv.conf
Mai 05 17:03:12 rocinante dnsmasq[1437]: using nameserver 127.0.0.53#53
Mai 05 17:03:12 rocinante sh[11687]: /etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /run/resolvconf/resolv.conf
Mai 05 17:03:12 rocinante systemd[1]: resolvconf-pull-resolved.service: Succeeded.
Mai 05 17:03:12 rocinante systemd[1]: Started resolvconf-pull-resolved.service.
Mai 05 17:03:12 rocinante kernel: nm-applet[11642]: segfault at 5563bdd940d0 ip 00005563bdd940d0 sp 00007ffe1bfe5958 error 15
Mai 05 17:03:12 rocinante kernel: Code: 00 00 a0 41 d9 bd 63 55 00 00 40 00 00 00 00 00 00 00 90 e6 bd b1 b8 7f 00 00 00 00 00 00 00 00 00 00 71 00 00 00 00 00 00 00 <02> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00
Mai 05 17:03:12 rocinante /usr/lib/gdm3/gdm-wayland-session[3500]: [23750:23778:0505/170312.385549:ERROR:connection_factory_impl.cc(411)] Failed to connect to MCS endpoint with error -106
Any idea how to fix this ?
Versions:
That's not a waybar fault :/
@Alexays ok, but could you please point me in a direction here ? Do I need to file a bug for wayland, sway, nm-applet, or sth else ?
nm-applet works just fine with i3 btw.
@varac I have no idea, try to get a backtrace of the sigsev :)
fyi, I created a network-manager issue at https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/174
it works if you force it to use X11 for the windows:
GDK_BACKEND=x11 nm-applet --indicator
This issue appears to have been fixed in upstream with nm-applet 1.8.24: https://gitlab.gnome.org/GNOME/network-manager-applet/blob/58946f0f5c1f84ae4136e6d417870572bfd45cd5/NEWS
There shouldn't be any need to run it with GDK_BACKEND=x11 anymore, even though the corresponding https://gitlab.gnome.org/GNOME/network-manager-applet/issues/64 hasn't been closed.
Tested and seems to work, thanks for the head-up @daenney :+1:
Same here, nm-applet 1.8.24 works fine
Most helpful comment
it works if you force it to use X11 for the windows:
GDK_BACKEND=x11 nm-applet --indicator