Log in or register to post comments

Hololens - Optical SeeThrough & TargetInvocationException

January 5, 2018 - 5:49am #1

Hello,

I'm currently developing some application on the Hololens. Imported both the Mixed Reality Toolkit and the Vuforia Sample Project. Here I tried to set it up like in the Tutorial, but in the VuforiaConfiguration of the ARCamera the Digital Eyeviewer doesn't know the option "Optical SeeThrough", the Vuforia Sample sets it to "Digital Eyewear"?

Well, the Unity Project still does recognize the Camera and seems to work fine. But when I build the Project and run it with Visual Studio on my device I get en error:



Exception in callback: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.

   at Vuforia.DatabaseLoadARController.LoadDatasets()

   at Vuforia.VuforiaARController.Start()

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

   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

   at System.Delegate.DynamicInvokeImpl(Object[] args)

   at Vuforia.DelegateHelper.InvokeDelegate(Delegate action, Object[] args)

 

Using: Unity 2017.3.0f3, Visual Studio 2017 (latest update), Real Hololense (not emulator!)

 

Thanks for any fast advise!

Hololens - Optical SeeThrough & TargetInvocationException

May 6, 2019 - 8:58am #6

Hello @luyiyiyi62,

This thread is dated and thus may not provide the latest information. Could you please be more specific about the problem you're having?

Thanks,

Vuforia Engine Support

Hololens - Optical SeeThrough & TargetInvocationException

May 6, 2019 - 8:06am #5

Hi,

 

I've facing the same problem of you, since the post link of version has expired and can not find, could you please share me with the version information you finally fixed this problem? Thank you so much!

Hololens - Optical SeeThrough & TargetInvocationException

January 12, 2018 - 10:26am #4

I know we've been seeing an issue on HoloLens in Unity 2017.2+ that is not related to Vuforia recently. We've been trying to get to the bottom of it. I'll check into that post and see if it is the same or similar issue.

Thanks,

Vuforia Support

Hololens - Optical SeeThrough & TargetInvocationException

January 12, 2018 - 9:56am #3

Thanks a lot, the version match did solve the build problem! But cameras are shifted (New Post : https://developer.vuforia.com/forum/hololens/vumarks-hololens-camera-shifted ). Seems there are a few more user struggling with that. Is someone looking into fixing that?

Hololens - Optical SeeThrough & TargetInvocationException

January 5, 2018 - 9:46am #2

Hello vitaliyOS,

Please refer to the following post regarding Unity Version and HoloLens: https://developer.vuforia.com/forum/hololens/hololens-and-unity-version

Thanks,

Vuforia Support

Log in or register to post comments