Log in or register to post comments

Sample Error: Exception in callback

September 20, 2017 - 9:15am #1

Hi guys,

I am trying to work with Cloud Recognition on Unity (2017.2.0b11) but is not going well.

I got the Sample Project, put my Access Keys and License Key, but it's returning the following error:

Quote:

Exception in callback: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.EntryPointNotFoundException: nativeUnity_SetDeviceConnected

  at (wrapper managed-to-native) Vuforia.VuforiaNativeWrapper:nativeUnity_SetDeviceConnected (bool)

  at Vuforia.VuforiaNativeWrapper.NativeUnity_SetDeviceConnected (Boolean connected) [0x00000] in <filename unknown>:0

  at Vuforia.MonoCameraConfiguration.Init () [0x00000] in <filename unknown>:0

  at Vuforia.DigitalEyewearARController.ConfigureView () [0x00000] in <filename unknown>:0

  at Vuforia.DigitalEyewearARController.OnVuforiaStarted () [0x00000] in <filename unknown>:0

  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)

  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000d0] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222

  --- End of inner exception stack trace ---

  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000eb] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232

  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115

  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000b9] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Delegate.cs:443

  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00018] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/MulticastDelegate.cs:71

  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Delegate.cs:415

  at Vuforia.DelegateHelper.InvokeDelegate (System.Delegate action, System.Object[] args) [0x00000] in <filename unknown>:0

UnityEngine.Debug:LogError(Object)

Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[])

Vuforia.DelegateHelper:InvokeWithExceptionHandling(Action)

Vuforia.VuforiaARController:Start()

System.Delegate:DynamicInvoke(Object[])

Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[])

Vuforia.DelegateHelper:InvokeWithExceptionHandling(Action)

Vuforia.VuforiaBehaviour:Start()

How I could fix that issue?

Sample Error: Exception in callback

February 18, 2018 - 8:57pm #6

I migrated from Unity 5.6 to Unity 2017.3. I had the same error, the problem was I only removed the lib files and I didn't remove all the plugin files in the Assets/Plugins folder related to Vuforia (search "vuforia" in your assets) before importing the new Vuforia. So make a backup, delete all the lib files AS WELL as the plugin files. Then in 2017.3 just go to GameObject -> Vuforia -> ARCamera which will import the new Vuforia. Enable the AR in playersetting and everything works for me from here. It takes me two days to boil it down to this, so stay patient!

Sample Error: Exception in callback

December 13, 2017 - 11:43pm #5

Hello Vuforia team,

I am also doing the migration and getting the same error as stated below. Migration works fine on iOS device but failing on Android. 

Exception in callback: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.EntryPointNotFoundException: nativeUnity_SetDeviceConnected

                                                                       at (wrapper managed-to-native) Vuforia.VuforiaNativeWrapper:nativeUnity_SetDeviceConnected (bool)

                                                                     at Vuforia.VuforiaNativeWrapper.NativeUnity_SetDeviceConnected (Boolean connected) [0x00000] in <filename unknown>:0

                                                                     at Vuforia.MonoCameraConfiguration.Init () [0x00000] in <filename unknown>:0

                                                                     at Vuforia.DigitalEyewearARController.ConfigureView () [0x00000] in <filename unknown>:0

                                                                     at Vuforia.DigitalEyewearARController.OnVuforiaStarted () [0x00000] in <filename unknown>:0

                                                                     at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000c0] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222

Any idea how to fix this?

 

 

 

Sample Error: Exception in callback

October 16, 2017 - 9:51am #4

Are you trying to upgrade your project to be used in 2017.2 tarun2000? If so, I recommend checking out this guide: https://library.vuforia.com/content/vuforia-library/en/articles/Solution/migrate-vuforia-62-to-65.html

Thanks,

-Vuforia Support

Sample Error: Exception in callback

October 15, 2017 - 10:26pm #3

I'm facing the same issue after trying to update a project from Unity 5.5.1. I removed the original Vuforia folder and tried to import the one provided in Unity.

Sample Error: Exception in callback

September 20, 2017 - 2:39pm #2


Hello formavip,

I have not been able to recreate this. I made a new project and imported the 2017.2 samples from the asset store, put my license key in, and tested the cloud reco scene on both play mode and an Android device. Are you seeing this issue in play mode or on a device? Do you have any other frameworks or settings active?

Thanks,

-Vuforia Support

Log in or register to post comments