GNOME Bugzilla – Bug 693194
crash obtaining avatar icon data (google account)
Last modified: 2013-06-08 22:36:15 UTC
Hi I have only one online account configured in online-accounts: google Usually g-c-search-provider crashes at session login. according to appport crash handler, there is Ubuntu bug # 1033262 about it, but it is hidden. I did not find any bugzilla bug with "1033262" in a comment, thus assuming it has not been reported upstream. g_variant_new: expected GVariant of type `ay' but received value has type `(null)' Core was generated by `/usr/lib/gnome-contacts/gnome-contacts-search-provider'. Program terminated with signal 5, Trace/breakpoint trap.
+ Trace 231487
Thats a weird crash, its like the pixel_data is NULL in Contact.avatar_get_data, but i don't see how that could happen...
I can reproduce this quite easily. Start with a search that brings up a list of contacts results, once that is displayed then add a couple more letters to this same search so now there are no matches. This crashes the search provider and you are left with an empty contacts pane in the search overview.
This happens to me too with ubuntu, but not with arch linux (think it didn't happen with fedora either, but can't say 100% sure). Ubuntu has two different online-accounts entries. Appart from the gnome-online-accounts they have their own one. I wonder if this could be related to this bug... https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1040193
I can't imagine it would be related to Ubuntu-online-accounts, since gnome-contacts has not been patched to support that. However Ubuntu do patch the following line, to be an ARRAY instead of BYTESTRING. var pixel_data = Variant.new_from_data (VariantType.BYTESTRING, small_avatar.get_pixels_with_length (), true, small_avatar); https://git.gnome.org/browse/gnome-contacts/tree/src/contacts-contact.vala#n168
I cannot reproduce the crash with the above patch removed. So this is a downstream bug.
Thanks Tim for figuring this out.