Log in or register to post comments

No Video Background in Unity

October 18, 2015 - 9:23pm #1

Hi,

I have tried to get a simple scene with the latest 5.0.6 Vuforia build, latest Unity examples, Unity 5.2.1f1 and it works fine in Editor, iOS but there is no video in the Android build. Like others have reported, the recognition actually works, just a black screen with no video background. I tried rotating the device, to cause a refresh and it doesn't work. After rotating a few times, the app crashes altogether.

Any pointers or recommendation on how to troubleshoot this?  I've used 'adb logcat' to try to narrow things down, but nothing helpful has shown up. Using Android 5.0, but switching to other versions makes no difference. On this same device, I can get older

Is there an .apk build of the sample scenes that I could load directly from your website?

No Video Background in Unity

November 27, 2015 - 3:33am #13

I am aware of one or two reports on Galaxy S3 on Android 4.4.2, but first time I hear this on S4 mini (although it could be a related issue).

Could you make a final confirmation test using Unity 4.6.9 and Vuforia 5.0 ?

 

EDIT: as far as I can tell, Vuforia 2.8.7 did not support Unity 4.5 (on device, Android),   and Vuforia 5 requires Unity 4.6 or newer; that's why both the tests you made are not confirmative.

 

No Video Background in Unity

November 27, 2015 - 12:17am #12

Thanks for your reply AlessandroB,

This might be strange but I tried to use Vuforia 2.8.7 instead with the same Unity version (4.5.4) . In a PC is working well, however, Android still continue to render only the teapot but no background video. Have you had any previous issues with Samsung Galaxy S4 mini (GT-I9195L) and Android 4.4.2?

Hope you can guide me with this issue.

Thanks in advance.

No Video Background in Unity

November 26, 2015 - 4:13am #11

@samjm,

maybe your case is different; you mention using Unity 4.5.4;

Vuforia 5.0 supports Unity 4.6 and above, so if you are on Unity 4.5.4, your best guess would be to upgrade to 4.6.9 or newer

https://developer.vuforia.com/library/articles/Solution/Vuforia-Supported-Versions

 

No Video Background in Unity

November 25, 2015 - 11:18pm #10

Hi,

I'm having the same trouble with a Samsung Galaxy S4 mini (GT-I9195L) and Android 4.4.2. The sample image target renders the teapot correctly but no video, only a black background, is there any more clues to solve this problem?

I'm using Unity 4.5.4 with Vuforia 5.

Thanks in advance.

No Video Background in Unity

October 20, 2015 - 9:46pm #9

Yes.

No Video Background in Unity

October 19, 2015 - 11:47pm #8

Ok, thanks for the additional info.

So, the model that does not render the video background is:

    NextBook tablet, model number NXA8QC116, running on Android 5.0

correct ?

 

No Video Background in Unity

October 19, 2015 - 1:56pm #7

I finally got my older Galaxy Tab 2 running Android 4.2.2 to work. I believe I needed to download EVERYTHING in the SDK, that's the only thing I can think of that I did different this time around.

FYI, I also ran this with the Unity 5.3 Beta and got the same results, so it looks like your markers are working with the latest Beta at least.

However, I cannot get the video to render on a NextBook tablet, model NXA8QC116.  The RenderManager/ valid GLSurfaceView error is probably not the issue, I get the same error on my Galaxy Tab 2 when the background video is working.

I do notice that the Nextbook stops logging Unity or QCar messages, when the video is not rendered. If I leave the app running, it will also crash after about a minute. So, something is going on with Unity/QCar or both.

For comparison, here is what adb logcat says when the VIDEO IS RENDERING -  running on Galaxy 2 Tab GT-P3113, Android 4.2.2 :

I/Unity   (27184): windowFocusChanged: true
E/EnterpriseContainerManager(  484): ContainerPolicy Service is not yet ready!!!
D/EnterpriseDeviceManager(  484): ContainerId: 0
D/Unity   (27184): SystemInfo CPU = ARMv7 VFPv3 NEON, Cores = 2, Memory = 811mb
D/Unity   (27184): SystemInfo ARM big.LITTLE configuration: 2 big (mask: 3), 0 little (mask: 0)
...
D/QCAR    (27184): Setting Unity version 5.2.1
D/QCAR    (27184): QCAR Extension version 5.0.6
D/QCAR    (27184): Initializing Vuforia...
I/AR      (27184): QCAR has been initialized successfully
I/AR      (27184): QCAR SDK version 5.0.5
D/AR      (27184): RenderManager: Could not retrieve a valid GLSurfaceView in view hierarchy, therefore cannot set any render mode
I/Unity   (27184): Vuforia initialization successful
I/Unity   (27184): UnityEngine.Debug:Internal_Log(Int32, String, Object)
I/Unity   (27184): UnityEngine.Debug:Log(Object)
I/Unity   (27184): Vuforia.VuforiaAbstractBehaviour:Start()
I/Unity   (27184):  
I/Unity   (27184): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)
I/Unity   (27184): 
D/QCAR    (27184): trackerManagerInitTracker
D/QCAR    (27184): trackerManagerInitTracker
I/Unity   (27184): Creating a Mono Camera Configuration (Check for reflection)
I/Unity   (27184): UnityEngine.Debug:Internal_Log(Int32, String, Object)
I/Unity   (27184): UnityEngine.Debug:Log(Object)
I/Unity   (27184): Vuforia.VuforiaAbstractBehaviour:ConfigureView()
I/Unity   (27184): Vuforia.VuforiaAbstractBehaviour:Start()
I/Unity   (27184):  
I/Unity   (27184): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)
I/Unity   (27184): 
E/AR      (27184): VideoBackgroundConfig with screen size of zero received, skipping config step
I/Unity   (27184): SetHint
I/Unity   (27184): UnityEngine.Debug:Internal_Log(Int32, String, Object)
I/Unity   (27184): UnityEngine.Debug:Log(Object)
I/Unity   (27184): Vuforia.VuforiaUnityImpl:SetHint(VuforiaHint, Int32)
I/Unity   (27184): Vuforia.VuforiaUnity:SetHint(VuforiaHint, Int32)
I/Unity   (27184): Vuforia.VuforiaAbstractBehaviour:Start()
I/Unity   (27184):  
I/Unity   (27184): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)
I/Unity   (27184): 
I/Unity   (27184): SetHint
I/Unity   (27184): UnityEngine.Debug:Internal_Log(Int32, String, Object)
I/Unity   (27184): UnityEngine.Debug:Log(Object)
I/Unity   (27184): Vuforia.VuforiaUnityImpl:SetHint(VuforiaHint, Int32)
I/Unity   (27184): Vuforia.VuforiaUnity:SetHint(VuforiaHint, Int32)
I/Unity   (27184): Vuforia.VuforiaAbstractBehaviour:Start()
I/Unity   (27184):  
I/Unity   (27184): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)
I/Unity   (27184): 
I/Unity   (27184): SetHint
I/Unity   (27184): UnityEngine.Debug:Internal_Log(Int32, String, Object)
I/Unity   (27184): UnityEngine.Debug:Log(Object)
I/Unity   (27184): Vuforia.VuforiaUnityImpl:SetHint(VuforiaHint, Int32)
I/Unity   (27184): Vuforia.VuforiaUnity:SetHint(VuforiaHint, Int32)
I/Unity   (27184): Vuforia.VuforiaAbstractBehaviour:Start()
I/Unity   (27184):  
I/Unity   (27184): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)
I/Unity   (27184): 

Here is the adb logcat when the VIDEO IS BLACK: running on NextBook tablet, model NXA8QC116, Android 5.0

I/Unity   ( 8199): splash_mode = 0 (integer)
I/Unity   ( 8199): useObb = False (bool)
D/Unity   ( 8199): surfaces: attach glview
I/Unity   ( 8199): Choreographer available: Enabling VSYNC timing
I/Unity   ( 8199): onResume
I/ufoGralloc( 8199): Hello, this is UFO GRALLOC/Intel Corporation
I/Unity   ( 8199): windowFocusChanged: true

...

D/QCAR    ( 8199): Initializing Vuforia...
D/PlatformData(  271): @getCameraInfo, current HAL version:CAMERA_DEVICE_API_VERSION_3_2
D/PlatformData(  271): @getCameraInfo, current HAL version:CAMERA_DEVICE_API_VERSION_3_2
D/PlatformData(  271): @getCameraInfo, current HAL version:CAMERA_DEVICE_API_VERSION_3_2
D/PlatformData(  271): @getCameraInfo, current HAL version:CAMERA_DEVICE_API_VERSION_3_2
D/PlatformData(  271): @getCameraInfo, current HAL version:CAMERA_DEVICE_API_VERSION_3_2
D/PlatformData(  271): @getCameraInfo, current HAL version:CAMERA_DEVICE_API_VERSION_3_2
D/PlatformData(  271): @getCameraInfo, current HAL version:CAMERA_DEVICE_API_VERSION_3_2
D/PlatformData(  271): @getCameraInfo, current HAL version:CAMERA_DEVICE_API_VERSION_3_2
D/AR      ( 8199): RenderManager: Could not retrieve a valid GLSurfaceView in view hierarchy, therefore cannot set any render mode
D/PlatformData(  271): @getCameraInfo, current HAL version:CAMERA_DEVICE_API_VERSION_3_2
D/PlatformData(  271): @getCameraInfo, current HAL version:CAMERA_DEVICE_API_VERSION_3_2
I/str_params(  271): key: 'bgm_state' value: ''
I/AwesomePlayer(  271): setDataSource_l(<no-scheme URI suppressed>)
....

 

You can see I am never notified that Vuforia was installed, and all Unity messages stop

No Video Background in Unity

October 19, 2015 - 12:07pm #6

This message:

RenderManager: Could not retrieve a valid GLSurfaceView in view hierarchy, therefore cannot set any render mode

suggests that thre may be a problem with the graphics settings; or it might be a device specific issue;

  • could you specify the exact Model number of your tablet on Android 5.0 ?
  • could you attach a screenshot of your Android Player Settings > Other Settings ?

 

No Video Background in Unity

October 19, 2015 - 11:57am #5

Yes, here is what I do:

  1. Create a new Project in Unity
  2. Import vuforia-unity-5-0-6.unitypackage 
  3. Import my Target Database
  4. Drag ARCamera Prefab into new Scene, activate database, enter license key
  5. Drag Cylinder Prefab and/or Image Prefab and select my marker
  6. Drag 3D Cube into the prefabs to test if they show up in the build.
  7. Check Player Settings to match Vuforia example, fill out Keystore, passwords
  8. Build and Play on connected Android tablet running Lollipop 5.0

Do you have an .apk that I can install directly to my device?

 

Below is what seems to be a relevant log portion using adb logcat. To get this, I open up the app and point it at my markers. Sometimes I get the log message that the marker is found, but not always, even though it finds the marker and displays my 3D cubes....

 

D/QCAR    ( 5145): Initializing Vuforia...
D/PlatformData(  270): @getCameraInfo, current HAL version:CAMERA_DEVICE_API_VERSION_3_2
D/PlatformData(  270): @getCameraInfo, current HAL version:CAMERA_DEVICE_API_VERSION_3_2
D/PlatformData(  270): @getCameraInfo, current HAL version:CAMERA_DEVICE_API_VERSION_3_2
D/PlatformData(  270): @getCameraInfo, current HAL version:CAMERA_DEVICE_API_VERSION_3_2
D/PlatformData(  270): @getCameraInfo, current HAL version:CAMERA_DEVICE_API_VERSION_3_2
D/PlatformData(  270): @getCameraInfo, current HAL version:CAMERA_DEVICE_API_VERSION_3_2
D/PlatformData(  270): @getCameraInfo, current HAL version:CAMERA_DEVICE_API_VERSION_3_2
D/PlatformData(  270): @getCameraInfo, current HAL version:CAMERA_DEVICE_API_VERSION_3_2
D/AR      ( 5145): RenderManager: Could not retrieve a valid GLSurfaceView in view hierarchy, therefore cannot set any render mode
D/PlatformData(  270): @getCameraInfo, current HAL version:CAMERA_DEVICE_API_VERSION_3_2
D/PlatformData(  270): @getCameraInfo, current HAL version:CAMERA_DEVICE_API_VERSION_3_2
I/str_params(  270): key: 'bgm_state' value: ''
I/AwesomePlayer(  270): setDataSource_l(<no-scheme URI suppressed>)
I/ISVProfile(  270): static int32_t ISVProfile::getGlobalStatus(): /data/user/0/com.intel.vpp/shared_prefs/vpp_settings.xml
E/ISVProfile(  270): static int32_t ISVProfile::getGlobalStatus(): failed to open file /data/user/0/com.intel.vpp/shared_prefs/vpp_settings.xml
I/ISVProfile(  270): static int32_t ISVProfile::getGlobalStatus(): using the default status: VPP=0, FRC=0
I/ISVProfile(  270): static int32_t ISVProfile::getGlobalStatus(): /data/user/0/com.intel.vpp/shared_prefs/vpp_settings.xml
E/ISVProfile(  270): static int32_t ISVProfile::getGlobalStatus(): failed to open file /data/user/0/com.intel.vpp/shared_prefs/vpp_settings.xml
I/ISVProfile(  270): static int32_t ISVProfile::getGlobalStatus(): using the default status: VPP=0, FRC=0
I/isv-omxil(  270): ISVComponent::ISVComponent(OMX_PTR): mVPPOn 0
E/wrs-omxil-core(  270): OMX_GetHandle(): exit failure, OMX.Intel.vorbis.decoder not found
I/isv-omxil(  270): ISVComponent::~ISVComponent()
E/isv-omxil(  270): OMX_ERRORTYPE OMX_GetHandle(void**, OMX_STRING, OMX_PTR, OMX_CALLBACKTYPE*)(): exit failure, OMX.Intel.vorbis.decoder not found
W/linker  (  270): libstagefright_soft_vorbisdec_mdp.so has text relocations. This is wasting memory and prevents security hardening. Please fix.

 

No Video Background in Unity

October 19, 2015 - 10:56am #4

Can you reproduce the problem using one of the Vuforia samples ?

 

 

No Video Background in Unity

October 19, 2015 - 10:12am #3

Yes. I've been trying for days actually to get this running. First my older android devices couldn't be updated to Lollipop, so thought that was the issue. Bought a new device with Android 5.0 installed and it is the same problem. I've looked through the forums and online as much as I can find, and tried everything but no luck.

Latest effort was to install EVERYTHING for the specific Android SDK's, did that for 5.0.1 and 4.4.2. Still no video.  All that is in the Unity Project and Scene is an ARCamera and one Cylinder Marker along with the Vuforia stuff.

I am sure it is some kind of rendering problem, since the camera is activated and recognizing the marker, the basic install must be working. Basic rendering works, as a couple of cubes show up when the marker is active, just no video texture.  I've tried 'uncompressed' for the video background texture. Any other ideas?

No Video Background in Unity

October 19, 2015 - 3:51am #2

Have you set the Graphics API to OpenGL ES 2.0 (and disabled the Automatic Graphics API) in the Android Player Settings ?

https://developer.vuforia.com/forum/faq/unity-player-settings

 

 

Log in or register to post comments