Logic Pro input monitoring noise

Hi, I've developed a AU plugin which has an issue when input monitoring is turned on. The output is noisy when my plugin is processing audio and the input monitoring on. There is no noise with if either one of these is turned off.

Any idea what changes in Logic when input monitoring is turned on which might have an effect on an AU plugin?

Logic Pro input monitoring noise
 
 
Q