[01:43:05] * Colourless is considering doing something about that whole object disappearing problem
[01:43:41] <Colourless> if the problem is what it seems and just use of objects by schedules after they've been deleted it should be reasonably straight forward to do something about it
[02:32:14] <sh4rm4> it can't hurt if somebody's stepping through the code, but its possible the bug is gone now.
[02:32:51] <Colourless> unlikely. A known bad bug, believed to be the cause is still there unfixed
[02:33:05] <sh4rm4> which is that ?
[02:33:18] <Colourless> use after delete/double delete
[02:34:03] <sh4rm4> it should be sufficient to run it thru valgrind then
[02:34:24] <Colourless> the circumstances to trigger it are difficult to achieve
[02:35:40] <Colourless> but analysing how the code works shows it can be a problem. The schedules create an item and keep a pointer to it. If there is a cache out on th work the cache out code will delete the item the schedule crated. The schedule can then attempt to stuff with the deleted object because it doesn't know the object was deleted
[02:36:55] <sh4rm4> so the cache out should check if the object is in the schedule list
[02:36:59] <sh4rm4> and not free it
[02:37:04] <Colourless> what it comes down to is both the schedule and the world think they own the object.
[02:37:57] <sh4rm4> or cacheout does: Schedule_removeObject(x)
[02:39:24] <Colourless> i was planning on doing something 'like' that, but a bit more complicated
[02:41:18] <Colourless> use a notification system so users of an object are notified of it being removed/deleted from the world and form of weak reference to automate it
[04:45:18] <Dominus> Colourless: if you take a shot at this, I promise to immediately start a playthrough of both games. especially BG as this has way more producing schedules as SI
[04:46:22] <Dominus> sh4rm4: just believe us when we say that bug is not yet fixed :)
[12:45:10] <sh4rm4> Dominus, maybe not everything is fixed, but much
[12:45:37] <sh4rm4> let me reiterate: the latest bugfix fixes at least 5 different issues i reported
[12:45:58] <sh4rm4> which all looked like "random failure"
[15:00:36] <Dominus> yes, a memory leak has been fixed but it's not the root of the disappearing objects.
[15:01:10] <Dominus> not to mention that probably over half of your problems were caused by your 'fix' ;)