Log in or register to post comments

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

July 25, 2016 - 1:12pm #1

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 object
I/Unity   (30286):   at Vuforia.DeviceTrackerAbstractBehaviour.ApplySettings () [0x00000] in <filename unknown>:0
I/Unity   (30286):   at Vuforia.DeviceTrackerAbstractBehaviour.OnVuforiaInitialized () [0x00000] in <filename unknown>:0
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 (wrapper delegate-invoke) System.Action:invoke_void__this__ ()
I/Unity   (30286):   at Vuforia.VuforiaAbstractBehaviour.Start () [0x00000] in <filename unknown>:0
I/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. 

 

 

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

March 22, 2018 - 1:16pm #18

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..

 

tried the same on a Samsung galaxy s2 tablet (SM-T813NZKEXAR) and Galaxy 8 plus phone...both modes work fine!!

 

 

please help!!

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

August 5, 2016 - 6:29pm #17

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.

Best!

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

August 3, 2016 - 1:53pm #16

I think I have found the final answer....

 

 

All the devices on which we were testing and experiencing issues do not have gyroscope support which in turn explains the behaviour I was seeing on the different Android devices as well as explains to me the point at which the Vuforia code seemed to be breaking. 

 

I would strongly recommend updating the debug information coming out of the Vuforia codebase in the case that the system fails to initialize to include a check for gyro and at least add a debug message noting that lack of Gyro might be an issue.

 

As far as I'm concerned this 'issue' is now confirmed as Vuforia working as designed. Thanks for your support.

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

August 2, 2016 - 1:34pm #15

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?

 

 

Can you provide a list of the devices you used to test this issue, on which you were not able to reproduce it? I can try some additional testing on my side as well as use this information to potentially build a list of support devices. We currently have three Android phones, which were not part of the device lists I already provided, on which the app is working but I'm still getting the same issue I reported originally on several other devices.

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

August 2, 2016 - 1:24pm #14

Does Vuforia have a list of supported Android devices?

 

Will Vuforia AR/VR still work if the mobile device only has an accelerometer or does the SDK require the Gyroscope to work?

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

August 2, 2016 - 11:55am #13

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.

 

Please please please figure out what the issue is. 9 different devices with recreatable crashes from multiple different testers should be more than enough information to reproduce this issue. If there's anything I can do don't hesitate to ask.

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

August 2, 2016 - 11:53am #12

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.

AttachmentSize
PDF icon VuforiaCrashLog_ARVRSampleApp.pdf85.01 KB

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

July 29, 2016 - 3:13pm #11

Having same issues, the error log:

I/Unity   (17664):
I/Unity   (17664): (Filename:  Line: -1)
I/Unity   (17664):
I/Unity   (17664): Trackable school lost
I/Unity   (17664):
I/Unity   (17664): (Filename: ./artifacts/generated/common/runtime/UnityEngineDe
bugBindings.gen.cpp Line: 37)
I/Unity   (17664):
I/Unity   (17664): StopVuforia
I/Unity   (17664):
I/Unity   (17664): (Filename: ./artifacts/generated/common/runtime/UnityEngineDe
bugBindings.gen.cpp Line: 37)
I/Unity   (17664):
I/Unity   (17664): Setting BehaviourComponentFactory
I/Unity   (17664):
I/Unity   (17664): (Filename: ./artifacts/generated/common/runtime/UnityEngineDe
bugBindings.gen.cpp Line: 37)
I/Unity   (17664):
I/Unity   (17664): Trackable school lost
I/Unity   (17664):
I/Unity   (17664): (Filename: ./artifacts/generated/common/runtime/UnityEngineDe
bugBindings.gen.cpp Line: 37)
I/Unity   (17664):
I/Unity   (17664): Vuforia initialization successful
I/Unity   (17664):
I/Unity   (17664): (Filename: ./artifacts/generated/common/runtime/UnityEngineDe
bugBindings.gen.cpp Line: 37)
I/Unity   (17664):
I/Unity   (17664): SetHint
I/Unity   (17664):
I/Unity   (17664): (Filename: ./artifacts/generated/common/runtime/UnityEngineDe
bugBindings.gen.cpp Line: 37)
I/Unity   (17664):
I/Unity   (17664): SetHint
I/Unity   (17664):
I/Unity   (17664): (Filename: ./artifacts/generated/common/runtime/UnityEngineDe
bugBindings.gen.cpp Line: 37)
I/Unity   (17664):
I/Unity   (17664): SetHint
I/Unity   (17664):
I/Unity   (17664): (Filename: ./artifacts/generated/common/runtime/UnityEngineDe
bugBindings.gen.cpp Line: 37)
I/Unity   (17664):
E/Unity   (17664): Could not initialize the tracker.
E/Unity   (17664):
E/Unity   (17664): (Filename: ./artifacts/generated/common/runtime/UnityEngineDe
bugBindings.gen.cpp Line: 37)
E/Unity   (17664):
I/Unity   (17664): NullReferenceException: Object reference not set to an instan
ce of an object
I/Unity   (17664):   at Vuforia.DeviceTrackerAbstractBehaviour.ApplySettings ()
[0x00000] in <filename unknown>:0
I/Unity   (17664):   at Vuforia.DeviceTrackerAbstractBehaviour.OnVuforiaInitiali
zed () [0x00000] in <filename unknown>:0
I/Unity   (17664):   at (wrapper delegate-invoke) System.Action:invoke_void__thi
s__ ()
I/Unity   (17664):   at (wrapper delegate-invoke) System.Action:invoke_void__thi
s__ ()
I/Unity   (17664):   at (wrapper delegate-invoke) System.Action:invoke_void__thi
s__ ()
I/Unity   (17664):   at (wrapper delegate-invoke) System.Action:invoke_void__thi
s__ ()
I/Unity   (17664):   at Vuforia.VuforiaAbstractBehaviour.Start () [0x00000] in <
filename unknown>:0
I/Unity   (17664):
I/Unity   (17664): (Filename:  Line: -1)
I/Unity   (17664):
I/Unity   (17664): StopVuforia
I/Unity   (17664):
I/Unity   (17664): (Filename: ./artifacts/generated/common/runtime/UnityEngineDe
bugBindings.gen.cpp Line: 37)
I/Unity   (17664):

 

