Trying to debug ringbuffer