[Planner Dev] Planner Crashes During Gantt Printing




The task that causes the crash seems to be a milestone with no predeccessor.  

In the current source I see.

        /* FIXME: Remove this check when the scheduler
         * is fixed. We get a crash here if tasks get
         * really odd start/finish values. This
         * sometimes happens for complex projects now.
         */
        if (!task_coord) {
                goto fail;
        }

So I thought is was worth shareing my finding.

Here is the error from xxgdb.  Note that my source is from around Jun 11.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1092437312 (LWP 9525)]
0x41365ce5 in planner_gantt_print_do (data="" at planner-gantt-print.c:794


        /* Handle the allocated resources. */
        if (gantt_print_get_allocated_resources_string (data, ptask->task, &str, NULL)) {
                task_coord = g_hash_table_lookup (data->task_finish_coords,
                                                  ptask->task);

                element = g_new0 (Element, 1);
                element->type = RESOURCES;

        ->        element->x1 = task_coord->x + data->job->x_pad;
                element->y1 = y0 + data->row_height * (i + 1);

                element->resources = str;

                page = GET_PAGE (data, row, col - 1);
                page->elements = g_list_prepend (page->elements, element);
        }  

If I add a predessessor to the mileston, planner prints the gantt just fine.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]