Troubleshoot Welcome Home Piston


#1

1) Give a description of the problem
I have this fully working piston, but I see some errors in the logs, something with semaphore time wait…

2) What is the expected behaviour?
Exactly what it does.

3) What is happening/not happening?
The piston works as it should but after some time, the memory used is increasing because of the errors coming from Logs( see the pictures attached)

**4) Post a Green Snapshot of the pistoN

Please explain me what is the meaning of that semaphore and what can I do to get rid of that error.I want to tell you also the fact that I get this error for most of my Pistons, so from time to time I have to clear the logs to clear up the memory.

Thanks,
Vlad


#2

The default behaviour of webCoRE is to run pistons serially instead of having multiple instances running at once. In order to help achieve this, when webCoRE is called upon to execute a piston that is already running the new instance will go into a tight loop for up to ten seconds waiting to see if the current piston finishes. This is called waiting at a semaphore.

I have to say that I’ve never seen a semaphore wait that isn’t the full ten seconds, give or take a fraction of a second, and your logs seem to show that too. I find that curious as ten seconds seems quite a long execution time.

I can’t get your images big enough to read at the moment so I can’t comment on specific reasons for waits in your piston. However generally you see them when two or more triggers occur in a short space of time, the piston changes something which is a trigger for itself, or the piston executes another piston which does something to trigger the first one.

Not an error, but can be a sign of unnecessary triggering in some circumstances.