Data abort in xQueueGenericReceive

well, if you did correctly set up your queue to something different than 0 but you find a 0 in it in the error case, then certainly you want to figure out who overwrites it, so a data watch point will be useful.

I do not know if the R family supports data watch points, best to consult with your IDE documentation how to set one up.