@MustafaJB: That's strange. Do you get any errors or notifications when the recording stops? Is your phone going idle while the recording is active? If so, can you try going to Settings > Apps > Voice Recorder > Battery > Allow Background Activity > Back > Appear On Top > On.