Log in or register to post comments

Cannot Initialize Vuforia after 7.5.26 upgrade

October 25, 2018 - 6:32am #1

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?

 

Cannot Initialize Vuforia after 7.5.26 upgrade

January 24, 2019 - 1:15am #12

Hi guys,

I managed to get it works upgrading to Vuforia 8.0.10

Cheers

Alessio

Cannot Initialize Vuforia after 7.5.26 upgrade

December 25, 2018 - 12:50am #11

I also encountered the same problem, can you send me a version of Vuforia 7.5.20.exe, my email is

. Thank you!

Cannot Initialize Vuforia after 7.5.26 upgrade

November 14, 2018 - 5:26am #10

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

Cannot Initialize Vuforia after 7.5.26 upgrade

November 4, 2018 - 11:12pm #9

I'm having the same problem.

Cannot Initialize Vuforia after 7.5.26 upgrade

October 31, 2018 - 3:42pm #8

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

 

Cannot Initialize Vuforia after 7.5.26 upgrade

October 30, 2018 - 5:58am #7

Hi keselmld, cooley61, clach,

Thanks for bringing this to our attention, this indeed seems to be a regression in 7.5.26 when using the .net scripting backend on UWP.

I verified that using IL2CPP fixes the issue both on the HoloLens as well as for apps on handheld UWP devices.

Can you confirm that works for you as well?

Please note that the .net scripting backend is deprecated in Unity 2018.2 (which is also the reason why this issue slipped through the cracks during our testing).

Unity will actually remove it completely in the near future.

We are aware though that many developers still use .net and will fix this issue in our next release.

Thanks,

Vuforia Engine Support

Cannot Initialize Vuforia after 7.5.26 upgrade

October 29, 2018 - 1:52pm #6

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

Cannot Initialize Vuforia after 7.5.26 upgrade

October 29, 2018 - 9:43am #5

Can I ask how you rolled back to the previous version? I'm having the same issue.

Cannot Initialize Vuforia after 7.5.26 upgrade

October 28, 2018 - 1:44pm #4

This is happening to me too. Regeneration doesn't work.

As confirmation of the problem, I rolled back to 7.2.24. Worked immediately.

Cannot Initialize Vuforia after 7.5.26 upgrade

October 25, 2018 - 10:38am #3

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.

Should I submit a bug report somewhere else?

 

 

Cannot Initialize Vuforia after 7.5.26 upgrade

October 25, 2018 - 8:12am #2

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.

Log in or register to post comments