Hello,
Building a Vuforia app for HoloLens with the .NET scripting back end, Vuforia fails to initialize within the app.
This is the exception posted:
InvalidCastException: Unable to cast object of type 'EulaVersionStrings' to type 'UnityEngine.IUnitySerializable'. at UnityEngine.Internal.Types.$UnityType5854.$Invoke1(Int64 instance, Int64* args) at UnityEngine.Internal.$MethodUtility.InvokeMethod(Int64 instance, Int64* args, IntPtr method) (Filename: <Unknown> Line: 0)
ArgumentNullException: Value cannot be null. Parameter name: source at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable`1 source, Func`2 selector) at Vuforia.PlayModeEditorUtility.NullPlayModeEditorUtility.IsVuforiaActiveAndEULAAccepted() at Vuforia.PlatformRuntimeInitialization.InitPlatform() at Vuforia.PlatformRuntimeInitialization.$Invoke0(Int64 instance, Int64* args) at UnityEngine.Internal.$MethodUtility.InvokeMethod(Int64 instance, Int64* args, IntPtr method) (Filename: <Unknown> Line: 0)
I wasn't having any issue until I upgarded to the latest 7.5.26 so I suspect that is the cause.
Is it possible to downgrade for 7.5.20 again to verify the update was the cause?
From patch notes of 7.5.26:
From patch notes of 7.5.26: "Fixed an issue where EULA acceptance would not persist in some edge cases"
Guess that didn't work as intended.
I am not completely sure, but I think you have to generate a new Vuforia key for your application.
Thanks for the suggestion but
Thanks for the suggestion but re-generating the key did not work. I think this may be a side effect of the fix you mention.
In my brief research, it looks like json processing is being used somehow in this area and UWP requires NewtonSoft JSON library rather than the standard .NET one.
This is happening to me too.
This is happening to me too. Regeneration doesn't work.
As confirmation of the problem, I rolled back to 7.2.24. Worked immediately.
Can I ask how you rolled back
Can I ask how you rolled back to the previous version? I'm having the same issue.
Hello,
Hello,
One issue that currently exists is that Vuforia 7.5 does not support .NET 4.X. Suggest that you check the Build Settings to set this to .NET 3.5 Equivalent.
We are looking to resolve this issue in our next major release.
Thanks,
Vuforia Engine Support
Hi keselmld, cooley61, clach,
Hi keselmld, cooley61, clach,
Thanks for the update. I
Thanks for the update. I understand we need to convert to il2cpp but at the moment I'm doing some things that don't transfer easily from .net to il2cpp (creating and switching views from Unity). Can you provide a way to go back to 7.5.20?
Thank you
I'm having the same problem.
I'm having the same problem.
For those that are affected
For those that are affected by this bug and can't switch to IL2CPP on UWP, you can downgrade to Vuforia 7.5.20 by re-installing your Unity version.
Thanks,
Vuforia Engine Support
I also encountered the same
I also encountered the same problem, can you send me a version of Vuforia 7.5.20.exe, my email is 1711195187@qq.com. Thank you!
Hi guys,
Hi guys,
I managed to get it works upgrading to Vuforia 8.0.10
Cheers
Alessio