"data bytes needed" error

You could certainly add a sleep, but that might not necessarily prevent the problem. It would almost have to be a sync, which you would not want to do often.
Perhaps this is an effect of memory mapping, where the OS is handling it well. Try setting AFNI_NOMMAP to YES and see if that tends to prevent it.

How often does this happen, or is it just once in many months?

-rick

Thanks @rickr , I’ll try setting AFNI_NOMMAP to yes.

I’ve only encountered this issue very rarely, but I’ve noticed that it tends to occur more often in one of my preprocessing scripts where I run 3dBlurInMask followed by 3dcalc immediately.