What exactly is hang detect and why does it keep triggering?
Moderator: Moderators
What exactly is hang detect and why does it keep triggering?
As title says, what is it, why does it keep triggering? Why do we need it?
Re: What exactly is hang detect and why does it keep triggering?
It helps find bugs, such as deadlocks and infinite loops, in the Spring code, lua code or system drivers. It could falsely trigger either because it is too sensitive or because your computer is too slow.
If you tell about the particular situation where you have a false trigger, we may be able to reduce the sensitivity in a future release. You can also manually increase the timeout seconds (Edit settings -> HangTimeout)
If you tell about the particular situation where you have a false trigger, we may be able to reduce the sensitivity in a future release. You can also manually increase the timeout seconds (Edit settings -> HangTimeout)
Re: What exactly is hang detect and why does it keep triggering?
What's the default?
Re: What exactly is hang detect and why does it keep triggering?
how do I know what the trigger is? All I get are random assed hex values.
http://pastebin.com/fWj9NmS2
http://pastebin.com/fWj9NmS2
Re: What exactly is hang detect and why does it keep triggering?
default is 10s (it was 10ms in earlier releases)
i don't know the details, but it works about like this (using a windows API thing):
if for a period >= hangTimeout, the program stays in a certain part of the code, it is assumed we are in a hang. we have this system in windows only, zerver implemented it.
i don't know how that windows API thing works, how often it checks where the program(-pointer) is, and what is considered one-part-of-the-code.
i don't know the details, but it works about like this (using a windows API thing):
if for a period >= hangTimeout, the program stays in a certain part of the code, it is assumed we are in a hang. we have this system in windows only, zerver implemented it.
i don't know how that windows API thing works, how often it checks where the program(-pointer) is, and what is considered one-part-of-the-code.
Re: What exactly is hang detect and why does it keep triggering?
Actually less intelligent than that, it uses a watchdog timer technique, where each Update() or Draw() clears a timer. And it should be implemented for Linux also, just no one did it I guess.
Re: What exactly is hang detect and why does it keep triggering?
No, no, timer's more intelligent. I'd hate to have something detected as 'hung' because it was in the same spot every time it was checked.
Re: What exactly is hang detect and why does it keep triggering?
so my question still remains, why do we get stacktraces on hang? why does it mess with my game?
Re: What exactly is hang detect and why does it keep triggering?
Those hex values need to be translated in order to make it useful.
You did not tell in what particular situation it happens for you. Do you get a continuous spam or what?
The stack trace tells us where the hang occurred, something that could otherwise be pretty hard to find, in particular if the problem cannot be reproduced easily by someone with a proper development environment set up.
You did not tell in what particular situation it happens for you. Do you get a continuous spam or what?
The stack trace tells us where the hang occurred, something that could otherwise be pretty hard to find, in particular if the problem cannot be reproduced easily by someone with a proper development environment set up.
Re: What exactly is hang detect and why does it keep triggering?
Ah, so it might be catching whatever hang it is that you lot introduced in 86? Coolio.
The hangs happen sporadically, and variable times if my infologs are to be believed. i can start copying them to see if I can get a collection of the various errors it yaks up if you desire it.
The hangs happen sporadically, and variable times if my infologs are to be believed. i can start copying them to see if I can get a collection of the various errors it yaks up if you desire it.
Re: What exactly is hang detect and why does it keep triggering?
I tried translating the one you provided, but the results did not make any sense. Is this the official 82.6.0 build or some custom build? Any custom builds you will have to translate yourself.
Re: What exactly is hang detect and why does it keep triggering?
spring_0.82.6.1
This one happened when I was doing an icon build during icon generator. predictable io hang with this gadget becomes gadget breaking with the hang detection. Maybe this can shed some insight?
This one happened when I was doing an icon build during icon generator. predictable io hang with this gadget becomes gadget breaking with the hang detection. Maybe this can shed some insight?
- Attachments
-
- infolog.txt
- (170.08 KiB) Downloaded 17 times
Re: What exactly is hang detect and why does it keep triggering?
translated: http://spring-stacktrace.pastebin.com/gfJ07Frw
infolog says "Spring 0.82.6.0 (0.82.6)"
please update to current version!
infolog says "Spring 0.82.6.0 (0.82.6)"
please update to current version!
Re: What exactly is hang detect and why does it keep triggering?
well I will re-re-redownload. but I play on the main lobby.