GNOME Bugzilla – Bug 779733
Crash when adding a new event via edit dialog
Last modified: 2017-03-19 09:11:40 UTC
With 3.23.91.1 (and the latest git checkout) gnome-calendar crashes when trying to add a new event via the the dialog that shows up when clicking on "Edit Details...". Adding events using the popup window works fine.
+ Trace 237231
Created attachment 347622 [details] [review] gcal-window: Fix 'calendar crashes when adding new event through edit dialog' Earlier the app used to crash when a new event was added using the 'Edit Details' button/dialog. This patch fixes the above-mentioned issue.
Created attachment 347624 [details] [review] window: Set edit_dialog's event to NULL at the right postion so SIEGSEV does not occur Earlier the app used to crash when a new event was added using the 'Edit Details' buttion/dialog. This was happening because edit_dialog's event was set to NULL before the event was being stored in the calendar through the 'edit_dialog' and hence the app was crashing. This patch fixes the above-mentioned issue.
Review of attachment 347624 [details] [review]: Looks good to me
Created attachment 347756 [details] [review] window: set edit dialog's event to NULL after saving Earlier the app used to crash when a new event was added using the 'Edit Details' buttion/dialog. This was happening because edit dialog's event was set to NULL before the event was being stored in the calendar through the 'edit_dialog' and hence the app was crashing. This patch fixes the above-mentioned issue by saving the event before setting the edit dialog's event to NULL.
Thanks for the fix. I took the liberty to improve the commit message a big. Please read it and keep that in mind for the next patches. Attachment 347756 [details] pushed as 6f87ada - window: set edit dialog's event to NULL after saving
@Georges: Thanks. Will not repeat the commit message format blunder again.
Don't know if there's another release of the 3.22 branch planned but this is also happening in Fedora 25 so it could use a backport.