Spring is running in SMP - Page 21

Spring is running in SMP

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
Hacked
Posts: 116
Joined: 15 Aug 2008, 18:06

Re: Spring is running in SMP

Post by Hacked »

ive specced and played BA and NOTA without any problems
thx for the compile!
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Spring is running in SMP

Post by imbaczek »

zerver: try to modify checks in normalize and/or add a check in isqrt's for x == 0. -fsignaling-nans won't be stable in other places and has potential to crash gfx drivers.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Spring is running in SMP

Post by hoijui »

for translating hte stack traces on the buildbot, you need to specify some things manually, like this:
!translate file=<URL> profile=MT tag=0.80.2
this way, we get:
RAI: http://buildbot.eat-peet.net/spring/sta ... 73311.html
KAIK: http://buildbot.eat-peet.net/spring/sta ... 73147.html

it crashes in the AIs, but i have not yet seen either of them crashing like this with non MT builds of spring, plus the stack traces before entering the AI look strange to me.
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Spring is running in SMP

Post by zerver »

This exe does not come from buildbot, and the code is also slightly changed from the 0.80.2 tag, so you cannot use those stack traces.
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Spring is running in SMP

Post by zerver »

imbaczek wrote:zerver: try to modify checks in normalize and/or add a check in isqrt's for x == 0. -fsignaling-nans won't be stable in other places and has potential to crash gfx drivers.
Can you explain more? I discovered this when I noticed that SCons builds worked fine (it has fsignaling-nans set by default), but CMake builds crash and hang in various ways.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Spring is running in SMP

Post by imbaczek »

see float3.h, especially the Normalize family.
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Spring is running in SMP

Post by zerver »

imbaczek wrote:zerver: try to modify checks in normalize and/or add a check in isqrt's for x == 0.
You need to know your volatiles since there is a potential for the value change between the check and the calculation :mrgreen:
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Spring is running in SMP

Post by imbaczek »

that's why i don't do multithreading ;p
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Spring is running in SMP

Post by Auswaschbar »

Signaling nans is disabled by default in cmake, furthermore they can be toggled on / off.
User avatar
ginekolog
Posts: 837
Joined: 27 Feb 2006, 13:49

Re: Spring is running in SMP

Post by ginekolog »

last game me and some other guy using MT build [MTDEBUG]0.80.4-spring_exe_0.80.4-0-ga0534a8 got annoying spring.exe freeze at the same time. Game freeze and spring no longer consumes cpu, taskman is neede to get out.

Could this be MT related? I did not have single problem in 0.78 with MT (i have disable widgets that caused problems)

Infolog with crash info: http://pastebin.com/m3b57ebcb

ty for help, MT made me addicted, hate going back so ST :twisted:
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Spring is running in SMP

Post by zerver »

http://buildbot.eat-peet.net/spring/sta ... 93294.html

Hard to say, but does not seem to be MT related. If the stacktrace is correctly translated, crash at that location should be impossible. Therefore my guess would be some kind of memory corruption.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Spring is running in SMP

Post by imbaczek »

there are other strange crashes which would be related; if a replay can reproduce one and is relatively short (<30k frames), please upload it.
User avatar
ginekolog
Posts: 837
Joined: 27 Feb 2006, 13:49

Re: Spring is running in SMP

Post by ginekolog »

ginekolog wrote:last game me and some other guy using MT build [MTDEBUG]0.80.4-spring_exe_0.80.4-0-ga0534a8 got annoying spring.exe freeze at the same time. Game freeze and spring no longer consumes cpu, taskman is neede to get out.

Could this be MT related? I did not have single problem in 0.78 with MT (i have disable widgets that caused problems)

Infolog with crash info: http://pastebin.com/m3b57ebcb

ty for help, MT made me addicted, hate going back so ST :twisted:
Here is the replay. When i crashed another player using MT also crashed, other did play on.
http://replays.adune.nl/?1619
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: Spring is running in SMP

Post by very_bad_soldier »

What about the incompatibility with LUPS? Is it by design or any chance to get it fixed anytime soon?

And what are the widgets that cause trouble with MT? Maybe if we can sort this things out the MT-build could be the default, right?
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Spring is running in SMP

Post by zerver »

very_bad_soldier wrote:Maybe if we can sort this things out the MT-build could be the default, right?
I don't think so, because it is slower than ST if you have only 1 cpu. Also bugs are much more likely to happen with MT and sometimes extremely hard to debug.

However, the goal is to remove the "Experimental" status of MT. Engine and widget/mod fixes will probably be needed.
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Spring is running in SMP

Post by zerver »

Then we have this beauty (crash in lua garbage collector):

http://buildbot.eat-peet.net/spring/sta ... 20433.html

I have a replay (unfortunately a long one) and it is somewhat reproducible, at least with MT version. IIRC several non MT users crashed at the same time.
User avatar
ginekolog
Posts: 837
Joined: 27 Feb 2006, 13:49

Re: Spring is running in SMP

Post by ginekolog »

Hi,

is MT build stable now? I really miss days from 079 with its rock stable MT build and 25FPS with 3000 units :)

This 80 freezes to often to play :?

ty
Griffith
Posts: 67
Joined: 14 Jul 2009, 19:27

Re: Spring is running in SMP

Post by Griffith »

Same here, crash or freeze every game even with widgets disabled :(
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Spring is running in SMP

Post by zerver »

Which build are you using?
Griffith
Posts: 67
Joined: 14 Jul 2009, 19:27

Re: Spring is running in SMP

Post by Griffith »

I tried [MTDEBUG]0.80.4-spring_exe_0.80.4-0-ga0534a8 ;
[MT]0.80.4-branch_spring_exe_0.80.4.1-4-g9a9023a and
[MT]0.80.4.1-spring_exe_0.80.4.1-0-g0e3491f
Post Reply

Return to “Engine”