What is with this version of spring and hanging constanly?

What is with this version of spring and hanging constanly?

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
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

What is with this version of spring and hanging constanly?

Post by smoth »

I have been trying to test my game tonight and after so long it seems to be randomly hanging. I check the error log and it says something about hang detection. This is really frustrating.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: What is with this version of spring and hanging constanly?

Post by zwzsg »

I find the hang detection annoying as well.

According to Hoiju, you may change HangTimeout in springsettings.cfg
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: What is with this version of spring and hanging constanly?

Post by FLOZi »

Probably related to:

http://springrts.com/mantis/view.php?id=2186

?

Is this new with .6? I can't say I had regular problems with .5 wrt hanging
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: What is with this version of spring and hanging constanly?

Post by Forboding Angel »

Smoth, set an exception for your antivirus runtime scan for the spring folder and the mods and maps folders. It will instantly behave like it's old self.

(This is a temporary fix of course)
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: What is with this version of spring and hanging constanly?

Post by zerver »

So is it hanging for real, or just a fake hang detection? I already know it may incorrectly trigger during "/give all", and this will be fixed.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: What is with this version of spring and hanging constanly?

Post by Forboding Angel »

Personally zerver (and I can't speak with any amount of expertise) I think it's fake hang detections.

Apparently for me (and a lot of others) AV scanning at runtime is causing enough of a slowdown for it to matter to spring.

The result was that eventually spring WOULD load, but it would take literally several minutes to get ingame.

Like I said before, setting exceptions in AV is at best a workaround solution. This needs to be addressed in the engine pronto.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: What is with this version of spring and hanging constanly?

Post by FLOZi »

I think some people are experiencing mid-game hangs Forb. I only got the AV related issues on the spring.exe menu.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: What is with this version of spring and hanging constanly?

Post by Forboding Angel »

Oh, I didn't know that. Sorry, in that case, ignore me :-)
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: What is with this version of spring and hanging constanly?

Post by hoijui »

if we have to read a lot of stuff from the disc, and your AV checks all these reads, and thus makes them slow, how should we fix this in the engine?
or am i getting it wrong?
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: What is with this version of spring and hanging constanly?

Post by zwzsg »

Forb, we don't all use the same brand of antivirus as you.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: What is with this version of spring and hanging constanly?

Post by AF »

Isn't the auto hang set to 10 seconds now? If it's such an issue can't we have an off switch?
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: What is with this version of spring and hanging constanly?

Post by smoth »

I have not replied because I have not gotten back to setting a reproducible test to give some idea what is triggering it.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: What is with this version of spring and hanging constanly?

Post by Forboding Angel »

zwzsg wrote:Forb, we don't all use the same brand of antivirus as you.
I understand that Z, but pretty much all AV programs carry the same act of scanning at runtime on open and scanning when something is written to disk.
User avatar
yuritch
Spring 1944 Developer
Posts: 1018
Joined: 11 Oct 2005, 07:18

Re: What is with this version of spring and hanging constanly?

Post by yuritch »

Some like to scan archives though, and spring data files are just that. So probably excluding only mods and maps directories should do.

I run a DrWeb antivirus btw, never had spring hang problems with it (it's set to scan archives by default, and I don't have spring dir in exclude list either, so there should be some differences between AV brands after all...)
Post Reply

Return to “Engine”