Spring is running in SMP - Page 23

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
Griffith
Posts: 67
Joined: 14 Jul 2009, 19:27

Re: Spring is running in SMP

Post by Griffith »

I froze too in ffa yesterday, one game on 4 or 5 i think but no infolog :roll:
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Spring is running in SMP

Post by zerver »

Griffith wrote:I froze too in ffa yesterday, one game on 4 or 5 i think but no infolog :roll:
I'm not surprised, because there is one freeze that is fixed in master but not in 80.4. Didn't wanna fix it yet because of fairly big code changes and risk for desync. But it is rare, at least on my system with my settings. I can tell you that LUA makes it extremely hard to make thread safe and deadlock free code, because you do not know what resources the LUA code will access and in which order.
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Spring is running in SMP

Post by zerver »

Since I have no idea when 80.5 will be out, I decided to fix the hang.

Grab 0.80.4.2-2 on the download page.
DuGi
Posts: 10
Joined: 04 Jul 2009, 23:19

Re: Spring is running in SMP

Post by DuGi »

can you post a link to 0.80.4.2-2 source?
Griffith
Posts: 67
Joined: 14 Jul 2009, 19:27

Re: Spring is running in SMP

Post by Griffith »

I tried this version (0.80.4.2-2) and no crash 8)
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Spring is running in SMP

Post by zerver »

DuGi wrote:can you post a link to 0.80.4.2-2 source?
It is the head revision in the 0.80.4-branch
http://github.com/spring/spring/commits/0.80.4-branch
DuGi
Posts: 10
Joined: 04 Jul 2009, 23:19

Re: Spring is running in SMP

Post by DuGi »

zerver wrote:It is the head revision in the 0.80.4-branch
http://github.com/spring/spring/commits/0.80.4-branch
thx, but when i try build it from git then spring version is 0.80+.0.0. how fix it for online play (springlobby & qtlobby displays annoying messages about low version)?
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Spring is running in SMP

Post by hoijui »

you compiled master branch, but you have to compile the 0.80.4-branch branch.

Code: Select all

git checkout 0.80.4-branch
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Spring is running in SMP

Post by zerver »

And don't forget to set flags USE_GML and USE_GML_SIM if you want threading. Your version should read something like "0.80.4.2 MT" on startup.
User avatar
ginekolog
Posts: 837
Joined: 27 Feb 2006, 13:49

Re: Spring is running in SMP

Post by ginekolog »

well it froze again with this new MT version.. too bad :(
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Spring is running in SMP

Post by zerver »

Sorry to hear that. Method for reporting a hang is found here:
http://springrts.com/phpbb/viewtopic.ph ... &start=272
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Spring is running in SMP

Post by zerver »

FYI, 80.5 MT
http://buildbot.eat-peet.net/spring/exe ... 7094db.zip
has a new feature: hang detection

If it hangs, wait 10 seconds before terminating the process and check the infolog for stack traces.

If anyone has problems with hangs and wants to use hang detection for non-MT spring, set HangTimeout = X in the config file. X is number of seconds hang needed to trigger detection.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Spring is running in SMP

Post by Beherith »

Ok tried to torture test it with a batch of replays from 80.5, but I couldnt get it to launch the replays, said they were created by diff version of spring. No reason MT and non MT replays shouldnt sync?
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Spring is running in SMP

Post by zerver »

Yeah, it is built from master so the version number may differ. But that is a very stupid version check imo, I will fix it.
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Spring is running in SMP

Post by zerver »

80.5.1 MT is built from the real tag, so should work with your replays.

http://buildbot.eat-peet.net/spring/exe ... c1d0c8.zip
DuGi
Posts: 10
Joined: 04 Jul 2009, 23:19

Re: Spring is running in SMP

Post by DuGi »

one question: how to disable "GML error" in the console?
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Spring is running in SMP

Post by Beherith »

Yes, that would be quite cool, since sometimes you cant pinpoint the source of the error.
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Spring is running in SMP

Post by zerver »

Sorry, can't do that since then the affected widgets would probably never get fixed. Get the debug version from the Downloads page, it will help you pinpoint the error.
User avatar
ginekolog
Posts: 837
Joined: 27 Feb 2006, 13:49

Re: Spring is running in SMP

Post by ginekolog »

Beherith wrote:Ok tried to torture test it with a batch of replays from 80.5, but I couldnt get it to launch the replays, said they were created by diff version of spring. No reason MT and non MT replays shouldnt sync?
How do u bach torture test? I would like it too as it still freezes me (i tried version from download page, its not the same as one posted here looks like)?

HAve to try this hang detection on replays, i dont want to do it in games cause it hurts to freeze in good games.
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Spring is running in SMP

Post by zerver »

Just wanted to add some info from another thread:

MT can give you very high FPS in big games, but if you use some heavyweight widgets that for instance do lots of drawing on screen (healthbars, special effects...) the required synchronization will interfere with the Sim, so that your CPU load will be higher than with regular Spring.

So, for the best MT experience be very careful when choosing widgets ...

Possibly the above is also the reason why some people reported MT to be slower than regular Spring.
Post Reply

Return to “Engine”