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 535075 - Evolution cpu reaches 100% during import
Evolution cpu reaches 100% during import
Status: RESOLVED INCOMPLETE
Product: evolution
Classification: Applications
Component: Contacts
2.22.x (obsolete)
Other Linux
: High major
: ---
Assigned To: evolution-addressbook-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2008-05-27 12:40 UTC by Akhil Laddha
Modified: 2009-02-09 07:05 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Akhil Laddha 2008-05-27 12:40:16 UTC
Evolution 2.22.1.1 (Group wise back end)

I was importing around 2000 contact in an address book, when i looked in 'top' command output, evolution showed 100% cpu consumption. Gdb traces of evolution process

Program received signal SIGINT, Interrupt.
[Switching to Thread 0xb651a720 (LWP 24960)]
0xb7ceab19 in e_contact_get_const (contact=0x93268a8,
    field_id=E_CONTACT_FILE_AS) at e-contact.c:1569
1569    e-contact.c: No such file or directory.
        in e-contact.c
(gdb) thread a a bt

Thread 1 (Thread 0xb651a720 (LWP 24960))

  • #0 e_contact_get_const
    at e-contact.c line 1569
  • #1 addressbook_compare
    at e-addressbook-reflow-adapter.c line 185
  • #2 e_reflow_model_compare
    at e-reflow-model.c line 133
  • #3 er_compare
    at e-reflow.c line 84
  • #4 esort_callback
    at e-sorter-array.c line 59
  • #5 IA__g_qsort_with_data
    at gqsort.c line 178
  • #6 esa_sort
    at e-sorter-array.c line 86
  • #7 esa_backsort
    at e-sorter-array.c line 99
  • #8 esa_model_to_sorted
    at e-sorter-array.c line 120
  • #9 e_sorter_model_to_sorted
    at e-sorter.c line 105
  • #10 items_inserted
    at e-reflow.c line 444
  • #11 e_util_marshal_VOID__INT_INT
    at e-util-marshal.c line 807
  • #12 IA__g_closure_invoke
    at gclosure.c line 490
  • #13 signal_emit_unlocked_R
    at gsignal.c line 2440
  • #14 IA__g_signal_emit_valist
    at gsignal.c line 2199
  • #15 IA__g_signal_emit
    at gsignal.c line 2243
  • #16 e_reflow_model_items_inserted
    at e-reflow-model.c line 298
  • #17 create_contact
    at e-addressbook-reflow-adapter.c line 262
  • #18 eab_marshal_VOID__INT_INT
    at eab-marshal.c line 121
  • #19 IA__g_closure_invoke
    at gclosure.c line 490
  • #20 signal_emit_unlocked_R
    at gsignal.c line 2440
  • #21 IA__g_signal_emit_valist
    at gsignal.c line 2199
  • #22 IA__g_signal_emit
    at gsignal.c line 2243
  • #23 create_contact
    at e-addressbook-model.c line 183
  • #24 IA__g_cclosure_marshal_VOID__POINTER
    at gmarshal.c line 601
  • #25 IA__g_closure_invoke
    at gclosure.c line 490
  • #26 signal_emit_unlocked_R
    at gsignal.c line 2440
  • #27 IA__g_signal_emit_valist
  • #28 IA__g_signal_emit
    at gsignal.c line 2243
  • #29 e_book_view_handle_response
    at e-book-view.c line 45
  • #30 IA__g_cclosure_marshal_VOID__POINTER
    at gmarshal.c line 601
  • #31 IA__g_closure_invoke
    at gclosure.c line 490
  • #32 signal_emit_unlocked_R
    at gsignal.c line 2440
  • #33 IA__g_signal_emit_valist
    at gsignal.c line 2199
  • #34 IA__g_signal_emit
    at gsignal.c line 2243
  • #35 main_thread_get_response
    at e-book-view-listener.c line 69
  • #36 g_idle_dispatch
    at gmain.c line 4087
  • #37 IA__g_main_context_dispatch
    at gmain.c line 2009
  • #38 g_main_context_iterate
    at gmain.c line 2642
  • #39 IA__g_main_loop_run
    at gmain.c line 2850
  • #40 bonobo_main
    at bonobo-main.c line 311
  • #41 main
    at main.c line 782
  • #0 e_contact_get_const
    at e-contact.c line 1569
  • #1 addressbook_compare
    at e-addressbook-reflow-adapter.c line 185
  • #2 e_reflow_model_compare
    at e-reflow-model.c line 133
  • #3 er_compare
    at e-reflow.c line 84
  • #4 esort_callback
    at e-sorter-array.c line 59
  • #5 IA__g_qsort_with_data
  • #6 esa_sort
    at e-sorter-array.c line 86
  • #7 esa_backsort
    at e-sorter-array.c line 99
  • #8 esa_model_to_sorted
    at e-sorter-array.c line 120
  • #9 e_sorter_model_to_sorted
    at e-sorter.c line 105
  • #10 items_inserted
    at e-reflow.c line 444
  • #11 e_util_marshal_VOID__INT_INT
    at e-util-marshal.c line 807
  • #12 IA__g_closure_invoke
    at gclosure.c line 490
  • #13 signal_emit_unlocked_R
    at gsignal.c line 2440
  • #14 IA__g_signal_emit_valist
    at gsignal.c line 2199
  • #15 IA__g_signal_emit
    at gsignal.c line 2243
  • #16 e_reflow_model_items_inserted
    at e-reflow-model.c line 298
  • #17 create_contact
    at e-addressbook-reflow-adapter.c line 262
  • #18 eab_marshal_VOID__INT_INT
    at eab-marshal.c line 121
  • #19 IA__g_closure_invoke
    at gclosure.c line 490
  • #20 signal_emit_unlocked_R
    at gsignal.c line 2440
  • #21 IA__g_signal_emit_valist
    at gsignal.c line 2199
  • #22 IA__g_signal_emit
    at gsignal.c line 2243
  • #23 create_contact
    at e-addressbook-model.c line 183
  • #24 IA__g_cclosure_marshal_VOID__POINTER
  • #25 IA__g_closure_invoke
    at gclosure.c line 490
  • #26 signal_emit_unlocked_R
    at gsignal.c line 2440
  • #27 IA__g_signal_emit_valist
    at gsignal.c line 2199
  • #28 IA__g_signal_emit
    at gsignal.c line 2243
  • #29 e_book_view_handle_response
    at e-book-view.c line 45
  • #30 IA__g_cclosure_marshal_VOID__POINTER
    at gmarshal.c line 601
  • #31 IA__g_closure_invoke
    at gclosure.c line 490
  • #32 signal_emit_unlocked_R
  • #33 IA__g_signal_emit_valist
    at gsignal.c line 2199
  • #34 IA__g_signal_emit
    at gsignal.c line 2243
  • #35 main_thread_get_response
    at e-book-view-listener.c line 69
  • #36 g_idle_dispatch
    at gmain.c line 4087
  • #37 IA__g_main_context_dispatch
    at gmain.c line 2009
  • #38 g_main_context_iterate
  • #39 IA__g_main_loop_run
    at gmain.c line 2850
  • #40 bonobo_main
    at bonobo-main.c line 311
  • #41 main
    at main.c line 782

