Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to Run Seralization weaver with command... #12

Open
dtmnash opened this issue Aug 18, 2016 · 2 comments
Open

Failed to Run Seralization weaver with command... #12

dtmnash opened this issue Aug 18, 2016 · 2 comments

Comments

@dtmnash
Copy link

dtmnash commented Aug 18, 2016

I love JSON.NET and am excited that someone has brought it to Unity3d. I'm using the Unity HoloLens Technical Preview 5.4.0f3-HTP and version 8.0.3 JSON.NET/JSON.NET.Unity3D

I had to use the workaround you've published for UWP apps but I keep running into a runtime exception when trying to parse an OData response to a model I built that represents the response.

Would appreciate your thoughts/suggestions.

Warning: unknown type System.AsyncCallback detected. Using reflection to gather its type information. Consider to reference it from your scripts so it can gathered during the build process.

(Filename: C:\buildslave\unity\build\Runtime/Scripting/Backend/DotNet/ScriptingTypeProvider_DotNet.cpp Line: 153)

Exception thrown: 'System.InvalidOperationException' in mscorlib.ni.dll
InvalidOperationException: Handle is not initialized.
at System.Runtime.InteropServices.GCHandle.FromIntPtr(IntPtr value)
at UnityEngine.Internal.$MethodUtility.CreateInstanceAndInvokeDefaultConstructor(IntPtr type, UIntPtr argument0, Int64* argument1)
at UnityEngineProxy.InternalCalls.PInvokeCalls.JsonUtility_CUSTOM_FromJson(IntPtr param_0, Int32 param_1)
at UnityEngineProxy.InternalCalls.JsonUtility_CUSTOM_FromJson(String json, Type type)
at UnityEngine.JsonUtility.FromJson[T](String json)
at ShowDataOnGaze.d__3.MoveNext()
at UnityEngine.SetupCoroutine.InvokeMoveNext(IEnumerator enumerator, IntPtr returnValueAddress)
at UnityEngine.SetupCoroutine.$Invoke1InvokeMoveNext(Int64 instance, Int64* args)
at UnityEngine.Internal.$MethodUtility.InvokeMethod(Int64 instance, Int64* args, IntPtr method)
(Filename: Line: 0)

@deniesposito
Copy link

Any luck finding a solution?

@veblush
Copy link
Contributor

veblush commented Aug 26, 2016

@dtmnash From your callstack, there is a call to JsonUtility.FromJson which is not one of Json.Net but UnityEngine. Is it right callstack?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants