Re: [Planner Dev] Windows version crashes





Jani tiainen wrote:
Richard Hult wrote:

On tis, 2004-07-27 at 11:54 +0300, Jani tiainen wrote:

Richard Hult wrote:



Only the first one is relevant (cannot register...), the other ones are just due to the first one.

The bug is that both views try to register types with the type system in
glib, I'm not sure how that happens.


where this registration takes place?

Because all errors started to appear after I changed extension in loaders from .so to .dll.



That's because the views weren't loaded before you did that (maybe
that's what you meant).

It works like this:

When a window is created, it goes through the directory with views,
basically dlopens them and loads an init function from each of them,
which it then executes. This init function sets up the view and as part
of this it creates gobject objects, which for the first instance
registers its type with the type system. So somehow the type system
doesn't get that the type is already registered. I have no idea why
though. It's not necessarily a problem with your linking, we might do
something that just happens to work on e.g. Linux.


Well I'm getting further... =)

It seems that problem lies with Gantt view... Don't know why...

I got things working with "Resource" and "Task" views now...Altough I get lot's of errors:

** (planner:2728): CRITICAL **: file mrp-project.c: line 1915 (mrp_project_calculate_task_work): assertion `finish >= 0' failed

As an aside - you can easily reproduce this error on a Linux machine
by adding a task at say 8000 days, and then in gantt dragging the
end date handle to try and go beyond beyond 2037 or so (about 8600
days). It wraps around back to the current project start but also
raises those asserts. It also renders date bar in gantt in the 2030's
not very nicely and takes a long time to render this one task.

I'll raise a bugzilla for these far-in-the-future dates because
though it sounds silly there are a number of things in business
which must be stored and planned for with long periods of time
e.g. Employers' Liability insurance records in UK must be kept
for 40 years, so we might as well log the problem and then at
some time in the future plan how we'll address this.

Rgds,
Lincoln.


But still I was able to add new resources & tasks...
_______________________________________________
Planner-dev mailing list
Planner-dev lists imendio com
http://lists.imendio.com/mailman/listinfo/planner-dev




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