Hello there, I’ve having issues with time out in Hypersonic using python. After some logs, I found out that not all entities are being sent to the input, so the (inital) code is waiting for them. Here is a picture of how my read input code looks like and the output.
stderr and stdout are not synchronized. I don’t think this points to a lag in reading the input but rather to a processing code which gets outside the time/round limit
I find it really hard to believe since my code is still really simple and does not have any high demanding computing. I’ve been coding for 10 years now, and this should be done instantly.
Hi!
OP; did you get this resolved?
I’m running to the same issue. It’s pretty easy to validate that the timeout isn’t caused by any running code by having (flushed) debug lines right before and after input() calls. At times (usually when the board is pretty empty), some of the powerups (the last one in all the cases I’ve seen) simply aren’t given as an input.
My issue was not flushing output at every point possible, as I thought I was doing. Thanks for the tip JamesMcG! My log function now reads (maybe helpful to someone):
I’m also having the same issue on python3.
Basically, the entities variable suggests more lines than input actually has.
I tried flushing at every point (like zepp_dev suggested), but it didn’t help.
Just to clarify, the flushing didn’t solve the timeout, it just helped me realize where my bug was. Before I didn’t see all my debug lines and that left me with an impression that I didn’t receive all input. So be sure to log out all the input you get to verify there’s an actual issue.