seems the problem may be in the vr part, as a simple ar app does work.

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

July 29, 2016 - 7:12am #10

That's very disappointing to hear. Thanks for trying.

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

July 28, 2016 - 2:44pm #9

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:

  • Samsung S6 SM-G925F (6.0.1)
  • Samsung Note II SGH-i317 (4.1.2)

I did not have any additional devices that were close to the others listed.

Running the sample app in both "Mobile" and "Viewer" modes from the about screen, everything functions perfectly.

Thanks

 

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

July 28, 2016 - 12:40pm #8

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.

I will dig a bit into my device inventory and see if I can replicate the error on the devices provided.

Final question: There are many version of the Lenovo Tab 2: http://www.gsmarena.com/results.php3?sQuickSearch=yes&sName=lenovo+tab+2. Can you provide that exact model name, too?

Thanks

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

July 28, 2016 - 7:16am #7

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.

 

 

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

July 26, 2016 - 7:41am #6

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

 

 

I/Unity   (10289): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
I/Unity   (10289):
V/ActivityManager(  612): Broadcast sticky: Intent { act=android.net.wifi.RSSI_CHANGED flg=0x4000010 (has extras) } ordered=false userid=-1 callerApp=ProcessRecord{efd77da 612:system/1000}
V/ActivityManager(  612): Broadcast: Intent { act=android.net.wifi.SCAN_RESULTS flg=0x4000010 (has extras) } ordered=false userid=-1 callerApp=ProcessRecord{efd77da 612:system/1000}
V/ActivityManager(  612): Broadcast sticky: Intent { act=android.intent.action.BATTERY_CHANGED flg=0x60000010 (has extras) } ordered=false userid=-1 callerApp=null
I/Unity   (10289): Vuforia initialization successful
I/Unity   (10289): 
I/Unity   (10289): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
I/Unity   (10289):
I/Unity   (10289): SetHint
I/Unity   (10289): 
I/Unity   (10289): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
I/Unity   (10289):
I/Unity   (10289): SetHint
I/Unity   (10289): 
I/Unity   (10289): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
I/Unity   (10289):
I/Unity   (10289): SetHint
I/Unity   (10289): 
I/Unity   (10289): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
I/Unity   (10289):
E/Unity   (10289): Could not initialize the tracker.
E/Unity   (10289): 
E/Unity   (10289): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
E/Unity   (10289):
I/Unity   (10289): NullReferenceException: Object reference not set to an instance of an object
I/Unity   (10289):   at Vuforia.DeviceTrackerAbstractBehaviour.ApplySettings () [0x00000] in <filename unknown>:0
I/Unity   (10289):   at Vuforia.DeviceTrackerAbstractBehaviour.OnVuforiaInitialized () [0x00000] in <filename unknown>:0
I/Unity   (10289):   at (wrapper delegate-invoke) System.Action:invoke_void__this__ ()
I/Unity   (10289):   at (wrapper delegate-invoke) System.Action:invoke_void__this__ ()
I/Unity   (10289):   at (wrapper delegate-invoke) System.Action:invoke_void__this__ ()
I/Unity   (10289):   at (wrapper delegate-invoke) System.Action:invoke_void__this__ ()
I/Unity   (10289):   at Vuforia.VuforiaAbstractBehaviour.Start () [0x00000] in <filename unknown>:0
I/Unity   (10289): 
I/Unity   (10289): (Filename:  Line: -1)
I/Unity   (10289):

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

July 26, 2016 - 7:36am #5

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.

 

The S4 we previously listed was a typo, the device was actually an S2. Here's the updated model information you had requested.

Samsung Galaxy S6 Edge - SM-G925W8 (Android 6.0.1)
Samsung Galaxy S2 LTE – SGH-I727R (Android 4.2.0)
Samsung Galaxy Note 2 – SGH-i317M (Android 4.1.1)
Samsung Galaxy Tab 2 7.0 – GT-P3110 (Android 4.5)

 

 

I'll go check the error coming out of the ARVRSample specifically and post it once I have it for you.

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

July 25, 2016 - 4:46pm #4

Hello,

I was not able to reproduce the error you mentioned below on Nexus 6 using Vuforia SDK 5.5.9, Unity 5.3.4f1. Running the sample app in both "Mobile" and "Viewer" modes from the about screen, everything functions perfectly. I can attempt on additional devices once you respond with specific models.

Reviewing your output some more, I'm questioning this line:

I/Unity   (30286): NullReferenceException: Object reference not set to an instance of an object

Are you sure that for your repro case you're using an unmodified version of the Vuforia AR/VR sample?

Thanks

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

July 25, 2016 - 4:42pm #3

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

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

July 25, 2016 - 3:11pm #2

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)

This way when I retest our AR/VR sample I can attempt to replicate on the exact device (if we have that model in stock).

Thanks.

 

 

Log in or register to post comments