GNOME Bugzilla – Bug 774268
nm-applet-CRITICAL **: get_menu_item_for_ap: assertion 'dup_data.hash != NULL' failed
Last modified: 2020-11-12 14:34:03 UTC
I see nm-applet showing the Wifi strenth as zero bars, also when I click on the icon, the dropdown shows zero available wifis, the console output is: nm-applet-CRITICAL **: get_menu_item_for_ap: assertion 'dup_data.hash != NULL' failed (repeated many times over) Killing the applet and restarting it makes is work for a while but then the same happens again. All the time, the computer in fact remains connected to the Wifi.
Could you report output of $ nmcli dev wifi list The bug 682233 and bug 767317 seem the smae or related.
~$ nmcli dev wifi list * SSID MODUS CHAN RATE SIGNAL BARS SICHERHEIT Die drei kleinen Schweinchen Infra 1 54 Mbit/s 100 ▂▄▆█ WPA2 ServiceFFP-16-4 Infra 5 54 Mbit/s 89 ▂▄▆█ WPA1 WPA2 * Uferwerk@Freifunk-Potsdam Infra 5 54 Mbit/s 72 ▂▄▆_ ServiceFFP-16-5 Infra 5 54 Mbit/s 65 ▂▄▆_ WPA1 WPA2 Mesh23 Ad-Hoc 5 54 Mbit/s 60 ▂▄▆_ Uferwerk@Freifunk-Potsdam Infra 5 54 Mbit/s 60 ▂▄▆_ Luise_17_FTTH Infra 6 54 Mbit/s 45 ▂▄__ WPA2 Telekom_FON Infra 1 54 Mbit/s 35 ▂▄__ WLAN-518815 Infra 1 54 Mbit/s 35 ▂▄__ WPA2 WLAN OGMLO Infra 13 54 Mbit/s 32 ▂▄__ WPA2 Emil Infra 1 54 Mbit/s 27 ▂___ WPA1 WPA2 WLANJMSt Infra 11 54 Mbit/s 27 ▂___ WPA1 WPA2 FRITZ!Box 7490 Infra 1 54 Mbit/s 25 ▂___ WPA2 Luise17 Infra 11 54 Mbit/s 25 ▂___ WPA2 Telekom_FON Infra 100 54 Mbit/s 24 ▂___ FRITZ!Box 7330 Infra 11 54 Mbit/s 22 ▂___ WPA1 WPA2 WLAN-518815 Infra 100 54 Mbit/s 22 ▂___ WPA2 WLAN-00150CF5CBBC Infra 11 54 Mbit/s 20 ▂___ WPA1 WPA2 WLAN-629530 Infra 11 54 Mbit/s 19 ▂___ WPA2 jr@erwin:~$
Are you able to say what triggers the bug? Others indicate that it may be suspend/resume or restarting NM daemon. Anyway, to help debugging, would you please do this: * create /tmp/gdb-cmds file with this content: 8<------------------------------------------------------->8 set pagination off break get_menu_item_for_ap commands 1 printf "Active AP:\n" print nm_device_wifi_get_active_access_point(device) printf "AP in ap argument of get_menu_item_for_ap():\n" print ap print (char *) g_bytes_get_data(nm_access_point_get_ssid(ap), 0) print nm_access_point_get_mode(ap) printf "All APs:\n" set $i = 0 set $aps = nm_device_wifi_get_access_points(device) while ($i < $aps->len) set $ap = $aps->pdata[$i] set $ssid = (char *)g_bytes_get_data(nm_access_point_get_ssid($ap), 0) set $ssid_len = g_bytes_get_size(nm_access_point_get_ssid($ap)) set $ssid_str = nm_utils_ssid_to_utf8 ($ssid, $ssid_len) set $freq = nm_access_point_get_frequency($ap) set $mode = nm_access_point_get_mode($ap) set $flags = nm_access_point_get_flags($ap) set $wpa_flags = nm_access_point_get_wpa_flags($ap) set $rsn_flags = nm_access_point_get_rsn_flags($ap) printf "AP%d %p: SSID=%s, FREQ=%d, MODE=%d, FLAGS=0x%x, WPA_FLAGS=0x%x, RSN_FLAGS=0x%x\n", $i, $ap, $ssid_str, $freq, $mode, $flags, $wpa_flags, $rsn_flags set $i += 1 end continue end run 8<------------------------------------------------------->8 * in a terminal run these commands $ pkill nm-applet $ gdb -x /tmp/gdb-cmds nm-applet * then left-click nm-applet icon and grab the output from gdb in console
bugzilla.gnome.org is being shut down in favor of a GitLab instance. We are closing all old bug reports and feature requests in GNOME Bugzilla which have not seen updates for a long time. If you still use NetworkManager and if you still see this bug / want this feature in a recent and supported version of NetworkManager, then please feel free to report it at https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/ Thank you for creating this report and we are sorry it could not be implemented (workforce and time is unfortunately limited).