"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Issues with video background plane

So i have a fairly complicated app running multiple scenes with vuforia. The app starts off with scene A which is a login, leads to scene B which is a scan of a Object target, and Scene C which is the scan of the same object target.

 

The first time around the app works fine, but when i restart the app, the camera in Scene C gets disoriented in one of the following ways at random, but in most cases its number 1 :-

1) Half the screen is a skewed version of one of the canvas screens on the same scene (Screenshot)

2) The Camera is extremely zoomed in

3) The camera is returning smooth grey static

4) Red Screen ( When i login with facebook instead of google)

Im not able to pin point why this is happening,(EDIT) also i gave a 2 second lag to enable Vuforia Behaviour, and it fixes the issue

 

Stretched Screen Error -

02-13 17:12:36.212  5176  5219 E Unity   : OPENGL NATIVE PLUG-IN ERROR: GL_INVALID_OPERATION: Operation illegal in current state 02-13 17:12:36.212  5176  5219 E Unity   : 02-13 17:12:36.212  5176  5219 E Unity   : (Filename: /Users/builduser/buildslave/unity/build/Runtime/GfxDevice/opengles/GfxDeviceGLES.cpp Line: 340)

Red Screen Error -

02-13 17:09:15.449  2488  2525 E Unity   : OPENGL NATIVE PLUG-IN ERROR: GL_INVALID_OPERATION: Operation illegal in current state 02-13 17:09:15.449  2488  2525 E Unity   : 02-13 17:09:15.449  2488  2525 E Unity   : (Filename: /Users/builduser/buildslave/unity/build/Runtime/GfxDevice/opengles/GfxDeviceGLES.cpp Line: 340) 02-13 17:09:15.449  2488  2525 E Unity   : 02-13 17:09:15.451  2488  2525 E Unity   : OPENGL NATIVE PLUG-IN ERROR: GL_INVALID_ENUM: enum argument out of range 02-13 17:09:15.451  2488  2525 E Unity   : 02-13 17:09:15.451  2488  2525 E Unity   : (Filename: /Users/builduser/buildslave/unity/build/Runtime/GfxDevice/opengles/GfxDeviceGLES.cpp Line: 335)

Unity Version - 2017.3.0p4

Test Device - Samsung S7 Edge running Android Version 7.0

Vuforia - Latest Auto downloaded on unity

 

 

Hello sahilsingh,

I have not encountered this issue before and the error logs you posted don't appear to be Vuforia related, but rather OPENGL related. Are you able to reproduce this in our samples in some capacity?

Thanks,

Vuforia Support

sahilsingh

Thu, 02/15/2018 - 06:54

Hey,

I did not try it for Vuforia Samples, but giving a 2 second lag at the start of Scene B fixed the problem, it seems like background plane was initializing before it could get the data from vuforia, or something along those lines