"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

Vuforia failing to initialize AR/VR cameras on some Android devices

I'm having an issue with an app I'm building which is releasing very soon and need some urgent support. After extensive debugging, details to follow, I've identified that the AR/VR sample that Vuforia provides doesn't actually work on some Android devices, specific list of devices to follow, due to Vuforia failing to initialize. What makes this issue even trickier is in the same app some basic AR scenes work just fine and its only scenes that utilize the AR to VR transition as found in the ARVRSample project where Vuforia is failing to initialize.

Using LogCat I found this specific crash relating to my issue.

I/Unity   (30286): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)I/Unity   (30286):E/Unity   (30286): Could not initialize the tracker.E/Unity   (30286): UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)E/Unity   (30286): UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])E/Unity   (30286): UnityEngine.Logger:Log(LogType, Object)E/Unity   (30286): UnityEngine.Debug:LogError(Object)E/Unity   (30286): Vuforia.TrackerManagerImpl:InitTracker()E/Unity   (30286): Vuforia.DeviceTrackerAbstractBehaviour:InitDeviceTracker()E/Unity   (30286): Vuforia.DeviceTrackerAbstractBehaviour:OnVuforiaInitialized()E/Unity   (30286): Vuforia.VuforiaAbstractBehaviour:Start()E/Unity   (30286): E/Unity   (30286): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)E/Unity   (30286):I/Unity   (30286): NullReferenceException: Object reference not set to an instance of an objectI/Unity   (30286):   at Vuforia.DeviceTrackerAbstractBehaviour.ApplySettings () [0x00000] in <filename unknown>:0I/Unity   (30286):   at Vuforia.DeviceTrackerAbstractBehaviour.OnVuforiaInitialized () [0x00000] in <filename unknown>:0I/Unity   (30286):   at (wrapper delegate-invoke) System.Action:invoke_void__this__ ()I/Unity   (30286):   at (wrapper delegate-invoke) System.Action:invoke_void__this__ ()I/Unity   (30286):   at (wrapper delegate-invoke) System.Action:invoke_void__this__ ()I/Unity   (30286):   at (wrapper delegate-invoke) System.Action:invoke_void__this__ ()I/Unity   (30286):   at Vuforia.VuforiaAbstractBehaviour.Start () [0x00000] in <filename unknown>:0I/Unity   (30286): I/Unity   (30286): (Filename:  Line: -1)

 

 

I'm using Mac Unity 64 bit 5.3.4f1 with Vuforia 5.5.9 publishing via Android Studio which based on my extensive research seems to be the preferred combination of development tools and SDK for creating this type of app.

I've currently gone through and tried almost every trick and tip from the forums relating to Android issues, non-Android specific issues where Vuforia is crashing, and then a bunch of forum posts and potential fixes relating to Vuforia failing to initialize. I've tested the app being published directly from Unity as well as from Android Studio with no difference. I've tried both types of license keys to see if that makes a difference and it does not. Also, the entire app works fine on iOS so it is clearly something Android specific.

 

Our QA team has seen the same crashing issue on the following devices:

  • Samsung Galaxy S4 (4.2)
  • Samsung Galaxy Note II (4.1)
  • Cubot Rainbow (6.0)
  • Acer Liquid Z220 (5.0)
  • Samsung Galaxy Tab2 (4.5)
  • Kobo Arc HD Android Tab (5.1)
  • uHappy UP580 (5.1)
  • Motorola Nexus 6 (6.0)
  • Lenovo TAB 2

 

Additionally I would note that the app does perform as expected on my Samung Galaxy S6 which to me makes this entire problem even stranger.

Our project is almost complete and if I can't get this fixed in the next 2-3 days it will impact our release date. 

 

 

Hello,

Can you please provide the exact model names for the following devices:

Samsung Galaxy S4 (4.2)
Samsung Galaxy Note II (4.1)
Samsung Galaxy Tab2 (4.5)

DigitalHoward

Mon, 07/25/2016 - 23:42

In reply to by medabit

Thank you for the prompt response. I've asked our QA team for the information and will get back to you asap

DigitalHoward

Tue, 07/26/2016 - 14:36

In reply to by medabit

Sorry for the confusion, the error I posted was coming out of my app not from the AR/VR Sample. I'll generate an error log for that and provide it shortly.

 

DigitalHoward

Tue, 07/26/2016 - 14:41

In reply to by medabit

Here's the error coming out of the AR VR sample app which fails on the Lenovo Tablet I listed earlier but works on my Samsung S6

 

 

DigitalHoward

Thu, 07/28/2016 - 14:16

Any updates on this issue? Today is my critical day to decide if we have to drop Vuforia for this part of our project and find an alternative.

 

 

Hello,

Apologies for not responding sooner. Thanks for the device list and updated logs. Note that the logs look similar to the previous ones so I cannot derive any strong clues from those.

Hello,

Using the information you provided, I was not able to reproduce the error you mentioned below using Vuforia SDK 5.5.9, Unity 5.3.4f1 and running the AR/VR sample on:

DigitalHoward

Tue, 08/02/2016 - 18:53

I'm not sure if my previous replies were posted. I've recreated the AR/VR sample from scratch and retested on my Lenovo TAB 2 model# A10-70F and am still seeing the same issue.

 

Here is a completely new log relating to the sample app failing on device.

I'm currently trying to find an alternative to Vuforia's AR/VR support for this one part of our app which is proving a huge hassle. If there was ever a time to find the solution and save me a ton of trouble now would be the time.

 

Also, what version of the Android JDK are you using when publishing?

 

Are you publishing from Unity directly or publishing to Android Studio and then doing the final build from there?

 

 

Hello,

Sorry to have left the thread hanging. Still getting caught up.

Thanks for the good feedback. I will escalate your suggestion to core engineering. I think it is a valid request.

Im having similar issue on SAMSUNG GALAXY TAB A (2016) SM T-580

the sample vuforia AR/VR not initializing the camera when entering VR mode. The AR mode works superfine..