WebCamTexture starts to flicker on Android

I am trying to use a camera preview in my project.
Initially I had flickering issues when requesting a WebCamTexture with the resolution of the device screen, so I’m going with the default values.
Now it works for a couple of minutes before the screen starts to flicker (black… image… black… image…)

This is the code in the Start method of my script:

_webCamTexture = new WebCamTexture();
_material.mainTexture = _webCamTexture;
_webCamTexture.wrapMode = TextureWrapMode.Clamp;
_webCamTexture.Play();

Adding this didn’t solve it:

while(true) {
   yield return new WaitForSecondsRealtime(30);
   _webCamTexture.Stop();
   _webCamTexture.Play();
}

Still starts to flicker after around 120 seconds :frowning:

Reducing the resolution and frame rate (new WebCamTexture(300, 200, 15)) only delays it for a few more seconds.

Found this: Unity Issue Tracker - [Vulkan][Android][WebCamTexture] Application using WebCamTexture and Vulkan Graphics API crashes on Android.
Removing Vulkan on Unity 2019.2 fixed it.