Comment 1 Akhil Laddha 2008-05-28 13:29:56 UTC
Moved around 2150 contacts from personal address book to an address book of group back end (manually created) , just near completion evolution cpu consumption reached to 100%. Traces look same to previous one so pasting here. 

Program received signal SIGINT, Interrupt.
[Switching to Thread 0xb64a7720 (LWP 30935)]
0xb67a40b2 in malloc_check (sz=28, caller=0xb68e3584) at hooks.c:266
266     hooks.c: No such file or directory.
        in hooks.c
(gdb) thread a a bt

Thread 1 (Thread 0xb64a7720 (LWP 30935))

  • #0 malloc_check
    at hooks.c line 266
  • #1 *__GI___libc_malloc
    at malloc.c line 3546
  • #2 IA__g_malloc
    at gmem.c line 131
  • #3 _g_utf8_normalize_wc
    at gunidecomp.c line 388
  • #4 IA__g_utf8_collate
    at gunicollate.c line 81
  • #5 addressbook_compare
    at e-addressbook-reflow-adapter.c line 188
  • #6 e_reflow_model_compare
    at e-reflow-model.c line 133
  • #7 er_compare
    at e-reflow.c line 84
  • #8 esort_callback
    at e-sorter-array.c line 59
  • #9 IA__g_qsort_with_data
    at gqsort.c line 178
  • #10 esa_sort
    at e-sorter-array.c line 86
  • #11 esa_sorted_to_model
  • #12 e_sorter_sorted_to_model
    at e-sorter.c line 117
  • #13 reflow_columns
    at e-reflow.c line 327
  • #14 e_reflow_reflow
    at e-reflow.c line 1318
  • #15 e_canvas_item_invoke_reflow
    at e-canvas.c line 722
  • #16 e_canvas_item_invoke_reflow
    at e-canvas.c line 712
  • #17 idle_handler
    at e-canvas.c line 733
  • #18 g_idle_dispatch
    at gmain.c line 4087
  • #19 IA__g_main_context_dispatch
    at gmain.c line 2009
  • #20 g_main_context_iterate
    at gmain.c line 2642
  • #21 IA__g_main_loop_run
    at gmain.c line 2850
  • #22 bonobo_main
    at bonobo-main.c line 311
  • #23 main
    at main.c line 782
  • #0 malloc_check
    at hooks.c line 266
  • #1 *__GI___libc_malloc
    at malloc.c line 3546
  • #2 IA__g_malloc
    at gmem.c line 131
  • #3 _g_utf8_normalize_wc
    at gunidecomp.c line 388
  • #4 IA__g_utf8_collate
    at gunicollate.c line 81
  • #5 addressbook_compare
    at e-addressbook-reflow-adapter.c line 188
  • #6 e_reflow_model_compare
    at e-reflow-model.c line 133
  • #7 er_compare
    at e-reflow.c line 84
  • #8 esort_callback
    at e-sorter-array.c line 59
  • #9 IA__g_qsort_with_data
    at gqsort.c line 178
  • #10 esa_sort
    at e-sorter-array.c line 86
  • #11 esa_sorted_to_model
    at e-sorter-array.c line 137
  • #12 e_sorter_sorted_to_model
    at e-sorter.c line 117
  • #13 reflow_columns
    at e-reflow.c line 327
  • #14 e_reflow_reflow
    at e-reflow.c line 1318
  • #15 e_canvas_item_invoke_reflow
    at e-canvas.c line 722
  • #16 e_canvas_item_invoke_reflow
    at e-canvas.c line 712
  • #17 idle_handler
    at e-canvas.c line 733
  • #18 g_idle_dispatch
    at gmain.c line 4087
  • #19 IA__g_main_context_dispatch
    at gmain.c line 2009
  • #20 g_main_context_iterate
    at gmain.c line 2642
  • #21 IA__g_main_loop_run
    at gmain.c line 2850
  • #22 bonobo_main
    at bonobo-main.c line 311
  • #23 main
    at main.c line 782

Comment 2 Akhil Laddha 2008-05-28 13:30:50 UTC
Gdb traces of eds process at the same moment 


(evolution-data-server-2.22:30927): libecalbackendgroupwise-WARNING **: Failed to read the attachment from the server

[New Thread 0xad0a6b90 (LWP 31692)]
libedata-book-Message: Flushed summary to disk
[Thread 0xad0a6b90 (LWP 31692) exited]
[Thread 0xb08f6b90 (LWP 31418) exited]
[Thread 0xb4140b90 (LWP 31414) exited]
libedata-book-Message: Flushed summary to disk
^C
Program received signal SIGINT, Interrupt.
[Switching to Thread 0xb6ec66e0 (LWP 30927)]
0xffffe430 in __kernel_vsyscall ()
(gdb) thread a abt
(gdb) thread a a bt




Comment 3 Milan Crha 2008-09-23 15:45:13 UTC
It's trying to find the right position of the new contact in the list. It could take some time, and CPU usage, yes. Is it taking a long time? Is it doing similar thing when only opening that huge address book in a view?
Comment 4 Akhil Laddha 2009-02-09 07:05:20 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!