Open joefowler opened 3 weeks ago
Okay, we determined that this happens only when changing record lengths, as soon as the new length takes effect, whether longer or shorter than before. Weirdly, it always seems to have i-NPresamples
equal to -1.
This is useful clues towards finding the off-by-one error. It's not in the process of padding or triggering exactly, but in the process of changing record lengths. Perhaps I mis-aimed the "don't trigger before here" pointer by one?
I suspect the problem is only in EMT=Edge Multi-Triggers, though I can't prove that yet. I have made a work-around. (See branch drop_data_offby1, all commits on or before Oct 26.) It consists of:
nil
record.Still...it would be best to find where this is happening in the first place, and fix it.
Error when we have a very high photon rate at BESSY-II. Seen twice:
The error trace says error is in
triggering.go:48
, which readsClearly we are trying to go back before the existing data, and apparently by exactly 1 sample. Sounds like an off-by-1 error somewhere?? See if we can debug on a live machine, but also try to sniff it out.