midi recording automatically stops after a short pause

Hi I’m new to production so I do not know whether this is an issue or just wrong settings. I googled the problem cannot find a fix
The problem is whenever I record an instrument track, when I rest for a short while (around 2-3 beats), cubase stops recording and whatever I play next cannot be recorded. I experienced the problem with a midi keyboard as well as the on-screen keyboard, and it annoys me a lot.

in fact i experienced this problem even without a small rest. Cubase ust stops recording suddenly while I’m playing, right after some crackling sound

Is there a way to fix this? Thanks!

Hi and welcome,

Try to increase Buffer Size of your Audio Device, please.