After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 641861 - Can't setup an irc server
Can't setup an irc server
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: Accounts
2.32.x
Other Linux
: High normal
: ---
Assigned To: empathy-maint
: 641998 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-02-08 18:51 UTC by steyn.vanhoute
Modified: 2011-02-14 09:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GDB trace (1.05 KB, text/plain)
2011-02-09 14:23 UTC, steyn.vanhoute
  Details
gdb trace 2 (4.06 KB, text/plain)
2011-02-09 15:23 UTC, steyn.vanhoute
  Details
started with debug (182.13 KB, text/plain)
2011-02-09 15:23 UTC, steyn.vanhoute
  Details
IRC networks XML file (3.28 KB, text/xml)
2011-02-09 15:24 UTC, steyn.vanhoute
  Details
https://bugzilla.gnome.org/show_bug.cgi?id=641861 (1.26 KB, patch)
2011-02-11 10:30 UTC, Guillaume Desmottes
accepted-commit_now Details | Review
Reset Networks' list button (7.15 KB, patch)
2011-02-14 02:21 UTC, Chandni Verma
none Details | Review

Description steyn.vanhoute 2011-02-08 18:51:02 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.
Comment 1 Guillaume Desmottes 2011-02-09 11:24:44 UTC
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?
Comment 2 steyn.vanhoute 2011-02-09 14:23:51 UTC
Created attachment 180465 [details]
GDB trace
Comment 3 steyn.vanhoute 2011-02-09 14:25:56 UTC
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.
Comment 4 Guillaume Desmottes 2011-02-09 15:15:22 UTC
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.
Comment 5 steyn.vanhoute 2011-02-09 15:23:23 UTC
Created attachment 180469 [details]
gdb trace 2
Comment 6 steyn.vanhoute 2011-02-09 15:23:40 UTC
Created attachment 180470 [details]
started with debug
Comment 7 steyn.vanhoute 2011-02-09 15:24:54 UTC
Created attachment 180471 [details]
IRC networks XML file
Comment 8 steyn.vanhoute 2011-02-09 15:25:24 UTC
I've added the 3 files, hopefully that's what you needed.
Comment 9 Danielle Madeley 2011-02-10 04:47:35 UTC
*** Bug 641998 has been marked as a duplicate of this bug. ***
Comment 10 Danielle Madeley 2011-02-10 04:49:37 UTC
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.
Comment 11 steyn.vanhoute 2011-02-10 18:02:40 UTC
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.
Comment 12 Guillaume Desmottes 2011-02-11 10:30:25 UTC
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(-)
Comment 13 Guillaume Desmottes 2011-02-11 10:32:01 UTC
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.
Comment 14 Danielle Madeley 2011-02-13 02:36:54 UTC
Review of attachment 180644 [details] [review]:

++
Comment 15 Chandni Verma 2011-02-14 02:21:37 UTC
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
Comment 16 Chandni Verma 2011-02-14 02:33:59 UTC
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.
Comment 17 Guillaume Desmottes 2011-02-14 09:04:29 UTC
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.