Same here, the thing is that the GetAsync method sometimes work and sometimes donât. (Iâm using the device, not the emulator).
Although the log shows an exception, iâm trying to catch it but nothing happens, and the âonCompleteâ delegate is also never called.
DeviceLog.txt
Loading native plugins
Loading MicStreamSelector.dll
Loading SharingClient.dll
Loading SpatialUnderstanding.dll
Loading PlaneFinding.dll
Module information:
Built with Compiler Ver â190023918â
Built from âtrunkâ branch
Version is â5.6.0b4 (f8c731df0021)â
Release build
Application type âD3D11â
Used âUWPâ
OS âWindows 10 (10.0.14393)â
PlayerConnection initialized from c:/data/Programs/WindowsApps/Cevisama2017_1.0.0.0_x86__pzq3xp76mxafg/Data (debug = 0)
PlayerConnection initialized network socket : 0.0.0.0 55249
Multi-casting â[IP] 192.168.0.100 [Port] 55249 [Flags] 2 [Guid] 58833841 [EditorId] 4294967295 [Version] 1048832 [Id] MetroPlayerX86(HoloLens-O0J07) [Debug] 0â to [225.0.0.222:54997]âŚ
Started listening to [0.0.0.0:55249]
GfxDevice: creating device client; threaded=1
Direct3D:
Version: Direct3D 11.0 [level 11.1]
Renderer: HoloLens Graphics (ID=0x22b0)
Vendor: Intel
VRAM: 604 MB
Initialize engine version: 5.6.0b4 (f8c731df0021)
Logical Screen DPI is 144.00.
If your machine has multiple graphics adapters, Unity may have created a WindowContext on the wrong adapter. If you experience a black screen when playing, please restart the Editor.
(Filename: C:/buildslave/unity/build/Runtime/VR/VRDevice.cpp Line: 180)
UnloadTime: 4.698737 ms
Getting Anchor Store AsyncâŚ
(Filename: C:/buildslave/unity/build/artifacts/generated/Metro/runtime/DebugBindings.gen.cpp Line: 51)
Starting the observer.
(Filename: C:/buildslave/unity/build/artifacts/generated/Metro/runtime/DebugBindings.gen.cpp Line: 51)
Exception: Incorrect hashcode or refCount - (GCHandleToObject)
Hash: expected 0 was 8859792(HashCode: 8859792 BlockID: 0 HandleIdInBlock: 1646), RefCount: 0
(HashCode: 8859792 BlockID: 0 HandleIdInBlock: 1646), AllocatedObjectCount: 90
MainThreadId: 4, ThisThreadId: 4
StackTrace: at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at WinRTBridge.GCHandledObjects.ValidateObject(ObjectDebugInfo dbgInfo, Object o, String message)
at WinRTBridge.GCHandledObjects.GCHandleToObject(Int64 handleId)
at UnityEngine.VR.WSA.Persistence.WorldAnchorStore.$Invoke12(Int64 instance, Int64* args)
at UnityEngine.Internal.$MethodUtility.InvokeMethod(Int64 instance, Int64* args, IntPtr method)
Type: System.Exception
Module:
InnerException:
AdditionalInfo:
at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at WinRTBridge.ExceptionHandling.LogException(Exception ex, String additionalInfo)
at WinRTBridge.GCHandledObjects.ValidateObject(ObjectDebugInfo dbgInfo, Object o, String message)
at WinRTBridge.GCHandledObjects.GCHandleToObject(Int64 handleId)
at UnityEngine.VR.WSA.Persistence.WorldAnchorStore.$Invoke12(Int64 instance, Int64* args)
at UnityEngine.Internal.$MethodUtility.InvokeMethod(Int64 instance, Int64* args, IntPtr method)
(Filename: Line: 0)
NullReferenceException: Object reference not set to an instance of an object.
at UnityEngine.VR.WSA.Persistence.WorldAnchorStore.InvokeGetAsyncDelegate(GetAsyncDelegate handler, IntPtr nativePtr)
at UnityEngine.VR.WSA.Persistence.WorldAnchorStore.$Invoke12(Int64 instance, Int64* args)
at UnityEngine.Internal.$MethodUtility.InvokeMethod(Int64 instance, Int64* args, IntPtr method)
(Filename: Line: 0)
Exception: Incorrect hashcode or refCount - (GCHandleToObject)
Hash: expected 0 was 52594082(HashCode: 52594082 BlockID: 0 HandleIdInBlock: 1663), RefCount: 0
(HashCode: 52594082 BlockID: 0 HandleIdInBlock: 1663), AllocatedObjectCount: 92
MainThreadId: 4, ThisThreadId: 4
StackTrace: at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at WinRTBridge.GCHandledObjects.ValidateObject(ObjectDebugInfo dbgInfo, Object o, String message)
at WinRTBridge.GCHandledObjects.GCHandleToObject(Int64 handleId)
at UnityEngine.VR.WSA.Persistence.WorldAnchorStore.$Invoke12(Int64 instance, Int64* args)
at UnityEngine.Internal.$MethodUtility.InvokeMethod(Int64 instance, Int64* args, IntPtr method)
Type: System.Exception
Module:
InnerException:
AdditionalInfo:
at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at WinRTBridge.ExceptionHandling.LogException(Exception ex, String additionalInfo)
at WinRTBridge.GCHandledObjects.ValidateObject(ObjectDebugInfo dbgInfo, Object o, String message)
at WinRTBridge.GCHandledObjects.GCHandleToObject(Int64 handleId)
at UnityEngine.VR.WSA.Persistence.WorldAnchorStore.$Invoke12(Int64 instance, Int64* args)
at UnityEngine.Internal.$MethodUtility.InvokeMethod(Int64 instance, Int64* args, IntPtr method)
(Filename: Line: 0)
NullReferenceException: Object reference not set to an instance of an object.
at UnityEngine.VR.WSA.Persistence.WorldAnchorStore.InvokeGetAsyncDelegate(GetAsyncDelegate handler, IntPtr nativePtr)
at UnityEngine.VR.WSA.Persistence.WorldAnchorStore.$Invoke12(Int64 instance, Int64* args)
at UnityEngine.Internal.$MethodUtility.InvokeMethod(Int64 instance, Int64* args, IntPtr method)
(Filename: Line: 0)
Setting up 1 worker threads for Enlighten.
Thread â id: 5dc â priority: 1
Trimming D3D resources.