I'm working on an iOS app for iPads using Vuforia and NGUI and recently upgraded to a Unity Pro license. Running the project in the editor gives me the following error, apparently being called every frame:
ReadPixels was called to read pixels from system frame buffer, while not inside drawing frame. UnityEngine.Texture2D:INTERNAL_CALL_ReadPixels(Texture2D, Rect&, Int32, Int32, Boolean)
I am not calling ReadPixels anywhere, but it does get called in WebCamImpl.cs in GetPixels32AndBufferFrame(int frameIndex), that's where the error is coming from, and I'm guessing that method is being called by Vuforia. I've seen another post on the Unity forums http://answers.unity3d.com/questions/455513/vuforia-unity-readpixels-error.html#answer-455577 that mentions a similar problem.
I have an element, a UISprite, that starts out completely out of the frame in an AR scene, as well as another that is mostly out of frame. These elements slide down/in when activated. I'm assuming that they are the cause of the error. The project runs fine in the editor and on the device, but the error has me worried. Any idea if these 2 elements may be causing the problem? If so, is this error something to worry about? Or is there a workaround other than putting the elements in the frame? Thanks!
Check your build settings to confirm that you are set for the correct target plaform, and also check the Web Cam Behaviour panel in the ARCamera inspector to confirm that your license is being recognized - you'll see a warning if not.
If those steps don't help, please post the stack trace from you Console and tell me which Unity version and Vuforia Unity Extension version you are using.