At present I use karmic with network-manager-applet version
0.8~a~git.20091014t134532.4033e62.
My impression is that the problem is due to a "nice hack" in the
source code of network-manager-gnome. In
src/wired-dialog.c:167
a new NMConnection object created and just one setting is added, for
wireless. Then the control flow proceeds through
src/wireless-security/wireless-security.c:371--402
and
src/wireless-security/eap-method.c:88
to
src/wireless-security/eap-method-peap.c:127
where the code asks for a "NM_TYPE_SETTING_CONNECTION" and fails (via
g_assert) when it is not found. I assume that there is no such setting
in the new tmp_connection when it is created in
src/wired-dialog.c:167.
The following patch brutally fixes this by just adding a new
NMSettingConnection object. I have very little experience with GNOME
and NetworkManager programming and I find the NetworkManager code very
confusing, so I suggest that this patch is taken only as "proof of
solution". I expect that it leaks memory and to me it does not make
very much sense to just add some objects somewhere.
================================================================================
--- wired-dialog.c 2010-01-12 19:46:04.000000000 +0100
+++ wired-dialog.new.c 2010-01-12 19:46:10.000000000 +0100
@@ -166,6 +166,12 @@
/* Here's a nice hack to work around the fact that
ws_802_1x_fill_connection needs wireless setting. */
tmp_connection = nm_connection_new ();
nm_connection_add_setting (tmp_connection, nm_setting_wireless_new ());
+#if 1 // [email protected] -- not knowing what I'm doing, but it seems to work
+ { NMSettingConnection *s_con;
+ s_con = NM_SETTING_CONNECTION (nm_setting_connection_new());
+ nm_connection_add_setting (tmp_connection, NM_SETTING (s_con));
+ }
+#endif
ws_802_1x_fill_connection (security, "wpa_eap_auth_combo",
tmp_connection);
s_8021x = nm_connection_get_setting (tmp_connection,
NM_TYPE_SETTING_802_1X);
================================================================================
With the patch, I still have to type my password for every connection
attempt, but at least nm-applet does not crash any more and the
connection is actually established without restarting
nm-applet. Somehow the password is remembered at the first connection
attempt after reboot.
--
fails to connect to wired ieee802.11x and crashes
https://bugs.launchpad.net/bugs/451496
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs