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 658685 - gnome-contacts crashed with SIGSEGV in folks_persona_store_add_persona_from_details()
gnome-contacts crashed with SIGSEGV in folks_persona_store_add_persona_from_d...
Status: RESOLVED FIXED
Product: gnome-contacts
Classification: Core
Component: general
0.1.x
Other Linux
: Normal critical
: ---
Assigned To: GNOME Contacts maintainer(s)
GNOME Contacts maintainer(s)
: 666216 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-09-09 23:12 UTC by Fabio Durán Verdugo
Modified: 2012-01-20 13:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Fabio Durán Verdugo 2011-09-09 23:12:15 UTC
https://bugs.launchpad.net/ubuntu/+source/gnome-contacts/+bug/846092

Open contacs and press the [+] button in filter widget.


.

Thread 1 (Thread 0xb77be840 (LWP 1917))

  • #0 folks_persona_store_add_persona_from_details
    at persona-store.c line 498
  • #1 contacts_contact_pane_new_contact
    at contacts-contact-pane.c line 9185
  • #2 g_cclosure_marshal_VOID__VOID
    at /build/buildd/glib2.0-2.29.90/./gobject/gmarshal.c line 85
  • #3 g_closure_invoke
    at /build/buildd/glib2.0-2.29.90/./gobject/gclosure.c line 774
  • #4 signal_emit_unlocked_R
    at /build/buildd/glib2.0-2.29.90/./gobject/gsignal.c line 3272
  • #5 g_signal_emit_valist
    at /build/buildd/glib2.0-2.29.90/./gobject/gsignal.c line 3003
  • #6 g_signal_emit_by_name
    at /build/buildd/glib2.0-2.29.90/./gobject/gsignal.c line 3097
  • #7 g_cclosure_marshal_VOID__VOID
    at /build/buildd/glib2.0-2.29.90/./gobject/gmarshal.c line 85
  • #8 g_closure_invoke
    at /build/buildd/glib2.0-2.29.90/./gobject/gclosure.c line 774
  • #9 signal_emit_unlocked_R
    at /build/buildd/glib2.0-2.29.90/./gobject/gsignal.c line 3272
  • #10 g_signal_emit_valist
    at /build/buildd/glib2.0-2.29.90/./gobject/gsignal.c line 3003
  • #11 g_signal_emit_by_name
    at /build/buildd/glib2.0-2.29.90/./gobject/gsignal.c line 3097
  • #12 button_clicked
    at /build/buildd/gtk+3.0-3.1.18/./gtk/gtktoolbutton.c line 813
  • #13 g_cclosure_marshal_VOID__VOID
    at /build/buildd/glib2.0-2.29.90/./gobject/gmarshal.c line 85
  • #14 g_closure_invoke
    at /build/buildd/glib2.0-2.29.90/./gobject/gclosure.c line 774
  • #15 signal_emit_unlocked_R
    at /build/buildd/glib2.0-2.29.90/./gobject/gsignal.c line 3272
  • #16 g_signal_emit_valist
    at /build/buildd/glib2.0-2.29.90/./gobject/gsignal.c line 3003
  • #17 g_signal_emit
    at /build/buildd/glib2.0-2.29.90/./gobject/gsignal.c line 3060
  • #18 gtk_button_clicked
    at /build/buildd/gtk+3.0-3.1.18/./gtk/gtkbutton.c line 1196
  • #19 gtk_real_button_released
    at /build/buildd/gtk+3.0-3.1.18/./gtk/gtkbutton.c line 1825
  • #20 g_cclosure_marshal_VOID__VOID
    at /build/buildd/glib2.0-2.29.90/./gobject/gmarshal.c line 85
  • #21 g_type_class_meta_marshal
    at /build/buildd/glib2.0-2.29.90/./gobject/gclosure.c line 885
  • #22 g_closure_invoke
    at /build/buildd/glib2.0-2.29.90/./gobject/gclosure.c line 774
  • #23 signal_emit_unlocked_R
    at /build/buildd/glib2.0-2.29.90/./gobject/gsignal.c line 3202
  • #24 g_signal_emit_valist
    at /build/buildd/glib2.0-2.29.90/./gobject/gsignal.c line 3003
  • #25 g_signal_emit
    at /build/buildd/glib2.0-2.29.90/./gobject/gsignal.c line 3060
  • #26 gtk_button_released
    at /build/buildd/gtk+3.0-3.1.18/./gtk/gtkbutton.c line 1182
  • #27 gtk_button_button_release
    at /build/buildd/gtk+3.0-3.1.18/./gtk/gtkbutton.c line 1717
  • #28 gtk_button_button_release
    at /build/buildd/gtk+3.0-3.1.18/./gtk/gtkbutton.c line 1709
  • #29 _gtk_marshal_BOOLEAN__BOXED
    at /build/buildd/gtk+3.0-3.1.18/./gtk/gtkmarshalers.c line 85
  • #30 g_type_class_meta_marshal
    at /build/buildd/glib2.0-2.29.90/./gobject/gclosure.c line 885
  • #31 g_closure_invoke
    at /build/buildd/glib2.0-2.29.90/./gobject/gclosure.c line 774
  • #32 signal_emit_unlocked_R
    at /build/buildd/glib2.0-2.29.90/./gobject/gsignal.c line 3310
  • #33 g_signal_emit_valist
    at /build/buildd/glib2.0-2.29.90/./gobject/gsignal.c line 3013
  • #34 g_signal_emit
    at /build/buildd/glib2.0-2.29.90/./gobject/gsignal.c line 3060
  • #35 gtk_widget_event_internal
    at /build/buildd/gtk+3.0-3.1.18/./gtk/gtkwidget.c line 6131
  • #36 gtk_propagate_event
    at /build/buildd/gtk+3.0-3.1.18/./gtk/gtkmain.c line 2624
  • #37 gtk_main_do_event
    at /build/buildd/gtk+3.0-3.1.18/./gtk/gtkmain.c line 1894
  • #38 _gdk_event_emit
    at /build/buildd/gtk+3.0-3.1.18/./gdk/gdkevents.c line 71
  • #39 gdk_event_source_dispatch
    at /build/buildd/gtk+3.0-3.1.18/./gdk/x11/gdkeventsource.c line 360
  • #40 g_main_dispatch
    at /build/buildd/glib2.0-2.29.90/./glib/gmain.c line 2441
  • #41 g_main_context_dispatch
    at /build/buildd/glib2.0-2.29.90/./glib/gmain.c line 3011
  • #42 g_main_context_iterate
    at /build/buildd/glib2.0-2.29.90/./glib/gmain.c line 3089
  • #43 g_main_loop_run
    at /build/buildd/glib2.0-2.29.90/./glib/gmain.c line 3297
  • #44 gtk_main
    at /build/buildd/gtk+3.0-3.1.18/./gtk/gtkmain.c line 1367
  • #45 gtk_application_run_mainloop
    at /build/buildd/gtk+3.0-3.1.18/./gtk/gtkapplication.c line 112
  • #46 g_application_run
    at /build/buildd/glib2.0-2.29.90/./gio/gapplication.c line 1323
  • #47 _vala_main
    at main.c line 76
  • #48 main
    at main.c line 87

Comment 1 Alexander Larsson 2011-09-12 07:27:23 UTC
It looks like there is no primary persona store configured. Is folks built with support for evolution-data-server?
Comment 2 Jeremy Bicha 2011-10-03 04:03:14 UTC
I believe we fixed this bug in Ubuntu by having gnome-contacts install libfolks-eds25. Thank you!
Comment 3 Fabio Durán Verdugo 2011-10-03 17:15:29 UTC
No, this is not fixed for me 

gnome-contacts  3.2.0.1-0ubuntu2
libfolks25 0.6.3.1-0ubuntu1
libfolks-eds25 0.6.3.1-0ubuntu1



Program received signal SIGSEGV, Segmentation fault.
0x007fe6cb in folks_persona_store_add_persona_from_details (self=0x0, 
    details=0x8ade818, 
    _callback_=0x806d760 <___lambda57__gasync_ready_callback>, 
    _user_data_=0x84630c0) at persona-store.c:506
506	persona-store.c: No such file or directory.
	in persona-store.c
(gdb) set logging on
set logging: Permission denied.
(gdb) thread apply all bt

Thread 1 (Thread 0xb7fce840 (LWP 3244))

  • #0 folks_persona_store_add_persona_from_details
    at persona-store.c line 506
  • #1 contacts_contact_pane_new_contact
    at contacts-contact-pane.c line 9132
  • #2 g_cclosure_marshal_VOID__VOID
    at /build/buildd/glib2.0-2.30.0/./gobject/gmarshal.c line 85
  • #3 g_closure_invoke
    at /build/buildd/glib2.0-2.30.0/./gobject/gclosure.c line 774
  • #4 signal_emit_unlocked_R
    at /build/buildd/glib2.0-2.30.0/./gobject/gsignal.c line 3272
  • #5 g_signal_emit_valist
  • #6 g_signal_emit_by_name
    at /build/buildd/glib2.0-2.30.0/./gobject/gsignal.c line 3097
  • #7 g_cclosure_marshal_VOID__VOID
    at /build/buildd/glib2.0-2.30.0/./gobject/gmarshal.c line 85
  • #8 g_closure_invoke
    at /build/buildd/glib2.0-2.30.0/./gobject/gclosure.c line 774
  • #9 signal_emit_unlocked_R
    at /build/buildd/glib2.0-2.30.0/./gobject/gsignal.c line 3272
  • #10 g_signal_emit_valist
    at /build/buildd/glib2.0-2.30.0/./gobject/gsignal.c line 3003
  • #11 g_signal_emit_by_name
  • #12 button_clicked
    at /build/buildd/gtk+3.0-3.2.0/./gtk/gtktoolbutton.c line 813
  • #13 g_cclosure_marshal_VOID__VOID
    at /build/buildd/glib2.0-2.30.0/./gobject/gmarshal.c line 85
  • #14 g_closure_invoke
    at /build/buildd/glib2.0-2.30.0/./gobject/gclosure.c line 774
  • #15 signal_emit_unlocked_R
    at /build/buildd/glib2.0-2.30.0/./gobject/gsignal.c line 3272
  • #16 g_signal_emit_valist
    at /build/buildd/glib2.0-2.30.0/./gobject/gsignal.c line 3003
  • #17 g_signal_emit
    at /build/buildd/glib2.0-2.30.0/./gobject/gsignal.c line 3060
  • #18 gtk_button_clicked
    at /build/buildd/gtk+3.0-3.2.0/./gtk/gtkbutton.c line 1197
  • #19 gtk_real_button_released
  • #20 g_cclosure_marshal_VOID__VOID
    at /build/buildd/glib2.0-2.30.0/./gobject/gmarshal.c line 85
  • #21 g_type_class_meta_marshal
    at /build/buildd/glib2.0-2.30.0/./gobject/gclosure.c line 885
  • #22 g_closure_invoke
    at /build/buildd/glib2.0-2.30.0/./gobject/gclosure.c line 774
  • #23 signal_emit_unlocked_R
    at /build/buildd/glib2.0-2.30.0/./gobject/gsignal.c line 3202
  • #24 g_signal_emit_valist
    at /build/buildd/glib2.0-2.30.0/./gobject/gsignal.c line 3003
  • #25 g_signal_emit
    at /build/buildd/glib2.0-2.30.0/./gobject/gsignal.c line 3060
  • #26 gtk_button_released
  • #27 gtk_button_button_release
    at /build/buildd/gtk+3.0-3.2.0/./gtk/gtkbutton.c line 1718
  • #28 _gtk_marshal_BOOLEAN__BOXED
    at /build/buildd/gtk+3.0-3.2.0/./gtk/gtkmarshalers.c line 85
  • #29 g_type_class_meta_marshal
    at /build/buildd/glib2.0-2.30.0/./gobject/gclosure.c line 885
  • #30 g_closure_invoke
    at /build/buildd/glib2.0-2.30.0/./gobject/gclosure.c line 774
  • #31 signal_emit_unlocked_R
    at /build/buildd/glib2.0-2.30.0/./gobject/gsignal.c line 3310
  • #32 g_signal_emit_valist
  • #33 g_signal_emit
    at /build/buildd/glib2.0-2.30.0/./gobject/gsignal.c line 3060
  • #34 gtk_widget_event_internal
    at /build/buildd/gtk+3.0-3.2.0/./gtk/gtkwidget.c line 6132
  • #35 gtk_propagate_event
    at /build/buildd/gtk+3.0-3.2.0/./gtk/gtkmain.c line 2629
  • #36 gtk_main_do_event
    at /build/buildd/gtk+3.0-3.2.0/./gtk/gtkmain.c line 1894
  • #37 _gdk_event_emit
    at /build/buildd/gtk+3.0-3.2.0/./gdk/gdkevents.c line 71
  • #38 gdk_event_source_dispatch
    at /build/buildd/gtk+3.0-3.2.0/./gdk/x11/gdkeventsource.c line 360
  • #39 g_main_dispatch
    at /build/buildd/glib2.0-2.30.0/./glib/gmain.c line 2441
  • #40 g_main_context_dispatch
    at /build/buildd/glib2.0-2.30.0/./glib/gmain.c line 3011
  • #41 g_main_context_iterate
    at /build/buildd/glib2.0-2.30.0/./glib/gmain.c line 3089
  • #42 g_main_loop_run
    at /build/buildd/glib2.0-2.30.0/./glib/gmain.c line 3297
  • #43 gtk_main
    at /build/buildd/gtk+3.0-3.2.0/./gtk/gtkmain.c line 1367
  • #44 gtk_application_run_mainloop
    at /build/buildd/gtk+3.0-3.2.0/./gtk/gtkapplication.c line 115
  • #45 g_application_run
    at /build/buildd/glib2.0-2.30.0/./gio/gapplication.c line 1323
  • #46 _vala_main
    at main.c line 76
  • #47 main
    at main.c line 87

Comment 4 Travis Reitter 2011-10-04 17:38:33 UTC
This may be fixed by the fix for bug #660140 - please try Folks 0.6.3.2 and let us know if that solves the problem.
Comment 5 Alexander Larsson 2011-10-20 16:26:10 UTC
Travis: It seems to still happen with 0.6.3.2, see e.g.:

https://bugzilla.redhat.com/show_bug.cgi?id=745252

Which has a backtrace.
Comment 6 Alexander Larsson 2011-10-20 16:27:39 UTC
Crash seems to be due to folks_individual_aggregator_get_primary_store() returning NULL.
Comment 7 Alexander Larsson 2011-10-20 16:30:27 UTC
From the redhat bug:

-----
Connect to online account > back > click on +
----

So, this might be related to the eds addressbook configuration changing.
Comment 8 Raul Gutierrez Segales 2011-10-24 17:13:50 UTC
Could you run folks-inspect and then the persona-stores command?
Comment 9 Fabio Durán Verdugo 2011-11-30 05:56:11 UTC
I cant reproduce this report again.
Comment 10 Fabio Durán Verdugo 2011-11-30 05:56:13 UTC
I cant reproduce this report again.
Comment 11 Travis Reitter 2011-12-05 18:40:17 UTC
(In reply to comment #6)
> Crash seems to be due to folks_individual_aggregator_get_primary_store()
> returning NULL.

Note that this is a valid return value. This will happen, for example, if Folks is configured to only use the Telepathy backend (or it is the only one installed).

Gnome Contacts should gracefully handle this case.
Comment 12 Volker Sobek (weld) 2011-12-15 01:44:39 UTC
*** Bug 666216 has been marked as a duplicate of this bug. ***
Comment 13 Volker Sobek (weld) 2011-12-15 01:46:30 UTC
This still happens with current gnome-contacts using jhbuild

here's the start-up message:

gnome-contacts from jhbuild crashes when I click on the + button to add a new
contact.

Not sure if the start-up messages are related to the crash (maybe my jhbuild is
missing things?):

libebook-WARNING **: e_book_client_new: Cannot get book from factory: The name
org.gnome.evolution.dataserver.AddressBook3 was not provided by any .service
files

libebook-WARNING **: e_book_client_new: Cannot get book from factory: The name
org.gnome.evolution.dataserver.AddressBook3 was not provided by any .service
files

folks-WARNING **: Error preparing persona store 'eds:1323397631.480.17@r61':
Couldn't open address book ‘1323397631.480.17@r61’: The name
org.gnome.evolution.dataserver.AddressBook3 was not provided by any .service
files

folks-WARNING **: Error preparing persona store 'eds:1323833023.2832.0@r61':
Couldn't open address book ‘1323833023.2832.0@r61’: The name
org.gnome.evolution.dataserver.AddressBook3 was not provided by any .service
files

folks-WARNING **: Failed to find primary PersonaStore with type ID 'eds' and ID
'1323833023.2832.0@r61'.
Individuals will not be linked properly and creating new links between Personas
will not work.
The configured primary PersonaStore's backend may not be installed. If you are
unsure, check with your distribution.
Comment 14 Travis Reitter 2011-12-15 18:28:51 UTC
(In reply to comment #13)
> This still happens with current gnome-contacts using jhbuild
> 
> here's the start-up message:
> 
> gnome-contacts from jhbuild crashes when I click on the + button to add a new
> contact.
> 
> Not sure if the start-up messages are related to the crash (maybe my jhbuild is
> missing things?):
> 
> libebook-WARNING **: e_book_client_new: Cannot get book from factory: The name
> org.gnome.evolution.dataserver.AddressBook3 was not provided by any .service
> files
> 
> libebook-WARNING **: e_book_client_new: Cannot get book from factory: The name
> org.gnome.evolution.dataserver.AddressBook3 was not provided by any .service
> files
> 
> folks-WARNING **: Error preparing persona store 'eds:1323397631.480.17@r61':
> Couldn't open address book ‘1323397631.480.17@r61’: The name
> org.gnome.evolution.dataserver.AddressBook3 was not provided by any .service
> files
> 
> folks-WARNING **: Error preparing persona store 'eds:1323833023.2832.0@r61':
> Couldn't open address book ‘1323833023.2832.0@r61’: The name
> org.gnome.evolution.dataserver.AddressBook3 was not provided by any .service
> files
> 
> folks-WARNING **: Failed to find primary PersonaStore with type ID 'eds' and ID
> '1323833023.2832.0@r61'.
> Individuals will not be linked properly and creating new links between Personas
> will not work.
> The configured primary PersonaStore's backend may not be installed. If you are
> unsure, check with your distribution.

It looks like you've built Folks without the eds backend (which gnome-contacts requires). Jhbuild builds Folks with --enable-eds-backend by default, but it's possible you manually disabled this.

Alex, gnome-contacts should depend upon folks-eds in its configure.ac.
Comment 15 Alexander Larsson 2012-01-20 13:19:57 UTC
The folks-eds dependency has been added.