Please remove hang detection

Please remove hang detection

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
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Please remove hang detection

Post by Forboding Angel »

It does no-one any fucking good and only serves to piss off game devs because spring will crash 4/5ths of the time when starting directly from spring.exe

Also, fucking hangtimeout = 0 doesn't fucking work in 88.

Just do us all a goddamn favor and fucking remove it!

If it actually served a purpose, I would be all for it, but more often than not, HANG DETECTION is the cause of the hangs! It would be funny if it wasn't so fucking irritating!
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Please remove hang detection

Post by Forboding Angel »

Obviously I was just a wee bit pissed off when I made the above post. I had just started spring 15 times in a row, and hang detection caused it to screw up.

It does not like the fact that I have so many sdd's of maps/games, not to mention the 6 gigs or so of maps.

With hangtimeout disabled, startup time is instant. This wasn't an issue in previous versions where I could just turn it off, but now I can't and it's driving me crazy.
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10454
Joined: 24 Jan 2006, 21:12

Re: Please remove hang detection

Post by PicassoCT »

budhistic calm during development - your propably never heard of it :D
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Please remove hang detection

Post by abma »

from the docs:

HangTimeout:

"Number of seconds that, if spent in the same code segment, indicate a hang; -1 to disable."
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Please remove hang detection

Post by Beherith »

HangTimeout is case sensitive, that might be the cause of your grief. (tested and working in latest develop branch)
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Please remove hang detection

Post by abma »

uh, indeed, its case sensitive, 0 disables it, too.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Please remove hang detection

Post by jK »

abma wrote:0 disables it, too.
No, that's new (duno if 88.0 or 88.0.1).
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Please remove hang detection

Post by Forboding Angel »

Hangtimeout = 0 is how it is listed in springsettings. 0 Works fine until now. Will test -1 now.

-1 does nothing. This is the infolog.

http://pastebin.com/TG6r3HPb

Please tell me what possible purpose this serves? Also please don't confuse my calm demeanor in this post for me being ok with it.

I am far beyond upset. It took me 3 times as long as it should have, just to record this video yesterday, thanks to spring.

http://www.youtube.com/watch?v=cZ3-S0oQ ... CChOX-AivA
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Please remove hang detection

Post by abma »

Beherith wrote:HangTimeout is case sensitive, that might be the cause of your grief. (tested and working in latest develop branch)

Hangtimeout is not the same as HangTimeout.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Please remove hang detection

Post by Forboding Angel »

It worked fine in 87.0

Why don't you guys do the smart thing and make hangtimeout opt in, instead of opt out?

Edit: HangTimeout = -1 seems to work.
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10454
Joined: 24 Jan 2006, 21:12

Re: Please remove hang detection

Post by PicassoCT »

Everything was better in 87. Even the Forb rents were more energetic.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Please remove hang detection

Post by abma »

Forboding Angel wrote: Why don't you guys do the smart thing and make hangtimeout opt in, instead of opt out?
because this functionality is used to fix bugs. without making it default for all, noobs would have a problem to report bugs.

It does no-one any fucking good and only serves to piss off game devs because spring will crash 4/5ths of the time when starting directly from spring.exe
If it crashes, please attach infolog.txt, so the bug can be fixed.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Please remove hang detection

Post by Forboding Angel »

@picasso

Honestly, the only time I rant is when something gets in the way of progress for me.

The only time I actually get upset (about engine stuff) is when the engine directly prevents me from accomplishing a goal.

That video was a very minor example.

@abma
Crashes print in infolog like they always have. What purpose does hangtimeout serve exactly? Except to trigger over and over and over and fucking over until it unfucks itself long enough for spring to start?
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Please remove hang detection

Post by abma »

Forboding Angel wrote:Crashes print in infolog like they always have. What purpose does hangtimeout serve exactly? Except to trigger over and over and over and fucking over until it unfucks itself long enough for spring to start?
Its used to find the location, where a hang/endless-loop occurs...
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Please remove hang detection

Post by Forboding Angel »

Ok, well then, where is my endless loop? (in the infolog I pastebinned earlier)
Post Reply

Return to “Engine”