GNOME Bugzilla – Bug 358415
crash in gantt view
Last modified: 2007-09-15 06:27:37 UTC
After creating resources and tasks in Planner 0.14, attempting to use the Gantt view to specify predecessors caused Planner to crash. Upgrading to Planner 0.14.1 improved this, but after adding a fairly complete predecessor hierarchy, even 0.14.1 still continues to crash -- so much that the Gantt view is completely unusable at any zoom level. Planner 0.13.90 does not exhibit any crash problems. Attached is the .planner file I am using. I have already wiped the email addresses, and changed some of the task names to make this .planner file available for public use.
Created attachment 73685 [details] Planner file which causes the crash
It seems likely that this is related to bug #345517 -- cur_unit and cur_cal are used similarly in gantt_row_draw(), but only cur_unit was initialized to fix that crash. valgrind complains that cur_cal is used uninitialized by map_get_next_mrp_ival(). Adding "cur_cal = (GList *)NULL;" quashes that warning from Valgrind but I haven't yet run the patched version long enough to be sure the crash is entirely fixed.
Created attachment 75296 [details] [review] one-line patch to prevent crashing little patch that seems to fix this crash. Arthur Petitpierre.
Created attachment 75306 [details] [review] One-line patch to fix Gantt chart crash. This patch actually compiles and follows the pattern for the previous crash fix. (It is what I use as my local workaround.)
The patches both look good. Does any planner maintainer care to comment?
Patches applied and included in Planner v0.14.2
*** Bug 360071 has been marked as a duplicate of this bug. ***
*** Bug 425694 has been marked as a duplicate of this bug. ***
*** Bug 425796 has been marked as a duplicate of this bug. ***
*** Bug 451125 has been marked as a duplicate of this bug. ***
*** Bug 456248 has been marked as a duplicate of this bug. ***
*** Bug 476966 has been marked as a duplicate of this bug. ***