GNOME Bugzilla – Bug 641861
Can't setup an irc server
Last modified: 2011-02-14 09:04:29 UTC
When I want to input my irc server to connect to, empathy closes the account screen. The screen just disappears... Nu i've opened it with a terminal, and it shows this: ERROR:empathy-irc-network-chooser.c:225:set_label_from_settings: assertion failed: (priv->network != NULL) I don't find any information on google, so i open this bug report for it.
That's a crash. Could you please start empathy-accounts in gdb and attach a trace? Also, please describe what you are doing exactly. Are you using the first run assistant or the accounts dialog?
Created attachment 180465 [details] GDB trace
I've never worked with gdb before, so i hope this is what you asked for. I've used the first run, and now i use the accounts dialog (i've configured msn, so i don't have access to the first run assistant anymore i guess), but with both, i've got this problem. When i choose IRC in the list (where the standard option is Facebook Chat), the dialog closes, and in the debug i got that what i said previously.
Once it crashes in gdb, you should type "bt" to get a trace. Could you also please start empathy-accounts using "EMPATHY_DEBUG=all empathy-accounts" and attach the output? Attaching your file ~/.config/Empathy/irc-networks.xml could be useful as well.
Created attachment 180469 [details] gdb trace 2
Created attachment 180470 [details] started with debug
Created attachment 180471 [details] IRC networks XML file
I've added the 3 files, hopefully that's what you needed.
*** Bug 641998 has been marked as a duplicate of this bug. ***
From #641998, it looks like the problem is when the user has deleted the default server from their list of networks. It then tries to find that network, fails and asserts. The fix would be not to assert and instead do some other useful behaviour, say select the first item. Furthermore, since it's possible to accidentally delete useful networks, such as Freenode from your list. Maybe it would be useful to have a "Reset Networks List" button.
With deleting the xml file, it worked again. My problem is solved now, but i must remark that a crash is not nice when people delete all the IRC servers in the list. I only use the ones i connect to regularly.
Created attachment 180644 [details] [review] https://bugzilla.gnome.org/show_bug.cgi?id=641861 libempathy-gtk/empathy-irc-network-chooser.c | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-)
I went for the "recreate the default network" approach as we have to be able to deal with the list of network being empty, so we need to be able to recreate something any way.
Review of attachment 180644 [details] [review]: ++
Created attachment 180798 [details] [review] Reset Networks' list button (In reply to comment #10) > Furthermore, since it's possible to accidentally delete useful networks, such > as Freenode from your list. Maybe it would be useful to have a "Reset Networks > List" button. commit branch: http://gitorious.org/glassrose-gnome/empathy/commits/Reset-network-list-button-641861
ok, I have opened a new bug (https://bugzilla.gnome.org/show_bug.cgi?id=642264) for the button creation part, so that this bug can be closed.
Merged to master and 2.34. This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.