Page 1 of 1

state of win32 build of current SVN

Posted: Sat Dec 19, 2009 2:02 pm
by zuzuf
Currently it builds but it seems there is some compatibility issue between some binary components. I ran the game through gdb and I only saw random crashes in system or pthread DLLs, often related to free/malloc functions.

I tried to build TA3D with GCC 3.4 and 4.4, so far I got the same results with both GCC versions.

I've added several tests to make sure TA3D doesn't do anything bad with memory allocated for images and pathfinding stuffs, everything is ok here but it keeps crashing :(

I am running out of ideas :evil:

Re: state of win32 build of current SVN

Posted: Sat Dec 19, 2009 7:24 pm
by Balthazar
Maybe it is somehow connected to muli-core CPU?

Re: state of win32 build of current SVN

Posted: Sat Dec 19, 2009 11:54 pm
by milipili
On OS X, I've just found how to make Ta3D work. I have to disable the compression texture and then it works just fine :)
It may be related.
In any cases, we now have a working version of TA3D on Snow Leopard !

Re: state of win32 build of current SVN

Posted: Sun Dec 20, 2009 12:21 am
by zuzuf
On windows it crashes on single core and multi core machines and disabling texture compression doesn't help :cry:

Re: state of win32 build of current SVN

Posted: Tue Jan 12, 2010 12:33 am
by zuzuf
After several hours of testing I could figure out that this bug appeared in r2199 which means the new pathfinder code is responsible for it. Well more specifically the new pathfinder interface seems to be responsible for this bug since r2199 doesn't bring the new algorithm.

Re: state of win32 build of current SVN

Posted: Tue Jan 12, 2010 4:24 pm
by zuzuf
:D WOOOWWWWWWW, I think I finally got it working :D :D :D :D :D :D :D :D :D

It looks like it doesn't like creating/destroying mutexes on windows :evil: . AI:Path objects were also ObjectSync objects which contain a Mutex. This mutex was useless since it didn't protect copy operations and the unit mutex was already protecting it so I just removed the ObjectSync stuffs from AI::Path and now it works :D !!

I am cleaning things a bit, once it's done I'll build the first working beta package 8)

Re: state of win32 build of current SVN

Posted: Tue Jan 12, 2010 6:46 pm
by Balthazar
Hehe, thats a very nice news i must say :P

Re: state of win32 build of current SVN

Posted: Wed Jan 13, 2010 8:22 am
by xpoy
WOOWOWOW! It' over, lol, cool

Re: state of win32 build of current SVN

Posted: Sat Jan 16, 2010 6:46 pm
by Balthazar
Any news conserning the bug in 2235 build?

Re: state of win32 build of current SVN

Posted: Sat Jan 16, 2010 6:56 pm
by zuzuf
It was due to some change I made to have TA3D running in virtual box, something related to OpenGL accumulation buffer (which is not used by TA3D :shock: ) initialization.

I have changed the values used but I haven't tested yet, I'll make another binary tomorrow for you to test it.

Re: state of win32 build of current SVN

Posted: Sat Jan 16, 2010 9:14 pm
by Balthazar
Thanks :P