GNOME Bugzilla – Bug 675292
Assertion when joining IRC channel
Last modified: 2012-05-04 16:21:54 UTC
I got this when joining an IRC channel with at least one participant. Folks and Empathy master. ** (empathy-chat:14431): CRITICAL **: gee_abstract_collection_contains: assertion `self != NULL' failed Program received signal SIGTRAP, Trace/breakpoint trap. 0x00007ffff48a5070 in g_logv (log_domain=0x0, log_level=G_LOG_LEVEL_CRITICAL, format=0x7ffff4927d40 "%s: assertion `%s' failed", args1=0x7fffffffdd88) at gmessages.c:758 758 G_BREAKPOINT (); (gdb) bt
+ Trace 230166
This could only happen if tp_contact_get_identifier() is returning NULL, which the documentation says should never happen. I seem to remember Xavier fixing something like this in tp-glib a few weeks ago. Does your version of tp-glib include http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=a75257708a4766a5e1fcbf19d1d7d5bf588eab91?
I do. I checked and the TpContact passed to tpf_persona_dup_for_contact() is not NULL and tp_contact_get_identifier() returns its id as expected.
Created attachment 213417 [details] [review] Initialise Tpf.PersonaStore._favourite_ids correctly https://www.gitorious.org/folks/folks/commits/675292-initialise-favourite-ids Sorry, I misread the warning in your initial comment. Of course it’s the HashSet which is null, not the contact’s ID. This patch should fix it.
Review of attachment 213417 [details] [review]: ++ Didn't test if this was affecting the stable branch or not so please double check when merging.
Comment on attachment 213417 [details] [review] Initialise Tpf.PersonaStore._favourite_ids correctly Merged to master. Doesn’t affect 0.6 at all, since it was introduced during the port to ContactList. commit d71eabd2ee1fb2b5d6c266d35f20f6baccd4a23d Author: Philip Withnall <philip@tecnocode.co.uk> Date: Thu May 3 22:48:18 2012 +0100 Bug 675292 — Assertion when joining IRC channel Correctly initialise Tpf.PersonaStore._favourite_ids on store construction, rather than on preparation. This prevents it being null at inopportune times. Closes: https://bugzilla.gnome.org/show_bug.cgi?id=675292 NEWS | 1 + backends/telepathy/lib/tpf-persona-store.vala | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-)
Closing on the assumption that your commit message wasn't subterfuge.