-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected error when arming #57
Comments
There seems to be a state where the flag Hmm. I think this is probably a bug in the return value from PandABlocks-server/server/data_server.c Lines 269 to 275 in ee4c352
I think the simplest fix is just diff --git a/server/data_server.c b/server/data_server.c
index 37bba82..54cb2bc 100644
--- a/server/data_server.c
+++ b/server/data_server.c
@@ -251,7 +251,7 @@ error__t arm_capture(void)
"Data capture already in progress") ?:
/* If data capture is not enabled then we can safely expect the
* buffer status to be idle. */
- TEST_OK(!read_buffer_status(data_buffer, &readers, &active)) ?:
+ DO(read_buffer_status(data_buffer, &readers, &active)) ?:
TEST_OK_(active == 0, "Data clients still taking data") ?:
/* Get PCAP ARM timestamp and store as a global */
TEST_IO(clock_gettime(CLOCK_REALTIME, &pcap_arm_ts)) ?: A more thorough fix might involve exposing all three states from this function, decoding them properly in In brief, I think your test should be failing with the message |
Somehow we hit this
TEST_OK
while doing*PCAP.ARM
:PandABlocks-server/server/data_server.c
Lines 220 to 222 in 1ffcc0a
Causing
ERR: Unexpected error at .../data_server.c:220
. This was the ID panda that @glennchid upgraded, so I guess this was the 3.0 release, rather than @EmilioPeJu's latest changes, although I can't see anything in them that touches this code.There are 2 parts of the code that connect to a PandA:
Inserting a 1 second sleep between the two fixes the problem. Inserting a 0.1s sleep does not.
I have yet to reproduce this outside the application they were using, but before I do, do you know what might trigger this?
The text was updated successfully, but these errors were encountered: