This is a problem with the docs for unity specifically.
The CameraImageAccess script from the docs (https://library.vuforia.com/platform-support/working-camera-unity) overloads the memory and crashes the editor.
Moving line 49 (texture = new Texture2D(width, height, TextureFormat.RGB24, false);) to Start fixes the issue.
I believe there is no reason to create the same Texture2D in each update and reassign it.
Also, I would like to suggest moving the texture variable to public variables, as it is oftentimes way more useful than the currently public variable RawImage.