GNOME Bugzilla – Bug 781071
Creating an event in calendar causes crash
Last modified: 2017-05-14 17:06:12 UTC
Created attachment 349534 [details] Backtrace shown by ABRT. Whenever I try to create an event on a Microsoft Exchange calendar (registered via Gnome Online Accounts), Calendar closes forcefully. ABRT lists the reason of the crash as "gnome-calendar killed by SIGSEGV". However, adding an event to my Personal (local) calendar doesn't trigger this crash, and neither does creating an event on my Personal calendar and changing it to be on my MS Exchange calendar. In the meantime, I have been able to create events on my MS Exchange calendar via Evolution. I wasn't able to submit this bug through ABRT since there is no usable stack trace (though it would have been sent to Red Hat Bugzilla, since I'm using F25). Instead, I have attached the backtrace shown by ABRT. Perhaps related to Case 760286.
Created attachment 349777 [details] [review] manager: fail when client unit isn't found This is a temporary solution to avoid a crash that some people are experiencing. More investigation is required.
Comment on attachment 349777 [details] [review] manager: fail when client unit isn't found The attached patch is a workaround to make Calendar not crash. I want to know why there is a NULL unit being inserted, but I can't reproduce this issue. Until there, I'm leaving this bug opened.
Comment on attachment 349777 [details] [review] manager: fail when client unit isn't found Attachment 349777 [details] pushed as 1362762 - manager: fail when client unit isn't found
Hi, I've got the same bug using an owncloud calendar (caldav). When creating a new element, I got a segfault. ** (gnome-calendar:31570): CRITICAL **: gcal_event_get_source: assertion 'GCAL_IS_EVENT (self)' failed ** (gnome-calendar:31570): CRITICAL **: gcal_event_get_component: assertion 'GCAL_IS_EVENT (self)' failed (gnome-calendar:31570): e-data-server-CRITICAL **: e_source_hash: assertion 'E_IS_SOURCE (source)' failed (gnome-calendar:31570): libecal-CRITICAL **: e_cal_component_get_icalcomponent: assertion 'comp != NULL' failed (gnome-calendar:31570): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed [3] 31570 segmentation fault gnome-calendar OS is : Debian 9 x86_64 Gnome 3.22.2
same problem with Google Calendar but it works sometimes and I can't figure out why.
Created attachment 350686 [details] [review] window: properly unref edit dialog's event We were appearently unreferencing the same event twice when responding to Edit dialog's signal. Fix that by only cleaning the event after using it.
Comment on attachment 350686 [details] [review] window: properly unref edit dialog's event Per Michael's testing, this patch seems to work.
Pushed to GNOME 3.22 branch (this is actually fixed in master and 3.24). I'll release Calendar 3.22.5 immediately. Please request package maintainers to update it. Closing the bug as RESOLVED FIXED. Thanks for the patience, and sorry for releasing Calendar in this broken state for so long. Attachment 350686 [details] pushed as ba768c7 - window: properly unref edit dialog's event
I would like to express thanks for pushing a 3.22 release out for this. We in Gentoo are very glad to get to know about such important fixes in the form of an old cycle release (and our scripts picking it up then) when our stable version is still on that, and are happy to just package and push to stable faster the upstream release instead of grabbing patches (or worse, not even really knowing about them when users suffering from it haven't reported on our bugzilla). Hopefully next time around we'll be on 3.24 though :) But then we'll benefit from late 3.24 releases if needed until 3.26 is stable, etc :)
Thanks from me as well! I got the update a little while ago and it's working like a charm. Your responsiveness in fixing this is much appreciated.